hw_disk_bus property not properly applied to a VM running in Ceph

Bug #1421439 reported by Claude Durocher
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
MOS Glance
6.1.x
Fix Released
High
Denis Meltsaykin
7.0.x
Fix Released
High
Anton Arefiev

Bug Description

{"build_id": "2014-12-26_14-25-46", "ostf_sha": "a9afb68710d809570460c29d6c3293219d3624d4", "build_number": "58", "auth_required": true, "api": "1.0", "nailgun_sha": "5f91157daa6798ff522ca9f6d34e7e135f150a90", "production": "docker", "fuelmain_sha": "81d38d6f2903b5a8b4bee79ca45a54b76c1361b8", "astute_sha": "16b252d93be6aaa73030b8100cf8c5ca6a970a91", "feature_groups": ["mirantis", "experimental"], "release": "6.0", "release_versions": {"2014.2-6.0": {"VERSION": {"build_id": "2014-12-26_14-25-46", "ostf_sha": "a9afb68710d809570460c29d6c3293219d3624d4", "build_number": "58", "api": "1.0", "nailgun_sha": "5f91157daa6798ff522ca9f6d34e7e135f150a90", "production": "docker", "fuelmain_sha": "81d38d6f2903b5a8b4bee79ca45a54b76c1361b8", "astute_sha": "16b252d93be6aaa73030b8100cf8c5ca6a970a91", "feature_groups": ["mirantis"], "release": "6.0", "fuellib_sha": "fde8ba5e11a1acaf819d402c645c731af450aff0"}}}, "fuellib_sha": "fde8ba5e11a1acaf819d402c645c731af450aff0"}

[Operating System]
    Ubuntu 12.04

[Reference Architecture]
    HA with Ceph
    1 Zabbix node
    3 controller nodes
    3 compute nodes
    3 Ceph nodes

[Network model ]
    Neutron - VLAN

Steps to reproduce
------------------------------
- install Fuel with Ceph and Neutron VLAN network
- deploy 3 controller nodes, 3 compute nodes and 3 ceph nodes
- test 1 : create a VM NOT in Ceph with TestVM image (driver is virtio in XML, normal)
- test 2 : create a VM in Ceph with TestVM image (driver is virtio in XML, normal)
- edit TestVM image property : glance image-update TestVM --property hw_disk_bus=ide --property hw_vif_model=rtl813
- test 3 : create a VM NOT in Ceph with TestVM image (driver is ide in XML, good)
- test 4 : create a VM in Ceph with TestVM image (driver is virtio in XML, BAD)

Expected result
------------------------------
Test 4 : disk driver should be ide (like in test 3)

Actual result
------------------------------
Test 4 : disk driver is virtio

Example:
------------------------------
cat /etc/libvirt/qemu/instance-00000001.xml
    ...
    <emulator>/usr/bin/kvm-spice</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/var/lib/nova/instances/9b3637b4-81ce-4aad-a48e-2686342e1d81/disk'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>

cat /etc/libvirt/qemu/instance-00000004.xml
    ...
    <disk type='network' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <auth username='compute'>
        <secret type='ceph' uuid='a5d0dd94-57c4-ae55-ffe0-7e3732a24455'/>
      </auth>
      <source protocol='rbd' name='volumes/volume-e9933a71-7db8-420f-93b3-20d944b4ce03'>
        <host name='192.168.0.6' port='6789'/>
        <host name='192.168.0.7' port='6789'/>
        <host name='192.168.0.8' port='6789'/>
      </source>
      <target dev='vda' bus='virtio'/>
      <serial>e9933a71-7db8-420f-93b3-20d944b4ce03</serial>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>

glance image-update TestVM --property hw_disk_bus=ide --property hw_vif_model=rtl8139

glance image-show TestVM
+------------------------------+-------------------------------------------------+
| Property | Value |
+------------------------------+-------------------------------------------------+
| Property 'hw_disk_bus' | ide |
| Property 'hw_vif_model' | rtl8139 |
| Property 'murano_image_info' | {"title": "Murano Demo", "type": "cirros.demo"} |
| checksum | 64d7c1cd2b6f60c92c14662941cb7913 |
| container_format | bare |
| created_at | 2015-02-12T21:35:40 |
| deleted | False |
| disk_format | qcow2 |
| id | 61ba2ea6-3bd5-433b-94f2-c90299d29120 |
| is_public | True |
| min_disk | 0 |
| min_ram | 64 |
| name | TestVM |
| owner | 9e507661505748d4a35a315489879c98 |
| protected | False |
| size | 13167616 |
| status | active |
| updated_at | 2015-02-12T21:44:09 |
+------------------------------+-------------------------------------------------+

