Activity log for bug #1060925

Date Who What changed Old value New value Message
2012-10-03 12:51:04 Sirisha Devineni bug added bug
2012-10-03 12:51:12 Sirisha Devineni nova: assignee Sirisha Devineni (sirisha-devineni)
2012-10-03 12:52:02 Sirisha Devineni description Nova rebuild command works like this: nova rebuild usage: nova rebuild [--password <password>] <server> <image> Currently the image (rootfs) is replaced but not the kernel (and ramdisk if applicable). The objective is to make libvirt use the correct kernel and ramdisk associated with the image in glance. Steps to reproduce: 1. Rebuild a good instance to a new image. 2. Check that the console output has received the keys (like a normal nova boot). 3. Use the credentials of the original instance such as the ssh keys and the floating ip and try to ssh into the instance. 4. Check that the rootfs is correctly rebuilt (cat /etc/issue). 5. Check that the kernel is as expected (uname -r). I reproduced this issue in devstack installed folsom. Created a Vm with Cirros image and after that tried to rebuild the instance using ami-tty image. Then the output is as follows: After first boot with Cirros image: $ cat /etc/issue login as 'cirros' user. default password: 'cubswin:)'. use 'sudo' for root. $uname -r 3.0.0-12-virtual After rebuilt with ami-tty image: # bash bash-4.1# uname -r 3.0.0-12-virtual bash-4.1# cat /etc/issue ttylinux ver 12.1 [atheling] x86_64 class \s kernel \r (\l) The initial "root" and "user" password is "password". The database entries are as follows: image_ref is pointing to new image ID and kernel and ramdisk are pointing to old ones as follows: mysql> select id, image_ref, kernel_id, ramdisk_id, server_name, vm_state from instances; +----+--------------------------------------+--------------------------------------+--------------------------------------+-------------+----------+ | id | image_ref | kernel_id | ramdisk_id | server_name | vm_state | +----+--------------------------------------+--------------------------------------+--------------------------------------+-------------+----------+ | 1 | c4dd8ed5-9488-44f8-98c3-34bcf6cdd52d | b438e614-630e-4bf7-b907-4e4165b32408 | 04a1326f-0891-4b10-8861-61df279d9b40 | NULL | active | +----+--------------------------------------+--------------------------------------+--------------------------------------+-------------+----------+ 1 row in set (0.00 sec) mysql> Bye root@ubuntu28folsom:~# nova image-list +--------------------------------------+---------------------------------+--------+--------+ | ID | Name | Status | Server | +--------------------------------------+---------------------------------+--------+--------+ | 583282f0-3f79-49ff-9886-97c2a1a3cd3c | cirros-0.3.0-x86_64-uec | ACTIVE | | | b438e614-630e-4bf7-b907-4e4165b32408 | cirros-0.3.0-x86_64-uec-kernel | ACTIVE | | | 04a1326f-0891-4b10-8861-61df279d9b40 | cirros-0.3.0-x86_64-uec-ramdisk | ACTIVE | | | c4dd8ed5-9488-44f8-98c3-34bcf6cdd52d | disk123 | ACTIVE | | | 5fab96d5-cc2d-4d81-86cc-825885380c12 | kernel | ACTIVE | | | 5962333b-376e-4d6f-8938-39fff085f7eb | ram | ACTIVE | | +--------------------------------------+---------------------------------+--------+--------+ root@ubuntu28folsom:~# nova list +--------------------------------------+--------+--------+------------------+ | ID | Name | Status | Networks | +--------------------------------------+--------+--------+------------------+ | 80f72970-7131-4426-9a44-7075b290af3e | imgsrv | ACTIVE | private=10.0.0.2 | +--------------------------------------+--------+--------+------------------+ root@ubuntu28folsom:~# nova show 80f72970-7131-4426-9a44-7075b290af3e +------------------------+----------------------------------------------------------+ | Property | Value | +------------------------+----------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-STS:power_state | 1 | | OS-EXT-STS:task_state | None | | OS-EXT-STS:vm_state | active | | accessIPv4 | | | accessIPv6 | | | config_drive | | | created | 2012-10-03T17:32:06Z | | flavor | m1.tiny (1) | | hostId | ebf6015593d45f07c808e7868e03b8a14359f41196b8105f66dbd443 | | id | 80f72970-7131-4426-9a44-7075b290af3e | | image | disk123 (c4dd8ed5-9488-44f8-98c3-34bcf6cdd52d) | | key_name | siri | | metadata | {} | | name | imgsrv | | private network | 10.0.0.2 | | progress | 0 | | security_groups | [{u'name': u'default'}] | | status | ACTIVE | | tenant_id | 81a600396e5c4d07b07772363d1ddf95 | | updated | 2012-10-03T17:38:36Z | | user_id | d4418ce0c6524435ba4901fefe394193 | +------------------------+----------------------------------------------------------+ root@ubuntu28folsom:~# Nova rebuild command works like this: nova rebuild  usage: nova rebuild [--rebuild-password <rebuild-password>] [--poll] [--minimal] <server> <image> Currently the image (rootfs) is replaced but not the kernel (and ramdisk if applicable). The objective is to make libvirt use the correct kernel and ramdisk associated with the image in glance. Steps to reproduce: 1. Rebuild a good instance to a new image.  2. Check that the console output has received the keys (like a normal nova boot).  3. Use the credentials of the original instance such as the ssh keys and the floating ip and try to ssh into the instance.  4. Check that the rootfs is correctly rebuilt (cat /etc/issue). 5. Check that the kernel is as expected (uname -r). I reproduced this issue in devstack installed folsom. Created a Vm with Cirros image and after that tried to rebuild the instance using ami-tty image. Then the output is as follows: After first boot with Cirros image: $ cat /etc/issue login as 'cirros' user. default password: 'cubswin:)'. use 'sudo' for root. $uname -r 3.0.0-12-virtual After rebuilt with ami-tty image: # bash bash-4.1# uname -r 3.0.0-12-virtual bash-4.1# cat /etc/issue ttylinux ver 12.1 [atheling] x86_64 class \s kernel \r (\l) The initial "root" and "user" password is "password". The database entries are as follows: image_ref is pointing to new image ID and kernel and ramdisk are pointing to old ones as follows: mysql> select id, image_ref, kernel_id, ramdisk_id, server_name, vm_state from instances; +----+--------------------------------------+--------------------------------------+--------------------------------------+-------------+----------+ | id | image_ref | kernel_id | ramdisk_id | server_name | vm_state | +----+--------------------------------------+--------------------------------------+--------------------------------------+-------------+----------+ | 1 | c4dd8ed5-9488-44f8-98c3-34bcf6cdd52d | b438e614-630e-4bf7-b907-4e4165b32408 | 04a1326f-0891-4b10-8861-61df279d9b40 | NULL | active | +----+--------------------------------------+--------------------------------------+--------------------------------------+-------------+----------+ 1 row in set (0.00 sec) mysql> Bye root@ubuntu28folsom:~# nova image-list +--------------------------------------+---------------------------------+--------+--------+ | ID | Name | Status | Server | +--------------------------------------+---------------------------------+--------+--------+ | 583282f0-3f79-49ff-9886-97c2a1a3cd3c | cirros-0.3.0-x86_64-uec | ACTIVE | | | b438e614-630e-4bf7-b907-4e4165b32408 | cirros-0.3.0-x86_64-uec-kernel | ACTIVE | | | 04a1326f-0891-4b10-8861-61df279d9b40 | cirros-0.3.0-x86_64-uec-ramdisk | ACTIVE | | | c4dd8ed5-9488-44f8-98c3-34bcf6cdd52d | disk123 | ACTIVE | | | 5fab96d5-cc2d-4d81-86cc-825885380c12 | kernel | ACTIVE | | | 5962333b-376e-4d6f-8938-39fff085f7eb | ram | ACTIVE | | +--------------------------------------+---------------------------------+--------+--------+ root@ubuntu28folsom:~# nova list +--------------------------------------+--------+--------+------------------+ | ID | Name | Status | Networks | +--------------------------------------+--------+--------+------------------+ | 80f72970-7131-4426-9a44-7075b290af3e | imgsrv | ACTIVE | private=10.0.0.2 | +--------------------------------------+--------+--------+------------------+ root@ubuntu28folsom:~# nova show 80f72970-7131-4426-9a44-7075b290af3e +------------------------+----------------------------------------------------------+ | Property | Value | +------------------------+----------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-STS:power_state | 1 | | OS-EXT-STS:task_state | None | | OS-EXT-STS:vm_state | active | | accessIPv4 | | | accessIPv6 | | | config_drive | | | created | 2012-10-03T17:32:06Z | | flavor | m1.tiny (1) | | hostId | ebf6015593d45f07c808e7868e03b8a14359f41196b8105f66dbd443 | | id | 80f72970-7131-4426-9a44-7075b290af3e | | image | disk123 (c4dd8ed5-9488-44f8-98c3-34bcf6cdd52d) | | key_name | siri | | metadata | {} | | name | imgsrv | | private network | 10.0.0.2 | | progress | 0 | | security_groups | [{u'name': u'default'}] | | status | ACTIVE | | tenant_id | 81a600396e5c4d07b07772363d1ddf95 | | updated | 2012-10-03T17:38:36Z | | user_id | d4418ce0c6524435ba4901fefe394193 | +------------------------+----------------------------------------------------------+ root@ubuntu28folsom:~#
2012-10-03 16:08:44 Johannes Erdfelt summary Nova rebuild is not using kernel and ramdisk associated with the new image libvirt: rebuild is not using kernel and ramdisk associated with the new image
2012-10-05 12:10:51 OpenStack Infra nova: status New In Progress
2012-10-10 20:21:08 Vish Ishaya tags folsom-backport-potential
2012-10-10 20:55:56 OpenStack Infra nova: status In Progress Fix Committed
2012-11-21 10:02:02 Thierry Carrez nova: status Fix Committed Fix Released
2012-11-21 10:02:02 Thierry Carrez nova: milestone grizzly-1
2012-11-21 19:49:48 Vish Ishaya nova: importance Undecided Low
2012-11-21 19:49:54 Vish Ishaya nominated for series nova/folsom
2012-11-21 19:49:54 Vish Ishaya bug task added nova/folsom
2012-11-21 19:50:36 Vish Ishaya tags folsom-backport-potential
2012-11-21 19:53:26 OpenStack Infra nova/folsom: status New In Progress
2012-11-21 19:53:26 OpenStack Infra nova/folsom: assignee Vish Ishaya (vishvananda)
2012-11-21 19:53:41 Vish Ishaya nova/folsom: status In Progress Triaged
2012-11-21 19:53:45 Vish Ishaya nova/folsom: importance Undecided Low
2012-11-21 19:54:18 Vish Ishaya nova/folsom: status Triaged In Progress
2012-11-27 03:55:41 OpenStack Infra nova/folsom: status In Progress Fix Committed
2012-11-27 07:34:03 Mark McLoughlin nova/folsom: milestone 2012.2.1
2012-11-29 21:56:41 Mark McLoughlin nova/folsom: status Fix Committed Fix Released
2012-11-30 23:39:07 Launchpad Janitor branch linked lp:~gandelman-a/ubuntu/quantal/nova/2012.2.1
2012-12-03 21:48:40 Adam Gandelman nova (Ubuntu): status New Fix Released
2012-12-03 21:48:44 Adam Gandelman nominated for series Ubuntu Quantal
2012-12-03 21:48:45 Adam Gandelman bug task added nova (Ubuntu Quantal)
2012-12-03 21:48:47 Adam Gandelman nova (Ubuntu Quantal): status New Confirmed
2012-12-11 18:20:13 Launchpad Janitor branch linked lp:~openstack-ubuntu-testing/nova/precise-folsom
2012-12-28 16:25:35 Clint Byrum nova (Ubuntu Quantal): status Confirmed Fix Committed
2012-12-28 16:25:39 Clint Byrum bug added subscriber Ubuntu Stable Release Updates Team
2012-12-28 16:25:42 Clint Byrum bug added subscriber SRU Verification
2012-12-28 16:25:51 Clint Byrum tags verification-needed
2012-12-31 04:54:55 Launchpad Janitor branch linked lp:ubuntu/quantal-proposed/nova
2013-01-29 13:10:46 Launchpad Janitor nova (Ubuntu Quantal): status Fix Committed Fix Released
2013-01-29 13:10:46 Launchpad Janitor cve linked 2012-5625
2013-04-04 10:59:32 Thierry Carrez nova: milestone grizzly-1 2013.1