Users can inject an admin (root) password into an instance on KVM via the following - 1. Edit - /etc/openstack-dashboard/local_settings 2. Change ''can_set_password': False,' to ''can_set_password': True,' 3. Edit - /etc/nova/nova.conf 4. Ensure 'inject_password=true' 5. Restart nova When you use the 'nova' boot instance to spin up a new instance, the output of the command displays 'adminPass', which you can use to log in to the instance as root. Nova achieves this by overwriting the value in /etc/shadow for the 'root' user. This procedure can also be used to activate the root account for KVM guest images.
Assigning to Deepti for review. The above procedure works in OSP 7 and touches on your recent work on creating images. If users do this, they don't need to inject keypairs to log in to their instance; they can just use the password that has been set. Apparently, the password is also displayed somewhere in the dashboard as well, but I haven't seen it yet.
Created attachment 1051596 [details] Set admin password in dashboard So, it seems that users can also set a custom password from the dashboard by running 'systemctl restart httpd.service' to restart the dashboard after enabling can_set_password. See the attached screen capture for the newly added admin password fields. These fields can be used when a user launches or rebuilds an instance.
The requested content has been added. Moving to VERIFIED.
This content is live on the Customer Portal. Closing.