cat /etc/libvirt/qemu/instance-00000007.xml
    ...
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/var/lib/nova/instances/c5ca85f3-6625-47b8-a643-c375f43c248c/disk'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>

cat /etc/libvirt/qemu/instance-0000000a.xml
    ...
    <disk type='network' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <auth username='compute'>
        <secret type='ceph' uuid='a5d0dd94-57c4-ae55-ffe0-7e3732a24455'/>
      </auth>
      <source protocol='rbd' name='volumes/volume-3d62794b-60c1-4692-89b5-d7f228b2963d'>
        <host name='192.168.0.6' port='6789'/>
        <host name='192.168.0.7' port='6789'/>
        <host name='192.168.0.8' port='6789'/>
      </source>
      <target dev='vda' bus='virtio'/>
      <serial>3d62794b-60c1-4692-89b5-d7f228b2963d</serial>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>

summary: - hw_disk_bus property and it's not properly applied to a VM running in
- Ceph
+ hw_disk_bus property not properly applied to a VM running in Ceph
Revision history for this message
Stanislav Makar (smakar) wrote :

Could you please provide diagnostic snapshot ?

Changed in fuel:
milestone: none → 6.1
importance: Undecided → High
status: New → Triaged
Stanislav Makar (smakar)
Changed in fuel:
assignee: nobody → MOS Nova (mos-nova)
Revision history for this message
Claude Durocher (claude-d) wrote :

Private message sent to smakar with url to diagnostic snapshot

affects: fuel → mos
Changed in mos:
milestone: 6.1 → none
milestone: none → 6.1
tags: added: nova
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Can't reproduce it with 6.0 release ISO + ubuntu + Ceph. Will ask someone else to give it another try tomorrow.

Changed in mos:
status: Triaged → Incomplete
Revision history for this message
Alexander Gubanov (ogubanov) wrote :

I cann't reproduce it too
Verified on mos 6.0 Ubuntu, Ceph RBD

  2014.2-6.0:
    VERSION:
      api: '1.0'
      astute_sha: 16b252d93be6aaa73030b8100cf8c5ca6a970a91
      build_id: 2014-12-26_14-25-46
      build_number: '58'
      feature_groups:
      - mirantis
      fuellib_sha: fde8ba5e11a1acaf819d402c645c731af450aff0
      fuelmain_sha: 81d38d6f2903b5a8b4bee79ca45a54b76c1361b8
      nailgun_sha: 5f91157daa6798ff522ca9f6d34e7e135f150a90
      ostf_sha: a9afb68710d809570460c29d6c3293219d3624d4
      production: docker
      release: '6.0'

VM was created before changing image

root@node-9:~# egrep 'model type|target dev|rbd' /etc/libvirt/qemu/instance-00000001.xml
      <source protocol='rbd' name='compute/8c3bce3f-dadb-4c39-b29f-921387a4540b_disk'>
      <target dev='vda' bus='virtio'/>
      <target dev='tapb52edcea-88'/>
      <model type='virtio'/>
      <model type='cirrus' vram='9216' heads='1'/>

VM was created after changing image

root@node-8:~# egrep 'model type|target dev|rbd' /etc/libvirt/qemu/instance-00000007.xml
      <source protocol='rbd' name='compute/c1234800-9f39-434b-886a-86b7db77d367_disk'>
      <target dev='hda' bus='ide'/>
      <target dev='tap5c401757-df'/>
      <model type='rtl8139'/>
      <model type='cirrus' vram='9216' heads='1'/>

Revision history for this message
Claude Durocher (claude-d) wrote : Re: [Bug 1421439] Re: hw_disk_bus property not properly applied to a VM running in Ceph
Download full text (8.0 KiB)

My first two tests were done by creating ephemeral instances (boot from
image). My last two tests were done with volume in Ceph (Create a volume
from an image and boot an instance from that volume).

