Bug 911322
| Summary: | JBoss Tools Plugin: Error message during removing an embedded cartridge | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Andre Dietisheim <adietish> |
| Component: | Master | Assignee: | Lili Nader <lnader> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.x | CC: | abhgupta, adietish, admiller, anagy, dmcphers, jinzhang, mfisher, mshao, rmillner |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 838611 | Environment: | |
| Last Closed: | 2013-03-15 14:09:21 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
Andre Dietisheim
2013-02-14 17:55:56 UTC
As per 13th of Feb 2013 this issue is occurring again: Do As per yesterday this issue can be reproduced again: curl -k -H "Accept: application/xml; version=1.0" --user "<username>:<password>" https://openshift.redhat.com/broker/rest/domains/<domain>/applications/<application-name>/cartridges -X GET And you get the application type reported in the cartridges even though we're talking protocol 1.0: <?xml version="1.0" encoding="UTF-8"?> <response> <status>ok</status> <type>cartridges</type> <data> <cartridge> <name>jbossas-7</name> <type>standalone</type> <status-messages nil="true"></status-messages> <properties> </properties> </cartridge> </data> <messages/> <version>1.0</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> The fix for this issue back when it appeared for the first time, was to report embedded cartridges only when requesting /applications/<application-name>/cartridges while in protocol 1.0. Protocol 1.1 on the other hand would report the application-type (standalone-cartridge) and all the embedded cartridges. Andre Dietisheim <adietish> made a comment on jira JBIDE-13561 There is a regression in OpenShift that leaks behavior from protocol 1.1 to 1.0. All existing JBDS/JBT users are affected: If you list the cartridges of one of your applications {code} curl -k -H "Accept: application/xml; version=1.0" --user "USERNAME:PASSWORD" https://openshift.redhat.com/broker/rest/domains/myops/applications/kitch/cartridges -X GET {code} You get the application type (and embedded cartridges there are) {code} <?xml version="1.0" encoding="UTF-8"?> <response> <status>ok</status> <type>cartridges</type> <data> <cartridge> <name>jbossas-7</name> <type>standalone</type> <status-messages nil="true"></status-messages> <properties> </properties> </cartridge> </data> <messages/> <version>1.0</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> {code} In https://bugzilla.redhat.com/show_bug.cgi?id=838611 this request was fixed to only return embeddable cartridges in protocol 1.0, not the standalone/application-type. QE will verify this bug when the pull request get merged successfully. fixed in staging https://github.com/openshift/origin-server/pull/1399 Verified this bug on devenv-stage-296 as below: Verified build: devenv-stage-296 Eclipse Juno JBoss OpenShift Tools - 2.4.0.Final-v20130218-1429-B116 Verified steps: 1. Create an OpenShift Application or import an existing one in Eclipse 2. Embed a cartridge for this app like switch-yard, mongodb and etc. Actual results: The error is not shown anymore, the cartridges can be added to the app successfully. Using rest api to get cartridges as below: # curl -k -H 'Accept: application/xml; version=1.0' --user jinzhang+3:redhat 'https://184.72.86.133/broker/rest/domains/stg296dm1/applications/jbsas1app1/cartridges/' -X GET <?xml version="1.0" encoding="UTF-8"?> <response> <status>ok</status> <type>cartridges</type> <data/> <messages/> <version>1.0</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> Updated more information for above comments, it worked well for both add and remove cartridges for apps. Andre Dietisheim <adietish> made a comment on jira JBIDE-13561 PROD was fixed, it does not show the application type (cartridge) in the list of embedded cartridges any more: !cartridge-type-not-embedded.png! Closing this watcher issue. Andre Dietisheim <adietish> updated the status of jira JBIDE-13561 to Resolved Stefan Bunciak <sbunciak> updated the status of jira JBIDE-13561 to Closed Stefan Bunciak <sbunciak> made a comment on jira JBIDE-13561 Verified in JBoss Developer Studio Version: 7.0.0.Alpha1 Build id: Alpha1-v20130225-0422-B62 Build date: 20130225-0422 This started to show up again on INT: curl -k --user "<USER>:<PASS>" -H "Accept: application/xml; version=1.0" https://int.openshift.redhat.com/broker/rest/domains/freaky/applications/1362496644059/cartridges -X GET <?xml version="1.0" encoding="UTF-8"?> <response> <status>ok</status> <type>cartridges</type> <data> <cartridge> <name>jbossas-7</name> <type>standalone</type> <status-messages nil="true"></status-messages> <properties> </properties> </cartridge> </data> <messages/> <version>1.0</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> Lili, can you make sure test cases get added for this case. Also note the build in INT as per admiller's note is from last Friday. Given when this fix was made I don't think that's the issue here. -Dan The fix for this bug was reverted when I reverted the US2448 (alias with SNI). I am working on adding it back in. Lili Commits pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/362768aea42cfb0b5c22efae3fed776f9652394a Bug 911322 https://github.com/openshift/origin-server/commit/10a7bfbedc5a4b031285331da0f8e6ffac257dd7 Merge pull request #1561 from lnader/master Bug 911322 Verified this bug on devenv-2905 as below: Verified build: devenv-2905 Eclipse Juno JBoss OpenShift Tools - 2.4.0.Final-v20130302-0204-B128 Verified steps: 1. Create an OpenShift Application or import an existing one in Eclipse 2. Embed a cartridge for this app like switch-yard, mongodb and etc. 3. Remove the embeded cartridges. Actual results: The error is not shown anymore, the cartridges can be added and removed from the app successfully. Using rest api to get cartridges as below: # curl -k -H "Accept: application/xml; version=1.0" --user "jinzhang+4:redhat" https://ec2-54-234-157-88.compute-1.amazonaws.com/broker/rest/domains/dmt4new/applications/j27s/cartridges -X GET <?xml version="1.0" encoding="UTF-8"?> <response> <status>ok</status> <type>cartridges</type> <data/> <messages/> <version>1.0</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> I can confirm, I dont see this happening any more when using INT |