snapshot an instance and delete the instance at same time lead to race condition

Bug #1769793 reported by nafeiyang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zVM Cloud Connector
Confirmed
Medium
nafeiyang

Bug Description

Reported by CI, zCC will not delete the source image from DB after export, it will cause the zCC use out of space quickly if run snapshot related case.

2018-05-07 23:45:53.703 8160 ERROR nova.virt.zvm.utils [req-009743-451b-4095-bcfa-85ad4ba8ce84 tempest-ServerPasswordTestJSON-541812697 tempest-ServerPasswordTestJSON-541812697] zVM Cloud Connector request guest_capture failed with parameters: ('RMS0001a', u'2d523db1-0fe5-49af-aebd-20578eb8c2fc') {} . Results: {u'rs': 5, u'overallRC': 300, u'modID': 10, u'rc': 300, u'output': u'', u'errmsg': u'Failed to capture userid RMS0001a to generate image, error: \\nERROR: An error was encountered while creating disk image at stage(rc): ckdencode(5), gzip(1) gzip: stdout: No space left on device Error: ckdencode encountered an unexpected error writing to STDOUT, errno: 32'}

nafeiyang (nafeiy)
Changed in python-zvm-sdk:
importance: Undecided → High
assignee: nobody → nafeiyang (nafeiy)
Revision history for this message
nafeiyang (nafeiy) wrote :
Changed in python-zvm-sdk:
status: New → Fix Committed
jichenjc (jichenjc)
Changed in python-zvm-sdk:
importance: High → Medium
status: Fix Committed → Confirmed
Revision history for this message
jichenjc (jichenjc) wrote :

actually this is because delete an instance when instance is doing snapshot
this leads to some issue because image might be captured in zcc but failed to be cleanup by driver

summary: - Delete image from zcc after export
+ snapshot an instance and delete the instance at same time lead to race
+ condition
Revision history for this message
jichenjc (jichenjc) wrote :
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.