Unable to delete Solum resources using CLI

Bug #1317975 reported by Adrian Otto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-solumclient
Fix Released
Critical
Arati Mahimane

Bug Description

Expected Result:
I should be able to delete an app or an assembly using "solum app delete <name|uuid>" or "solum assembly delete <name|uuid>" respectively.

Actual Result:
I get a usage screen.

Steps to Reproduce:
1) Create an app.
2) Create an assembly using that app.
3) Try to delete either the assembly or the app using the CLI

Example Transcript:

vagrant@devstack:~$ solum assembly list
+--------------------------------------+-------------------+-------------+--------+
| uuid | name | description | status |
+--------------------------------------+-------------------+-------------+--------+
| 1abd6398-aaae-4158-a4ac-13606e1cb3c9 | ex1 | None | READY |
| dbfc8999-d6ea-47c9-84a6-3b19b995640a | ghost_4_9_9_20_44 | None | READY |
+--------------------------------------+-------------------+-------------+--------+
vagrant@devstack:~$ solum app list
+--------------------------------------+-------+-------------------------+
| uuid | name | description |
+--------------------------------------+-------+-------------------------+
| d7a9c0ad-96e6-4e2a-a1f4-59529c5d4d1e | ghost | ghost blogging platform |
| f26af290-9645-48dc-b46b-78883f246975 | ex1 | Nodejs express. |
+--------------------------------------+-------+-------------------------+
vagrant@devstack:~$ solum app delete ex1
usage: solum [-h] [--os-username OS_USERNAME] [--os-password OS_PASSWORD]
             [--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]
             [--os-auth-token OS_AUTH_TOKEN] [--solum-url SOLUM_URL]
             [--solum-api-version SOLUM_API_VERSION]
             {app,assembly,languagepack} action plan_uuid

positional arguments:
  {app,assembly,languagepack}
                        Target noun to act upon
  action Action to perform on resource
  plan_uuid Tenant/project-wide unique plan uuid or name

optional arguments:
  -h, --help show this help message and exit
  --os-username OS_USERNAME
                        Defaults to env[OS_USERNAME]
  --os-password OS_PASSWORD
                        Defaults to env[OS_PASSWORD]
  --os-tenant-name OS_TENANT_NAME
                        Defaults to env[OS_TENANT_NAME]
  --os-auth-url OS_AUTH_URL
                        Defaults to env[OS_AUTH_URL]
  --os-auth-token OS_AUTH_TOKEN
                        Defaults to env[OS_AUTH_TOKEN]
  --solum-url SOLUM_URL
                        Defaults to env[SOLUM_URL]
  --solum-api-version SOLUM_API_VERSION
                        Defaults to env[SOLUM_API_VERSION] or 1
delete
vagrant@devstack:~$ solum app delete f26af290-9645-48dc-b46b-78883f246975
usage: solum [-h] [--os-username OS_USERNAME] [--os-password OS_PASSWORD]
             [--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]
             [--os-auth-token OS_AUTH_TOKEN] [--solum-url SOLUM_URL]
             [--solum-api-version SOLUM_API_VERSION]
             {app,assembly,languagepack} action plan_uuid

positional arguments:
  {app,assembly,languagepack}
                        Target noun to act upon
  action Action to perform on resource
  plan_uuid Tenant/project-wide unique plan uuid or name

optional arguments:
  -h, --help show this help message and exit
  --os-username OS_USERNAME
                        Defaults to env[OS_USERNAME]
  --os-password OS_PASSWORD
                        Defaults to env[OS_PASSWORD]
  --os-tenant-name OS_TENANT_NAME
                        Defaults to env[OS_TENANT_NAME]
  --os-auth-url OS_AUTH_URL
                        Defaults to env[OS_AUTH_URL]
  --os-auth-token OS_AUTH_TOKEN
                        Defaults to env[OS_AUTH_TOKEN]
  --solum-url SOLUM_URL
                        Defaults to env[SOLUM_URL]
  --solum-api-version SOLUM_API_VERSION
                        Defaults to env[SOLUM_API_VERSION] or 1
