"local variable 'dns' referenced before assignment" during resetnetwork on Arch

Bug #869523 reported by Johannes Erdfelt
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-guest-agents
Fix Released
High
Johannes Erdfelt

Bug Description

Split from https://bugs.launchpad.net/openstack-guest-agents/+bug/869409

0.0.1.30 on Arch. Reply is:

"message": "local variable 'dns' referenced before assignment", "returncode": "500"

Output from /var/log/nova-agent.log:

[root@xsArchTest ~]# cat /var/log/nova-agent.log
2011-10-06 19:07:53,016 [INFO] Agent started
2011-10-06 19:07:53,017 [INFO] Received command 'version' with argument: 'agent'
2011-10-06 19:07:53,017 [INFO] 'version' completed with code '0', message '0.0.1.30'
2011-10-06 19:08:02,021 [INFO] Received command 'features' with argument: ''
2011-10-06 19:08:02,022 [INFO] 'features' completed with code '0', message 'kmsactivate,resetnetwork,version,keyinit,features,agentupdate,password,injectfile'
2011-10-06 19:54:54,089 [INFO] Received command 'resetnetwork' with argument: ''
2011-10-06 19:54:54,090 [INFO] executing /usr/bin/pacman -Q netcfg
2011-10-06 19:54:54,111 [ERROR] Exception while trying to process command 'resetnetwork'
Traceback (most recent call last):
  File "jsonparser.py", line 93, in parse_request
  File "__init__.py", line 99, in run_command
  File "network.py", line 135, in resetnetwork_cmd
  File "arch/network.py", line 67, in configure_network
  File "arch/network.py", line 598, in process_interface_files_netcfg
  File "arch/network.py", line 473, in _get_file_data_netcfg
UnboundLocalError: local variable 'dns' referenced before assignment

summary: - local variable 'dns' referenced before assignment
+ "local variable 'dns' referenced before assignment" during resetnetwork
+ on Arch
Changed in openstack-guest-agents:
assignee: nobody → Johannes Erdfelt (johannes.erdfelt)
status: New → In Progress
importance: Undecided → High
description: updated
Changed in openstack-guest-agents:
status: In Progress → Fix Committed
Revision history for this message
Greg Kirkland (greg-kirkland) wrote :

is this fix just in staging or in staging and across our production huddles?

Revision history for this message
Chris Behrens (cbehrens) wrote :

Replied privately.

Changed in openstack-guest-agents:
status: Fix Committed → 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.