Sahara image with tags wasn't imported into Glance

Bug #1320245 reported by Alexander Kislitsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Denis Egorenko

Bug Description

{"build_id": "2014-05-16_14-38-15", "mirantis": "yes", "build_number": "209", "ostf_sha": "353f918197ec53a00127fd28b9151f248a2a2d30", "nailgun_sha": "ab7f7dfddadfe0e08a39693c6d33aa0250f20142", "production": "docker", "api": "1.0", "fuelmain_sha": "7aabf9b67931d30f154c43b0eb12796fd5553e77", "astute_sha": "c0418e1739cceb864fd2c548a7c6b9ad6a46ed86", "release": "5.0", "fuellib_sha": "a69e118146e7d4398a02e3eeff413e008ebb3716"}

209 ISO

Steps to reporduce:
1 Controller
1 Compute
1 Cinder

Storage Cinder-LVM
Flat Nova network
Sahara enabled

OSTF tests failed:
(nose_storage_plugin) fuel_health.tests.platform_tests.test_platform_savanna.PlatformSavannaTests.test_platform_savanna
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/unittest2/case.py", line 340, in run
    testMethod()
  File "/usr/lib/python2.6/site-packages/fuel_health/tests/platform_tests/test_platform_savanna.py", line 54, in test_platform_savanna
    "Step 1 failed: {msg}".format(msg=fail_msg))
  File "/usr/lib/python2.6/site-packages/fuel_health/common/test_mixins.py", line 173, in verify_response_true
    self.fail(message.format(failed_step_msg, msg))
  File "/usr/lib/python2.6/site-packages/unittest2/case.py", line 415, in fail
    raise self.failureException(msg)
AssertionError: Step 1 failed: Sahara image with tags wasn't imported into Glance, please check http://docs.mirantis.com/openstack/fuel/fuel-5.0/user-guide.html#platform-tests-description. Please refer to OpenStack logs for more details.
-------------------- >> begin captured logging << --------------------
fuel_health.nmanager: DEBUG: Deleting <Stack {u'description': u'Template which creates single instance\n', u'links': [{u'href': u'http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-1606487648/83be1792-6e6e-46a6-b819-4fe17244a56d', u'rel': u'self'}], u'stack_status_reason': u'Stack CREATE started', u'stack_name': u'ost1_test-1606487648', u'creation_time': u'2014-05-16T13:33:53Z', u'updated_time': None, u'stack_status': u'CREATE_IN_PROGRESS', u'id': u'83be1792-6e6e-46a6-b819-4fe17244a56d'}> from shared resources of NovaNetworkScenarioTest
heatclient.common.http: DEBUG: curl -i -X DELETE -H 'X-Auth-Token: 0ec354b8953a4be486f7646618344d03' -H 'Content-Type: application/octet-stream' -H 'User-Agent: python-heatclient' http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-1606487648/83be1792-6e6e-46a6-b819-4fe17244a56d
urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.20.0.5
urllib3.connectionpool: DEBUG: "DELETE http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-1606487648/83be1792-6e6e-46a6-b819-4fe17244a56d HTTP/1.1" 404 208
heatclient.common.http: DEBUG:
HTTP/1.1 404 Not Found
date: Fri, 16 May 2014 13:34:03 GMT
content-length: 208
via: 1.1 node-7.domain.tld:8004
content-type: application/json; charset=UTF-8
connection: close
{"explanation": "The resource could not be found.", "code": 404, "error": {"message": "The Stack (ost1_test-1606487648) could not be found.", "traceback": null, "type": "StackNotFound"}, "title": "Not Found"}
fuel_health.nmanager: DEBUG: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/fuel_health/nmanager.py", line 345, in tearDownClass
    thing.delete()
  File "/usr/lib/python2.6/site-packages/heatclient/v1/stacks.py", line 36, in delete
    return self.manager.delete(self.identifier)
  File "/usr/lib/python2.6/site-packages/heatclient/v1/stacks.py", line 130, in delete
    self._delete("/stacks/%s" % stack_id)
  File "/usr/lib/python2.6/site-packages/heatclient/openstack/common/apiclient/base.py", line 202, in _delete
    return self.client.delete(url)
  File "/usr/lib/python2.6/site-packages/heatclient/common/http.py", line 270, in delete
    return self.raw_request("DELETE", url, **kwargs)
  File "/usr/lib/python2.6/site-packages/heatclient/common/http.py", line 251, in raw_request
    return self._http_request(url, method, **kwargs)
  File "/usr/lib/python2.6/site-packages/heatclient/common/http.py", line 196, in _http_request
    raise exc.from_response(resp)
