app-delete-not-deleting-app-for-failed-deployments

Bug #1557613 reported by Devdatta Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
New
High
Unassigned

Bug Description

Trying to delete an app that has encountered a deployment failure for some reason fails with following stack trace in solum-deployer.

2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher [-] Exception during message handling: The assemblies resource 3 could not be found.
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher incoming.message))
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _dispatch
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher File "/opt/stack/solum/solum/deployer/handlers/heat.py", line 353, in destroy_app
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher workflow.assembly)
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher File "/opt/stack/solum/solum/objects/sqlalchemy/models.py", line 128, in get_by_id
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher cls._raise_not_found(item_id)
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher File "/opt/stack/solum/solum/objects/sqlalchemy/models.py", line 208, in _raise_not_found
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher raise exception.ResourceNotFound(name=cls.__resource__, id=item_id)
2016-03-15 16:06:30.353 4890 ERROR oslo_messaging.rpc.dispatcher ResourceNotFound: The assemblies resource 3 could not be found.

The app is marked to be in 'DELETING' state.

vagrant@devstack:~$ solum app show nodejs-express
+------------------+---------------------------------------------------------------+
| Property | Value |
+------------------+---------------------------------------------------------------+
| app_url | None |
| entry_points | |
| description | Nodejs express. |
| created_at | 2016-03-14T17:24:37 |
| languagepack | nodejs |
| target_instances | 1 |
| ports | [80] |
| source | {u'repository': u'https://github.com/paulczar/example-nodejs- |
| | express.git', u'revision': u'master'} |
| trigger | [u'unittest', u'build', u'deploy'] |
| trigger_uuid | e8acdf0b-3e49-47ed-a503-92252c6658ee |
| id | d7fc44d5-c713-402e-902a-0ebc27e72fcb |
| name | nodejs-express |
+------------------+---------------------------------------------------------------+
'nodejs-express' workflows and their status:
+-------+--------------------------------------+----------+
| wf_id | id | status |
+-------+--------------------------------------+----------+
| 1 | 67525c70-203f-4950-adad-1be6e233e211 | DELETING |
+-------+--------------------------------------+----------+

Changed in solum:
milestone: none → next-mitaka
importance: Undecided → High
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.