"[Errno 2] No such file or directory" during resetnetwork on Gentoo

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

Bug Description

This keeps the network from starting correctly on a guest.

0.0.1.30 on Gentoo. Reply is:

"[Errno 2] No such file or directory", "returncode": "500"

Changed in openstack-guest-agents:
assignee: nobody → Johannes Erdfelt (johannes.erdfelt)
status: New → In Progress
importance: Undecided → High
Revision history for this message
James Glenn (james-glenn) wrote :

[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

Revision history for this message
James Glenn (james-glenn) wrote :

This looks like it might be a Gentoo / Arch problem. I tested version 0.0.1.30 in Debian 6 and it looked like the network reset worked.

Revision history for this message
Johannes Erdfelt (johannes.erdfelt) wrote :

It looks like there are two different problems happening here. Did you get the logs from the Gentoo system as well?

Revision history for this message
Johannes Erdfelt (johannes.erdfelt) wrote :

I split the two bugs out. See https://bugs.launchpad.net/openstack-guest-agents/+bug/869523 for the problem on Arch (which is different).

summary: - Network reset does not work correctly with version 0.0.1.30
+ "[Errno 2] No such file or directory" during resetnetwork on Gentoo
description: updated
description: updated
Changed in openstack-guest-agents:
status: In Progress → Fix Committed
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.