HTTPNotFound: ERROR: The Stack (ost1_test-1606487648) could not be found.
heatclient.common.http: DEBUG: curl -i -X GET -H 'X-Auth-Token: 0ec354b8953a4be486f7646618344d03' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'User-Agent: python-heatclient' http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-1606487648/83be1792-6e6e-46a6-b819-4fe17244a56d
urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.20.0.5
urllib3.connectionpool: DEBUG: "GET http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-1606487648/83be1792-6e6e-46a6-b819-4fe17244a56d HTTP/1.1" 200 824
heatclient.common.http: DEBUG:
HTTP/1.1 200 OK
date: Fri, 16 May 2014 13:34:03 GMT
content-length: 824
via: 1.1 node-7.domain.tld:8004
content-type: application/json; charset=UTF-8
connection: close
{"stack": {"disable_rollback": false, "description": "Template which creates single instance\n", "parameters": {"OS::stack_name": "ost1_test-1606487648", "InstanceType": "non-exists", "OS::stack_id": "83be1792-6e6e-46a6-b819-4fe17244a56d", "ImageId": "TestVM"}, "stack_status_reason": "Stack ROLLBACK completed successfully", "stack_name": "ost1_test-1606487648", "outputs": [], "creation_time": "2014-05-16T13:33:53Z", "links": [{"href": "http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-1606487648/83be1792-6e6e-46a6-b819-4fe17244a56d", "rel": "self"}], "capabilities": [], "notification_topics": [], "timeout_mins": null, "stack_status": "ROLLBACK_COMPLETE", "updated_time": null, "id": "83be1792-6e6e-46a6-b819-4fe17244a56d", "template_description": "Template which creates single instance\n"}}
fuel_health.test: DEBUG: Sleeping for 10 seconds
heatclient.common.http: DEBUG: curl -i -X GET -H 'X-Auth-Token: 0ec354b8953a4be486f7646618344d03' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'User-Agent: python-heatclient' http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-1606487648/83be1792-6e6e-46a6-b819-4fe17244a56d
urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.20.0.5
urllib3.connectionpool: DEBUG: "GET http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-1606487648/83be1792-6e6e-46a6-b819-4fe17244a56d HTTP/1.1" 200 824
heatclient.common.http: DEBUG:
HTTP/1.1 200 OK
date: Fri, 16 May 2014 13:34:13 GMT
content-length: 824
via: 1.1 node-7.domain.tld:8004
content-type: application/json; charset=UTF-8
connection: close
{"stack": {"disable_rollback": false, "description": "Template which creates single instance\n", "parameters": {"OS::stack_name": "ost1_test-1606487648", "InstanceType": "non-exists", "OS::stack_id": "83be1792-6e6e-46a6-b819-4fe17244a56d", "ImageId": "TestVM"}, "stack_status_reason": "Stack ROLLBACK completed successfully", "stack_name": "ost1_test-1606487648", "outputs": [], "creation_time": "2014-05-16T13:33:53Z", "links": [{"href": "http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-1606487648/83be1792-6e6e-46a6-b819-4fe17244a56d", "rel": "self"}], "capabilities": [], "notification_topics": [], "timeout_mins": null, "stack_status": "ROLLBACK_COMPLETE", "updated_time": null, "id": "83be1792-6e6e-46a6-b819-4fe17244a56d", "template_description": "Template which creates single instance\n"}}
fuel_health.test: DEBUG: Sleeping for 10 seconds
fuel_health.nmanager: DEBUG: Deleting <Stack {u'description': u'Template which creates single instance\n', u'links': [{u'href': u'http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-310806899/ae066d7d-ea97-410e-a5e0-d0c0363cf040', u'rel': u'self'}], u'stack_status_reason': u'Stack CREATE started', u'stack_name': u'ost1_test-310806899', u'creation_time': u'2014-05-16T13:32:59Z', u'updated_time': None, u'stack_status': u'CREATE_IN_PROGRESS', u'id': u'ae066d7d-ea97-410e-a5e0-d0c0363cf040'}> from shared resources of NovaNetworkScenarioTest
heatclient.common.http: DEBUG: curl -i -X DELETE -H 'X-Auth-Token: 0ec354b8953a4be486f7646618344d03' -H 'Content-Type: application/octet-stream' -H 'User-Agent: python-heatclient' http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-310806899/ae066d7d-ea97-410e-a5e0-d0c0363cf040
urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.20.0.5
urllib3.connectionpool: DEBUG: "DELETE http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-310806899/ae066d7d-ea97-410e-a5e0-d0c0363cf040 HTTP/1.1" 404 207
heatclient.common.http: DEBUG:
HTTP/1.1 404 Not Found
date: Fri, 16 May 2014 13:34:23 GMT
content-length: 207
via: 1.1 node-7.domain.tld:8004
content-type: application/json; charset=UTF-8
connection: close
{"explanation": "The resource could not be found.", "code": 404, "error": {"message": "The Stack (ost1_test-310806899) could not be found.", "traceback": null, "type": "StackNotFound"}, "title": "Not Found"}
fuel_health.nmanager: DEBUG: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/fuel_health/nmanager.py", line 345, in tearDownClass
    thing.delete()
  File "/usr/lib/python2.6/site-packages/heatclient/v1/stacks.py", line 36, in delete
    return self.manager.delete(self.identifier)
  File "/usr/lib/python2.6/site-packages/heatclient/v1/stacks.py", line 130, in delete
    self._delete("/stacks/%s" % stack_id)
  File "/usr/lib/python2.6/site-packages/heatclient/openstack/common/apiclient/base.py", line 202, in _delete
    return self.client.delete(url)
  File "/usr/lib/python2.6/site-packages/heatclient/common/http.py", line 270, in delete
    return self.raw_request("DELETE", url, **kwargs)
  File "/usr/lib/python2.6/site-packages/heatclient/common/http.py", line 251, in raw_request
    return self._http_request(url, method, **kwargs)
  File "/usr/lib/python2.6/site-packages/heatclient/common/http.py", line 196, in _http_request
    raise exc.from_response(resp)
