[vcenter] can't create a volume from an image

Bug #1495692 reported by Ruslan Khozinov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Alexander Arzhanov
6.0.x
Won't Fix
Critical
MOS Maintenance
6.1.x
Fix Released
Critical
Denis Meltsaykin
7.0.x
Fix Released
Critical
Alexander Arzhanov
8.0.x
Fix Released
Critical
Alexander Arzhanov

Bug Description

Description:
The creation of a volume from the test-vmdk image in vcenter-cinder availability-zone is failed with unknown error.

Steps to reproduce:
1. create an env with
  - controller
  - compute + cinder
  - cinder-vmdk
  - cinder-vmdk
2. nova-network, VLANManager.
3. deploy the env
4. remove one of cinder-vmdk
5. create a volume from the test-vmdk image in vcenter-cinder availability-zone.

P.s. I've tried to create a volumes from test-vmdk and testvm images and they have created successfully.
--------------------------------------------------------------------------
fuel version: 288 rc2

description: updated
Revision history for this message
Ruslan Khozinov (rkhozinov) wrote :
Revision history for this message
Ruslan Khozinov (rkhozinov) wrote :
Download full text (5.9 KiB)

root@node-4:~# nova image-list
+--------------------------------------+-------------+--------+--------+
| ID | Name | Status | Server |
+--------------------------------------+-------------+--------+--------+
| d135587b-c590-46b6-b83a-2c653b1ffb60 | TestVM | ACTIVE | |
| 392abce1-511e-43d1-9615-443f90d85b88 | TestVM-VMDK | ACTIVE | |
+--------------------------------------+-------------+--------+--------+
root@node-4:~# cinder create --availability-zone vcenter-cinder --image-id 392abce1-511e-43d1-9615-443f90d85b88 --display-name test0 2
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | vcenter-cinder |
| bootable | false |
| created_at | 2015-09-14T21:26:00.778401 |
| display_description | None |
| display_name | test0 |
| encrypted | False |
| id | 2e3519b0-4bcf-406b-b97d-8e638f5e1f6f |
| image_id | 392abce1-511e-43d1-9615-443f90d85b88 |
| metadata | {} |
| multiattach | false |
| size | 2 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | None |
+---------------------+--------------------------------------+
root@node-4:~# cinder create --availability-zone vcenter-cinder --image-id d135587b-c590-46b6-b83a-2c653b1ffb60 --display-name test1 2
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | vcenter-cinder |
| bootable | false |
| created_at | 2015-09-14T21:26:33.890661 |
| display_description | None |
| display_name | test1 |
| encrypted | False |
| id | a3629eab-73da-46ba-903b-6e37e3939a37 |
| image_id | d135587b-c590-46b6-b83a-2c653b1ffb60 |
| metadata | {} |
| multiattach | false |
| size | 2 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | None |
+---...

Read more...

Revision history for this message
Ruslan Khozinov (rkhozinov) wrote :
Changed in fuel:
status: New → Triaged
Revision history for this message
Alexander Arzhanov (aarzhanov) wrote :

This is a known limitation, this functionality is not available. I marked this bug as a "Invalid".

Changed in fuel:
status: Triaged → Invalid
importance: Undecided → High
assignee: Fuel Partner Integration Team (fuel-partner) → Alexander Arzhanov (aarzhanov)
Revision history for this message
Alexander Arzhanov (aarzhanov) wrote :

After a deep investigation, i found the problem in the wrong value in "vmware_adaptertype" (metadata TestVM-VMDK)

Changed in fuel:
importance: High → Critical
status: Invalid → Confirmed
Revision history for this message
Alexander Arzhanov (aarzhanov) wrote :

