<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body dir="auto">
<div>Hi Danny,</div>
<div><br>
</div>
<div>If the subnet had DCHP enabled, then that 'extra' port likely belongs to the DHCP namespace. It gets created upon the first boot of an instance in that network. The port will then hang around until the network is deleted. A port-show should show you the
owner of the port.<br>
<br>
<div>James Denton</div>
<div>Network Engineer</div>
<div>Rackspace Private Cloud</div>
<div><a href="mailto:james.denton@rackspace.com">james.denton@rackspace.com</a></div>
<div><br>
</div>
Sent from my iPhone</div>
<div><br>
On Oct 7, 2014, at 12:15 PM, Danny Choi (dannchoi) <<a href="mailto:dannchoi@cisco.com">dannchoi@cisco.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div>Hi,</div>
<div><br>
</div>
<div>
<div style="font-family: 'Times New Roman'; font-size: 16px;">I used devstack to deploy Juno OpenStack.</div>
<div style="font-family: 'Times New Roman'; font-size: 16px;"><br>
</div>
<div style="font-family: 'Times New Roman'; font-size: 16px;">By default, devstack created 2 users: admin (with role admin) and demo;</div>
</div>
<div style="font-family: 'Times New Roman'; font-size: 16px;">and 2 networks: public (tenant = admin) and private (tenant = demo)</div>
<div style="font-family: 'Times New Roman'; font-size: 16px;"><br>
</div>
<div style="font-family: 'Times New Roman'; font-size: 16px;">In CLI as user demo, there is one port created (attached to the Neutron router):</div>
<div style="font-family: 'Times New Roman'; font-size: 16px;"><br>
</div>
<div style="font-family: 'Times New Roman'; font-size: 16px;">
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">localadmin@qa4:~/devstack$ source openrc demo demo</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">localadmin@qa4:~/devstack$ </p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">localadmin@qa4:~/devstack$ neutron port-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 | mac_address | fixed_ips |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 8b747b8d-eb66-4cb9-92ef-c150078c50c7 | | fa:16:3e:77:21:79 | {"subnet_id": "d05e862a-6fd1-4586-89ae-03dfa52cbf44", "ip_address": "10.0.0.1"} |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+</p>
<div><br>
</div>
<div>Launch a VM and attach the private network.</div>
<div><br>
</div>
<div>
<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;">| 0afb2bd6-38c7-401d-966e-857dd02ba322 | private | None |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| bc6e1c7d-6eca-419a-af93-47bb894e8789 | public | None |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+---------+------+</p>
<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=0afb2bd6-38c7-401d-966e-857dd02ba322 vm1</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 | 0 |</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 | building |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| OS-SRV-USG:launched_at | - |</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;">| accessIPv4 | |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| accessIPv6 | |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| adminPass | BDLgcrfCLV9h |</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-07T16:35:07Z |</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 | |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| id | 38ed7d4c-26f9-4d27-8f50-8f85c680771b |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| image | cirros-0.3.2-x86_64-uec (0c56933c-1d35-41cc-8771-3c0aa4d7562f) |</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 | vm1 |</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;">| 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 | BUILD |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| tenant_id | 8eba682471404f389ce727bcbaa41ed2 |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| updated | 2014-10-07T16:35:07Z |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| user_id | 2a90bd89402945b2986f0ddd97c13303 |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+----------------------------------------------------------------+</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;">| 38ed7d4c-26f9-4d27-8f50-8f85c680771b | vm1 | ACTIVE | - | Running | private=10.0.0.2 |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+------+--------+------------+-------------++</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">Note that port with fixed IP 10.0.0.2 is created for the VM.</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">However, an additional port with fixed IP 10.0.0.3 is also created.</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">localadmin@qa4:~/devstack$ neutron port-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 | mac_address | fixed_ips |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 136c049f-dcfd-4c39-a3c8-3bb6dab6ac09 | | fa:16:3e:6e:d8:a2 | {"subnet_id": "d05e862a-6fd1-4586-89ae-03dfa52cbf44", "ip_address": "10.0.0.3"} | <<<???</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 8324a907-2693-4f8f-9299-e57947f91cb6 | | fa:16:3e:8d:62:40 | {"subnet_id": "d05e862a-6fd1-4586-89ae-03dfa52cbf44", "ip_address": "10.0.0.2"} |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 8b747b8d-eb66-4cb9-92ef-c150078c50c7 | | fa:16:3e:77:21:79 | {"subnet_id": "d05e862a-6fd1-4586-89ae-03dfa52cbf44", "ip_address": "10.0.0.1"} |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+</p>
</div>
<div><br>
</div>
<div>This port remains after deleting the VM.</div>
<div><br>
</div>
<div>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">localadmin@qa4:~/devstack$ nova delete vm1</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">Request to delete server vm1 has been accepted.</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;">+----+------+--------+------------+-------------+----------+</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">localadmin@qa4:~/devstack$ neutron port-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 | mac_address | fixed_ips |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 136c049f-dcfd-4c39-a3c8-3bb6dab6ac09 | | fa:16:3e:6e:d8:a2 | {"subnet_id": "d05e862a-6fd1-4586-89ae-03dfa52cbf44", "ip_address": "10.0.0.3"} | <<<???</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 8b747b8d-eb66-4cb9-92ef-c150078c50c7 | | fa:16:3e:77:21:79 | {"subnet_id": "d05e862a-6fd1-4586-89ae-03dfa52cbf44", "ip_address": "10.0.0.1"} |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+</p>
</div>
<div><br>
</div>
<div>Now create another VM. Note that there is only one new port created; no additional port is created as before during the first VM creation.</div>
<div><br>
</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=0afb2bd6-38c7-401d-966e-857dd02ba322 vm2</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 | 0 |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| OS-EXT-STS:task_state | scheduling |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| OS-EXT-STS:vm_state | building |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| OS-SRV-USG:launched_at | - |</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;">| accessIPv4 | |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| accessIPv6 | |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| adminPass | sNAwwHE5AwMw |</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-07T16:54:52Z |</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 | |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| id | c699003a-c88e-48b0-a494-6759399e7fcc |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| image | cirros-0.3.2-x86_64-uec (0c56933c-1d35-41cc-8771-3c0aa4d7562f) |</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 | vm2 |</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;">| 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 | BUILD |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| tenant_id | 8eba682471404f389ce727bcbaa41ed2 |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| updated | 2014-10-07T16:54:52Z |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| user_id | 2a90bd89402945b2986f0ddd97c13303 |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+----------------------------------------------------------------+</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;">| c699003a-c88e-48b0-a494-6759399e7fcc | vm2 | ACTIVE | - | Running | private=10.0.0.4 |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+------+--------+------------+-------------+------------------+</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">localadmin@qa4:~/devstack$ neutron port-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 | mac_address | fixed_ips |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 136c049f-dcfd-4c39-a3c8-3bb6dab6ac09 | | fa:16:3e:6e:d8:a2 | {"subnet_id": "d05e862a-6fd1-4586-89ae-03dfa52cbf44", "ip_address": "10.0.0.3"} | <<<???</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 1c00f2ee-43dd-4d47-9844-d40afa7e1e61 | | fa:16:3e:1c:79:6a | {"subnet_id": "d05e862a-6fd1-4586-89ae-03dfa52cbf44", "ip_address": "10.0.0.4"} |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 8b747b8d-eb66-4cb9-92ef-c150078c50c7 | | fa:16:3e:77:21:79 | {"subnet_id": "d05e862a-6fd1-4586-89ae-03dfa52cbf44", "ip_address": "10.0.0.1"} |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+</p>
<div><br>
</div>
<div><br>
</div>
<div>Is this expected behavior?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Danny </div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></span><br>
<span>Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a></span><br>
<span>Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></span><br>
</div>
</blockquote>
</body>
</html>