Bug 1006712
Summary: | Show duplicate message when using "rhc cartridge status" to check Cron-1.4 status with scaling app | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Yan Du <yadu> |
Component: | Containers | Assignee: | Marek Mahut <mmahut> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 2.x | CC: | bmeng, lxia |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-10-17 13:28:31 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
Yan Du
2013-09-11 07:28:57 UTC
The duplicate message also appears when adding cron to a scalable app with multiple gears. Adding cron-1.4 to application 'jbeap1s' ... done cron-1.4 (Cron 1.4) ------------------- Scaling: x2 (minimum: 2, maximum: available) on small gears Use 'rhc env --help' to manage environment variable(s) on this cartridge and application. To schedule your scripts to run on a periodic basis, add the scripts to your application's .openshift/cron/{minutely,hourly,daily,weekly,monthly}/ directories (and commit and redeploy your application). Example: A script .openshift/cron/hourly/crony added to your application will be executed once every hour. Similarly, a script .openshift/cron/weekly/chronograph added to your application will be executed once every week. To schedule your scripts to run on a periodic basis, add the scripts to your application's .openshift/cron/{minutely,hourly,daily,weekly,monthly}/ directories (and commit and redeploy your application). Example: A script .openshift/cron/hourly/crony added to your application will be executed once every hour. Similarly, a script .openshift/cron/weekly/chronograph added to your application will be executed once every week. Moving this to Marek, since he seems to have clue why this is not a bug :-) Proposed pull request https://github.com/openshift/origin-server/pull/3644 The duplicate status message cannot be easily fixed, given we want to report status of each gear and this can be different. However, I've added the gear uuid for the status message to not confuse the end-user and make it easy to find what gear is affected if needed. The duplicate messages at installation of cron are fixed by checking if we're the web_proxy gear and if so, showing the message. Once this is merged, I will put it ON_QA. Merged into upstream. test on devenv_3810 [root@Daphne test]# rhc cartridge add -a j7s -c cron Using cron-1.4 (Cron 1.4) for 'cron' Adding cron-1.4 to application 'j7s' ... done cron-1.4 (Cron 1.4) ------------------- Scaling: x2 (minimum: 2, maximum: available) on small gears To schedule your scripts to run on a periodic basis, add the scripts to your application's .openshift/cron/{minutely,hourly,daily,weekly,monthly}/ directories (and commit and redeploy your application). Example: A script .openshift/cron/hourly/crony added to your application will be executed once every hour. Similarly, a script .openshift/cron/weekly/chronograph added to your application will be executed once every week. [root@Daphne test]# rhc cartridge status -a j7s -c cron-1.4 RESULT: cron scheduling service is enabled for gear 523e8cdaae4b85c30d00008e cron scheduling service is enabled for gear 320656102067919214608384 according to #comment3, move to verified. |