can't delete network by quantum api v2 (LB plugin)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Gary Kotton |
Bug Description
can't delete network by quantum api v2, related info is as bellow:
[root@hua quantum]# quantumv2 -v delete_net 72a1f939-
DEBUG: quantumclient.
DEBUG: quantumclient.
DEBUG: quantumclient.
DEBUG: quantumclient.
DEBUG: quantumclient.
DEBUG: quantumclient.
ERROR: cliff.app Network 72a1f939-
DEBUG: quantumclient.shell clean_up DeleteNetwork
DEBUG: quantumclient.shell got an error: Network 72a1f939-
[root@hua quantum]# quantumv2 -v delete_net 9bba3f8b-
DEBUG: quantumclient.
DEBUG: quantumclient.
DEBUG: quantumclient.
DEBUG: quantumclient.
DEBUG: quantumclient.
DEBUG: quantumclient.
ERROR: cliff.app global name 'const' is not defined
DEBUG: quantumclient.shell clean_up DeleteNetwork
DEBUG: quantumclient.shell got an error: global name 'const' is not defined
quantum server's log:
012-07-04 17:12:24 DEBUG [eventlet.
2012-07-04 17:12:46 DEBUG [routes.middleware] No route matched for DELETE /networks/
2012-07-04 17:12:46 DEBUG [routes.middleware] Matched DELETE /networks/
2012-07-04 17:12:46 DEBUG [routes.middleware] Route path: '/networks/
2012-07-04 17:12:46 DEBUG [routes.middleware] Match dict: {'action': u'delete', 'controller': wsgify(
2012-07-04 17:12:46 DEBUG [quantum.
2012-07-04 17:12:46 ERROR [quantum.
Traceback (most recent call last):
File "/bak/openstack
result = method(
File "/bak/openstack
obj_
File "/bak/openstack
cdb.
NameError: global name 'const' is not defined
Changed in quantum: | |
assignee: | nobody → Gary Kotton (garyk) |
Changed in quantum: | |
milestone: | none → folsom-2 |
summary: |
- can't delete network by quantum api v2 + can't delete network by quantum api v2 (LB plugin) |
Changed in quantum: | |
milestone: | folsom-2 → 2012.2 |
Thanks!
I'll fix this soon.
Thank you
Gary
On 07/04/2012 12:18 PM, Hua Zhang wrote: b015-4712- 9fdc-ea97e521cc 50 quantum. v2_0.network. DeleteNetwork run(Namespace( id='72a1f939- b015-4712- 9fdc-ea97e521cc 50', request_ format= 'json') ) quantum. client we are using client: quantumclient. v2_0.client. Client client REQ: curl -i http:// localhost: 9696/v2. 0/networks/ 72a1f939- b015-4712- 9fdc-ea97e521cc 50.json DELETE -H "User-Agent: python- quantumclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: ADMIN" client RESP:{'date': 'Wed, 04 Jul 2012 09:11:54 client RESP BODY:{" QuantumError" : "Network b015-4712- 9fdc-ea97e521cc 50 could not be found"} v2_0.client Error message: {"QuantumError": "Network 72a1f939- b015-4712- 9fdc-ea97e521cc 50 could not be found"} b015-4712- 9fdc-ea97e521cc 50 could not be found b015-4712- 9fdc-ea97e521cc 50 could not be found 004e-4c86- befb-a56011dfb5 34 quantum. v2_0.network. DeleteNetwork run(Namespace( id='9bba3f8b- 004e-4c86- befb-a56011dfb5 34', request_ format= 'json') ) quantum. client we are using client: quantumclient. v2_0.client. Client client REQ: curl -i http:// localhost: 9696/v2. 0/networks/ 9bba3f8b- 004e-4c86- befb-a56011dfb5 34.json DELETE -H "User-Agent: python- quantumclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: ADMIN" client RESP:{'date': 'Wed, 04 Jul 2012 09:12:46 client RESP BODY:{" QuantumError" : "global name v2_0.client Error message: {"QuantumError": "global name 'const' is not defined"} wsgi.server] 127.0.0.1 - - [04/Jul/2012 17:12:24] "POST //v2.0/ networks. json HTTP/1.1" 201 279 0.154678 9bba3f8b- 004e-4c86- befb-a56011dfb5 34.json 9bba3f8b- 004e-4c86- befb-a56011dfb5 34.json {id}{.format} ', defaults: {'action': u'delete', 'controller': wsgify( quantum. api.v2. resource. resource, RequestClass=<class 'quantum. api.v2. resource. Request' >)}
> Public bug reported:
>
> can't delete network by quantum api v2, related info is as bellow:
>
> [root@hua quantum]# quantumv2 -v delete_net 72a1f939-
> DEBUG: quantumclient.
> DEBUG: quantumclient.
> DEBUG: quantumclient.
>
> DEBUG: quantumclient.
> GMT', 'status': '404', 'content-length': '83', 'content-type':
> 'application/json'}
>
> DEBUG: quantumclient.
> 72a1f939-
>
> DEBUG: quantumclient.
> ERROR: cliff.app Network 72a1f939-
> DEBUG: quantumclient.shell clean_up DeleteNetwork
> DEBUG: quantumclient.shell got an error: Network 72a1f939-
> [root@hua quantum]# quantumv2 -v delete_net 9bba3f8b-
> DEBUG: quantumclient.
> DEBUG: quantumclient.
> DEBUG: quantumclient.
>
> DEBUG: quantumclient.
> GMT', 'status': '500', 'content-length': '54', 'content-type':
> 'application/json'}
>
> DEBUG: quantumclient.
> 'const' is not defined"}
>
> DEBUG: quantumclient.
> ERROR: cliff.app global name 'const' is not defined
> DEBUG: quantumclient.shell clean_up DeleteNetwork
> DEBUG: quantumclient.shell got an error: global name 'const' is not defined
>
>
> quantum server's log:
>
> 012-07-04 17:12:24 DEBUG [eventlet.
> 2012-07-04 17:12:46 DEBUG [routes.middleware] No route matched for DELETE /networks/
> 2012-07-04 17:12:46 DEBUG [routes.middleware] Matched DELETE /networks/
> 2012-07-04 17:12:46 DEBUG [routes.middleware] Route path: '/networks/
>...