Claude

2015-02-26 9:58 GMT-05:00 Alexander Gubanov <email address hidden>:

> I cann't reproduce it too
> Verified on mos 6.0 Ubuntu, Ceph RBD
>
> 2014.2-6.0:
> VERSION:
> api: '1.0'
> astute_sha: 16b252d93be6aaa73030b8100cf8c5ca6a970a91
> build_id: 2014-12-26_14-25-46
> build_number: '58'
> feature_groups:
> - mirantis
> fuellib_sha: fde8ba5e11a1acaf819d402c645c731af450aff0
> fuelmain_sha: 81d38d6f2903b5a8b4bee79ca45a54b76c1361b8
> nailgun_sha: 5f91157daa6798ff522ca9f6d34e7e135f150a90
> ostf_sha: a9afb68710d809570460c29d6c3293219d3624d4
> production: docker
> release: '6.0'
>
> VM was created before changing image
>
> root@node-9:~# egrep 'model type|target dev|rbd'
> /etc/libvirt/qemu/instance-00000001.xml
> <source protocol='rbd'
> name='compute/8c3bce3f-dadb-4c39-b29f-921387a4540b_disk'>
> <target dev='vda' bus='virtio'/>
> <target dev='tapb52edcea-88'/>
> <model type='virtio'/>
> <model type='cirrus' vram='9216' heads='1'/>
>
> VM was created after changing image
>
> root@node-8:~# egrep 'model type|target dev|rbd'
> /etc/libvirt/qemu/instance-00000007.xml
> <source protocol='rbd'
> name='compute/c1234800-9f39-434b-886a-86b7db77d367_disk'>
> <target dev='hda' bus='ide'/>
> <target dev='tap5c401757-df'/>
> <model type='rtl8139'/>
> <model type='cirrus' vram='9216' heads='1'/>
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1421439
>
> Title:
> hw_disk_bus property not properly applied to a VM running in Ceph
>
> Status in Mirantis OpenStack:
> Incomplete
>
> Bug description:
> {"build_id": "2014-12-26_14-25-46", "ostf_sha":
> "a9afb68710d809570460c29d6c3293219d3624d4", "build_number": "58",
> "auth_required": true, "api": "1.0", "nailgun_sha":
> "5f91157daa6798ff522ca9f6d34e7e135f150a90", "production": "docker",
> "fuelmain_sha": "81d38d6f2903b5a8b4bee79ca45a54b76c1361b8",
> "astute_sha": "16b252d93be6aaa73030b8100cf8c5ca6a970a91",
> "feature_groups": ["mirantis", "experimental"], "release": "6.0",
> "release_versions": {"2014.2-6.0": {"VERSION": {"build_id":
> "2014-12-26_14-25-46", "ostf_sha":
> "a9afb68710d809570460c29d6c3293219d3624d4", "build_number": "58",
> "api": "1.0", "nailgun_sha":
> "5f91157daa6798ff522ca9f6d34e7e135f150a90", "production": "docker",
> "fuelmain_sha": "81d38d6f2903b5a8b4bee79ca45a54b76c1361b8",
> "astute_sha": "16b252d93be6aaa73030b8100cf8c5ca6a970a91",
> "feature_groups": ["mirantis"], "release": "6.0", "fuellib_sha":
> "fde8ba5e11a1acaf819d402c645c731af450aff0"}}}, "fuellib_sha":
> "fde8ba5e11a1acaf819d402c645c731af450aff0"}
>
> [Operating System]
> Ubuntu 12.04
>
> [Reference Architecture]
> HA with Ceph
> 1 Zabbix node
> 3 controller nodes
> 3 compute nodes
> 3 Ceph nodes
>
> [Network model ]
> Neutron - VLAN
>
...

Read more...

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

Claude, that's a very important clarification! We'll give it another try then.

Revision history for this message
Alexander Gubanov (ogubanov) wrote :

I reproduced this bug in MOS 6.0 (build 56) on env: Ubuntu, HA, Neutron VLAN, 3 controller, 2 compute with ceph rbd
VMs were created with volume in Ceph (Create a volume from an image and boot an instance from that volume).

created before changing image

