[OSTF] test for instance connectivity fails with local variable 'flavor' referenced before assignment

Bug #1349924 reported by Tatyanka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Artem Roma
5.0.x
Won't Fix
Medium
Artem Roma

Bug Description

http://jenkins-product.srt.mirantis.net:8080/view/5.0_swarm/job/5.0_fuelmain.system_test.ubuntu.bonding_ha/23/

a lot of fails was caused by 502 error from keystone - but in this case next failure take place

keystoneclient.session: DEBUG: REQ: curl -i -X POST http://10.108.33.2:5000/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "admin"}}}'
urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.108.32.6
urllib3.connectionpool: DEBUG: "POST http://10.108.33.2:5000/v2.0/tokens HTTP/1.1" 502 None
keystoneclient.session: DEBUG: RESP: [502] CaseInsensitiveDict({'via': '1.1 10.108.33.38:5000', 'content-encoding': 'gzip', 'transfer-encoding': 'chunked', 'vary': 'Accept-Encoding', 'cache-control': 'no-cache', 'date': 'Tue, 29 Jul 2014 07:45:28 GMT', 'content-type': 'text/html'})
RESP BODY: <html><body><h1>502 Bad Gateway</h1>
The server returned an invalid or incomplete response.
</body></html>

keystoneclient.session: DEBUG: Request returned failure status: 502
--------------------- >> end captured logging << ---------------------
2014-07-29 07:45:28 INFO (config) INSTANCE {412: <fuel_health.config.NailgunConfig object at 0x27d4710>}
2014-07-29 07:45:28 INFO (config) INSTANCE {412: <fuel_health.config.NailgunConfig object at 0x27d4710>}
2014-07-29 07:45:28 INFO (connectionpool) Starting new HTTP connection (1): 10.108.32.6
2014-07-29 07:45:29 INFO (connectionpool) Starting new HTTP connection (1): 10.108.32.6
2014-07-29 07:45:29 INFO (connectionpool) Starting new HTTP connection (1): 10.108.32.6
2014-07-29 07:45:29 ERROR (nose_storage_plugin) <nose.suite.ContextSuite context=TestNovaNetwork>:setup
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/suite.py", line 208, in run
    self.setUp()
  File "/usr/lib/python2.6/site-packages/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/usr/lib/python2.6/site-packages/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/usr/lib/python2.6/site-packages/nose/util.py", line 469, in try_run
    return func()
  File "/usr/lib/python2.6/site-packages/fuel_health/tests/smoke/test_nova_create_instance_with_connectivity.py", line 41, in setUpClass
    cls.nova_netw_flavor = cls._create_nano_flavor()
  File "/usr/lib/python2.6/site-packages/fuel_health/nmanager.py", line 262, in _create_nano_flavor
    return flavor
UnboundLocalError: local variable 'flavor' referenced before assignment
-------------------- >> begin captured logging << --------------------

Tags: ostf
Revision history for this message
Tatyanka (tatyana-leontovich) wrote :
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
Artem Roma (aroma-x)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Artem Roma (aroma-x)
Artem Roma (aroma-x)
Changed in fuel:
assignee: Artem Roma (aroma-x) → Fuel Python Team (fuel-python)
Artem Roma (aroma-x)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Artem Roma (aroma-x)
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/112835

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

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

commit a10d1cfda72d98750f36dcc280611b75040394ff
Author: Artem Roma <email address hidden>
Date: Fri Aug 8 14:18:59 2014 +0300

    Check for flavor creation added

    What is done:
    * default value for `flavor` variable returned by _create_flavor added
    * checking for flavor for all dependent on it tests added
    * change tested by manual syncing of code on master node

    Change-Id: If8e2cba738169b1c19c37a2a7c545426ae7c9f16
    Closes-Bug: #1349924

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
no longer affects: fuel/5.1.x
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

We don't support 5.0.2 master node

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.