Bug 981528
| Summary: | Can not reload postgresql-8.4/postgresql-9.2 after stopping DB cartridge with non-scablable app | |||
|---|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Wei Sun <wsun> | |
| Component: | Containers | Assignee: | Hiro Asari <hasari> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 2.x | CC: | hasari, jkeck, mpatel, yadu | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1010846 (view as bug list) | Environment: | ||
| Last Closed: | 2013-07-22 15:21: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: | ||
| Embargoed: | ||||
| Bug Depends On: | 981780 | |||
| Bug Blocks: | 980739, 1010846 | |||
it is ok with scalable app [root@Daphne test]# rhc cartridge stop -a j2s -c postgresql-9.2 RESULT: postgresql-9.2 stopped [root@Daphne test]# rhc cartridge reload -a j2s -c postgresql-9.2 RESULT: postgresql-9.2 reloaded The fact that the scalable app case returns the "success" message is actually a bug in CLI. (See https://bugzilla.redhat.com/show_bug.cgi?id=981780) 'pg_ctl reload' will fail when postgresql is not running, so we need to avoid doing that. This is addressed by https://github.com/openshift/origin-server/pull/2993. However, the PR won't address this bug entirely, since due to a couple of issues indicated above. Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/ee8816e280c1aeead2351943cce7b8d2e3884f06 Bug 981528 PostgreSQL can reload the config only when it's running. *** Bug 979442 has been marked as a duplicate of this bug. *** Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/3273645be4a4455e733f629369a933a12a127c76 Bug 981528 When the cartridge is down, it will be sent 'force-reload', not 'reload'. Respond to that, and communicate with the user that it is invalid. Use client_result for now, so that the user can see the message See https://bugzilla.redhat.com/show_bug.cgi?id=981780 bx bin/rhc app create rack ruby-1.9 postgresql-9.2 bx bin/rhc cartridge stop postgresql-9.2 -a rack bx bin/rhc cartridge reload postgresql-9.2 -a rack bx bin/rhc app stop postgresql-9.2 -a rack bx bin/rhc cartridge reload postgresql-9.2 -a rack both 'reload' should result in: $ bx bin/rhc cartridge reload postgresql-9.2 -a rack Reloading postgresql-9.2 ... done 'reload' is valid only when the database is running https://github.com/openshift/origin-server/pull/3042 should do this for good. Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/187bae81024adcb4bd53b7334bc126152b7626d3 Bug 981528 reload/force-reload depends on application status, so both can be sent to the cartridge Verified on INT(devenv_3481) Result: 1.for postgresql-8.4 [sunwei@dhcp-8-229 ~]$ rhc stop-cartridge postgresql-8.4 -a perlt Stopping postgresql-8.4 ... done [sunwei@dhcp-8-229 ~]$ rhc reload-cartridge postgresql-8.4 -a perlt Reloading postgresql-8.4 ... done 'reload' is valid only when the database is running [sunwei@dhcp-8-229 ~]$ rhc status-cartridge postgresql-8.4 -a perlt RESULT: Postgres is stopped 2.for postgresql-9.2 [sunwei@dhcp-8-229 ~]$ rhc stop-cartridge postgresql-9.2 -a perlt Stopping postgresql-9.2 ... done [sunwei@dhcp-8-229 ~]$ rhc status-cartridge postgresql-9.2 -a perlt RESULT: Postgres is stopped [sunwei@dhcp-8-229 ~]$ rhc reload-cartridge postgresql-9.2 -a perlt Reloading postgresql-9.2 ... done 'reload' is valid only when the database is running [sunwei@dhcp-8-229 ~]$ rhc status-cartridge postgresql-9.2 -a perlt RESULT: Postgres is stopped |
Description of problem: After stopping postgresql-8.4/postgresql-9.2 cartridge,tried to reload them,but it failed.It returned some error messages,like Unable to complete the requested operation due to: Failed to correctly execute all parallel operations Version-Release number of selected component (if applicable): devenv_3449 How reproducible: Always Steps to Reproduce: 1.Create an application 2.Add postgresql-8.4/postgresql-9.2 3.Stop postgresql-8.4/postgresql-9.2 4.Reload postgresql-8.4/postgresql-9.2 Actual results: openshift@openshift-ubuntu:~$ rhc reload-cartridge postgresql-9.2 -a eapt Unable to complete the requested operation due to: Failed to correctly execute all parallel operations - --DEBUG-- Failed to execute: 'control reload' for /var/lib/openshift/41d9221ce51e11e28abc22000aa43651/postgresql pg_ctl: PID file "/var/lib/openshift/41d9221ce51e11e28abc22000aa43651/postgresql/data/postmaster.pid" does not exist Is server running? --RESULT-- --MESSAGE-- --ERROR-- --APP INFO-- --CART COMMANDS-- --CART PROPERTIES-- {} --DATA-- --EXIT CODE-- 1 --USER ACTIONABLE-- false . Reference ID: cd54f321c881dcadfcccd1ad019eaaf6 Expected results: openshift@openshift-ubuntu:~$ rhc reload-cartridge postgresql-9.2 -a eapt RESULT: postgresql-9.2 reloaded Additional info: If db cartridge is started,can reload the db cartridge