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

Added fix for passwd: Authentication token manipulation error #490

Closed
wants to merge 1 commit into from

Conversation

KeerthanaAP
Copy link
Contributor

@KeerthanaAP KeerthanaAP commented Oct 12, 2023

Fix #455

Modified passwd to chpasswd command for changing the root password.

$pvsadm image qcow2ova  --image-name rhel-90-test --image-url /root/rhel-baseos-9.1-ppc64le-kvm.qcow2  --image-dist rhel  --rhn-user ***l --os-password Root123#

Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : libaio-0.3.111-13.el9.ppc64le                          1/3 
  Installing       : device-mapper-multipath-libs-0.8.7-20.el9.ppc64le      2/3 
  Installing       : device-mapper-multipath-0.8.7-20.el9.ppc64le           3/3 
  Running scriptlet: device-mapper-multipath-0.8.7-20.el9.ppc64le           3/3 
Created symlink /etc/systemd/system/sysinit.target.wants/multipathd.service → /usr/lib/systemd/system/multipathd.service.
Created symlink /etc/systemd/system/sockets.target.wants/multipathd.socket → /usr/lib/systemd/system/multipathd.socket.

Running in chroot, ignoring request.

Running in chroot, ignoring command 'daemon-reload'
Running in chroot, ignoring command 'reload-or-restart'

  Verifying        : libaio-0.3.111-13.el9.ppc64le                          1/3 
  Verifying        : device-mapper-multipath-libs-0.8.7-20.el9.ppc64le      2/3 
  Verifying        : device-mapper-multipath-0.8.7-20.el9.ppc64le           3/3 
Installed products updated.

Installed:
  device-mapper-multipath-0.8.7-20.el9.ppc64le                                  
  device-mapper-multipath-libs-0.8.7-20.el9.ppc64le                             
  libaio-0.3.111-13.el9.ppc64le                                                 

Complete!
Generating initramfs for kernel version: 5.14.0-162.6.1.el9_1.ppc64le
Generating initramfs for kernel version: 5.14.0-284.30.1.el9_2.ppc64le
Generating grub configuration file ...
Adding boot menu entry for UEFI Firmware Settings ...
done
Unregistering from: subscription.rhsm.redhat.com:443/subscription
System has been unregistered.
All local data removed
mv: cannot stat '/etc/resolv.conf.orig': No such file or directory
I1012 18:01:17.136787    2523 qcow2ova.go:227] Preparation completed
I1012 18:01:17.136822    2523 qcow2ova.go:229] Creating an OVA bundle
I1012 18:01:26.380681    2523 qcow2ova.go:234] OVA bundle creation completed: /tmp/qcow2ova1208226242/rhel-90-test.ova
I1012 18:01:26.380717    2523 qcow2ova.go:236] Compressing an OVA file
I1012 18:01:36.956318    2523 qcow2ova.go:242] OVA file Compression completed


Successfully converted Qcow2 image to OVA format, find at /root/new/pvsadm/rhel-90-test.ova.gz
OS root password: Root123#

@ppc64le-cloud-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: KeerthanaAP
Once this PR has been reviewed and has the lgtm label, please assign mkumatag for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ppc64le-cloud-bot ppc64le-cloud-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 12, 2023
@@ -68,7 +68,7 @@ done
grub2-mkconfig -o /boot/grub2/grub.cfg
rm -rf /etc/sysconfig/network-scripts/ifcfg-eth0
{{if .RootPasswd }}
echo {{ .RootPasswd }} | passwd root --stdin
echo root:{{ .RootPasswd }} | chpasswd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any doc reference we know which talks about chpasswd command fixes the issue we are facing? Its worth documenting the information why this change is fixing the issue we are facing

@KeerthanaAP KeerthanaAP deleted the rhel_passwd branch October 26, 2023 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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