A typical error:
2015-09-14T20:52:38.019587+00:00 err: 2015-09-14 20:52:38.015 11643 ERROR cinder.volume.flows.manager.create_volume [req-ae6a8793-334e-4e30-82bf-2c52049a1458 ea89af84d7d2425a9b9f2183d1753204 e495a1bd89ec494fb66a049d195d5679 - - -] Failed to copy image 392abce1-511e-43d1-9615-443f90d85b88 to volume: a760529c-4228-49b9-9dc9-461a431fd9e7
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume Traceback (most recent call last):
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/dist-packages/cinder/volume/flows/manager/create_volume.py", line 501, in _copy_image_to_volume
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume copy_image_to_volume(context, volume_ref, image_service, image_id)
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume return f(*args, **kwargs)
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/vmware/vmdk.py", line 1337, in copy_image_to_volume
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume {'id': image_id, 'vol': volume['name']})
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 85, in __exit__
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume six.reraise(self.type_, self.value, self.tb)
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/vmware/vmdk.py", line 1320, in copy_image_to_volume
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume volumeops.VirtualDiskAdapterType.validate(image_adapter_type)
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/vmware/volumeops.py", line 212, in validate
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume invalid_type=extra_spec_adapter_type)
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume InvalidAdapterTypeException: Invalid disk adapter type: lsilogic.
2015-09-14 20:52:38.015 11643 TRACE cinder.volume.flows.manager.create_volume

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/7.0)

Fix proposed to branch: stable/7.0
Review: https://review.openstack.org/223993

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/6.1)

Fix proposed to branch: stable/6.1
Review: https://review.openstack.org/223995

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/6.0)

Fix proposed to branch: stable/6.0
Review: https://review.openstack.org/223998

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

Hi, bug marked as Critical despite on workaround (we can change metadata for image after deploy), because this bug related with basic functionality. I think that fix should be delivered in 7.0 release. Moreover this fix is very simple and doesn't have any impact on other functionality.

no longer affects: fuel/6.0.x
no longer affects: fuel/6.0.x
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/223989
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=ab85e9db9d12bec2e070a7d4da1ff868d88b6179
Submitter: Jenkins
Branch: master

commit ab85e9db9d12bec2e070a7d4da1ff868d88b6179
Author: Alexander Arzhanov <email address hidden>
Date: Wed Sep 16 12:43:11 2015 +0300

    Fix vmware_adaptertype in TestVM-VMDK metadata

    Change-Id: Iac5caf93828d99cc1027bd4b7cbf2b3e5f7f2fa3
    Closes-Bug: #1495692

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/7.0)

Reviewed: https://review.openstack.org/223993
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=a9ee08d5ae416a25ade006cf220dcad9bc9e9cb4
Submitter: Jenkins
Branch: stable/7.0

commit a9ee08d5ae416a25ade006cf220dcad9bc9e9cb4
Author: Alexander Arzhanov <email address hidden>
Date: Wed Sep 16 12:50:30 2015 +0300

    Fix vmware_adaptertype in TestVM-VMDK metadata

    Change-Id: I2e28708c2f7c3cb792d4e0b897dc755bc6c0957a
    Closes-Bug: #1495692

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

Checked on Fuel 7.0 ISO #299

Dmitry Pyzhov (dpyzhov)
tags: added: area-mos
Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

Setting this as Won't Fix for 6.0-updates, as there is no delivery channel for Fuel fixes in 6.0 and we don't expect new deployments.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-web (stable/6.0)

Change abandoned by Alexander Arzhanov (<email address hidden>) on branch: stable/6.0
Review: https://review.openstack.org/223998
Reason: Setting this as Won't Fix for 6.0-updates, as there is no delivery channel for Fuel fixes in 6.0 and we don't expect new deployments.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/6.1)

Reviewed: https://review.openstack.org/223995
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=eb7c592b30ec2fb43bea6e21c738caaed6d1eb59
Submitter: Jenkins
Branch: stable/6.1

commit eb7c592b30ec2fb43bea6e21c738caaed6d1eb59
Author: Alexander Arzhanov <email address hidden>
Date: Wed Sep 16 12:55:15 2015 +0300

    Fix vmware_adaptertype in TestVM-VMDK metadata

    Fix vmware_adaptertype in TestVM-VMDK metadata

    Change-Id: I3b409f4982c39e1abf2e4c670650665758d5b60d
    Closes-Bug: #1495692

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

Tested on Fuel 8.0 ISO #291

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.