Ask Your Question
0

unable to delete a network in a nova-network architecture using kilo on centos7

asked 2015-08-24 09:00:15 -0500

Rajan433 gravatar image

I am trying to deploy openstack kilo with centos 7 and not able to delete a network

[root@controller ~]# nova net-list

+--------------------------------------+----------+----------------+ | ID | Label | CIDR | +--------------------------------------+----------+----------------+ | b6798333-fb54-41a9-9687-f8054017fcf7 | demo-net | 10.6.12.144/29 | +--------------------------------------+----------+----------------+

[root@controller ~]# nova net-delete demo-net

ERROR (NotFound): Network not found (HTTP 404) (Request-ID: req-ce35809c-0b46-4412-adb9-d66cd9b81056)

// Detail debug log

[root@controller ~]# nova --debug net-delete demo-net

DEBUG (session:195) REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" INFO (connectionpool:203) Starting new HTTP connection (1): controller DEBUG (connectionpool:383) "GET /v3 HTTP/1.1" 200 250 DEBUG (session:224) RESP: [200] content-length: 250 vary: X-Auth-Token keep-alive: timeout=5, max=100 server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 connection: Keep-Alive date: Mon, 24 Aug 2015 13:56:20 GMT content-type: application/json x-openstack-request-id: req-23ac8033-ee94-4f14-8fb9-b3be2e0ffbae RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}

DEBUG (base:171) Making authentication request to http://controller:35357/v3/auth/tokens DEBUG (connectionpool:383) "POST /v3/auth/tokens HTTP/1.1" 201 2257 DEBUG (iso8601:184) Parsed 2015-08-24T14:56:20.309539Z into {'tz_sign': None, 'second_fraction': u'309539', 'hour': u'14', 'daydash': u'24', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'20', 'tz_minute': None, 'year': u'2015', 'separator': u'T', 'monthdash': u'08', 'day': None, 'minute': u'56'} with default timezone DEBUG (iso8601:140) Got u'2015' for 'year' with default None DEBUG (iso8601:140) Got u'08' for 'monthdash' with default 1 DEBUG (iso8601:140) Got 8 for 'month' with default 8 DEBUG (iso8601:140) Got u'24' for 'daydash' with default 1 DEBUG (iso8601:140) Got 24 for 'day' with default 24 DEBUG (iso8601:140) Got u'14' for 'hour' with default None DEBUG (iso8601:140) Got u'56' for 'minute' with default None DEBUG (iso8601:140) Got u'20' for 'second' with default None DEBUG (session:195) REQ: curl -g -i -X DELETE http://controller:8774/v2/357b9933e8b... -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}e884a5ab4dcc0e7dde8c1bad5e0a9b24ba6b45ee" INFO (connectionpool:203) Starting new HTTP connection (1): controller DEBUG (connectionpool:383) "DELETE /v2/357b9933e8b54e31a486988dbb9789b7/os-tenant-networks/demo-net HTTP/1.1" 404 63 DEBUG (session:224) RESP: DEBUG (shell:914) Network not found (HTTP 404) (Request-ID: req-00f38f78-097a-4209-8f41-f157489913ee) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 911, in main OpenStackComputeShell().main(argv) File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 838, in main args.func(self.cs, args) File "/usr/lib/python2.7/site-packages/novaclient/v2/contrib/tenant_networks.py", line 112, in do_net_delete do_tenant_network_delete(cs, args) File "/usr/lib/python2.7/site-packages/novaclient/v2/contrib/tenant_networks.py", line 120, in do_tenant_network_delete cs.tenant_networks.delete(args.network_id) File "/usr/lib/python2.7/site-packages/novaclient/v2/contrib/tenant_networks.py", line 37, in delete self._delete('/os-tenant-networks/%s' % base.getid(network)) File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 170, in _delete _resp ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-26 12:44:43 -0500

Balagopal gravatar image

updated 2015-08-26 12:48:00 -0500

While deleting network use ID instead of Label to remove network. below is the small example. stack@openstack:~/devstack$ nova net-delete demo-net ERROR (NotFound): Network not found (HTTP 404) (Request-ID: req-2b525b09-4e08-4ef2-ac03-7d5912ad20eb) stack@openstack:~/devstack$ nova net-delete 1eddde16-8c58-4c6f-a9e3-5d2bba605a4e and check the nova net-list

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-08-24 09:00:15 -0500

Seen: 424 times

Last updated: Aug 26 '15