<div dir="ltr">I think you did everything right.<div><br></div><div>Are you sure cirros images by default are configured to boostrap interfaces different from eth0?</div><div>Perhaps all you need to do is just ifup the interface... have you already tried that?</div><div><br></div><div>Salvatore</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 October 2014 23:07, Danny Choi (dannchoi) <span dir="ltr"><<a href="mailto:dannchoi@cisco.com" target="_blank">dannchoi@cisco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0)">
<div style="font-size:14px;font-family:Calibri,sans-serif">Hi,</div>
<div style="font-size:14px;font-family:Calibri,sans-serif"><br>
</div>
<div style="font-size:14px;font-family:Calibri,sans-serif">“nova help boot” shows the following:</div>
<div style="font-size:14px;font-family:Calibri,sans-serif"><br>
</div>
<div>
<p style="font-size:11px;font-family:Menlo;margin:0px"> --nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid></p>
<p style="font-size:11px;font-family:Menlo;margin:0px"> Create a NIC on the server. Specify option</p>
<p style="font-size:11px;font-family:Menlo;margin:0px"> multiple times to create multiple NICs. net-</p>
<p style="font-size:11px;font-family:Menlo;margin:0px"> id: attach NIC to network with this UUID</p>
<p style="font-size:11px;font-family:Menlo;margin:0px"> (either port-id or net-id must be provided),</p>
<p style="font-size:11px;font-family:Menlo;margin:0px"> v4-fixed-ip: IPv4 fixed address for NIC</p>
<p style="font-size:11px;font-family:Menlo;margin:0px"> (optional), v6-fixed-ip: IPv6 fixed address</p>
<p style="font-size:11px;font-family:Menlo;margin:0px"> for NIC (optional), port-id: attach NIC to</p>
<p style="font-size:11px;font-family:Menlo;margin:0px"> port with this UUID (either port-id or net-id</p>
<p style="font-size:11px;font-family:Menlo;margin:0px"> must be provided).</p>
<p style="font-size:11px;font-family:Menlo;margin:0px"><br>
</p>
<p style="margin:0px">NOTE: >>>>> Specify option multiple times to create multiple NICs. <<<<<</p>
<p style="margin:0px"><br>
</p>
<p style="margin:0px">I have two private networks and one public network (for floating IPs) configured.</p>
<p style="margin:0px"><br>
</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">localadmin@qa4:~/devstack$ nova net-list</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">+--------------------------------------+---------------+------+</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| ID | Label | CIDR |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">+--------------------------------------+---------------+------+</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| 6905cf7d-74d7-455b-b9d0-8cea972ec522 | private | None |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| 8c25e33b-47be-47eb-a945-e0ac2ad6756a | Private_net20 | None |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| faa138e6-4774-41ad-8b5f-9795788eca43 | public | None |</p>
<p style="margin:0px"></p>
<p style="margin:0px;font-size:11px;font-family:Menlo">+--------------------------------------+---------------+------+</p>
</div>
<div><br>
</div>
<div>When I launch an instance, I specify the “—nic” option twice.</div>
<div><br>
</div>
<div>
<p style="margin:0px;font-size:11px;font-family:Menlo">localadmin@qa4:~/devstack$ nova boot --image cirros-0.3.2-x86_64-uec --flavor 1 --nic net-id=6905cf7d-74d7-455b-b9d0-8cea972ec522 --nic net-id=8c25e33b-47be-47eb-a945-e0ac2ad6756a vm10</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><br>
</p>
<p style="margin:0px">And then I associate a floating IP to the instance.</p>
<p style="margin:0px"><br>
</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">localadmin@qa4:~/devstack$ nova list</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">+--------------------------------------+------+--------+------------+-------------+----------------------------------------------------------+</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| ID | Name | Status | Task State | Power State | Networks |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">+--------------------------------------+------+--------+------------+-------------+----------------------------------------------------------+</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| e6a13d2e-756b-4b96-bf0c-438c2c875675 | vm10 | ACTIVE | - | Running | Private_net20=20.0.0.10; private=10.0.0.7, 172.29.173.13 |</p>
<div><br>
</div>
<p style="margin:0px;font-size:11px;font-family:Menlo">localadmin@qa4:~/devstack$ nova show vm10</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">+--------------------------------------+----------------------------------------------------------------+</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| Property | Value |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">+--------------------------------------+----------------------------------------------------------------+</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| OS-DCF:diskConfig | MANUAL |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| OS-EXT-AZ:availability_zone | nova |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| OS-EXT-STS:power_state | 1 |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| OS-EXT-STS:task_state | - |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| OS-EXT-STS:vm_state | active |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| OS-SRV-USG:launched_at | 2014-10-15T20:22:50.000000 |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| OS-SRV-USG:terminated_at | - |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| Private_net20 network | 20.0.0.10 |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| accessIPv4 | |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| accessIPv6 | |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| config_drive | |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| created | 2014-10-15T20:21:54Z |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| flavor | m1.tiny (1) |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| hostId | 4660a679d319992f764bcb245b71048212fe8cd67b769400d82382b7 |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| id | e6a13d2e-756b-4b96-bf0c-438c2c875675 |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| image | cirros-0.3.2-x86_64-uec (feaec710-c1cc-4071-aefa-c3dc2b915ab1) |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| key_name | - |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| metadata | {} |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| name | vm10 |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| os-extended-volumes:volumes_attached | [] |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| private network | 10.0.0.7, 172.29.173.13 |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| progress | 0 |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| security_groups | default |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| status | ACTIVE |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| tenant_id | a9dea87cd1114f61996c10456a17604f |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| updated | 2014-10-15T20:22:03Z |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| user_id | bc353f0fc8b44c0883a220898c6c8262 |</p>
<p style="margin:0px"></p>
<p style="margin:0px;font-size:11px;font-family:Menlo">+--------------------------------------+----------------------------------------------------------------+</p>
</div>
<div><br>
</div>
<div>It looks like both private network addresses are attached to the instance.</div>
<div><br>
</div>
<div>However, ssh to the instance via the floating IP, its configuration shows only the 10 net address is configured.</div>
<div><br>
</div>
<div>
<p style="margin:0px;font-size:11px;font-family:Menlo">DANNCHOI-M-G07T:~ dannychoi$ ssh -l cirros 172.29.173.13</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">The authenticity of host '172.29.173.13 (172.29.173.13)' can't be established.</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">RSA key fingerprint is a5:e1:ef:f5:5e:a6:af:06:de:1b:f6:23:0a:5a:48:91.</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Are you sure you want to continue connecting (yes/no)? yes</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Warning: Permanently added '172.29.173.13' (RSA) to the list of known hosts.</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><a href="mailto:cirros@172.29.173.13" target="_blank">cirros@172.29.173.13</a>'s password: </p>
<p style="margin:0px;font-size:11px;font-family:Menlo">$ ifconfig -a</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">eth0 Link encap:Ethernet HWaddr FA:16:3E:7A:49:1E </p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> inet addr:10.0.0.7 Bcast:10.0.0.255 Mask:255.255.255.0</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> inet6 addr: fe80::f816:3eff:fe7a:491e/64 Scope:Link</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> RX packets:87 errors:0 dropped:0 overruns:0 frame:0</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> TX packets:52 errors:0 dropped:0 overruns:0 carrier:0</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> collisions:0 txqueuelen:1000 </p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> RX bytes:10509 (10.2 KiB) TX bytes:6194 (6.0 KiB)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br>
</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">eth1 Link encap:Ethernet HWaddr FA:16:3E:73:C7:F0 </p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> BROADCAST MULTICAST MTU:1500 Metric:1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> RX packets:0 errors:0 dropped:0 overruns:0 frame:0</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> collisions:0 txqueuelen:1000 </p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br>
</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">lo Link encap:Local Loopback </p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> inet addr:127.0.0.1 Mask:255.0.0.0</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> inet6 addr: ::1/128 Scope:Host</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> UP LOOPBACK RUNNING MTU:16436 Metric:1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> RX packets:0 errors:0 dropped:0 overruns:0 frame:0</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> collisions:0 txqueuelen:0 </p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br>
</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">$ ping 20.0.0.10</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">PING 20.0.0.10 (20.0.0.10): 56 data bytes</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">^C</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">--- 20.0.0.10 ping statistics ---</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">9 packets transmitted, 0 packets received, 100% packet loss <<<<<[FAILURE]</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">$ ping 10.0.0.7</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">PING 10.0.0.7 (10.0.0.7): 56 data bytes</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">64 bytes from <a href="http://10.0.0.7" target="_blank">10.0.0.7</a>: seq=0 ttl=64 time=0.164 ms</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">64 bytes from <a href="http://10.0.0.7" target="_blank">10.0.0.7</a>: seq=1 ttl=64 time=0.041 ms</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">^C</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">--- 10.0.0.7 ping statistics ---</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">2 packets transmitted, 2 packets received, 0% packet loss</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">round-trip min/avg/max = 0.041/0.102/0.164 ms</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">$ </p>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Is this the correct way to attach multiple NICs to an instance?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Danny</div>
<div><br>
</div>
</div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>