[Openstack] No IP assigned to Instances

Silvia Fichera fichera.sil at gmail.com
Tue Nov 17 08:38:36 UTC 2015


Hi
These are my output:
neutron agent-list
+--------------------------------------+----------------+-----------+-------+----------------+------------------------+
| id                                   | agent_type     | host      | alive
| admin_state_up | binary                 |
+--------------------------------------+----------------+-----------+-------+----------------+------------------------+
| df34892b-4e00-4504-a9c2-6d73b89e7be7 | Metadata agent | devstack1 | :-)
| True           | neutron-metadata-agent |
| e6497bd3-d34d-413d-8d99-c34df2d4de7e | DHCP agent     | devstack1 | :-)
| True           | neutron-dhcp-agent     |
+--------------------------------------+----------------+-----------+-------+----------------+------------------------+

br-int Controller/Compute node:

sudo ovs-ofctl dump-flows br-int -O Openflow13
OFPST_FLOW reply (OF1.3) (xid=0x2):
 cookie=0x0, duration=64916.193s, table=0, n_packets=9, n_bytes=1458,
in_port=7,dl_src=fa:16:3e:cf:fd:30
actions=set_field:0x40e->tun_id,load:0x1->NXM_NX_REG0[],goto_table:20
 cookie=0x0, duration=66408.764s, table=0, n_packets=3, n_bytes=180,
priority=0 actions=goto_table:20
 cookie=0x0, duration=64916.188s, table=0, n_packets=0, n_bytes=0,
priority=8192,in_port=7 actions=drop
 cookie=0x2b00000000000047, duration=64906.395s, table=0, n_packets=0,
n_bytes=0, priority=2,in_port=7 actions=output:5,output:6,CONTROLLER:65535
 cookie=0x2b0000000000003e, duration=64996.333s, table=0, n_packets=0,
n_bytes=0, priority=2,in_port=3
actions=output:4,output:5,output:2,output:1,output:6,CONTROLLER:65535
 cookie=0x2b00000000000046, duration=64906.395s, table=0, n_packets=0,
n_bytes=0, priority=2,in_port=6 actions=output:5,output:7,CONTROLLER:65535
 cookie=0x2b00000000000045, duration=64906.400s, table=0, n_packets=3517,
n_bytes=211377, priority=2,in_port=5 actions=output:6,output:7
 cookie=0x2b0000000000003f, duration=64996.332s, table=0, n_packets=0,
n_bytes=0, priority=2,in_port=1
actions=output:4,output:5,output:2,output:3,output:6,CONTROLLER:65535
 cookie=0x2b0000000000003b, duration=64996.335s, table=0, n_packets=0,
n_bytes=0, priority=2,in_port=4
actions=output:5,output:2,output:3,output:1,output:6,CONTROLLER:65535
 cookie=0x2b0000000000003d, duration=64996.333s, table=0, n_packets=0,
n_bytes=0, priority=2,in_port=2
actions=output:4,output:5,output:3,output:1,output:6,CONTROLLER:65535
 cookie=0x0, duration=64916.143s, table=0, n_packets=0, n_bytes=0,
tun_id=0x40e,in_port=6 actions=load:0x2->NXM_NX_REG0[],goto_table:20
 cookie=0x0, duration=66411.533s, table=0, n_packets=1189, n_bytes=124845,
dl_type=0x88cc actions=CONTROLLER:65535
 cookie=0x2b00000000000007, duration=66411.622s, table=0, n_packets=0,
n_bytes=0, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
 cookie=0x0, duration=66408.756s, table=20, n_packets=48, n_bytes=7470,
priority=0 actions=goto_table:30
 cookie=0x0, duration=66408.749s, table=30, n_packets=48, n_bytes=7470,
priority=0 actions=goto_table:40
 cookie=0x0, duration=64916.203s, table=40, n_packets=0, n_bytes=0,
