Bug 1462248
| Summary: | pcs should not allow or at least warn about a bundle with no IP address having an inner resource | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Tomas Jelinek <tojeline> | |
| Component: | pcs | Assignee: | Ondrej Mular <omular> | |
| Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 7.4 | CC: | abeekhof, cfeist, cluster-maint, cluster-qe, idevat, kgaillot, omular, rsteiger, tojeline | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | pcs-0.9.165-2.el7 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | 1447951 | |||
| : | 1578898 (view as bug list) | Environment: | ||
| Last Closed: | 2018-10-30 08:05:31 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: | ||||
|
Description
Tomas Jelinek
2017-06-16 13:30:15 UTC
When putting a resource into a bundle, pcs should check the bundle has an IP address defined. Similar check should be done when removing an IP address in the bundle update command. (In reply to Tomas Jelinek from comment #1) > When putting a resource into a bundle, pcs should check the bundle has an IP > address defined. Similar check should be done when removing an IP address in > the bundle update command. IP address or control port. Pacemaker can reach inside the container if it using the host's network (without its own IP address) and has pacemaker remote running on a distinct port. > It would be nice to see these resources in crm_mon output.
I disagree, it's not the right tool (clearly, since we have one for this purpose).
At most, a catch-all "You should go and run crm_verify now" could be added.
After Fix:
[ant ~] $ rpm -q pcs pcs-snmp
pcs-0.9.165-1.el7.x86_64
pcs-snmp-0.9.165-1.el7.x86_64
[ant ~] $ pcs resource bundle create B1 container docker image=pcs:test network host-netmask=24
[ant ~] $ pcs resource create R ocf:heartbeat:Dummy bundle B1
Error: Unknown report: RESOURCE_IN_BUNDLE_NOT_ACCESSIBLE info: {'inner_resource_id': 'R', 'bundle_id': 'B1'}, use --force to override
additional fix which actually makes --force work and translates the error to a comprehensible message: https://github.com/ClusterLabs/pcs/commit/6f6cce412538da12845576b018a3e6d7512f0b96 After Fix: [ant ~] $ rpm -q pcs pcs-0.9.165-2.el7.x86_64 [ant ~] $ pcs resource bundle create B1 container docker image=pcs:test network host-netmask=24 [ant ~] $ pcs resource create R ocf:heartbeat:Dummy bundle B1 Error: Resource 'R' will not be accessible by the cluster inside bundle 'B1', at least one of bundle options 'control-port' or 'ip-range-start' has to be specified, use --force to override [ant ~] $ pcs resource create R ocf:heartbeat:Dummy bundle B1 --force Warning: Resource 'R' will not be accessible by the cluster inside bundle 'B1', at least one of bundle options 'control-port' or 'ip-range-start' has to be specified 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:3066 |