[Openstack] port-delete issue

Yngvi Páll Þorfinnsson yngvith at siminn.is
Tue Sep 8 17:42:09 UTC 2015


Those are the routers in the system (admin sees this)

root at opst-ctrl1-dev:/# neutron router-list
+--------------------------------------+-----------------+-----------------------+-------------+-------+
| id                                   | name            | external_gateway_info | distributed | ha    |
+--------------------------------------+-----------------+-----------------------+-------------+-------+
| 164ad471-5ab0-4109-acf5-f88de1e4b5f3 | gw              | null                  | False       | False |
| 2371ae6e-8a07-464c-9b3e-3d7d35e96a59 | gw              | null                  | False       | False |
| 45ab4a9a-c7fc-4cf6-844c-6265b5620121 | gw              | null                  | False       | False |
| 50d16aec-adaf-431d-9b42-f8aff78ea5b8 | gw1             | null                  | False       | False |
| 546456aa-a312-48d5-8a3b-6031b1dcb3a9 | OskarTestRouter | null                  | False       | False |
| 78feb17a-9a29-4ddb-9477-914850d8f5d2 | ElasticRouter   | null                  | False       | False |
| 7a06a85c-826a-4f00-a62f-5ae8586ea1fb | adminTest       | null                  | False       | False |
| 7ba38ec5-49d9-4fc8-b77f-ef8a38e79af3 | Safnið-router   | null                  | False       | False |
| 9e367dd6-ab2c-4949-a5e4-4d8d2787d84b | gw              | null                  | False       | False |
| f05c4cc8-724e-4731-bea3-6ef68d794137 | gw1             | null                  | False       | False |
+--------------------------------------+-----------------+-----------------------+-------------+-------+
root at opst-ctrl1-dev:/#


but the port does not show up, when I list ports for each router with:

neutron router-port-list  ROUTER-ID


but it does show up in the general port-list , like

root at opst-ctrl1-dev:/# neutron port-list | grep 157
| 220f1ad2-10bb-4d17-8cc5-3ad4f86f0b00 |      | fa:16:3e:15:20:59 | {"subnet_id": "f505a109-07a7-420a-ae6b-aa5995126be7", "ip_address": "157.157.8.114"}  |


Best regards
Yngvi

-----Original Message-----
From: Brian Haley [mailto:brian.haley at hp.com] 
Sent: 8. september 2015 17:33
To: Yngvi Páll Þorfinnsson <yngvith at siminn.is>; openstack at lists.openstack.org
Subject: Re: [Openstack] port-delete issue

My only other suggestion is to do a port-list with admin privs and look.  I can't tell if you're doing that as root != admin necessarily.

-Brian

On 09/08/2015 01:08 PM, Yngvi Páll Þorfinnsson wrote:
> HI
> I don't see a router attached :
>
> root at opst-ctrl1-dev:/# neutron subnet-show ext-subnet
> +-------------------+----------------------------------------------------+
> | Field             | Value                                              |
> +-------------------+----------------------------------------------------+
> | allocation_pools  | {"start": "157.157.8.100", "end": "157.157.8.200"} |
> | cidr              | 157.157.8.0/24                                     |
> | dns_nameservers   | 212.30.200.199                                     |
> |                   | 212.30.200.200                                     |
> | enable_dhcp       | True                                               |
> | gateway_ip        | 157.157.8.1                                        |
> | host_routes       |                                                    |
> | id                | f505a109-07a7-420a-ae6b-aa5995126be7               |
> | ip_version        | 4                                                  |
> | ipv6_address_mode |                                                    |
> | ipv6_ra_mode      |                                                    |
> | name              | ext-subnet                                         |
> | network_id        | 523721c5-ea5d-42a1-8920-8bc75010f273               |
> | tenant_id         | 1dda2478e30d44dda0ca752c6047725d                   |
> +-------------------+----------------------------------------------------+
> root at opst-ctrl1-dev:/#
>
> best regards
> Yngvi
>
>
> -----Original Message-----
> From: Brian Haley [mailto:brian.haley at hp.com]
> Sent: 8. september 2015 16:45
> To: openstack at lists.openstack.org
> Subject: Re: [Openstack] port-delete issue
>
> On 09/08/2015 12:01 PM, Yngvi Páll Þorfinnsson wrote:
>> HI
>>
>> I can't delete a subnet (id f505a109-07a7-420a-ae6b-aa5995126be7 ), 
>> because one port is still in use.
>>
>> root at opst-ctrl1-dev:/# neutron subnet-delete
>> f505a109-07a7-420a-ae6b-aa5995126be7
>>
>> Unable to complete operation on subnet 
>> f505a109-07a7-420a-ae6b-aa5995126be7. One or more ports have an IP allocation from this subnet. (HTTP 409) (Request-ID:
>> req-fbd64f19-2888-4d87-8e60-bc2cc920cd12)
>
> Do you have a router on the subnet?  Try deleting it.
>
> -Brian
>
> _______________________________________________
> 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
>





More information about the Openstack mailing list