app-patch-functionaltest-failure

Bug #1661687 reported by Devdatta Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
Fix Released
Undecided
Unassigned

Bug Description

Functional test for application patching is failing.

Error logs available at:

http://logs.openstack.org/70/428670/1/check/gate-solum-devstack-dsvm-ubuntu-xenial/5031f73/console.html#_2017-02-03_14_46_45_209475

--- Client-side error log ---

2017-02-03 14:46:44.578441 | 2017-02-03 14:46:44.578 |
2017-02-03 14:46:44.579619 | 2017-02-03 14:46:44.579 | ======================================================================
2017-02-03 14:46:44.581007 | 2017-02-03 14:46:44.580 | FAIL: functionaltests.api.v1.test_app.TestAppController.test_app_patch
2017-02-03 14:46:44.582189 | 2017-02-03 14:46:44.581 | ----------------------------------------------------------------------
2017-02-03 14:46:44.583583 | 2017-02-03 14:46:44.583 | _StringException: Traceback (most recent call last):
2017-02-03 14:46:44.584787 | 2017-02-03 14:46:44.584 | File "/opt/stack/new/solum/functionaltests/api/v1/test_app.py", line 96, in test_app_patch
2017-02-03 14:46:44.585941 | 2017-02-03 14:46:44.585 | headers={'content-type': 'application/json'})
2017-02-03 14:46:44.587159 | 2017-02-03 14:46:44.586 | File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 323, in patch
2017-02-03 14:46:44.588498 | 2017-02-03 14:46:44.588 | return self.request('PATCH', url, extra_headers, headers, body)
2017-02-03 14:46:44.589748 | 2017-02-03 14:46:44.589 | File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 664, in request
2017-02-03 14:46:44.591069 | 2017-02-03 14:46:44.590 | self._error_checker(resp, resp_body)
2017-02-03 14:46:44.592326 | 2017-02-03 14:46:44.591 | File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 827, in _error_checker
2017-02-03 14:46:44.593489 | 2017-02-03 14:46:44.593 | message=message)
2017-02-03 14:46:44.594664 | 2017-02-03 14:46:44.594 | tempest.lib.exceptions.ServerFault: Got server fault
2017-02-03 14:46:44.595919 | 2017-02-03 14:46:44.595 | Details: {"debuginfo": null, "faultcode": "Server", "faultstring": "Your request could not be handled because of a problem in the server. Error Correlation id is: 1281cb07-1790-4fac-9250-52fe2f9d431c"}
2017-02-03 14:46:44.597015 | 2017-02-03 14:46:44.596 |
2017-02-03 14:46:44.598226 | 2017-02-03 14:46:44.597 | -------------------- >> begin captured logging << --------------------
2017-02-03 14:46:44.599795 | 2017-02-03 14:46:44.598 | tempest.manager: WARNING: tempest.manager.get_auth_provider is not a stable interface and as such it should not imported directly. It will be removed as the client manager becomes available in tempest.lib.

--- Server-side error log ---

10.24.68.230 - - [03/Feb/2017 14:44:46] "POST /v1/apps HTTP/1.1" 201 1666 0.112706
(12545) accepted ('10.24.68.230', 48582)
2017-02-03 14:44:46.025 12545 ERROR wsme.api [req-8175669e-4ac0-40b6-9fce-9533fc189f14 - - - - -] Server-side error: "'repo_token'". Detail:
Traceback (most recent call last):

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

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

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

KeyError: 'repo_token'

2017-02-03 14:44:46.025 12545 ERROR solum.common.exception [req-8175669e-4ac0-40b6-9fce-9533fc189f14 - - - - -] 1281cb07-1790-4fac-9250-52fe2f9d431c:'repo_token'
10.24.68.230 - - [03/Feb/2017 14:44:46] "PATCH /v1/apps/5783947f-d067-4239-b299-98b930aa2283 HTTP/1.1" 500 382 0.010072
(12545) accepted ('10.24.68.230', 48584)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on solum (master)

Change abandoned by devdatta-kulkarni (<email address hidden>) on branch: master
Review: https://review.openstack.org/428819
Reason: Changes made in this patch have been subsumed by the following patch:

https://review.openstack.org/#/c/428670/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to solum (master)

Reviewed: https://review.openstack.org/428670
Committed: https://git.openstack.org/cgit/openstack/solum/commit/?id=fdd608d15d1282b65ac1c18d77976a1f03070fe1
Submitter: Jenkins
Branch: master

commit fdd608d15d1282b65ac1c18d77976a1f03070fe1
Author: zhurong <email address hidden>
Date: Fri Feb 3 17:50:35 2017 +0800

    Fixing functional tests

    - Fix dsvm jobs can not find the role error
    - Adding attribute check when de-referencing plan
    - Adding 'repo_token' in the sample app data

    Co-authored-by: Devdatta Kulkarni <email address hidden>

    Closes-Bug: #1661687

    Change-Id: Ic6fa02878fdd56c815c1e0d3c5fa3694dd3b95b8

Changed in solum:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to solum (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/429599

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

This issue was fixed in the openstack/solum 5.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to solum (stable/newton)

Reviewed: https://review.openstack.org/429599
Committed: https://git.openstack.org/cgit/openstack/solum/commit/?id=31beedb56302617b0b2b481a31a7148e63870bee
Submitter: Jenkins
Branch: stable/newton

commit 31beedb56302617b0b2b481a31a7148e63870bee
Author: zhurong <email address hidden>
Date: Fri Feb 3 17:50:35 2017 +0800

    Fixing functional tests

    - Fix dsvm jobs can not find the role error
    - Adding attribute check when de-referencing plan
    - Adding 'repo_token' in the sample app data

    Co-authored-by: Devdatta Kulkarni <email address hidden>

    Closes-Bug: #1661687

    Change-Id: Ic6fa02878fdd56c815c1e0d3c5fa3694dd3b95b8

tags: added: in-stable-newton
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.