Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rhel 9.0, 9.1 and 9.2 image conversion failed with "passwd: Authentication token manipulation error" #455

Closed
Poorna-Gottimukkula1 opened this issue Jul 19, 2023 · 0 comments · Fixed by #491
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@Poorna-Gottimukkula1
Copy link
Contributor

Poorna-Gottimukkula1 commented Jul 19, 2023

What happened:
Rhel 9.0, 9.1 and 9.2 image conversion failed with below error

Failed to set locale, defaulting to C.UTF-8
Importing GPG key 0xFD431D51:
 Userid     : "Red Hat, Inc. (release key 2) <security@redhat.com>"
 Fingerprint: 567E 347A D004 4ADE 55BA 8A5F 199E 2F91 FD43 1D51
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Importing GPG key 0x5A6340B3:
 Userid     : "Red Hat, Inc. (auxiliary key 3) <security@redhat.com>"
 Fingerprint: 7E46 2425 8C40 6535 D56D 6F13 5054 E4A4 5A63 40B3
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Failed to set locale, defaulting to C.UTF-8
Failed to set locale, defaulting to C.UTF-8
Failed to set locale, defaulting to C.UTF-8
Failed to set locale, defaulting to C.UTF-8
Failed to set locale, defaulting to C.UTF-8
Failed to set locale, defaulting to C.UTF-8
Generating grub configuration file ...
Found Red Hat Enterprise Linux 9.2 (Plow) on /dev/loop0p3
Found CentOS Stream 8 on /dev/sda2
Found CentOS Stream 8 on /dev/sdb2
Found CentOS Stream 8 on /dev/sdc2
Found CentOS Stream 8 on /dev/sdd2
Adding boot menu entry for UEFI Firmware Settings ...
done
passwd: Authentication token manipulation error
Changing password for user root.
Error: failed while preparing the image for rhel distro, err: script /setup.sh failed with exitstatus: 1, stdout: nameserver 9.9.9.9

What you expected to happen:
Changing root user password should be successful

Changing password for user root.
passwd: all authentication tokens updated successfully.

How to reproduce it (as minimally and precisely as possible):

pvsadm image qcow2ova  --image-name rhel-90-test --image-url 'https://access.cdn.redhat.com/content/origin/files/sha256/34/34427b7b4f775b20fb547ce8076a20d5e0425d9bb1960c4d33bfe16a0e7f4d5b/rhel-baseos-9.0-ppc64le-kvm.qcow2?user=dd127b1db16c393937fe8290dfa1e200&_auth_=1689753907_b808bbfc9a2072c109a60072f84feda5' --image-dist rhel --os-password TyBU84GrbPD75FsT --rhn-user ***** --rhn-password ******

Anything else we need to know?:
with --skip-os-password the rhel-9.x images getting converted successfully

Environment:

  • pvsadm version (use pvsadm version): Version: v0.1.11, GoVersion: go1.19.7
  • Environment - On-Prem or IBM PowerVS: IBM PowerVC
  • OS (e.g: cat /etc/os-release): NAME="CentOS Stream" VERSION="8"
  • Kernel (e.g. uname -a): Linux ocp4alll408.pok.stglabs.ibm.com 4.18.0-365.el8.ppc64le #1 SMP Thu Feb 10 16:31:15 UTC 2022 ppc64le ppc64le ppc64le GNU/Linux
  • Others:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
1 participant