Error: "Unknown argument" while accessing git trigger
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Solum |
Fix Released
|
High
|
Arati Mahimane |
Bug Description
Following problem was identified during end to end testing of the git trigger workflow:
When we do a git push, the git webhook sends a POST to the trigger with a payload.
However, some of the payload fields cannot be recognized by wsme, which resulted in a Client side Unknown argument error.
To resolve this issue, I added the ignore_
However, this resulted in another error in wsme - ‘kw’ referenced before assignment.
Found a bug in wsme (the ‘kw’ variable is returned before it is assigned) The bug can be fixed by initializing the variable before it is returned.
We discussed several approaches to resolve this problem:
1) Create a bug in wsme and submit a patch, which fixes the bug. However, this means that we will have a dependency on wsme since we do not know when it will be merged to upstream. (Handling this in https:/
2) Keep our own copy of wsme on the vagrant vm. This will break the trigger workflow if solum is installed on some other environment.
3) Ignore the payload on the git side and do not send the payload to the solum API.
4) Don’t use wsme for the trigger workflow. Have a separate API endpoint for trigger since the POST request is going to be an unauthenticated request.
We have decided to go ahead with Approach 4. I will be submit a WIP patch for this.
description: | updated |
summary: |
- Fix issue in git trigger workflow + Error: "Unknown argument" while accessing git trigger |
tags: | added: git-trigger-wsme-bug |
tags: | added: errors |
Changed in solum: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/88614
Review: https:/