REST API: user can no delete service (when environment has a few services)

Bug #1194781 reported by Timur Nurlygayanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Medium
Serg Melikyan

Bug Description

Steps To Reproduce:
1. Log into WebUI
2. Navigate to Project > Environments
3. Create environment 'test' and navigate to the list of services for this environment
4. Create 1 AD service 'demo.local'
5. Create 1 IIS service 'iis' (IIS server without domain)
6. Delete AD service

Observed Result:
User can not delete AD service, but can delete IIS and after that AD. Looks like user can delete services only in the specific order.

In webUI logs we can see the following error messages:

DEBUG:muranoclient.common.http:curl -i -X DELETE -H 'X-Configuration-Session: d83e2239c202480985cf9f74526fdeeb' -H 'X-Auth-Token: 85946459c4739a3f777cb47 168c97c3b' -H 'Content-Type: application/octet-stream' -H 'User-Agent: python-muranoclient' http://172.18.124.201:8082environments/db2fa5939ba04fbc9475fa c5e5b86554/webServers/cd8f2ebb09074ef8bbe5e8ee23f30a81
DEBUG:muranoclient.common.http:
HTTP/1.1 404 Not Found
date: Wed, 26 Jun 2013 08:32:06 GMT
content-length: 52
content-type: text/plain; charset=UTF-8

404 Not Found

The resource could not be found.

WARNING:muranoclient.common.http:Request returned failure status.
Not Found: HTTPNotFound (HTTP 404)
Traceback (most recent call last):
  File "/root/murano-dashboard/muranodashboard/panel/tables.py", line 117, in action
    api.service_delete(request, service_id, env_id, service_type)
  File "/root/murano-dashboard/muranodashboard/panel/api.py", line 233, in service_delete
    service_client.delete(environment_id, service_id, session_id)
  File "/usr/local/lib/python2.7/dist-packages/python_muranoclient-2013.1.a90.gbe1bcaf-py2.7.egg/muranoclient/v1/services.py", line 92, in delete
    headers=headers)
  File "/usr/local/lib/python2.7/dist-packages/python_muranoclient-2013.1.a90.gbe1bcaf-py2.7.egg/muranoclient/common/base.py", line 69, in _delete
    self.api.raw_request('DELETE', url, headers=headers)
  File "/usr/local/lib/python2.7/dist-packages/python_muranoclient-2013.1.a90.gbe1bcaf-py2.7.egg/muranoclient/common/http.py", line 194, in raw_request
    return self._http_request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_muranoclient-2013.1.a90.gbe1bcaf-py2.7.egg/muranoclient/common/http.py", line 160, in _http_request
    raise exceptions.from_response(resp)
HTTPNotFound: HTTPNotFound (HTTP 404)
[26/Jun/2013 08:32:06] "POST /project/murano/db2fa5939ba04fbc9475fac5e5b86554/services HTTP/1.1" 302 0
DEBUG:muranodashboard.panel.api:Environment::List

Tags: api
Changed in murano:
milestone: none → 0.2
status: New → Fix Committed
Changed in murano:
status: Fix Committed → Fix Released
summary: - REST API: user can no delete service (when environment has a few
- services)
+ Launchpad Bug #1194781: REST API: user can no delete service (when
+ environment has a few services)
Changed in murano:
importance: High → Medium
status: Fix Released → New
summary: - Launchpad Bug #1194781: REST API: user can no delete service (when
- environment has a few services)
+ REST API: user can no delete service (when environment has a few
+ services)
Changed in murano:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.