yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #91864
[Bug 2018719] [NEW] rescue a boot from image server and I can not login
Public bug reported:
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+OpenVSwitch
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>/usr/libexec/qemu-kvm</emulator>
<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='writeback' discard='unmap'/>
<auth username='nova'>
<secret type='ceph' uuid='80b323ff-ffb0-4544-bfa2-c08dd6bab309'/>
</auth>
<source protocol='rbd' name='vms/a179448d-17a2-4e29-afa4-886d0e5752d8_disk.rescue' index='3'>
<host name='172.16.140.102' port='6789'/>
<host name='172.16.140.101' port='6789'/>
<host name='172.16.140.172' port='6789'/>
</source>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<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-ffb0-4544-bfa2-c08dd6bab309'/>
</auth>
<source protocol='rbd' name='vms/a179448d-17a2-4e29-afa4-886d0e5752d8_disk' index='2'>
<host name='172.16.140.102' port='6789'/>
<host name='172.16.140.101' port='6789'/>
<host name='172.16.140.172' port='6789'/>
</source>
<target dev='vdb' bus='virtio'/>
<alias name='virtio-disk1'/>
<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-ffb0-4544-bfa2-c08dd6bab309'/>
</auth>
<source protocol='rbd' name='vms/a179448d-17a2-4e29-afa4-886d0e5752d8_disk.config.rescue' index='1'>
<host name='172.16.140.102' port='6789'/>
<host name='172.16.140.101' port='6789'/>
<host name='172.16.140.172' port='6789'/>
</source>
<target dev='hda' bus='ide'/>
<readonly/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
...
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2018719
Title:
rescue a boot from image server and I can not login
Status in OpenStack Compute (nova):
New
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+OpenVSwitch
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>/usr/libexec/qemu-kvm</emulator>
<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='writeback' discard='unmap'/>
<auth username='nova'>
<secret type='ceph' uuid='80b323ff-ffb0-4544-bfa2-c08dd6bab309'/>
</auth>
<source protocol='rbd' name='vms/a179448d-17a2-4e29-afa4-886d0e5752d8_disk.rescue' index='3'>
<host name='172.16.140.102' port='6789'/>
<host name='172.16.140.101' port='6789'/>
<host name='172.16.140.172' port='6789'/>
</source>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<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-ffb0-4544-bfa2-c08dd6bab309'/>
</auth>
<source protocol='rbd' name='vms/a179448d-17a2-4e29-afa4-886d0e5752d8_disk' index='2'>
<host name='172.16.140.102' port='6789'/>
<host name='172.16.140.101' port='6789'/>
<host name='172.16.140.172' port='6789'/>
</source>
<target dev='vdb' bus='virtio'/>
<alias name='virtio-disk1'/>
<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-ffb0-4544-bfa2-c08dd6bab309'/>
</auth>
<source protocol='rbd' name='vms/a179448d-17a2-4e29-afa4-886d0e5752d8_disk.config.rescue' index='1'>
<host name='172.16.140.102' port='6789'/>
<host name='172.16.140.101' port='6789'/>
<host name='172.16.140.172' port='6789'/>
</source>
<target dev='hda' bus='ide'/>
<readonly/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
...
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2018719/+subscriptions