Bug 1044966 - Show duplicate message when adding cron cartridge to a HA scaling app which has two haproxy gears
Summary: Show duplicate message when adding cron cartridge to a HA scaling app which h...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Ben Parees
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-19 10:45 UTC by Meng Bo
Modified: 2015-05-15 00:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-30 00:53:47 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Meng Bo 2013-12-19 10:45:39 UTC
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

Comment 1 Liang Xia 2013-12-20 09:47:10 UTC
This can be reproduced on INT(devenv_4158).

Comment 3 openshift-github-bot 2014-01-21 23:46:11 UTC
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

Comment 4 Meng Bo 2014-01-22 03:19:31 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.