Bug 1501274
| Summary: | pcs resource restart <bundle> <node> is not working | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Tomas Jelinek <tojeline> | ||||
| Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Ofer Blaut <oblaut> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 7.4 | CC: | abeekhof, cfeist, cluster-maint, cluster-qe, idevat, kgaillot, michele, mkrcmari, omular, rsteiger, tojeline | ||||
| Target Milestone: | rc | Keywords: | EasyFix | ||||
| Target Release: | 7.5 | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | pcs-0.9.161-1.el7 | Doc Type: | Bug Fix | ||||
| Doc Text: |
Cause:
The user tries to restart a bundle resource on one node only.
Consequence:
Pcs exits with an error saying only clone and master/slave resources support restarting on a specified node.
Fix:
Allow bundles to be restarted on a specified node.
Result:
It is now possible to specify a node on which a bundle resource should be restarted.
|
Story Points: | --- | ||||
| Clone Of: | 1489735 | Environment: | |||||
| Last Closed: | 2018-04-10 15:40:54 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: | 1489728, 1489735 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Tomas Jelinek
2017-10-12 10:14:31 UTC
Created attachment 1338225 [details]
proposed fix
Test:
1. Setup a httpd-bundle bundle resource with an apache resource in it:
# pcs resource show httpd-bundle
Bundle: httpd-bundle
Docker: image=pcmktest:http options=--log-driver=journald replicas=3
Network: host-netmask=24 ip-range-start=192.168.122.145
Port Mapping:
port=80 (httpd-port)
Storage Mapping:
options=rw source-dir-root=/root/docker/httpd-root target-dir=/var/www/html (httpd-root)
options=rw source-dir-root=/root/docker/httpd-logs target-dir=/etc/httpd/logs (httpd-logs)
Resource: apa (class=ocf provider=heartbeat type=apache)
Operations: monitor interval=10 timeout=20s (apa-monitor-interval-10)
start interval=0s timeout=40s (apa-start-interval-0s)
stop interval=0s timeout=60s (apa-stop-interval-0s)
2. Restart the bundle on one node:
# pcs resource restart httpd-bundle rh74-node2
Confirm the resource was restarted on the specified node only (logs, watch pcs status, etc.)
3. Restarting the inner resource causes restart of the whole bundle:
# pcs resource restart apa
Warning: using httpd-bundle... (if a resource is a clone, master/slave or bundle you must use the clone, master/slave or bundle name)
httpd-bundle successfully restarted
# pcs resource restart apa rh74-node2
Warning: using httpd-bundle... (if a resource is a clone, master/slave or bundle you must use the clone, master/slave or bundle name)
httpd-bundle successfully restarted
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0866 |