root@node-5:~# egrep 'model type|target dev|rbd' /etc/libvirt/qemu/instance-00000001.xml
      <source protocol='rbd' name='volumes/volume-3df361cb-8fb2-4e87-be8b-020cefb60871'>
      <target dev='vda' bus='virtio'/>
      <target dev='tapeb3de376-13'/>
      <model type='virtio'/>
      <model type='cirrus' vram='9216' heads='1'/>

created after changing image

root@node-5:~# egrep 'model type|target dev|rbd' /etc/libvirt/qemu/instance-00000004.xml
      <source protocol='rbd' name='volumes/volume-914b70bc-6ae4-4445-bd0c-65f7a02e0bb1'>
      <target dev='vda' bus='virtio'/>
      <target dev='tapd66a80e9-ce'/>
      <model type='rtl8139'/>
      <model type='cirrus' vram='9216' heads='1'/>
root@node-5:~#

Changed in mos:
status: Incomplete → Confirmed
Changed in mos:
assignee: MOS Nova (mos-nova) → Sergey Nikitin (snikitin)
status: Confirmed → In Progress
Revision history for this message
Sergey Nikitin (snikitin) wrote :
Download full text (7.2 KiB)

It's a Cinder bug.
steps to reproduce:
1. edit TestVM image property:
glance image-update TestVM --property hw_disk_bus=ide --property hw_vif_model=rtl813

root@node-1:~# glance image-show a375c384-7bcd-4844-b23e-f3f11a5252ac
+------------------------------+-------------------------------------------------+
| Property | Value |
+------------------------------+-------------------------------------------------+
| Property 'hw_disk_bus' | ide |
| Property 'hw_vif_model' | rtl813 |
| Property 'murano_image_info' | {"title": "Murano Demo", "type": "cirros.demo"} |
| checksum | 64d7c1cd2b6f60c92c14662941cb7913 |
| container_format | bare |
| created_at | 2015-03-10T13:31:01 |
| deleted | False |
| disk_format | qcow2 |
| id | a375c384-7bcd-4844-b23e-f3f11a5252ac |
| is_public | True |
| min_disk | 0 |
| min_ram | 64 |
| name | TestVM |
| owner | 7f526ceabbd644b79dded1be4c9a54bf |
| protected | False |
| size | 13167616 |
| status | active |
| updated_at | 2015-03-10T13:56:25 |
+------------------------------+-------------------------------------------------+

Here we see two new properties: Property 'hw_disk_bus'= ide and Property 'hw_vif_model'=rtl813

2. create a volume from this image
root@node-1:~# cinder create 1 --image-id a375c384-7bcd-4844-b23e-f3f11a5252ac
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2015-03-11T10:48:51.715445 |
| display_description | None |
| display_name | None |
| encrypted | False |
| id | d81c849c-ab3d-4b2e-99ec-3d9bd710ed33 |
| image_id | a375c384-7bcd-4844-b23e-f3f11a5252ac |
| metadata | {} |
| size | 1 |
| snapshot_id | None ...

Read more...

Changed in mos:
assignee: Sergey Nikitin (snikitin) → MOS Cinder (mos-cinder)
Anton Arefiev (aarefiev)
Changed in mos:
assignee: MOS Cinder (mos-cinder) → Anton Arefiev (aarefiev)
Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :
Revision history for this message
Anton Arefiev (aarefiev) wrote :
Changed in mos:
assignee: Anton Arefiev (aarefiev) → MOS Glance (mos-glance)
Revision history for this message
Dmitry Mescheryakov (dmitrymex) wrote :

Anton, if you're working on this issue, could you please re-assign this issue to yourself?

Revision history for this message
Mike Fedosin (mfedosin) wrote :

Hi! There are two merged upstream commits in glance on the server and client sides respectively: https://review.openstack.org/#/c/123738/ https://review.openstack.org/#/c/168364/

Unfortunately it's too late to port them in MOS 6.1, but without doubt they will be part of MOS 6.1.1

Changed in mos:
status: In Progress → Won't Fix
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/cinder (openstack-ci/fuel-7.0/2015.1.0)

Fix proposed to branch: openstack-ci/fuel-7.0/2015.1.0
Change author: Anton Arefiev <email address hidden>
Review: https://review.fuel-infra.org/9834

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/cinder (openstack-ci/fuel-7.0/2015.1.0)

