[Openstack] IP not assigned to VMs

Janki Chhatbar jankihchhatbar at gmail.com
Tue Feb 24 11:58:32 UTC 2015


I checked openvswitch logs on compute node.They are as follows

2015-02-24 17:08:58.635 9786 INFO
neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Configuration for
device 527eba79-0f96-4a37-8795-af408ec11944 completed.
2015-02-24 17:08:58.753 9786 INFO
neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
7da55931-d34a-4546-a767-8d710b3573a2 updated. Details: {u'admin_state_up':
True, u'network_id': u'0ccf8fcd-277f-45b3-aa1e-83917702dce6',
u'segmentation_id': 1, u'physical_network': None, u'device':
u'7da55931-d34a-4546-a767-8d710b3573a2', u'port_id':
u'7da55931-d34a-4546-a767-8d710b3573a2', u'network_type': u'gre'}
2015-02-24 17:08:58.753 9786 INFO
neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Assigning 4 as
local vlan for net-id=0ccf8fcd-277f-45b3-aa1e-83917702dce6
2015-02-24 17:08:58.804 9786 ERROR neutron.agent.linux.ovs_lib [-] Unable
to execute ['ovs-ofctl', 'mod-flows', 'br-tun',
'table=21,dl_vlan=4,actions=strip_vlan,set_tunnel:1,output:2']. Exception:
Command: ['sudo', '/usr/bin/neutron-rootwrap',
'/etc/neutron/rootwrap.conf', 'ovs-ofctl', 'mod-flows', 'br-tun',
'table=21,dl_vlan=4,actions=strip_vlan,set_tunnel:1,output:2']
Exit code: 1
Stdout: ''
Stderr:
'2015-02-24T11:38:58Z|00001|vconn|WARN|unix:/var/run/openvswitch/br-tun.mgmt:
version negotiation failed (we support version 0x01, peer support version
0x04)\novs-ofctl: br-tun: failed to connect to socket (Broken pipe)\n'

ovs version on both neutron and compute node = 2.0.2

Janki Chhatbar
M.Tech (Embedded Systems)
Nirma University
(+91) 9409239106

On Tue, Feb 24, 2015 at 4:32 PM, Janki Chhatbar <jankihchhatbar at gmail.com>
wrote:

> Hi Geo
>
> Thaks for your reply.
>
> All the services are running.
>
> I gave command on neutron node
>
> ip netns exec qdhcp-<network-id> tcpdump
> and then launch an instance, no packets are captured on the tap interface.
>
> On compute node, linux bridge is also not created.
>
> How to check the connections among ovs bridges on compute and neutron?
>
> Janki Chhatbar
> M.Tech (Embedded Systems)
> Nirma University
> (+91) 9409239106
>
> On Tue, Feb 24, 2015 at 4:19 PM, Geo Varghese <gvarghese at aqorn.com> wrote:
>
>> Hi Janki,
>>
>> The issue seems like openvswitch not running properly in compute node or
>> network node.
>>
>> Please check logs while rebooting instance. You can see the dhcp lease is
>> failing.
>>
>> check the command in controller
>>
>> neutron agent-list
>>
>> all services should be like
>>
>> ====================
>>
>> +--------------------------------------+--------------------+------------+-------+----------------+
>> | id                                   | agent_type         | host
>> | alive | admin_state_up |
>>
>> +--------------------------------------+--------------------+------------+-------+----------------+
>> | 00a9679d-c2fe-4b94-87ea-48a2ff79d535 | L3 agent           | controller
>> | :-)   | True           |
>> | 131bc28f-6878-487d-8758-6acbc1467f10 | Open vSwitch agent | compute1
>> | :-)   | True           |
>> | 36af2d4b-ed4f-4ff2-b76a-7130e36e5701 | DHCP agent         | controller
>> | :-)   | True           |
>> | 577c197e-76a0-49d0-9c70-280cfc38b350 | Open vSwitch agent | controller
>> | :-)   | True           |
>> | 94dca866-4bf3-41e6-a0e8-78c1d0fe60ed | Metadata agent     | controller
>> | :-)   | True           |
>>
>> +--------------------------------------+--------------------+------------+-------+----------------+
>> =====================
>>
>>
>> On Tue, Feb 24, 2015 at 10:59 AM, Janki Chhatbar <
>> jankihchhatbar at gmail.com> wrote:
>>
>>> Hi
>>>
>>> I have 3 node architecture OpenStack setup running successfully. I can
>>> see IPs allocated to VMs in horizon and by ifconfig command in the VMs
>>> console.
>>>
>>> I then integrated this with OpenDayLight and the integration is
>>> successful. I can see IPs assigned to VMs in the Horizon.
>>>
>>> But ifconfig command in the VMs console doesnot show IP.
>>>
>>> dnsmasq is running. DHCP namespaces are getting created and attaching to
>>> VM.
>>>
>>> Yet IP is not allocated. What could be the reason and how to solve this?
>>>
>>> Janki Chhatbar
>>> M.Tech (Embedded Systems)
>>> Nirma University
>>> (+91) 9409239106
>>>
>>> _______________________________________________
>>> Mailing list:
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>> Post to     : openstack at lists.openstack.org
>>> Unsubscribe :
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>
>>>
>>
>>
>> --
>> --
>> Regards,
>> Geo Varghese
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150224/b037bd3f/attachment.html>


More information about the Openstack mailing list