Bug 889952
| Summary: | [fork][model refactor] Show incorrect prompt when getting cartridge's status with non-existent cartridge via REST API | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Wei Sun <wsun> |
| Component: | Master | Assignee: | Lili Nader <lnader> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.x | CC: | dmcphers, mfisher |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | fork_ami_refctr1_381 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-13 23:46:45 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: | |||
|
Description
Wei Sun
2012-12-24 06:33:22 UTC
This bug is not fixed on fork_ami_refctr1_373 ,so assign back it Result: [sunwei@dhcp-8-229 ~]$ curl -k -X GET -H 'Accept: application/xml' --user wsun:redhat https://ec2-23-22-23-181.compute-1.amazonaws.com/broker/rest/domains/wsunsun/applications/phpt/cartridges/mongodb-2.2?include=status_messages <?xml version="1.0" encoding="UTF-8"?> <response> <status>not_found</status> <type nil="true"></type> <data> <datum nil="true"></datum> </data> <messages> <message> <severity>error</severity> <text>Application 'phpt' not found for domain 'wsunsun'</text> <exit-code>101</exit-code> <field nil="true"></field> </message> </messages> <version>1.3</version> <supported-api-versions> <supported-api-version>1.0</supported-api-version> <supported-api-version>1.1</supported-api-version> <supported-api-version>1.2</supported-api-version> <supported-api-version>1.3</supported-api-version> </supported-api-versions> </response> [sunwei@dhcp-8-229 ~]$ rhc app show phpt Password: phpt @ http://phpt-wsunsun.dev.rhcloud.com/ (uuid: 50e63a142a5d891507000032) ============================================================================ Created: 2:10 AM Gear Size: small Git URL: ssh://50e63a142a5d891507000032.rhcloud.com/~/git/phpt.git/ SSH: 50e63a142a5d891507000032.rhcloud.com php-5.3 (PHP 5.3) ================= haproxy-1.4 (HAProxy 1.4) ========================= mysql-5.1 (MySQL Database 5.1) ============================== Connection URL: mysql://127.0.253.1:3306/ Database Name: phpt Password: ZPgUVt6Lz-1U Username: admin fixd in fork_ami_refctr1_381 verified in fork_ami_refctr1_381 Result: [sunwei@dhcp-8-229 dev]$ curl -k -X GET -H 'Accept: application/xml' --user wsun:redhat https://ec2-23-22-151-166.compute-1.amazonaws.com/broker/rest/domains/wsun1315/applications/phptest/cartridges/mongodb-2.2?include=status_messages <?xml version="1.0" encoding="UTF-8"?> <response> <status>not_found</status> <type nil="true"></type> <data> <datum nil="true"></datum> </data> <messages> <message> <severity>error</severity> <text>Cartridge 'mongodb-2.2' not found for application 'phptest'</text> <exit-code>129</exit-code> <field nil="true"></field> </message> </messages> <version>1.3</version> <supported-api-versions> <supported-api-version>1.0</supported-api-version> <supported-api-version>1.1</supported-api-version> <supported-api-version>1.2</supported-api-version> <supported-api-version>1.3</supported-api-version> </supported-api-versions> </response> |