Error: Functional test 'test_platform' fails if solum.egg-info is missing

Bug #1314255 reported by James Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
Triaged
Low
James Li

Bug Description

This is how to reproduce the bug:

check out a clean copy of solum code;
set up tempest (my tempest config: http://paste.openstack.org/show/78008/);
then run
nosetests --tests functionaltests.api.v1.test_root:TestRootController.test_platform

Got:
======================================================================
ERROR: functionaltests.api.v1.test_root.TestRootController.test_platform
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/opt/stack/solum/functionaltests/api/v1/test_root.py", line 37, in test_platform
    resp, body = self.client.get('v1')
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 204, in get
    return self.request('GET', url, extra_headers, headers)
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 452, in request
    resp, resp_body)
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 548, in _error_checker
    raise exceptions.ServerFault(message)
ServerFault: Got server fault
Details: {"debuginfo": null, "faultcode": "Server", "faultstring": "Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?"}

----------------------------------------------------------------------
Ran 1 test in 0.172s

FAILED (errors=1)

Tags: defects errors
Adrian Otto (aotto)
Changed in solum:
milestone: none → 2014.1.2
importance: Undecided → Low
status: New → Triaged
tags: added: errors
summary: - Functional test 'test_platform' fails if solum.egg-info is missing
+ Error: Functional test 'test_platform' fails if solum.egg-info is
+ missing
Revision history for this message
Adrian Otto (aotto) wrote :

The steps to reproduce are incomplete. Tempest needs to be set up first. Please indicate the commands used to set up your tempest environment.

Changed in solum:
status: Triaged → Incomplete
James Li (james-li-3)
description: updated
Revision history for this message
Arati Mahimane (arati-mahimane) wrote :

Works fine for me.
My tempest config contains the following: http://paste.openstack.org/show/3TvVHF4ZFraSMANmG8dk/

When I try to reproduce this:

nosetests --tests functionaltests.api.v1.test_root:TestRootController.test_platform
.
----------------------------------------------------------------------
Ran 1 test in 0.212s

OK

Revision history for this message
Adrian Otto (aotto) wrote :

James,

Please supply detailed steps to reproduce, or withdraw this ticket by marking the status as 'Invalid'.

Thanks,

Adrian

tags: added: defects
Changed in solum:
assignee: nobody → James Li (james-li-3)
Revision history for this message
Arati Mahimane (arati-mahimane) wrote :

As per James' suggestion to reproduce this, I removed the solum.egg-info directory.

Got the following error:

======================================================================
ERROR: functionaltests.api.v1.test_root.TestRootController.test_platform
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/opt/stack/solum/functionaltests/api/v1/test_root.py", line 37, in test_platform
    resp, body = self.client.get('v1')
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 204, in get
    return self.request('GET', url, extra_headers, headers)
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 452, in request
    resp, resp_body)
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 548, in _error_checker
    raise exceptions.ServerFault(message)
ServerFault: Got server fault
Details: {"debuginfo": null, "faultcode": "Server", "faultstring": "(\"Missing 'Version:' header and/or PKG-INFO file\", solum [unknown version] (/opt/stack/solum))"}

----------------------------------------------------------------------
Ran 1 test in 0.544s

James Li (james-li-3)
Changed in solum:
status: Incomplete → Confirmed
Adrian Otto (aotto)
Changed in solum:
milestone: 2014.1.2 → juno-1
Adrian Otto (aotto)
Changed in solum:
milestone: juno-1 → juno-2
Adrian Otto (aotto)
Changed in solum:
milestone: juno-2 → 2015.1.1
Adrian Otto (aotto)
Changed in solum:
status: Confirmed → Triaged
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.