xenapi: launching instance fails while spawning

Bug #1012878 reported by Renuka Apte
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Renuka Apte

Bug Description

Launching an instance when the image is not cached fails with the following log:

2012-06-13 21:38:09 TRACE nova.rpc.amqp File "/opt/stack/nova/nova/virt/xenapi/vm_utils.py", line 682, in create_image
2012-06-13 21:38:09 TRACE nova.rpc.amqp context, session, instance, image_id, image_type)
2012-06-13 21:38:09 TRACE nova.rpc.amqp File "/opt/stack/nova/nova/virt/xenapi/vm_utils.py", line 633, in _create_cached_image
2012-06-13 21:38:09 TRACE nova.rpc.amqp vdi_type)
2012-06-13 21:38:09 TRACE nova.rpc.amqp File "/opt/stack/nova/nova/virt/xenapi/connection.py", line 587, in call_xenapi
2012-06-13 21:38:09 TRACE nova.rpc.amqp return session.xenapi_request(method, args)
2012-06-13 21:38:09 TRACE nova.rpc.amqp File "/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 133, in xenapi_request
2012-06-13 21:38:09 TRACE nova.rpc.amqp result = _parse_result(getattr(self, methodname)(*full_params))
2012-06-13 21:38:09 TRACE nova.rpc.amqp File "/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 203, in _parse_result
2012-06-13 21:38:09 TRACE nova.rpc.amqp raise Failure(result['ErrorDescription'])
2012-06-13 21:38:09 TRACE nova.rpc.amqp Failure: ['MAP_DUPLICATE_KEY', 'VDI', 'other_config', 'OpaqueRef:f6b5609d-7ee6-79f8-eae5-33cdd4f28268', 'nova_disk_type']
2012-06-13 21:38:09 TRACE nova.rpc.amqp

Likely introduced by https://review.openstack.org/#/c/7971/
The change tries to set the nova_disk_type key in _create_cached_image, but that is already set in create_vdi

Renuka Apte (renukaapte)
Changed in nova:
assignee: nobody → Renuka Apte (renukaapte)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: New → In Progress
Revision history for this message
John Garbutt (johngarbutt) wrote :

This should be high priority, all launches fail with trunk and XenAPI using defaults.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/8504
Committed: http://github.com/openstack/nova/commit/35749ba5b8dee86b57f90da11c9566b3a6a24174
Submitter: Jenkins
Branch: master

commit 35749ba5b8dee86b57f90da11c9566b3a6a24174
Author: Renuka Apte <email address hidden>
Date: Wed Jun 13 14:56:07 2012 -0700

    XenAPI: Fixes Bug 1012878

    Launching an instance when the image is not cached fails since
    https://review.openstack.org/#/c/7971/, because the change tries
    to set the nova_disk_type key in _create_cached_image, but that
    is already set in create_vdi

    Change-Id: I5eeb1558acf894cc7cd2eea5fd0fb1cdd673b83c

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → folsom-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-2 → 2012.2
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.