rescue a boot from image server and I can not login
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Description
===========
I'm going to test the feature that rescuing a server booted from *image*.
I created a server as usual and I can login and do anything.
when I rescued it with password, and without specifing image, it's ok that changed status as RESCUE, but I can not login the server.
Steps to reproduce
==================
$ openstack server create --image <> --flavor <> --network <> test-rescue
$ nova set-password test-rescue
$ virsh console <>
# Login successful
$ openstack rescue --password qweasd test-rescue
$ virsh console <>
# Login incorrect
Expected result
===============
I can use password set in rescue cmd to login the server in rescue status.
Actual result
=============
I can not use old or new password to login the server
Environment
===========
1. Exact version of OpenStack you are running.
My openstack version is *T*.
2. Which hypervisor did you use?
My hypervisor is KVM+Qemu+Libvirt
2. Which storage type did you use?
CephRBD
3. Which networking type did you use?
Neutron+
Logs & Configs
==============
I get the disk xml config, and I found the index of .rescue disk is 3, it should had been 1, right?
$ virsh dumpxml instance-xxxxx
...
<devices>
<emulator>
<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='writeback' discard='unmap'/>
<auth username='nova'>
<secret type='ceph' uuid='80b323ff-
</auth>
<source protocol='rbd' name='vms/
<host name='172.
<host name='172.
<host name='172.
</source>
<target dev='vda' bus='virtio'/>
<alias name='virtio-
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</disk>
<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='writeback' discard='unmap'/>
<auth username='nova'>
<secret type='ceph' uuid='80b323ff-
</auth>
<source protocol='rbd' name='vms/
<host name='172.
<host name='172.
<host name='172.
</source>
<target dev='vdb' bus='virtio'/>
<alias name='virtio-
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</disk>
<disk type='network' device='cdrom'>
<driver name='qemu' type='raw' cache='writeback' discard='unmap'/>
<auth username='nova'>
<secret type='ceph' uuid='80b323ff-
</auth>
<source protocol='rbd' name='vms/
<host name='172.
<host name='172.
<host name='172.
</source>
<target dev='hda' bus='ide'/>
<readonly/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
...
$ openstack server rescue --password qweasd test-rescue
- You have volume attached to this server as you have mentioned the storage ceph, also
`<disk type='network' device='disk'>` /docs.openstack .org/nova/ latest/ user/rescue. html#stable- device- instance- rescue
https:/
- Which image are you using and so what username?
Thanks for the detailed bug report, please answer above as well and set status back to "New".