Bug 1104140
| Summary: | It will not validate the deployment type when do app deploy via REST API | |||
|---|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Meng Bo <bmeng> | |
| Component: | Master | Assignee: | Rory Thrasher <rthrashe> | |
| Status: | CLOSED WONTFIX | QA Contact: | Wei Sun <wsun> | |
| Severity: | low | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 2.x | CC: | aos-bugs, jokerman, mmccomas, xtian | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1308739 (view as bug list) | Environment: | ||
| Last Closed: | 2017-05-31 18:22:11 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: | ||||
| Bug Blocks: | 1308739 | |||
|
Description
Meng Bo
2014-06-03 11:24:42 UTC
Commits pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/8a3183b4b860c9b1de530647ebc6aa6e168d4ec4 deployments_controller.rb: Adds checks for app deployment mode via REST Bug 1104140 BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1104140 Adds additional checks to verify that the app is in the correct deployment mode when deploying via the REST api. Will throw a 422 error when attempting to binary deploy in git mode or vice versa. Adds deployment types to relevant REST api tests to specify deployment mode. https://github.com/openshift/origin-server/commit/db254f5ee9cd758774427a42814f183932541571 Merge pull request #6320 from thrasher-redhat/bug1104140 Merged by openshift-bot QA, Please verify that this bug has been fixed. 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. <messages>
<message>
<severity>error</severity>
<text>The git ref provided is not compatible with the app deployment type, 'binary'.</text>
<exit-code>-1</exit-code>
<field>ref</field>
<index nil="true"></index>
</message>
</messages>
<messages>
<message>
<severity>error</severity>
<text>The binary artifact provided is not compatible with the app deployment type, 'git'.</text>
<exit-code>-1</exit-code>
<field>artifact_url</field>
<index nil="true"></index>
</message>
</messages>
Issue has been fixed, the error message shown when deploying with incorrect type.
We apologize, however, we do not plan to address this report at this time. The majority of our active development is for the v3 version of OpenShift. If you would like for Red Hat to reconsider this decision, please reach out to your support representative. We are very sorry for any inconvenience this may cause. |