Reviewed: https://review.fuel-infra.org/9834
Submitter: mos-infra-ci <>
Branch: openstack-ci/fuel-7.0/2015.1.0

Commit: 03d438c691764c22b8bfaaa07dc2325951366324
Author: Anton Arefiev <email address hidden>
Date: Fri Jul 24 08:37:10 2015

Fix properties extracting from image with glance api v2

When a volume is created using the glance v1 API, the non based
properties places in 'properties' dict, and nova is expected
to find them here. Otherwise api's v2 return custom image properties
as base properties, so nova can't find them in volume 'image
properties'.

This change add new glance call to get image schema, it allows
extract custom properties from image.

Closes-Bug: 1421439

Change-Id: Ib54bb6759b27334294fb2c6d2c0bfe4eae3d0920

Revision history for this message
Oleksiy Butenko (obutenko) wrote :

verified on MOS 7.0 iso 176
{"build_id": "2015-08-14_17-24-26", "build_number": "176", "release_versions": {"2015.1.0-7.0": {"VERSION": {"build_id": "2015-08-14_17-24-26", "build_number": "176", "api": "1.0", "fuel-library_sha": "db1c04c9de65c8e107475967d86c7a5791ef3853", "nailgun_sha": "eaaf1233c613c6e08bcf99ee09ebb1bdb7dd4e31", "feature_groups": ["mirantis"], "fuel-nailgun-agent_sha": "e01693992d7a0304d926b922b43f3b747c35964c", "openstack_version": "2015.1.0-7.0", "fuel-agent_sha": "57145b1d8804389304cd04322ba0fb3dc9d30327", "production": "docker", "python-fuelclient_sha": "4c74a60aa60c06c136d9197c7d09fa4f8c8e2863", "astute_sha": "e24ca066bf6160bc1e419aaa5d486cad1aaa937d", "fuel-ostf_sha": "17786b86b78e5b66d2b1c15500186648df10c63d", "release": "7.0", "fuelmain_sha": "d8c726645be087bc67e2eeca134f0f9747cfeacd"}}}, "auth_required": true, "api": "1.0", "fuel-library_sha": "db1c04c9de65c8e107475967d86c7a5791ef3853", "nailgun_sha": "eaaf1233c613c6e08bcf99ee09ebb1bdb7dd4e31", "feature_groups": ["mirantis"], "fuel-nailgun-agent_sha": "e01693992d7a0304d926b922b43f3b747c35964c", "openstack_version": "2015.1.0-7.0", "fuel-agent_sha": "57145b1d8804389304cd04322ba0fb3dc9d30327", "production": "docker", "python-fuelclient_sha": "4c74a60aa60c06c136d9197c7d09fa4f8c8e2863", "astute_sha": "e24ca066bf6160bc1e419aaa5d486cad1aaa937d", "fuel-ostf_sha": "17786b86b78e5b66d2b1c15500186648df10c63d", "release": "7.0", "fuelmain_sha": "d8c726645be087bc67e2eeca134f0f9747cfeacd"}

Revision history for this message
Denis Klepikov (dklepikov) wrote :

For 6.1.x it is a customer-found.
Have we any timeline for resolving this bug in 6.1 ?

Revision history for this message
Vitaly Sedelnik (vsedelnik) wrote :

I've nominated it for 6.1 MU3, the should be available for early access by 09/11 and published by the end of Sep.

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/python-glanceclient (openstack-ci/fuel-6.1/2014.2)

Fix proposed to branch: openstack-ci/fuel-6.1/2014.2
Change author: Alexander Tivelkov <email address hidden>
Review: https://review.fuel-infra.org/11394

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/cinder (openstack-ci/fuel-6.1/2014.2)

Fix proposed to branch: openstack-ci/fuel-6.1/2014.2
Change author: Jon Bernard <email address hidden>
Review: https://review.fuel-infra.org/11397

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote :

Fix proposed to branch: openstack-ci/fuel-6.1/2014.2
Change author: Anton Arefiev <email address hidden>
Review: https://review.fuel-infra.org/11398

Roman Rufanov (rrufanov)
tags: added: customer-found support
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/python-glanceclient (openstack-ci/fuel-6.1/2014.2)

Reviewed: https://review.fuel-infra.org/11394
Submitter: mos-infra-ci <>
Branch: openstack-ci/fuel-6.1/2014.2

