2014年11月20日木曜日

Neutron ML2 Plugin DVRのFloating IP問題


Ubuntu1404上にOpenStack Junoをインストールし、Neutron DVRを動かししたが、Floating IPの動作が顕著におかしいのでメモ。

Neutronで作ったFloating IPのアドレスと、Floating IP用のNamespaceに割り当てられるIPアドレスが違う。

root@juno1:~# nova list
+--------------------------------------+------+--------+------------+-------------+----------------------------------+
| ID                                   | Name | Status | Task State | Power State | Networks                         |
+--------------------------------------+------+--------+------------+-------------+----------------------------------+
| 1a7fbf85-dd65-4549-b5d7-4f34d6034bbe | VM1  | ACTIVE | -          | Running     | demo-net=192.168.0.2             |
| d1994120-fad7-4c49-98e5-5c25809c3a1d | VM2  | ACTIVE | -          | Running     | demo-net=192.168.0.4, 10.0.0.206 |
| 33ec7049-f1b4-4369-b340-9b38b407dc52 | VM3  | ACTIVE | -          | Running     | demo-net2=192.168.1.3            |
+--------------------------------------+------+--------+------------+-------------+----------------------------------+
VM2のIPアドレスは192.168.0.4でFloaging IPは10.0.0.206が確認できる。
neutron floatingip-listの結果も問題なし
root@juno1:~# neutron floatingip-list
+--------------------------------------+------------------+---------------------+--------------------------------------+
| id                                   | fixed_ip_address | floating_ip_address | port_id                              |
+--------------------------------------+------------------+---------------------+--------------------------------------+
| 7a41c505-db06-460f-b75f-4e9208b9b2a5 | 192.168.0.4      | 10.0.0.206          | 2237c4d4-f936-4475-b609-f0253bc0dc83 |
+--------------------------------------+------------------+---------------------+--------------------------------------+
だけど、Nova ComputeのNamespaceをみると、IPアドレスがおかしい。10.0.0.208が割り当てられている。
root@juno3:~# ip netns 
fip-b96a6e84-e558-4a5a-b5ca-2057f6c384db
qrouter-78adafc5-d491-460b-8102-ace0e97e603b
root@juno3:~# ip netns exec fip-b96a6e84-e558-4a5a-b5ca-2057f6c384db ifconfig
fg-5ebf1570-6a Link encap:Ethernet  HWaddr fa:16:3e:db:b5:3b  
          inet addr:10.0.0.208  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fedb:b53b/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:8434 errors:0 dropped:8 overruns:0 frame:0
          TX packets:1867 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1146254 (1.1 MB)  TX bytes:174634 (174.6 KB)

fpr-78adafc5-d Link encap:Ethernet  HWaddr 56:94:88:0a:24:88  
          inet addr:169.254.30.21  Bcast:0.0.0.0  Mask:255.255.255.254
          inet6 addr: fe80::5494:88ff:fe0a:2488/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1840 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1812 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:173484 (173.4 KB)  TX bytes:170740 (170.7 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

neutron port-listみると、確かにIPアドレスが割り当てられている。

root@juno1:~# neutron port-list
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                          |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| 0751f133-464a-41e7-aa0b-d5e79c47aaf4 |      | fa:16:3e:d3:77:13 | {"subnet_id": "7b95c656-79bd-4b5d-9d28-8a59978ddfbc", "ip_address": "192.168.0.3"} |
| 16ab7536-1198-47b8-8d4a-d7a5f2467885 |      | fa:16:3e:ae:1e:9c | {"subnet_id": "846978d0-2de9-47db-a477-5eacf5432d07", "ip_address": "192.168.1.4"} |
| 1718fcf2-e8f3-49e2-8085-f037a774116e |      | fa:16:3e:76:8f:3e | {"subnet_id": "846978d0-2de9-47db-a477-5eacf5432d07", "ip_address": "192.168.1.5"} |
| 2197f8fd-ae65-41f0-b824-bc5d12112bdc |      | fa:16:3e:33:02:c7 | {"subnet_id": "7b95c656-79bd-4b5d-9d28-8a59978ddfbc", "ip_address": "192.168.0.2"} |
| 2237c4d4-f936-4475-b609-f0253bc0dc83 |      | fa:16:3e:41:92:55 | {"subnet_id": "7b95c656-79bd-4b5d-9d28-8a59978ddfbc", "ip_address": "192.168.0.4"} |
| 49029318-1b55-426c-87a1-3982af9b0ef3 |      | fa:16:3e:1e:91:22 | {"subnet_id": "8025dae3-ca36-440f-9249-73d424266580", "ip_address": "10.0.0.207"}  |
| 4946e58f-f97f-4864-9981-271a2e1de360 |      | fa:16:3e:09:ba:16 | {"subnet_id": "8025dae3-ca36-440f-9249-73d424266580", "ip_address": "10.0.0.206"}  |
| 4fe091eb-4ce4-451b-b6a1-b6e459f3ebf7 |      | fa:16:3e:da:41:79 | {"subnet_id": "8025dae3-ca36-440f-9249-73d424266580", "ip_address": "10.0.0.203"}  |
| 5ebf1570-6a93-424d-a4f7-3e4fa5412800 |      | fa:16:3e:db:b5:3b | {"subnet_id": "8025dae3-ca36-440f-9249-73d424266580", "ip_address": "10.0.0.208"}  |
| 87c31452-5563-49d5-bbd5-deb1ccbcf181 |      | fa:16:3e:80:eb:a2 | {"subnet_id": "846978d0-2de9-47db-a477-5eacf5432d07", "ip_address": "192.168.1.1"} |
| b86050f1-0cd8-46a3-a7d5-dcca5ccbc131 |      | fa:16:3e:df:ac:65 | {"subnet_id": "7b95c656-79bd-4b5d-9d28-8a59978ddfbc", "ip_address": "192.168.0.6"} |
| f785512e-c1fb-430d-8e49-440e7ce9859c |      | fa:16:3e:0a:cd:ca | {"subnet_id": "7b95c656-79bd-4b5d-9d28-8a59978ddfbc", "ip_address": "192.168.0.1"} |
| fafb3d54-7ad3-4ce2-b7bd-c37d59fe39c9 |      | fa:16:3e:20:f3:c6 | {"subnet_id": "846978d0-2de9-47db-a477-5eacf5432d07", "ip_address": "192.168.1.3"} |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+

バグみたいな感じに見える・・・

0 件のコメント:

コメントを投稿