rebuild with new image does not update kernel and ramdisk images

Bug #1401501 reported by Matthew Gilliard
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Medium
Matthew Gilliard
Juno
Fix Released
Medium
Matthew Gilliard

Bug Description

A nova rebuild which specifies a new image does not seem to update the kernel and ramdisk images (which are properties of the rootfs image). This means that the old kernel and ramdisk are booted for the new image.

Glance image #1

glance image-show 8a073314-c3e2-44ee-a675-ef21cf98bf64
+-----------------------+--------------------------------------+
| Property | Value |
+-----------------------+--------------------------------------+
| Property 'build_no' | 5 |
| Property 'kernel_id' | a339c5bb-2bb1-40c6-a6fb-2275fd09543a |
| Property 'ramdisk_id' | 12cc8c05-2f09-4a55-a1dc-f70de803d448 |
| checksum | 1a5ce92631afb0e4697bca54155c6393 |
| container_format | bare |
| created_at | 2014-12-10T08:28:00 |
| deleted | False |
| disk_format | qcow2 |
| id | 8a073314-c3e2-44ee-a675-ef21cf98bf64 |
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | undercloud_5 |
| owner | 84c706a15c744fafbb4c5a2c48bf7405 |
| protected | False |
| size | 1209008128 |
| status | active |
| updated_at | 2014-12-10T09:52:52 |
+-----------------------+--------------------------------------+

Glance image #2

+-----------------------+--------------------------------------+
| Property | Value |
+-----------------------+--------------------------------------+
| Property 'build_no' | 0 |
| Property 'kernel_id' | 89214eda-a88b-4c5d-a3b0-7b965cd8fc05 |
| Property 'ramdisk_id' | d301f03c-fdd5-42ae-b641-e4b1b07f1f29 |
| checksum | 0f5ce408d516bb71375ed8b0d856b54e |
| container_format | bare |
| created_at | 2014-12-10T09:53:27 |
| deleted | False |
| disk_format | qcow2 |
| id | f2f5f338-bcdc-424f-989e-eb9b71bd17b7 |
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | undercloud |
| owner | 84c706a15c744fafbb4c5a2c48bf7405 |
| protected | False |
| size | 1276649472 |
| status | active |
| updated_at | 2014-12-10T09:53:35 |
+-----------------------+--------------------------------------+

After a nova rebuild

 ironic node-show 7acc0e02-9989-4723-a7a7-c26f9e9e4ff0
+------------------------+---------------------------------------------------------------------+
| Property | Value |
+------------------------+---------------------------------------------------------------------+
| instance_uuid | 1015d70f-1bc6-4e2c-be3e-8b81a32d0d03 |
| target_power_state | None |
| properties | {u'memory_mb': u'8192', u'cpu_arch': u'amd64', u'local_gb': u'512', |
| | u'cpus': u'1', u'capabilities': u'role:Undercloud'} |
| maintenance | False |
| driver_info | {u'pxe_deploy_ramdisk': u'681524db-8a3e-4a35-9b5f-bef771fe6ebd', |
| | u'pxe_deploy_kernel': u'7ae90cfa-f809-45ba-90ee-9be3dfe82f6c', |
| | u'ssh_username': u'root', u'ssh_key_filename': |
| | u'/mnt/state/var/lib/ironic/virtual-power-key', u'ssh_address': |
| | u'192.168.122.1', u'ssh_virt_type': u'virsh'} |
| extra | {} |
| last_error | None |
| created_at | 2014-12-10T08:27:03+00:00 |
| target_provision_state | None |
| driver | pxe_ssh |
| updated_at | 2014-12-10T10:51:52+00:00 |
| maintenance_reason | None |
| instance_info | {u'ramdisk': u'12cc8c05-2f09-4a55-a1dc-f70de803d448', u'kernel': u | <--- this is from image #1
| | 'a339c5bb-2bb1-40c6-a6fb-2275fd09543a', u'root_gb': u'30', | <--- this is from image #1
| | u'image_source': u'f2f5f338-bcdc-424f-989e-eb9b71bd17b7', | <--- this is image #2
| | u'ephemeral_format': u'ext4', u'ephemeral_gb': u'482', |
| | u'preserve_ephemeral': u'True', u'deploy_key': |
| | u'HD4AZL3MVP9F4EMHBE4IOJQ8DQ2SY24P', u'swap_mb': u'0'} |
| chassis_uuid | |
| provision_state | active |
| reservation | None |
| power_state | power on |
| console_enabled | False |
| uuid | 7acc0e02-9989-4723-a7a7-c26f9e9e4ff0 |
+------------------------+---------------------------------------------------------------------+

Changed in ironic:
status: New → Confirmed
Changed in ironic:
assignee: nobody → Matthew Gilliard (matthew-gilliard-u)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

Fix proposed to branch: master
Review: https://review.openstack.org/142782

Changed in ironic:
status: Confirmed → In Progress
Changed in ironic:
assignee: Matthew Gilliard (matthew-gilliard-u) → nobody
Changed in ironic:
assignee: nobody → Matthew Gilliard (matthew-gilliard-u)
Dmitry Tantsur (divius)
Changed in ironic:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/142782
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=2e06859425ca79fac054b577b54906e4f0f39b12
Submitter: Jenkins
Branch: master

commit 2e06859425ca79fac054b577b54906e4f0f39b12
Author: Matthew Gilliard <email address hidden>
Date: Fri Jan 16 14:37:39 2015 +0000

    Force glance recheck for kernel/ramdisk on rebuild

    When doing a rebuild, clear the instance_info's kernel
    and ramdisk values, to force the deploy driver to check
    glance. This is necessary as those values may have changed
    without us knowing.

    closes-bug: #1401501

    Change-Id: I8d7831789d21d3a2dcafd614989cf1e53dbedd70

Changed in ironic:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/148219

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (stable/juno)

Reviewed: https://review.openstack.org/148219
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=6681513fe247cd8c458f234b8514e2af25d8b0ff
Submitter: Jenkins
Branch: stable/juno

commit 6681513fe247cd8c458f234b8514e2af25d8b0ff
Author: Matthew Gilliard <email address hidden>
Date: Fri Jan 16 14:37:39 2015 +0000

    Force glance recheck for kernel/ramdisk on rebuild

    When doing a rebuild, clear the instance_info's kernel
    and ramdisk values, to force the deploy driver to check
    glance. This is necessary as those values may have changed
    without us knowing.

    closes-bug: #1401501
    (cherry picked from commit 2e06859425ca79fac054b577b54906e4f0f39b12)
    (includes bugfix and test for that commit, added in
      0556b5852c0a685e47862d945e35a4772c8ed267)

    Conflicts:
     ironic/conductor/manager.py

    Change-Id: I8d7831789d21d3a2dcafd614989cf1e53dbedd70

tags: added: in-stable-juno
Thierry Carrez (ttx)
Changed in ironic:
milestone: none → kilo-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ironic:
milestone: kilo-2 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.