App update on the cli is broken

Bug #1612977 reported by Swati Dewan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-solumclient
New
Undecided
Unassigned

Bug Description

The app update command on the cli is broken. It throws the error: "ERROR: Your request could not be handled because of a problem in the server." On taking a look at solum-api logs, this is the stack trace I see:

192.168.122.29 - - [09/Aug/2016 02:44:41] "GET /v1/apps HTTP/1.1" 200 1976 0.037685
2016-08-09 02:44:41.166 14350 ERROR wsme.api [-] Server-side error: "'repo_token'". Detail:
Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/wsmeext/pecan.py", line 84, in callfunction
    result = f(self, *args, **kwargs)

  File "/opt/stack/solum/solum/api/controllers/v1/app.py", line 72, in patch
    updated_app = handler.patch(self._id, data)

  File "/opt/stack/solum/solum/api/handlers/app_handler.py", line 55, in patch
    if data_dict['repo_token']:

KeyError: 'repo_token'

2016-08-09 02:44:41.166 14350 ERROR solum.common.exception [-] 8defa722-0b2a-462f-a2a2-715c0c055bf6:'repo_token'
192.168.122.29 - - [09/Aug/2016 02:44:41] "PATCH /v1/apps/46422784-c22b-4f1c-8b67-2f6ba40d79a8 HTTP/1.1" 500 388 0.014462

Also, using the solum app help command on the cli, help text for the update command is not shown.

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.