openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #22745
How to delete or update subnet in quantum
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 |
+------------------+--------------------------------------------------+
Follow ups