UnboundLocalError: local variable 'network_name' referenced before assignment

Bug #1267819 reported by Anastasia Palkina
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Fuel QA Team

Bug Description

"build_id": "2014-01-08_01-17-41",
"ostf_sha": "05b1bfc92fa40728966518992c94176030c25f35",
"build_number": "21",
"nailgun_sha": "ea5dc470d3b789ad8dc0be2c256b9c7ec6ac8500",
"fuelmain_sha": "73fb5d8bba72cb032b7ed4d034827b75042d0c47",
"astute_sha": "419e864c77681c355043c21e76b3f5a940bef9ea",
"release": "4.1",
"fuellib_sha": "f661314923ce584ad84c40c7a99e80a8feb4e713"

1. Create new environment (CentOS, simple)
2. Choose VLAN segmentation
3. Add controller, compute and cinder nodes
4. Change values 'username', 'password', 'tenant'
5. Start deployment. It was successful
6. In /var/log/remote/node-1.domain.tld/nova-nova.api.metadata.handler.log

2014-01-10T08:58:16.644640+00:00 emerg: ERROR: Failed to get metadata for instance id: 6f6bc02e-63da-4ebd-b8ec-669306ea0993
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nova/api/metadata/handler.py", line 191, in _handle_instance_id_request
    remote_address)
  File "/usr/lib/python2.6/site-packages/nova/api/metadata/handler.py", line 93, in get_metadata_by_instance_id
    instance_id, address)
  File "/usr/lib/python2.6/site-packages/nova/api/metadata/base.py", line 464, in get_metadata_by_instance_id
    return InstanceMetadata(instance, address)
  File "/usr/lib/python2.6/site-packages/nova/api/metadata/base.py", line 154, in __init__
    instance)
  File "/usr/lib/python2.6/site-packages/nova/network/api.py", line 49, in wrapper
    res = f(self, context, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py", line 456, in get_instance_nw_info
    result = self._get_instance_nw_info(context, instance, networks)
  File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py", line 465, in _get_instance_nw_info
    nw_info = self._build_network_info_model(context, instance, networks)
  File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py", line 1011, in _build_network_info_model
    subnets)
  File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py", line 964, in _nw_info_build_network
    label=network_name,
UnboundLocalError: local variable 'network_name' referenced before assignment

Revision history for this message
Anastasia Palkina (apalkina) wrote :
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

Sergey, please update bug status

Revision history for this message
Sergey Vasilenko (xenolog) wrote :

I think this bug related to:

https://bugs.launchpad.net/neutron/+bug/1263686
https://review.openstack.org/#/c/63918/5

Patchset
We should backport this patches in Mirantis Openstack Release, or wait Openstack release with this patches.

Changed in fuel:
assignee: Sergey Vasilenko (xenolog) → Roman Vyalov (r0mikiam)
importance: Undecided → Medium
status: New → Triaged
Roman Vyalov (r0mikiam)
Changed in fuel:
assignee: Roman Vyalov (r0mikiam) → Fuel OSCI Team (fuel-osci)
Revision history for this message
Roman Vyalov (r0mikiam) wrote :
Changed in fuel:
status: Triaged → In Progress
Roman Vyalov (r0mikiam)
Changed in fuel:
assignee: Fuel OSCI Team (fuel-osci) → Fuel Python Team (fuel-python)
Revision history for this message
Mike Scherbakov (mihgen) wrote :

I believe we need to re-check this on 2013.2.2, which is merged in master by now.

Changed in fuel:
status: In Progress → Confirmed
assignee: Fuel Python Team (fuel-python) → Fuel QA Team (fuel-qa)
Mike Scherbakov (mihgen)
Changed in fuel:
milestone: 4.1 → 5.0
Changed in fuel:
milestone: 5.0 → 4.1
Revision history for this message
Nastya Urlapova (aurlapova) wrote :

{
build_id: "2014-03-05_07-31-01",
mirantis: "yes",
build_number: "235",
nailgun_sha: "f58aad317829112913f364347b14f1f0518ad371",
ostf_sha: "dc54d99ddff2f497b131ad1a42362515f2a61afa",
fuelmain_sha: "16637e2ea0ae6fe9a773aceb9d76c6e3a75f6c3b",
astute_sha: "f15f5615249c59c826ea05d26707f062c88db32a",
release: "4.1",
fuellib_sha: "73313007c0914e602246ea41fa5e8ca2dfead9f8"
}

Changed in fuel:
status: Confirmed → Fix Released
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.