Ask Your Question
0

ip: SIOCGIFFLAGS: No such device

asked 2013-06-17 22:31:16 -0500

tudor gravatar image

updated 2013-07-08 19:57:26 -0500

I have an OpenStack Grizzly installation on Ubuntu 12.04 using quantum.

Whenever I start an instance (here I'm using the standard cirros test image), horizon says that the network has been assigned. For example, under the "Overview" tab it says:

IP Addresses
------------
Officenet

However, the logs of the instance say:

...
Starting network...
ip: SIOCGIFFLAGS: No such device
WARN: /etc/rc3.d/S40network failed
cloudsetup: checking http://169.254.169.254/20090404/metadata/instanceid
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloudsetup: failed 1/30: up 1.23. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloudsetup: failed 2/30: up 2.24. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloudsetup: failed 3/30: up 3.25. request failed
...

I have checked that the linuxnet_ovs_integration_bridge in nova.conf and the integration_bridge in ovs_quantum_plugin.ini are the same (in this case br-eth1, but I have tried br-int also, and both bridges exist).

The only error I can see in the logs is this in openvswitch-agent.log:

2013-07-09 10:35:19    ERROR [quantum.agent.linux.ovs_lib] Unable to execute ['ovs-ofctl', 'add-flow', 'br-eth1', 'hard_timeout=0,idle_timeout=0,priority=2,in_port=-1,actions=drop']. Exception:
Command: ['sudo', '/usr/bin/quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ovs-ofctl', 'add-flow', 'br-eth1', 'hard_timeout=0,idle_timeout=0,priority=2,in_port=-1,actions=drop']
Exit code: 1
Stdout: ''
Stderr: 'ovs-ofctl: -1: value too large for 2-byte field in_port\n'

Why would the network adapter not have been created?

edit retag flag offensive close merge delete

Comments

Strange. What's in the quantum & nova logs?

fifieldt gravatar imagefifieldt ( 2013-06-30 18:48:11 -0500 )edit

There's not alot by way of "ERROR"s, and I've amended my question based on what I found. However, I also notice that there are quite a few commands marked as DEBUG with non-negative exit codes.

tudor gravatar imagetudor ( 2013-07-08 20:00:52 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-09-12 02:37:01 -0500

tudor gravatar image

updated 2013-09-12 02:39:49 -0500

It seems that OpenStack won't create a network device if the network doesn't have a subnet! This doesn't throw an error. But when I created a subnet, the device was created.

I was trying to create a network where the IP address was assigned by a DHCP server externally, so specifying the subnet made no sense. I'm trying to understand how this use case is supposed to be implemented!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-06-17 22:31:16 -0500

Seen: 1,886 times

Last updated: Sep 12 '13