[CLI] Can't delete component from deployed environment with one app

Bug #1511645 reported by Anastasia Kuznetsova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Low
Valerii Kovalchuk
python-muranoclient
Invalid
Low
Unassigned

Bug Description

Steps to reproduce:
1. Prepare package with application (I used class from python-muranoclient repository from MockApp app)
2. Import application
3. Create environment
4. Create session
5. Add application to the environment (I used following object model:
obj_model = {
            'op': 'add',
            'path': '/-',
            'value': {
                '?': {
                    'type': 'io.murano.apps.MockApp',
                    'id': '12345',
                }
            }
        }

)
6. Deploy environment
7. Try to delete deployed application from env
8. Create new session
9. Update environment object model
obj_model = {
            'op': 'remove',
            'path': '/0'
}

Observed result:
Environment model was not updated:
400 Bad Request: The server could not comply with the request since it is either malformed or otherwise incorrect.: Request body is empty: please, provide application object model (HTTP 400)

stderr:
None

Note: if I add two applications to the environment and then after deploy try to delete one, it works

Changed in python-muranoclient:
assignee: nobody → Kirill Zaitsev (kzaitsev)
description: updated
Changed in python-muranoclient:
assignee: Kirill Zaitsev (kzaitsev) → nobody
Changed in python-muranoclient:
status: New → Confirmed
importance: Undecided → Low
milestone: none → 0.9.0
Changed in python-muranoclient:
assignee: nobody → Valerii Kovalchuk (vakovalchuk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-muranoclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/324631

Changed in python-muranoclient:
status: Confirmed → In Progress
Changed in python-muranoclient:
milestone: 0.9.0 → 0.9.1
Changed in python-muranoclient:
milestone: 0.10.0 → 0.10.1
Changed in python-muranoclient:
assignee: Valerii Kovalchuk (vakovalchuk) → nobody
milestone: 0.11.0 → 0.12.0
Changed in python-muranoclient:
milestone: 0.12.0 → 0.11.1
Changed in murano:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (master)

Fix proposed to branch: master
Review: https://review.openstack.org/374700

Changed in murano:
assignee: nobody → Valerii Kovalchuk (vakovalchuk)
status: New → In Progress
Changed in murano:
milestone: none → ocata-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

Reviewed: https://review.openstack.org/374700
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=945cc04806aac8c042df653d01b7a90357876cf6
Submitter: Jenkins
Branch: master

commit 945cc04806aac8c042df653d01b7a90357876cf6
Author: Valerii Kovalchuk <email address hidden>
Date: Thu Sep 22 14:04:38 2016 +0300

    Allow to PUT an empty object model

    It was impossible to delete the last component from the env via
    CLI, because it was prohibited to make put request with empty body.

    APIImpact
    Change-Id: I462072ad7c90eec1790b74cae958809aa316c25c
    Closes-bug: #1511645

Changed in murano:
status: In Progress → Fix Released
Changed in python-muranoclient:
status: In Progress → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to python-muranoclient (master)

Reviewed: https://review.openstack.org/324631
Committed: https://git.openstack.org/cgit/openstack/python-muranoclient/commit/?id=df35a2e3a14456827d0f80e7893e3f408cbb0596
Submitter: Jenkins
Branch: master

commit df35a2e3a14456827d0f80e7893e3f408cbb0596
Author: Valerii Kovalchuk <email address hidden>
Date: Thu Jun 2 18:53:38 2016 +0300

    Unskip the test due to bugfix

    It was impossible to delete the last component from the env via
    CLI. This bug is fixed in murano and corresponding test can be
    upskipped.

    Change-Id: I8c4867a4a91a038633322115b151c659c32742b2
    Depends-on: I462072ad7c90eec1790b74cae958809aa316c25c
    Related-bug: #1511645

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano 3.1.0

This issue was fixed in the openstack/murano 3.1.0 release.

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.