delete
vagrant@devstack:~$ solum assembly list
+--------------------------------------+-------------------+-------------+--------+
| uuid | name | description | status |
+--------------------------------------+-------------------+-------------+--------+
| 1abd6398-aaae-4158-a4ac-13606e1cb3c9 | ex1 | None | READY |
| dbfc8999-d6ea-47c9-84a6-3b19b995640a | ghost_4_9_9_20_44 | None | READY |
+--------------------------------------+-------------------+-------------+--------+
vagrant@devstack:~$ solum assembly delete ex1
usage: solum [-h] [--os-username OS_USERNAME] [--os-password OS_PASSWORD]
             [--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]
             [--os-auth-token OS_AUTH_TOKEN] [--solum-url SOLUM_URL]
             [--solum-api-version SOLUM_API_VERSION]
             {app,assembly,languagepack} action assembly_uuid

positional arguments:
  {app,assembly,languagepack}
                        Target noun to act upon
  action Action to perform on resource
  assembly_uuid Assembly uuid or name

optional arguments:
  -h, --help show this help message and exit
  --os-username OS_USERNAME
                        Defaults to env[OS_USERNAME]
  --os-password OS_PASSWORD
                        Defaults to env[OS_PASSWORD]
  --os-tenant-name OS_TENANT_NAME
                        Defaults to env[OS_TENANT_NAME]
  --os-auth-url OS_AUTH_URL
                        Defaults to env[OS_AUTH_URL]
  --os-auth-token OS_AUTH_TOKEN
                        Defaults to env[OS_AUTH_TOKEN]
  --solum-url SOLUM_URL
                        Defaults to env[SOLUM_URL]
  --solum-api-version SOLUM_API_VERSION
                        Defaults to env[SOLUM_API_VERSION] or 1
delete
vagrant@devstack:~$ solum assembly delete 1abd6398-aaae-4158-a4ac-13606e1cb3c9
usage: solum [-h] [--os-username OS_USERNAME] [--os-password OS_PASSWORD]
             [--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]
             [--os-auth-token OS_AUTH_TOKEN] [--solum-url SOLUM_URL]
             [--solum-api-version SOLUM_API_VERSION]
             {app,assembly,languagepack} action assembly_uuid

positional arguments:
  {app,assembly,languagepack}
                        Target noun to act upon
  action Action to perform on resource
  assembly_uuid Assembly uuid or name

optional arguments:
  -h, --help show this help message and exit
  --os-username OS_USERNAME
                        Defaults to env[OS_USERNAME]
  --os-password OS_PASSWORD
                        Defaults to env[OS_PASSWORD]
  --os-tenant-name OS_TENANT_NAME
                        Defaults to env[OS_TENANT_NAME]
  --os-auth-url OS_AUTH_URL
                        Defaults to env[OS_AUTH_URL]
  --os-auth-token OS_AUTH_TOKEN
                        Defaults to env[OS_AUTH_TOKEN]
  --solum-url SOLUM_URL
                        Defaults to env[SOLUM_URL]
  --solum-api-version SOLUM_API_VERSION
                        Defaults to env[SOLUM_API_VERSION] or 1
delete

Revision history for this message
Adrian Otto (aotto) wrote :

About my environment:

I am using Devstack from the demo environment: https://wiki.openstack.org/wiki/Solum/Demo
I did a "git pull" in /opt/stack/python-solumclient" to run code from our Git master.

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-solumclient (master)

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

Changed in python-solumclient:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-solumclient (master)

Reviewed: https://review.openstack.org/93137
Committed: https://git.openstack.org/cgit/stackforge/python-solumclient/commit/?id=a80b5c0fa6ba7cff479e5936431a2c63788ad2db
Submitter: Jenkins
Branch: master

commit a80b5c0fa6ba7cff479e5936431a2c63788ad2db
Author: Arati Mahimane <email address hidden>
Date: Fri May 9 22:01:46 2014 +0000

    Delete assembly and plan by name as well as id.
    Fixes-bug: #1317975

    Change-Id: I1a991fbba8afa4137151f8af9a496731cabf2895

Changed in python-solumclient:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in python-solumclient:
status: Fix Committed → 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.