Xenserver plugin: Error while uploading the VHD file after snapshot / nova image-create/ or nova backup

Bug #893932 reported by Rajesh Battala
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Medium
Unassigned

Bug Description

After the snapshot is taken, nova calls GLANCE plugin to upload the snapshot image file to the Glance server.
There is an error in Glance plugin to upload the snapshot disk, that's y snapshot disk was not getting uploaded to glance server.

[20111122T15:58:19.520Z| info|band-openstack10|7715824|sm_exec D:db38fa38eff1|xapi] Session.destroy trackid=e67d4f3ea7573edc0de94ee71f86a59e
[20111122T15:58:19.525Z|debug|band-openstack10|7715824|Async.SR.scan R:508c0ec0aa17|xapi] Unmarking SR after SR.scan (task=OpaqueRef:508c0ec0-aa17-d686-125f-9a5891765c43)
[20111122T15:58:20.203Z| info|band-openstack10|7715928 unix-RPC|dispatch:VDI.remove_from_sm_config D:abb30ef994fb|api_effect] VDI.remove_from_sm_config
[20111122T15:58:20.218Z| info|band-openstack10|7715931 unix-RPC|dispatch:VDI.add_to_sm_config D:595c545e492b|api_effect] VDI.add_to_sm_config
[20111122T15:58:20.309Z| info|band-openstack10|7715939|Async.host.call_plugin R:2d04672ac68a|dispatcher] spawning a new thread to handle the current task (trackid=0d6fc9540c272c671b9160368610eb36)
[20111122T15:58:20.310Z|debug|band-openstack10|7715939|Async.host.call_plugin R:2d04672ac68a|audit] Host.call_plugin host = '169e9e56-8210-45db-8bba-54235600685c (band-openstack10)'; plugin = 'glance'; fn = 'upload_vhd'; args = [ params: (dp0
S'auth_token'
p1
V999888777666
p2
sS'glance_port'
p3
I9292
sS'image_id'
p4
I5
sS'glance_host'
p5
S'os-vpx-9a-f1-f8-b9-b5-2d.openstack.com'
p6
sS'sr_path'
p7
S'/var/run/sr-mount/e84df0ef-0c10-13d2-1af5-c5f5a04b3f9c'
p8
sS'os_type'
p9
S'linux'
p10
sS'vdi_uuids'
p11
(dp12
S'snap'
p13
S'476b565d-a87f-4579-bdeb-d06a85238d71'
p14
sS'image'
p15
S'd46d1615-092b-4545-9507-edbc51446986'
p16
ss. ]
[20111122T15:58:20.468Z|debug|band-openstack10|7715939|Async.host.call_plugin R:2d04672ac68a|backtrace] Raised at xapi_plugins.ml:50.44-83 -> message_forwarding.ml:231.27-46 -> rbac.ml:229.16-23
[20111122T15:58:20.468Z|debug|band-openstack10|7715939|Async.host.call_plugin R:2d04672ac68a|backtrace] Raised at hashtbl.ml:93.19-28 -> debug.ml:100.36-65
[20111122T15:58:20.468Z|debug|band-openstack10|7715939|Async.host.call_plugin R:2d04672ac68a|dispatcher] Server_helpers.exec exception_handler: Got exception XENAPI_PLUGIN_FAILURE: [ upload_vhd; OSError; [Errno 2] No such file or directory: '/var/run/sr-mount/e84df0ef-0c10-13d2-1af5-c5f5a04b3f9c/tmpinD_8T' ]
[20111122T15:58:20.468Z|debug|band-openstack10|7715939|Async.host.call_plugin R:2d04672ac68a|dispatcher] Raised at hashtbl.ml:93.19-28 -> debug.ml:100.36-65
[20111122T15:58:20.468Z|debug|band-openstack10|7715939|Async.host.call_plugin R:2d04672ac68a|backtrace] Raised at hashtbl.ml:93.19-28 -> debug.ml:100.36-65
[20111122T15:58:20.476Z|debug|band-openstack10|7715939|Async.host.call_plugin R:2d04672ac68a|xapi] Raised at server_helpers.ml:93.14-15 -> pervasiveext.ml:22.2-9
[20111122T15:58:20.476Z|debug|band-openstack10|7715939|Async.host.call_plugin R:2d04672ac68a|xapi] Raised at pervasiveext.ml:26.22-25 -> pervasiveext.ml:22.2-9
[20111122T15:58:20.476Z|debug|band-openstack10|7715939||xapi] Raised at pervasiveext.ml:26.22-25 -> pervasiveext.ml:22.2-9

Tags: xenserver
Thierry Carrez (ttx)
summary: - Error in Glance plugin while uploading the VHD file after snapshot /
+ Xenserver plugin: Error while uploading the VHD file after snapshot /
nova image-create/ or nova backup
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
tags: added: xenserver
Revision history for this message
Rajesh Battala (rajesh-battala) wrote :

This issue will happen if the "storage" type is lvm. This is not happening on the "Storage" type Ext

Revision history for this message
Ken Pepple (ken-pepple) wrote :

upload_vhd() in the glance xapi plugin calls _make_staging_area(sr_path) which in turn wants to create a temporary directory via tempfile.mkdtemp(dir=sr_path) ... unless the sr_path is a mounted filesystem (i.e. it is an ext SR), this will crash and burn.

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.