| Summary: | Extra info "cron scheduling service is already disabled" show when restart an already stopped cron in app. | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Liang Xia <lxia> |
| Component: | oc | Assignee: | Fabiano Franz <ffranz> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.x | CC: | bhatiam, mmahut |
| 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:48:29 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: | |
|
Description
Liang Xia
2013-08-27 06:56:35 UTC
Created a pull request for this bug, https://github.com/openshift/origin-server/pull/3517 Can you please try if this is working for you? Tested on devenv_3726, when restarting an stopped cron, message "Restarting cron-1.4 ... done" show as expected, and no unnecessary messages. But when starting an started cron or stopping an stopped cron, still showing "cron scheduling service is already enabled/disabled" which is unnecessary. Hoping this also get fixed to consistent with the behavior of restart. so just move it back to assigned. Steps and results: # rhc cartridge status cron-1.4 --app jbossews20TM08301001 RESULT: cron scheduling service is enabled # rhc cartridge start cron-1.4 --app jbossews20TM08301001 Starting cron-1.4 ... done cron scheduling service is already enabled <=========== # rhc cartridge status cron-1.4 --app jbossews20TM08301001 RESULT: cron scheduling service is enabled # rhc cartridge stop cron-1.4 --app jbossews20TM08301001 Stopping cron-1.4 ... done # rhc cartridge stop cron-1.4 --app jbossews20TM08301001 Stopping cron-1.4 ... done cron scheduling service is already disabled <=========== # rhc cartridge status cron-1.4 --app jbossews20TM08301001 RESULT: cron scheduling service is disabled # rhc cartridge restart cron-1.4 --app jbossews20TM08301001 Restarting cron-1.4 ... done # rhc cartridge restart cron-1.4 --app jbossews20TM08301001 Restarting cron-1.4 ... done # rhc cartridge status cron-1.4 --app jbossews20TM08301001 RESULT: cron scheduling service is enabled # rhc cartridge reload cron-1.4 --app jbossews20TM08301001 Reloading cron-1.4 ... done # rhc cartridge reload cron-1.4 --app jbossews20TM08301001 Reloading cron-1.4 ... done # rhc cartridge status cron-1.4 --app jbossews20TM08301001 RESULT: cron scheduling service is enabled I think this is an expected message. It communicates to the end user that the requested action did not happen. If the service is started, we try to start it but we did not as it is already running. Same, if the service is stopped and the user requests to stop it again, we tell him there is no action to be done. I think this is important to distinguish as the user can have a false impression that he started a stopped application even if the application was already running and no action happened. What I did fix with my commit is a situation when we try to stop an already stopped service, which is unnecessary. Does it makes sense? Yes, I agree it is acceptable to leave the messages here. Why moving it back to assigned as I just want it to be consitent with restart and other cartridges' behaviour. I'll move it to verified once it is on-qa if you persist that the messages should be there. List several other cartridges' behavior for your reference: ========================================================== rhc cartridge status mongodb-2.2 --app jbossews20TM08301559 RESULT: MongoDB is running rhc cartridge start mongodb-2.2 --app jbossews20TM08301559 Starting mongodb-2.2 ... done rhc cartridge start mongodb-2.2 --app jbossews20TM08301559 Starting mongodb-2.2 ... done rhc cartridge status mongodb-2.2 --app jbossews20TM08301559 RESULT: MongoDB is running rhc cartridge stop mongodb-2.2 --app jbossews20TM08301559 Stopping mongodb-2.2 ... done rhc cartridge stop mongodb-2.2 --app jbossews20TM08301559 Stopping mongodb-2.2 ... done rhc cartridge status mongodb-2.2 --app jbossews20TM08301559 RESULT: MongoDB is stopped rhc cartridge restart mongodb-2.2 --app jbossews20TM08301559 Restarting mongodb-2.2 ... done rhc cartridge restart mongodb-2.2 --app jbossews20TM08301559 Restarting mongodb-2.2 ... done rhc cartridge status mongodb-2.2 --app jbossews20TM08301559 RESULT: MongoDB is running rhc cartridge reload mongodb-2.2 --app jbossews20TM08301559 Reloading mongodb-2.2 ... done rhc cartridge reload mongodb-2.2 --app jbossews20TM08301559 Reloading mongodb-2.2 ... done rhc cartridge status mongodb-2.2 --app jbossews20TM08301559 RESULT: MongoDB is running ========================================================== rhc cartridge status mysql-5.1 --app jbossews20TM08301559 RESULT: MySQL is running rhc cartridge start mysql-5.1 --app jbossews20TM08301559 Starting mysql-5.1 ... done rhc cartridge start mysql-5.1 --app jbossews20TM08301559 Starting mysql-5.1 ... done rhc cartridge status mysql-5.1 --app jbossews20TM08301559 RESULT: MySQL is running rhc cartridge stop mysql-5.1 --app jbossews20TM08301559 Stopping mysql-5.1 ... done rhc cartridge stop mysql-5.1 --app jbossews20TM08301559 Stopping mysql-5.1 ... done rhc cartridge status mysql-5.1 --app jbossews20TM08301559 RESULT: MySQL is stopped rhc cartridge restart mysql-5.1 --app jbossews20TM08301559 Restarting mysql-5.1 ... done rhc cartridge restart mysql-5.1 --app jbossews20TM08301559 Restarting mysql-5.1 ... done rhc cartridge status mysql-5.1 --app jbossews20TM08301559 RESULT: MySQL is running rhc cartridge reload mysql-5.1 --app jbossews20TM08301559 Reloading mysql-5.1 ... done rhc cartridge reload mysql-5.1 --app jbossews20TM08301559 Reloading mysql-5.1 ... done rhc cartridge status mysql-5.1 --app jbossews20TM08301559 RESULT: MySQL is running ============================================================= rhc cartridge status phpmyadmin-4 --app jbossews20TM08301559 RESULT: PHPMyAdmin is running rhc cartridge start phpmyadmin-4 --app jbossews20TM08301559 Starting phpmyadmin-4 ... done rhc cartridge start phpmyadmin-4 --app jbossews20TM08301559 Starting phpmyadmin-4 ... done rhc cartridge status phpmyadmin-4 --app jbossews20TM08301559 RESULT: PHPMyAdmin is running rhc cartridge stop phpmyadmin-4 --app jbossews20TM08301559 Stopping phpmyadmin-4 ... done rhc cartridge stop phpmyadmin-4 --app jbossews20TM08301559 Stopping phpmyadmin-4 ... done rhc cartridge status phpmyadmin-4 --app jbossews20TM08301559 RESULT: PHPMyAdmin is either stopped or inaccessible rhc cartridge restart phpmyadmin-4 --app jbossews20TM08301559 Restarting phpmyadmin-4 ... done rhc cartridge restart phpmyadmin-4 --app jbossews20TM08301559 Restarting phpmyadmin-4 ... done rhc cartridge status phpmyadmin-4 --app jbossews20TM08301559 RESULT: PHPMyAdmin is running rhc cartridge reload phpmyadmin-4 --app jbossews20TM08301559 Reloading phpmyadmin-4 ... done rhc cartridge reload phpmyadmin-4 --app jbossews20TM08301559 Reloading phpmyadmin-4 ... done rhc cartridge status phpmyadmin-4 --app jbossews20TM08301559 RESULT: PHPMyAdmin is running As per comment 3 the current behavior is acceptable. Please verify. (In reply to Marek Mahut from comment #3) > I think this is an expected message. It communicates to the end user that > the requested action did not happen. Move to verified per comment #3, #4. |