Commit: 8bd93a94aabfa5719ce50dfefeb8340ff5aeee42
Author: Alexander Tivelkov <email address hidden>
Date: Wed Sep 16 22:12:34 2015

Expose 'is_base' schema property attribute

Changeset I49255255 has added an 'is_base' attribute for Image Schema
properties, thus allowing to differentiate between base and custom image
properties, but the client hasn't make any use of it.

This patch adds appropriate attribute to SchemaProperty class and a
helper method which allows to validate if the given property is base or
not.

The added helper method (is_base_property) should not be confused with
the existing is_core_property: the latter just checks if the property is
known to the schema, regardless of its being base or not.

Change-Id: I7c397196dad9ae5494ed2f8f3aacef3fc1ce70d8
Partial-Bug: #1421439

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/cinder (openstack-ci/fuel-6.1/2014.2)

Reviewed: https://review.fuel-infra.org/11397
Submitter: Vitaly Sedelnik <email address hidden>
Branch: openstack-ci/fuel-6.1/2014.2

Commit: 2fee22ebce42ef5a292710b86c30a2b6fd58b2d3
Author: Jon Bernard <email address hidden>
Date: Wed Sep 16 22:11:50 2015

Include boot properties from glance v2 images

In order for users to take advantage of COW volumes created from
a glance image, Cinder must be configured to use Glance API version
2 (default is 1). In version 2, the required boot metadata (kernel_id
and ramdisk_id) are no long stored in the 'properties' dict, but as
standalone fields in the GET response from glance. The existing cinder
parser for the glance request is not aware of this and the volume
created form a v2 image will lack this required metadata.

This was causing the recent Ceph CI gate failures for
test_volume_boot_pattern.

Change-Id: I688898b3841691369d73887f7eabdceb05155db1
Closes-Bug: #1421439
(cherry picked from commit ea109b5f24dca93fd6f660bc436a685d6101bcea)

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote :

Reviewed: https://review.fuel-infra.org/11398
Submitter: Vitaly Sedelnik <email address hidden>
Branch: openstack-ci/fuel-6.1/2014.2

Commit: 51da211434b7a3d9faaaab19189f84a7599462d1
Author: Denis V. Meltsaykin <email address hidden>
Date: Thu Sep 17 10:24:51 2015

Fix properties extracting from image with glance api v2

When a volume is created using the glance v1 API, the non based
properties places in 'properties' dict, and nova is expected
to find them here. Otherwise api's v2 return custom image properties
as base properties, so nova can't find them in volume 'image
properties'.

This change add new glance call to get image schema, it allows
extract custom properties from image.

(commit changed in favor of Python 2.6/2.7 compatibility)

Closes-Bug: #1421439

Change-Id: Ib54bb6759b27334294fb2c6d2c0bfe4eae3d0920

Revision history for this message
Vadim Rovachev (vrovachev) wrote :

On 6.1 Ubuntu after apply patches we have error on commands:
root@node-3:~# cinder create 1 --image-id b108073c-ff47-44af-9a95-ed82c6edc65a
ERROR: Internal Server Error (HTTP 500) (Request-ID: req-1000bc3b-5976-4ec5-9d16-bd5b34b62b52)

root@node-3:~# cinder --os-volume-api-version 2 create 1 --image-id b108073c-ff47-44af-9a95-ed82c6edc65a
ERROR: Internal Server Error (HTTP 500) (Request-ID: req-90b7df9c-1d68-4521-b648-af45924581ce)

part of logs in cinder-api.log:
https://paste.mirantis.net/show/1224/

Revision history for this message
Vadim Rovachev (vrovachev) wrote :

Both patches contains in packets:
cinder-api,cinder-backup,cinder-common,cinder-scheduler,cinder-volume,python-cinder
with version:
1:2014.2.2-1~u14.04+mos15+git.51da211.6fce90c
mirror:
deb http://176.74.221.51:82/trusty-fuel-6.1-stable-updates-11398/ubuntu/ /

Revision history for this message
Vadim Rovachev (vrovachev) wrote :

After install python-glanceclient package with version 1:0.15.0-1~u14.04+mos6 bug not reproduced.
Verified on 6.1 Ubuntu.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.