← Back to team overview

openstack team mailing list archive

Re: How to delete or update subnet in quantum

 

About the port update, according to the Quantum
API<http://docs.openstack.org/api/openstack-network/2.0/content/Concepts-d1e369.html#d6e256>
you
cannot update the tenant-id.

I guess the problem is that no error is returned. I just tested with
Grizzly and the problem is fixed: it gives Cannot update read-only
attribute tenant_id.

Filipe Manco
http://about.me/fmanco


2013/4/17 Paul Michali <pcm@xxxxxxxxx>

> Can you do a port list to see if port in use?
>
>
> PCM (Paul Michali)
>
> Contact info for Cisco users http://twiki.cisco.com/Main/pcm
>
>
> On Apr 16, 2013, at 3:49 PM, Atif Wasi wrote:
>
> Hi Folks,
>
> Have a relatively easy question.  I assigned a subnet with a wrong IP and
> an incorrect tenant-id.  Now when I try to update the subnet with the
> correct tenant-id, it is not taking the new value (see below).
> Also how do I delete a subnet ?  When I try to delete it, I am getting the
> following error message.  I made sure that there are no floatingip assigned
> to this subnet.
>
> Any help will be appreciated.  I am running OpenStack Folsom
>
> Thanks
>
> Atif...
>
>
> (quantum) subnet-list
>
> +--------------------------------------+------+------------------+------------------------------------------------------+
> | id                                   | name | cidr             |
> allocation_pools                                     |
>
> +--------------------------------------+------+------------------+------------------------------------------------------+
> | 47e9644b-c536-4662-8771-2f296d47ad4d |      | 192.168.100.0/24 |
> {"start": "192.168.100.2", "end": "192.168.100.254"} |
> | 48a105de-8bb4-4303-9958-717d110a9456 |      | 192.168.1.9/24   |
> {"start": "192.168.1.10", "end": "192.168.1.20"}     |
> | 95cb5b22-a4f0-48eb-bc7a-8870797cb51a |      | 192.168.10.0/24  |
> {"start": "192.168.10.2", "end": "192.168.10.254"}   |
>
> +--------------------------------------+------+------------------+------------------------------------------------------+
> (quantum) subnet-delete 48a105de-8bb4-4303-9958-717d110a9456
> Unable to complete operation on network %(net_id)s. There is one or more
> ports still in use on the network.
>
>
>
> (quantum) subnet-update 48a105de-8bb4-4303-9958-717d110a9456 --tenant-id
> b443045cd0d54377b637cc0ba998bf89
> Updated subnet: 48a105de-8bb4-4303-9958-717d110a9456
> (quantum) subnet-show 48a105de-8bb4-4303-9958-717d110a9456
> +------------------+--------------------------------------------------+
> | Field            | Value                                            |
> +------------------+--------------------------------------------------+
> | allocation_pools | {"start": "192.168.1.10", "end": "192.168.1.20"} |
> | cidr             | 192.168.1.9/24                                   |
> | dns_nameservers  |                                                  |
> | enable_dhcp      | False                                            |
> | gateway_ip       | 192.168.1.1                                      |
> | host_routes      |                                                  |
> | id               | 48a105de-8bb4-4303-9958-717d110a9456             |
> | ip_version       | 4                                                |
> | name             |                                                  |
> | network_id       | 036e83fc-c322-4dfc-89d2-10d867752055             |
> | tenant_id        | 6bd416e48a394f06bfbf4d0856740262                 |
> +------------------+--------------------------------------------------+
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>

References