priority=36001,ip,in_port=7,dl_src=fa:16:3e:cf:fd:30,nw_src=10.10.10.7
actions=goto_table:50
 cookie=0x0, duration=66408.743s, table=40, n_packets=33, n_bytes=2520,
priority=0 actions=goto_table:50
 cookie=0x0, duration=66086.470s, table=40, n_packets=15, n_bytes=4950,
priority=61012,udp,tp_src=68,tp_dst=67 actions=goto_table:50
 cookie=0x0, duration=64916.203s, table=40, n_packets=0, n_bytes=0,
priority=61011,udp,in_port=7,tp_src=67,tp_dst=68 actions=drop
 cookie=0x0, duration=66408.737s, table=50, n_packets=48, n_bytes=7470,
priority=0 actions=goto_table:60
 cookie=0x0, duration=66408.732s, table=60, n_packets=48, n_bytes=7470,
priority=0 actions=goto_table:70
 cookie=0x0, duration=66408.727s, table=70, n_packets=48, n_bytes=7470,
priority=0 actions=goto_table:80
 cookie=0x0, duration=66408.722s, table=80, n_packets=48, n_bytes=7470,
priority=0 actions=goto_table:90
 cookie=0x0, duration=66408.717s, table=90, n_packets=48, n_bytes=7470,
priority=0 actions=goto_table:100
 cookie=0x0, duration=64916.217s, table=90, n_packets=0, n_bytes=0,
priority=61006,udp,dl_src=fa:16:3e:48:27:5a,tp_src=67,tp_dst=68
actions=goto_table:100
 cookie=0x0, duration=66408.713s, table=100, n_packets=48, n_bytes=7470,
priority=0 actions=goto_table:110
 cookie=0x0, duration=64916.151s, table=110, n_packets=0, n_bytes=0,
priority=8192,tun_id=0x40e actions=drop
 cookie=0x0, duration=66408.687s, table=110, n_packets=3, n_bytes=180,
priority=0 actions=drop
 cookie=0x0, duration=64916.178s, table=110, n_packets=0, n_bytes=0,
priority=16384,reg0=0x2,tun_id=0x40e,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00
actions=output:7
 cookie=0x0, duration=64916.164s, table=110, n_packets=9, n_bytes=1458,
priority=16383,reg0=0x1,tun_id=0x40e,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00
actions=output:7,output:6
 cookie=0x0, duration=64916.183s, table=110, n_packets=0, n_bytes=0,
tun_id=0x40e,dl_dst=fa:16:3e:cf:fd:30 actions=output:7
 cookie=0x0, duration=64914.605s, table=110, n_packets=0, n_bytes=0,
tun_id=0x40e,dl_dst=fa:16:3e:7e:0c:43 actions=output:6
 cookie=0x0, duration=64914.763s, table=110, n_packets=0, n_bytes=0,
tun_id=0x40e,dl_dst=fa:16:3e:ef:2a:29 actions=output:6


br-int Compute node:

sudo ovs-ofctl dump-flows br-int -O Openflow13
OFPST_FLOW reply (OF1.3) (xid=0x2):
 cookie=0x0, duration=64953.73s, table=0, n_packets=0, n_bytes=0,
tun_id=0x40e,in_port=1 actions=load:0x2->NXM_NX_REG0[],goto_table:20
 cookie=0x0, duration=64953.782s, table=0, n_packets=9, n_bytes=1458,
in_port=2,dl_src=fa:16:3e:ef:2a:29
actions=set_field:0x40e->tun_id,load:0x1->NXM_NX_REG0[],goto_table:20
 cookie=0x0, duration=64953.633s, table=0, n_packets=9, n_bytes=1458,
in_port=4,dl_src=fa:16:3e:7e:0c:43
actions=set_field:0x40e->tun_id,load:0x1->NXM_NX_REG0[],goto_table:20
 cookie=0x2b00000000000048, duration=64945.347s, table=0, n_packets=2859,
n_bytes=171540, priority=2,in_port=3 actions=output:2,output:4,output:1
 cookie=0x2b0000000000004b, duration=64945.346s, table=0, n_packets=0,
