| Summary: | Show duplicate message when adding cron cartridge to a HA scaling app which has two haproxy gears | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Meng Bo <bmeng> |
| Component: | Image | Assignee: | Ben Parees <bparees> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 2.x | CC: | bparees, 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: | 2014-01-30 00:53:47 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: | |
This can be reproduced on INT(devenv_4158). Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/b90e7fc1e4724070e56838bfec57fb23f0bb210c Bug 1044966 - Show duplicate message when adding cron cartridge to a HA scaling app which has two haproxy gears Issue fixed on devenv_4256.
Adding cron-1.4 to application 'php54s' ... 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.
|
Description of problem: Create scaling app and make the app HA via REST api. Then add the cron cartridge to this app. It will show the warning message twice in the output. Version-Release number of selected component (if applicable): devenv_4156 How reproducible: always Steps to Reproduce: 1. Create scaling app 2. Make the app HA via rest api /app_name/events -XPOST -d event=make-ha 3. Add the cron cartridge to the scaling app Actual results: The client message will show twice since there are two gears with haproxy cartridge. Adding cron-1.4 to application 'ruby19s' ... 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. 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. Expected results: The message should show only once. Additional info: Refer to this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1006712