Ask Your Question
0

VM instance can not obtain IP address under neutron

asked 2013-11-21 03:15:57 -0500

gavin-li gravatar image

updated 2014-06-25 17:51:35 -0500

smaffulli gravatar image

I have ran into a critical issue that block my open stack(Havana) delopyment. After i installed and configured a neutron network, VM instances can not obtain IP address. After i viewd openvswitch-agent.log, i found the following error:

2013-11-21 10:15:35.870 17714 ERROR neutron.openstack.common.rpc.amqp [-] Exception during message handling
2013-11-21 10:15:35.870 17714 TRACE neutron.openstack.common.rpc.amqp Traceback (most recent call last):
2013-11-21 10:15:35.870 17714 TRACE neutron.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/amqp.py", line 438, in _process_data
2013-11-21 10:15:35.870 17714 TRACE neutron.openstack.common.rpc.amqp     **args)
2013-11-21 10:15:35.870 17714 TRACE neutron.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/dispatcher.py", line 172, in dispatch
2013-11-21 10:15:35.870 17714 TRACE neutron.openstack.common.rpc.amqp     result = getattr(proxyobj, method)(ctxt, **kwargs)
2013-11-21 10:15:35.870 17714 TRACE neutron.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 290, in port_update
2013-11-21 10:15:35.870 17714 TRACE neutron.openstack.common.rpc.amqp     self.sg_agent.refresh_firewall()
2013-11-21 10:15:35.870 17714 TRACE neutron.openstack.common.rpc.amqp AttributeError: 'NoneType' object has no attribute 'refresh_firewall'
2013-11-21 10:15:35.870 17714 TRACE neutron.openstack.common.rpc.amqp 
2013-11-21 10:15:36.424 17714 ERROR neutron.agent.linux.ovs_lib [-] Unable to execute ['ovs-ofctl', 'add-flow', 'br-tun', 'hard_timeout=0,idle_timeout=0,priority=1,in_port=-1,actions=resubmit(,2)']. Exception: 
Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-ofctl', 'add-flow', 'br-tun', 'hard_timeout=0,idle_timeout=0,priority=1,in_port=-1,actions=resubmit(,2)']
Exit code: 1
Stdout: ''
Stderr: 'ovs-ofctl: -1: negative values not supported for in_port\n'

Regarding this issue, i found a solution from the answers in open stack community; that is to install "openvswitch-datapath-dkms", but after the installation, nova can not work. If you type "nova list" command, an error message will popup. I tried the command "nova --debug list" and followings are response:

REQ: curl -i http://controller:8774/v2/0faaa3b6da354012981107cb4bb93ec3/servers/detail -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: MIIIJAYJKoZIhvcNAQcCoIIIFTCCCBECAQExCTAHBgUrDgMCGjCCBnoGCSqGSIb3DQEHAaCCBmsEggZneyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0xMS0yMVQwMjo0NjowMy4xOTI1OTYiLCAiZXhwaXJlcyI6ICIyMDEzLTExLTIyVDAyOjQ2OjAzWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjBmYWFhM2I2ZGEzNTQwMTI5ODExMDdjYjRiYjkzZWMzIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly9jb250cm9sbGVyOjkyOTIiLCAicmVnaW9uIjogInJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vY29udHJvbGxlcjo5MjkyIiwgImlkIjogIjM0Y2E0M2U4NDJmMDQ1YzlhNDMyMTcyMDZmZGVjMTIyIiwgInB1YmxpY1VSTCI6ICJodHRwOi8vY29udHJvbGxlcjo5MjkyIn1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogImltYWdlIiwgIm5hbWUiOiAiZ2xhbmNlIn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Ly9jb250cm9sbGVyOjUwMDAvdjIuMCJ9XSwgImVuZHBvaW50c19saW5rcyI6IFtdLCAidHlwZSI6ICJpZGVudGl0eSIsICJuYW1lIjogImtleXN0b25lIn1dLCAidXNlciI6IHsidXN lcm5hbWUiOiAiYWRtaW4iLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogImFmNGE4ZGNlYTI1MTQzYWNhMTg4NmI3Y2NjMzQ3MmZjIiwgInJvbGVzIjogW3sibmFtZSI6ICJhZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiNmNlYWJkMzU3ZGJiNDQyNzkwYWEzYTM1MWY3MDM3NjciXX19fTGCAYEwggF9AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQB0bT9E1WJL0kkNut6vn-C3pfqM9neHnP3qtrXhmyrw5hzOXP+UfFN-ghTF27dX44MR0LapzAIxQvnNnnlcdlUYdWqLWBd2THAwixLDro-VNWYe6cDRV1U5fFXIsFHGNAGwmT25HvrI04jOqVzRBPDQtPvAGCxPniCixMIeJWfqTuB7jtdJ8+YS3MCttrozbHwxoenE-KV8JzAUP33hMDmOIMWDxLQi3bUwKTSXd-lHIiNEVBdPHfPci1snDmI72L3EhnYBCnNm1msMM-2Uxj8Q7zMwI4hk1mQkknKpHHkh+R+w1FForpwOOzQsEsHkEiiD52-hgA4k6BtpC6WkoyaJ"

INFO (connectionpool:202) Starting new HTTP connection (1): controller
DEBUG (connectionpool:296) "GET /v2/0faaa3b6da354012981107cb4bb93ec3/servers/detail HTTP/1.1" 500 128
RESP: [500] CaseInsensitiveDict({'date': 'Thu, 21 Nov 2013 02:46:03 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-cbabb54d-c705-488f-a724-09279d11f093'})
RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:740) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-cbabb54d-c705-488f-a724-09279d11f093)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 737, in main
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 673, in main ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-11-24 15:58:03 -0500

xianghui gravatar image

updated 2014-06-25 17:51:58 -0500

smaffulli gravatar image

try to config :

[securitygroup]
# Firewall driver for realizing neutron security group function.
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

in file: /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.in

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

1 follower

Stats

Asked: 2013-11-21 03:15:57 -0500

Seen: 144 times

Last updated: Jun 25 '14