n_bytes=0, priority=2,in_port=1
actions=output:3,output:2,output:4,CONTROLLER:65535
 cookie=0x0, duration=64953.777s, table=0, n_packets=0, n_bytes=0,
priority=8192,in_port=2 actions=drop
 cookie=0x2b00000000000049, duration=64945.347s, table=0, n_packets=0,
n_bytes=0, priority=2,in_port=2
actions=output:3,output:4,output:1,CONTROLLER:65535
 cookie=0x0, duration=64953.617s, table=0, n_packets=0, n_bytes=0,
priority=8192,in_port=4 actions=drop
 cookie=0x2b0000000000004a, duration=64945.347s, table=0, n_packets=0,
n_bytes=0, priority=2,in_port=4
actions=output:3,output:2,output:1,CONTROLLER:65535
 cookie=0x0, duration=65039.282s, table=0, n_packets=954, n_bytes=100170,
dl_type=0x88cc actions=CONTROLLER:65535
 cookie=0x2b00000000000009, duration=65039.291s, table=0, n_packets=0,
n_bytes=0, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
 cookie=0x0, duration=65035.376s, table=0, n_packets=12, n_bytes=858,
priority=0 actions=goto_table:20
 cookie=0x0, duration=65035.37s, table=20, n_packets=25, n_bytes=3356,
priority=0 actions=goto_table:30
 cookie=0x0, duration=65035.367s, table=30, n_packets=25, n_bytes=3356,
priority=0 actions=goto_table:40
 cookie=0x0, duration=64953.798s, table=40, n_packets=0, n_bytes=0,
priority=36001,ip,in_port=2,dl_src=fa:16:3e:ef:2a:29,nw_src=10.10.10.8
actions=goto_table:50
 cookie=0x0, duration=64953.639s, table=40, n_packets=0, n_bytes=0,
priority=36001,ip,in_port=4,dl_src=fa:16:3e:7e:0c:43,nw_src=10.10.10.9
actions=goto_table:50
 cookie=0x0, duration=65035.361s, table=40, n_packets=25, n_bytes=3356,
priority=0 actions=goto_table:50
 cookie=0x0, duration=64953.808s, table=40, n_packets=0, n_bytes=0,
priority=61011,udp,in_port=2,tp_src=67,tp_dst=68 actions=drop
 cookie=0x0, duration=64953.656s, table=40, n_packets=0, n_bytes=0,
priority=61011,udp,in_port=4,tp_src=67,tp_dst=68 actions=drop
 cookie=0x0, duration=65035.356s, table=50, n_packets=25, n_bytes=3356,
priority=0 actions=goto_table:60
 cookie=0x0, duration=65035.352s, table=60, n_packets=25, n_bytes=3356,
priority=0 actions=goto_table:70
 cookie=0x0, duration=65035.347s, table=70, n_packets=25, n_bytes=3356,
priority=0 actions=goto_table:80
 cookie=0x0, duration=65035.343s, table=80, n_packets=25, n_bytes=3356,
priority=0 actions=goto_table:90
 cookie=0x0, duration=65035.339s, table=90, n_packets=25, n_bytes=3356,
priority=0 actions=goto_table:100
 cookie=0x0, duration=64953.813s, table=90, n_packets=0, n_bytes=0,
priority=61006,udp,dl_src=fa:16:3e:48:27:5a,tp_src=67,tp_dst=68
actions=goto_table:100
 cookie=0x0, duration=65035.335s, table=100, n_packets=25, n_bytes=3356,
priority=0 actions=goto_table:110
 cookie=0x0, duration=64953.738s, table=110, n_packets=0, n_bytes=0,
priority=8192,tun_id=0x40e actions=drop
 cookie=0x0, duration=64953.611s, table=110, n_packets=0, n_bytes=0,
tun_id=0x40e,dl_dst=fa:16:3e:7e:0c:43 actions=output:4
 cookie=0x0, duration=64953.768s, table=110, n_packets=0, n_bytes=0,