HTTPNotFound: ERROR: The Stack (ost1_test-310806899) could not be found.
heatclient.common.http: DEBUG: curl -i -X GET -H 'X-Auth-Token: 0ec354b8953a4be486f7646618344d03' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'User-Agent: python-heatclient' http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-310806899/ae066d7d-ea97-410e-a5e0-d0c0363cf040
urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.20.0.5
urllib3.connectionpool: DEBUG: "GET http://10.20.0.5:8004/v1/4b43727a54204864bd1c07529059e010/stacks/ost1_test-310806899/ae066d7d-ea97-410e-a5e0-d0c0363cf040 HTTP/1.1" 200 835
heatclient.common.http: DEBUG:
HTTP/1.1 200 OK
date: Fri, 16 May 2014 13:34:23 GMT

Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

Do you uploada and register image for this test as described in fuel docs? From traceback I can see that you did not, but I relly need your confirmation

Changed in fuel:
status: Confirmed → Incomplete
assignee: Fuel OSTF Team (fuel-ostf) → Alexander Kislitsky (akislitsky)
Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

I perform all steps for testing Sahara, described in the documentation http://docs.mirantis.com/openstack/fuel/master/operations.html#preparing-sahara-for-testing
Bug reproduced

Changed in fuel:
status: Incomplete → Confirmed
assignee: Alexander Kislitsky (akislitsky) → nobody
assignee: nobody → Tatyana (tatyana-leontovich)
Changed in fuel:
assignee: Tatyana (tatyana-leontovich) → Vadim Rovachev (vrovachev)
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Need to provide the output of the following commands:
'glance image-list' and 'glance image-show' for all images.

Which Sahara plugin do we use in this case?

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Also, can you please verify that all steps from this list were done:
http://docs.mirantis.com/openstack/fuel/fuel-4.1/user-guide.html#platform-tests-description

Changed in fuel:
assignee: Vadim Rovachev (vrovachev) → Denis Egorenko (degorenko)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ostf (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-ostf (master)

Reviewed: https://review.openstack.org/94638
Committed: https://git.openstack.org/cgit/stackforge/fuel-ostf/commit/?id=5c479f04c35127576d35526650ec83b104f9a33d
Submitter: Jenkins
Branch: master

commit 5c479f04c35127576d35526650ec83b104f9a33d
Author: Denis Egorenko <email address hidden>
Date: Wed May 21 18:43:42 2014 +0400

    Fix wrong image name for Sahara

    Fix wrong image name for Sahara OSTF tests

    Closes bug: 1320245

    Change-Id: I53acd47896fecce11cc34bac890478d718abb201

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-main (master)

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

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

Reviewed: https://review.openstack.org/94652
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=81fb4aabdcb2c1cac8412b489204fd6d47389300
Submitter: Jenkins
Branch: master

commit 81fb4aabdcb2c1cac8412b489204fd6d47389300
Author: Dmitry Mescheryakov <email address hidden>
Date: Wed May 21 19:36:35 2014 +0400

    Change Sahara image name to sahara

    Right now it is savanna. It will brake once
    https://review.openstack.org/#/c/94638/1
    is merged. So current CR should be merged at the same time
    as the CR #94638.

    Change-Id: I28c71747db8e52c4574891b9f8f78a5ea5a63427
    Related-Bug: #1320245

Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

For step 'Sahara tests to create, list, start, checks and delete cluster' fixed.

But on step 'Check stack autoscaling' still have the same error:
Image with cfntools package wasn't imported into Glance, please check http://docs.mirantis.com/openstack/fuel/fuel-5.0/user-guide.html#platform-tests-description.. Please refer to OpenStack logs for more details.

Changed in fuel:
status: Fix Committed → Confirmed
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

 Alexander, this is not Sahara Bug with 'Check stack autoscaling' - this is Heat OSTF test.
Please, upload the F17 image for OSTf Heat tests:
http://fedorapeople.org/groups/heat/prebuilt-jeos-images/F17-x86_64-cfntools.qcow2

Changed in fuel:
status: Confirmed → Fix Committed
assignee: Denis Egorenko (degorenko) → Alexander Kislitsky (akislitsky)
status: Fix Committed → Incomplete
status: Incomplete → Fix Committed
Changed in fuel:
assignee: Alexander Kislitsky (akislitsky) → Denis Egorenko (degorenko)
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.