fuel2 graph delete returns error

Bug #1647508 reported by Evgeniy L
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Stanislaw Bogatkin
Mitaka
Fix Released
High
Stanislaw Bogatkin
Newton
Fix Released
High
Stanislaw Bogatkin
Ocata
Fix Committed
High
Stanislaw Bogatkin

Bug Description

Graph is deleted successfully, but shows parsing error `Expecting value: line 1 column 1 (char 0)`

[root@nailgun ~]# fuel2 graph upload -e 1 -t qwe -f up.yaml
Deployment graph was successfully uploaded.
[root@nailgun ~]# fuel2 graph delete -e 1 -t qwe
Expecting value: line 1 column 1 (char 0)
[root@nailgun ~]# fuel2 graph delete -e 1 -t qwe
404 Client Error: Not Found for url: http://172.16.40.2:8000/api/v1/clusters/1/deployment_graphs/qwe (Graph with type: qwe is not defined)

Here is response from Nailgun
====================================
Server: nginx
Date: Mon, 05 Dec 2016 23:49:07 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Frame-Options: SAMEORIGIN
X-Content-Type: nosniff
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=15768000; includeSubDomains

4
None
0
====================================

Fuel: 9.1

Evgeniy L (rustyrobot)
tags: added: module-nailgun
tags: added: area-python
Changed in fuel:
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/410261

Changed in fuel:
status: Confirmed → In Progress
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Stanislaw Bogatkin (sbogatkin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/mitaka)

Reviewed: https://review.openstack.org/410261
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=a0c08e7413bc61f5be3f41515eb854008c76a5d1
Submitter: Jenkins
Branch: stable/mitaka

commit a0c08e7413bc61f5be3f41515eb854008c76a5d1
Author: Stanislaw Bogatkin <email address hidden>
Date: Tue Dec 13 18:14:02 2016 +0300

    Raise 204 on graph deletion explicitly

    Change-Id: I7ddc3dd6b33b800e5ac0596a3306fb248271be26
    Closes-Bug: #1647508

tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on 9.2 snapshot #745.

Actual results:
[root@nailgun ~]# fuel2 graph upload -e 1 -t qwe -f /root/up.yaml
Deployment graph was successfully uploaded.
[root@nailgun ~]# fuel2 graph delete -e 1 -t qwe
Deployment graph 'qwe' for environment with id 1 was deleted.
[root@nailgun ~]# fuel2 graph delete -e 1 -t qwe
404 Client Error: Not Found for url: http://10.109.10.2:8000/api/v1/clusters/1/deployment_graphs/qwe (Graph with type: qwe is not defined)

tags: removed: on-verification
Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :

Verified on Newton #1556 iso.

[root@nailgun ~]# fuel2 graph upload -e 2 -t qwe -f cluster_graph.yaml
Deployment graph was successfully uploaded.
[root@nailgun ~]#
[root@nailgun ~]# fuel2 graph delete -e 2 -t qwe
Deployment graph 'qwe' for environment with id 2 was deleted.
[root@nailgun ~]#

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.