Bug 1308739
Summary: | It will not validate the deployment type when do app deploy via REST API | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Rory Thrasher <rthrashe> |
Component: | Master | Assignee: | Rory Thrasher <rthrashe> |
Status: | CLOSED ERRATA | QA Contact: | weiwei jiang <wjiang> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 2.2.0 | CC: | aos-bugs, bmeng, jokerman, mmccomas, wjiang, wsun, xtian |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rubygem-openshift-origin-controller-1.38.5.1-1.el6op | Doc Type: | Bug Fix |
Doc Text: |
Apps have a deploy mode that can be either binary or git. When attempting to deploy via the REST API, this deploy mode was not checked, allowing users to deploy using the incorrect method. The REST API will now check the git deploy mode and return an error if the deployment attempt is not using the correct mode.
|
Story Points: | --- |
Clone Of: | 1104140 | Environment: | |
Last Closed: | 2016-03-22 16:54:50 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1104140 | ||
Bug Blocks: |
Description
Rory Thrasher
2016-02-15 22:12:43 UTC
Checked with Puddle: http://etherpad.corp.redhat.com/puddle-2-2-2016-02-19. 1. When attempting to binary deploy via the rest API while in git deployment mode (default mode), there should be a 422 error similar to "The binary artifact provided is not compatible with the app deployment type, git". 2. When attempting to git deploy via the rest API while in binary deployment mode, there should be a 422 error similar to "The git ref provided is not compatible with the app deployment type, binary". 3. When attempting to git deploy in git deployment mode or binary deploy in binary deployment mode, the deployment should succeed as normal. All as expected result. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-0489.html |