[system tests] Test check_ceph_cinder_cow.check_ceph_cinder_cow with attribute error id when we try to get image details over glance client

Bug #1507987 reported by Tatyanka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Fuel QA Team
7.0.x
Fix Committed
Medium
Fuel QA Team

Bug Description

https://product-ci.infra.mirantis.net/job/8.0.system_test.ubuntu.ceph_ha_one_controller/23/testReport/(root)/check_ceph_cinder_cow/check_ceph_cinder_cow/

Steps:
Scenario:
1. Revert a snapshot where ceph enabled for volumes and images:
"ceph_ha_one_controller_compact"
2. Create a Glance image in RAW disk format
3. Create a Cinder volume using Glance image in RAW disk format
4. Check on a ceph-osd node if the volume has a parent image.

Test failed with:
Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
    self._testFunc()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/8.0.system_test.ubuntu.ceph_ha_one_controller/fuelweb_test/helpers/decorators.py", line 80, in wrapper
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/8.0.system_test.ubuntu.ceph_ha_one_controller/fuelweb_test/tests/test_ceph.py", line 122, in check_ceph_cinder_cow
    volume = os_conn.create_volume(size=1, image_id=image.id)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 491, in __getattr__
    self.get()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 509, in get
    new = self.manager.get(self.id)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 494, in __getattr__
    raise AttributeError(k)
AttributeError: id

Changed in fuel:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :
summary: [system tests] Test check_ceph_cinder_cow.check_ceph_cinder_cow with
- attribute error id whe we try to get volume status using cinder client
+ attribute error id when we try to get image details over glance client
Dmitry Pyzhov (dpyzhov)
tags: added: area-qa
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (master)

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

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

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

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

Reviewed: https://review.openstack.org/240803
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=d5c1aad12fc5f62a58dcabccf892370276d0190a
Submitter: Jenkins
Branch: master

commit d5c1aad12fc5f62a58dcabccf892370276d0190a
Author: Tatyana Leontovich <email address hidden>
Date: Mon Nov 2 10:49:01 2015 +0200

    Add wait for active image status

    To be sure that image is ready to create volume with it,
    add wait for image status.
    Also make image public and set name to it.

    Closes-Bug: #1507987

    Change-Id: Ibb87e692a2b0ee36d220d107e2ae9ba500485eab

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

Reviewed: https://review.openstack.org/241231
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=e9644e5d5cb0850d6f37a89f0ca42ed2ca42d668
Submitter: Jenkins
Branch: stable/7.0

commit e9644e5d5cb0850d6f37a89f0ca42ed2ca42d668
Author: Tatyana Leontovich <email address hidden>
Date: Mon Nov 2 10:49:01 2015 +0200

    [stable 7.0]Add wait for active image status

    To be sure that image is ready to create volume with it,
    add wait for image status.
    Also make image public and set name to it.

    Closes-Bug: #1507987

    Change-Id: Ibb87e692a2b0ee36d220d107e2ae9ba500485eab

Revision history for this message
Tatyanka (tatyana-leontovich) wrote :
Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: non-release
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.