tun_id=0x40e,dl_dst=fa:16:3e:ef:2a:29 actions=output:2
 cookie=0x0, duration=64953.762s, table=110, n_packets=0, n_bytes=0,
priority=16384,reg0=0x2,tun_id=0x40e,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00
actions=output:2,output:4
 cookie=0x0, duration=64953.756s, table=110, n_packets=18, n_bytes=2916,
priority=16383,reg0=0x1,tun_id=0x40e,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00
actions=output:2,output:1,output:4
 cookie=0x0, duration=65035.33s, table=110, n_packets=7, n_bytes=440,
priority=0 actions=drop

Thanks

2015-11-17 8:42 GMT+01:00 Janki Chhatbar <jankihchhatbar at gmail.com>:

> Hi
>
> Check for flows in both the bridges. Check if DHCP agent is running. I
> faced the same issue but I was using GRE tunnels and manual installation.
>
> Thanks
> Janki
>
> Sent from my BlackBerry 10 smartphone.
> *From: *Silvia Fichera
> *Sent: *Tuesday, 17 November 2015 13:09
> *To: *Janki Chhatbar
> *Cc: *<ovsdb-dev at lists.opendaylight.org>; openstack at lists.openstack.org
> *Subject: *Re: [Openstack] No IP assigned to Instances
>
> Hi Janki,
> I'm using vxlan and I have both br-int and br-ex (but by now I'm not
> caring about external connection, I think that if it is not able to ping
> internally it won't be able to reach internet).
>
> Thanks,
> Silvia
>
> 2015-11-16 16:27 GMT+01:00 Janki Chhatbar <jankihchhatbar at gmail.com>:
>
>> Hi Silvia
>>
>> Could you check flows in ovs bridges. If you are using GRE tunnels, there
>> should be only 1 bridge - br-int in compute and Neutron node each. You will
>> need to configure IP of the end point for ‎tunnel.
>>
>> Thanks
>>  Janki
>>
>> Sent from my BlackBerry 10 smartphone.
>> *From: *Silvia Fichera
>> *Sent: *Monday, 16 November 2015 20:16
>> *To: *<ovsdb-dev at lists.opendaylight.org>; openstack at lists.openstack.org
>> *Subject: *[Openstack] No IP assigned to Instances
>>
>> Hi all,
>> I'm going to integrate Opendaylight with Openstack via Devstack.
>>  In a server I have 5 VMs:
>>
>> VM1: eth0 10.30.3.231
>>          eth1 10.0.0.1
>>          This is my OpenStack Controller+compute.
>>
>> VM2: eth0 10.30.3.232
>>          eth1 10.0.0.2
>>          Compute node
>>
>> VM3: eth0 10.30.3.233
>>          eth1 10.0.0.3
>>          Compute node
>>
>> VM4: eth0 10.30.3.234
>>          ODL Controller
>>
>> VM7: eth0 10.30.3.237
>>          eth1
>>          eth2
>>          eth3
>>          This is my OpenVSwitch
>>
>> I was able to build up the setup, but when I create instances the IP
>> address is not assigned so I can't ping them.
>>
>> It seems that dhcp fails
>>
>> Starting network...
>> udhcpc (v1.20.1) started
>> Sending discover...
>> Sending discover...
>> Sending discover...
>> Usage: /sbin/cirros-dhcpc <up|down>
>> No lease, failing
>>
>> I've checked the neutron agent-list and there are the metadata agent and
>> the dhcp agent.
>>
>> In my local. conf I have disabled the l3 agent:
>>
>> disable_service q-l3
>> Q_L3_ENABLED=True
>> ODL_L3=True
>>
>>
>> Could you please help me?
>>
>> Thanks
>>
>>
>> --
>> Silvia Fichera
>>
>>
>
>
> --
> Silvia Fichera
>
>


-- 
Silvia Fichera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20151117/672b14a2/attachment.html>


More information about the Openstack mailing list