[vCenter] Launch instance from a snapshot has failed

Bug #1536795 reported by Alexander Arzhanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Andriy Kurilin
8.0.x
Fix Released
High
Andriy Kurilin

Bug Description

Fuel 8.0 ISO #322

Enviroment:
Compute: QEMU + vCenter
Networking Setup: Neutron with VMware DVS (ML2 plugin)
Storage backends: default
Additional services: all by default

Settings:
VMware vCenter/ESXi datastore for images (Glance)

Nodes:
Controller
Controller
Controller
Compute, Cinder
Cinder-vmware
Compute-vmware

Steps to reproduce:
1. Get existing image by name.
2. Launch an instance using the default image (flavor m1.tiny)
3. Make snapshot of the created instance.
4. Delete the instance created in step 1.
5. Wait while instance deleted
6. Launch another instance from the snapshot created in step 2.

Observed behavior:
Error: Failed to perform requested operation on instance "test_vcenter3", the instance has an error status: Please try again later [Error: No valid host was found. There are not enough hosts available.].

After apply workaround from this bug - https://bugs.launchpad.net/fuel/+bug/1529056, we faced with this problem -http://paste.openstack.org/show/484618/

Upstream bug - https://bugs.launchpad.net/nova/+bug/1528114

Changed in fuel:
importance: Undecided → Critical
milestone: none → 9.0
assignee: nobody → Roman Podoliaka (rpodolyaka)
tags: added: area-partners vcenter
tags: added: area-
tags: added: area-nova
removed: area-
Changed in fuel:
assignee: Roman Podoliaka (rpodolyaka) → MOS Nova (mos-nova)
importance: Critical → High
status: New → Confirmed
summary: - [vCenter] Launch instance from a snapshot has failed (compute issue)
+ [vCenter] Launch instance from a snapshot has failed
Changed in fuel:
assignee: MOS Nova (mos-nova) → Andrey Kurilin (andreykurilin)
status: Confirmed → In Progress
Revision history for this message
Andriy Kurilin (andreykurilin) wrote :

Hi all!
Just an update about this bug:
 1) The exception occures while preparing an image(resizing it to the size of the flavor).
 2) The exception raises from vmware api. All parameters from the nova side match vmware api( https://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.VirtualDiskManager.html#extendVirtualDisk )
 3) The exception is not thrown if expected size(while resizing) increased at least for 1 kB
 4) The exception is not thrown if bigger flavor(flavor with the bigger disk) is selected

tags: added: move-to-9.0
tags: added: area-pce-vcenter
Changed in fuel:
importance: High → Critical
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Ilya, please do not change the importance without a comment.

This is not Critical, as:

1) it's only reproduced on a non-default compute driver

2) it's not a basic use case

3) it has easy workarounds, described by Andrey

Changed in fuel:
importance: Critical → High
tags: added: release-notes
Revision history for this message
Ilya Bumarskov (ibumarskov) wrote :

Was raised to Critical because basic functionality doesn't work.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-ostf (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/275594

tags: added: docs
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-ostf (stable/8.0)

Related fix proposed to branch: stable/8.0
Review: https://review.openstack.org/275681

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/nova (openstack-ci/fuel-8.0/liberty)

Fix proposed to branch: openstack-ci/fuel-8.0/liberty
Change author: Radoslav Gerganov <email address hidden>
Review: https://review.fuel-infra.org/16654

Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

This is already fixed in Mitaka:

https://review.openstack.org/#/c/168024/8

tags: added: hit-hcf
removed: move-to-9.0
Changed in fuel:
status: In Progress → Fix Committed
tags: removed: docs release-notes
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Ilya, I removed release-notes and docs tags - we believe the proposed patch above fixes the issue.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-ostf (master)

Reviewed: https://review.openstack.org/275594
Committed: https://git.openstack.org/cgit/openstack/fuel-ostf/commit/?id=4aece0ee5a90edbbacced28e95980c996edd8a58
Submitter: Jenkins
Branch: master

commit 4aece0ee5a90edbbacced28e95980c996edd8a58
Author: Ilya Bumarskov <email address hidden>
Date: Sun Jan 31 21:02:32 2016 +0300

    Add workaround for bug with launching vcenter instance from snapshot

    Change-Id: I224451a425448d65fc804e55d292fe4e9252e36f
    Related-bug: #1536795

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-ostf (stable/8.0)

Reviewed: https://review.openstack.org/275681
Committed: https://git.openstack.org/cgit/openstack/fuel-ostf/commit/?id=7bcddf18020f2d94a553a441ff57dff9632865df
Submitter: Jenkins
Branch: stable/8.0

commit 7bcddf18020f2d94a553a441ff57dff9632865df
Author: Ilya Bumarskov <email address hidden>
Date: Sun Jan 31 21:02:32 2016 +0300

    Add workaround for bug with launching vcenter instance from snapshot

    Change-Id: I224451a425448d65fc804e55d292fe4e9252e36f
    Related-bug: #1536795

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/nova (openstack-ci/fuel-8.0/liberty)

Reviewed: https://review.fuel-infra.org/16654
Submitter: Pkgs Jenkins <email address hidden>
Branch: openstack-ci/fuel-8.0/liberty

Commit: 76bcddc4016149d78a8169e332fba0a04facff7d
Author: Radoslav Gerganov <email address hidden>
Date: Wed Feb 3 13:01:05 2016

VMware: Handle image size correctly for OVA and streamOptimized images

The image size is different from the virtual disk size when the image is
streamOptimized or OVA. In this case we need to use the size of the
virtual disk which belongs to the temporary VM created by ImportVApp.
This works for both vSAN and VMFS datastores.

Related-Upstream-Bugs: #1240373 #1472955

Closes-Bug: #1536795

Change-Id: Ie7df9a78632ff01453b07ee9fed3dffdd8b4a0c7

Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Fix merged ^

Revision history for this message
Ilya Bumarskov (ibumarskov) wrote :

Verified on Fuel 8.0 #569

Anna Babich (ababich)
tags: added: on-verification
Anna Babich (ababich)
tags: removed: on-verification
Revision history for this message
Ilya Bumarskov (ibumarskov) wrote :

Verified on fuel 9.0 mos-iso#460

Changed in fuel:
status: Fix Committed → Fix Released
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.