ClusterLabs / ClusterLabs/resource-agents

Unable to create Resource in docker container

Open
#615 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
519
Forks
608
Avg merge
6d 1h
Merged PRs (30d)
7

Description

Hello,

I am not sure if you support docker containers yet, any help here is appreciated. Probably, I need an alternative to add an IP address using the same (or similar) commands.

``` bash
SCENARIO
box80 172.17.0.80 (first node of cluster)
box90 172.17.0.90 (second node of cluster)
```

Current Status of Cluster

``` bash
[root@box80 /]# crm configure show
node box80
node box90
property cib-bootstrap-options: \
stonith-enabled=false \
dc-version=1.1.11-97629de \
cluster-infrastructure="classic openais (with plugin)" \
expected-quorum-votes=2 \
no-quorum-policy=ignore
[root@box80 /]#
[root@box80 /]# crm status
Last updated: Sun May 17 06:19:49 2015
Last change: Sun May 17 06:18:13 2015
Stack: classic openais (with plugin)
Current DC: box90 - partition with quorum
Version: 1.1.11-97629de
2 Nodes configured, 2 expected votes
0 Resources configured

Online: [ box80 box90 ]
[root@box80 /]#
```

When I try to add an IP resource, it fails.

``` bash
[root@box80 /]# crm configure primitive ClusterIP ocf:heartbeat:IPaddr2 params ip=172.17.0.85 cidr_netmask="16" op monitor interval="30s"
[root@box80 /]# crm status
Last updated: Sun May 17 06:24:04 2015
Last change: Sun May 17 06:23:48 2015
Stack: classic openais (with plugin)
Current DC: box90 - partition with quorum
Version: 1.1.11-97629de
2 Nodes configured, 2 expected votes
1 Resources configured

Online: [ box80 box90 ]

Failed actions:
ClusterIP_start_0 on box90 'unknown error' (1): call=6, status=complete, last-rc-change='Sun May 17 06:23:48 2015', queued=0ms, exec=44ms
ClusterIP_start_0 on box80 'unknown error' (1): call=6, status=complete, last-rc-change='Sun May 17 06:23:48 2015', queued=0ms, exec=40ms
[root@box80 /]#
```

These are the relevant logs

``` bash
[root@box80 /]# tailf /var/log/cluster/corosync.log
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Forwarding cib_apply_diff operation for section 'all' to master (origin=local/cibadmin/2)
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: --- 0.9.2 2
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: +++ 0.11.0 f61e4ae2486961ccd6e043288cb32a9b
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: + /cib: @epoch=11, @num_updates=0
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++ /cib/configuration/resources:
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_apply_diff operation for section 'all': OK (rc=0, origin=box80/cibadmin/2, version=0.11.0)
May 17 06:23:48 [161] box80 lrmd: info: process_lrmd_get_rsc_info: Resource 'ClusterIP' not found (0 active resources)
May 17 06:23:48 [161] box80 lrmd: info: process_lrmd_rsc_register: Added 'ClusterIP' to the rsc list (1 active resources)
May 17 06:23:48 [164] box80 crmd: info: do_lrm_rsc_op: Performing key=4:2:7:b0e5a179-8a24-4936-996a-fb0eb88cb2d6 op=ClusterIP_monitor_0
May 17 06:23:48 [159] box80 cib: info: write_cib_contents: Archived previous version as /var/lib/pacemaker/cib/cib-5.raw
May 17 06:23:48 [159] box80 cib: info: write_cib_contents: Wrote version 0.11.0 of the CIB to disk (digest: 370c3a0139e27fb54d22865f69ff0644)
May 17 06:23:48 [159] box80 cib: info: retrieveCib: Reading cluster configuration from: /var/lib/pacemaker/cib/cib.COnJiv (digest: /var/lib/pacemaker/cib/cib.sH9HF7)
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: --- 0.11.0 2
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: +++ 0.11.1 (null)
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: + /cib: @num_updates=1
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: + /cib/status/node_state[@id='box90']: @crm-debug-origin=do_update_resource
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++ /cib/status/node_state[@id='box90']/lrm[@id='box90']/lrm_resources:
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box80/attrd/14, version=0.11.4)
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: --- 0.11.4 2
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: +++ 0.11.5 (null)
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: + /cib: @num_updates=5
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++ /cib/status/node_state[@id='box80']/transient_attributes[@id='box80']/instance_attributes[@id='status-box80']:
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box80/attrd/16, version=0.11.5)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box80/attrd/18, version=0.11.5)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Forwarding cib_modify operation for section status to master (origin=local/attrd/20)
May 17 06:23:48 [162] box80 attrd: notice: attrd_perform_update: Sent update 22: fail-count-ClusterIP=INFINITY
May 17 06:23:48 [162] box80 attrd: notice: attrd_cs_dispatch: Update relayed from box90
May 17 06:23:48 [162] box80 attrd: notice: attrd_trigger_update: Sending flush op to all hosts for: last-failure-ClusterIP (1431843828)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box80/attrd/20, version=0.11.5)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Forwarding cib_modify operation for section status to master (origin=local/attrd/22)
May 17 06:23:48 [162] box80 attrd: notice: attrd_perform_update: Sent update 24: last-failure-ClusterIP=1431843828
May 17 06:23:48 [162] box80 attrd: notice: attrd_cs_dispatch: Update relayed from box90
May 17 06:23:48 [162] box80 attrd: notice: attrd_trigger_update: Sending flush op to all hosts for: fail-count-ClusterIP (INFINITY)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box80/attrd/22, version=0.11.5)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Forwarding cib_modify operation for section status to master (origin=local/attrd/24)
May 17 06:23:48 [162] box80 attrd: notice: attrd_perform_update: Sent update 26: fail-count-ClusterIP=INFINITY
May 17 06:23:48 [162] box80 attrd: notice: attrd_cs_dispatch: Update relayed from box90
May 17 06:23:48 [162] box80 attrd: notice: attrd_trigger_update: Sending flush op to all hosts for: last-failure-ClusterIP (1431843828)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box80/attrd/24, version=0.11.5)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Forwarding cib_modify operation for section status to master (origin=local/attrd/26)
May 17 06:23:48 [162] box80 attrd: notice: attrd_perform_update: Sent update 28: last-failure-ClusterIP=1431843828
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box80/attrd/26, version=0.11.5)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Forwarding cib_modify operation for section status to master (origin=local/attrd/28)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box80/attrd/28, version=0.11.5)
IPaddr2(ClusterIP)[359]: 2015/05/17_06:23:48 INFO: IP status = no, IP_CIP=
May 17 06:23:48 [161] box80 lrmd: info: log_finished: finished - rsc:ClusterIP action:stop call_id:7 pid:359 exit-code:0 exec-time:41ms queue-time:0ms
May 17 06:23:48 [164] box80 crmd: notice: process_lrm_event: Operation ClusterIP_stop_0: ok (node=box80, call=7, rc=0, cib-update=12, confirmed=true)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Forwarding cib_modify operation for section status to master (origin=local/crmd/12)
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: --- 0.11.5 2
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: +++ 0.11.6 (null)
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: + /cib: @num_updates=6
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: + /cib/status/node_state[@id='box80']/lrm[@id='box80']/lrm_resources/lrm_resource[@id='ClusterIP']/lrm_rsc_op[@id='ClusterIP_last_0']: @operation_key=ClusterIP_stop_0, @operation=stop, @transition-key=1:3:0:b0e5a179-8a24-4936-996a-fb0eb88cb2d6, @transition-magic=0:0;1:3:0:b0e5a179-8a24-4936-996a-fb0eb88cb2d6, @call-id=7, @rc-code=0, @exec-time=41
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box80/crmd/12, version=0.11.6)
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: --- 0.11.6 2
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: +++ 0.11.7 (null)
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: + /cib: @num_updates=7
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: + /cib/status/node_state[@id='box90']/lrm[@id='box90']/lrm_resources/lrm_resource[@id='ClusterIP']/lrm_rsc_op[@id='ClusterIP_last_0']: @operation_key=ClusterIP_start_0, @operation=start, @transition-key=5:4:0:b0e5a179-8a24-4936-996a-fb0eb88cb2d6, @transition-magic=0:1;5:4:0:b0e5a179-8a24-4936-996a-fb0eb88cb2d6, @call-id=6, @rc-code=1, @exec-time=44
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++ /cib/status/node_state[@id='box90']/lrm[@id='box90']/lrm_resources/lrm_resource[@id='ClusterIP']:
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box90/attrd/23, version=0.11.8)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Forwarding cib_modify operation for section status to master (origin=local/attrd/32)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box80/attrd/32, version=0.11.8)
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: --- 0.11.8 2
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: +++ 0.11.9 (null)
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: + /cib: @num_updates=9
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: ++ /cib/status/node_state[@id='box90']/transient_attributes[@id='box90']/instance_attributes[@id='status-box90']:
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box90/attrd/25, version=0.11.9)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Forwarding cib_modify operation for section status to master (origin=local/attrd/34)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box90/attrd/27, version=0.11.9)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box80/attrd/34, version=0.11.9)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Forwarding cib_modify operation for section status to master (origin=local/attrd/36)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box80/attrd/36, version=0.11.9)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box90/attrd/29, version=0.11.9)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Forwarding cib_modify operation for section status to master (origin=local/attrd/38)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box90/attrd/31, version=0.11.9)
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box80/attrd/38, version=0.11.9)
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: --- 0.11.9 2
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: Diff: +++ 0.11.10 (null)
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: + /cib: @num_updates=10
May 17 06:23:48 [159] box80 cib: info: cib_perform_op: + /cib/status/node_state[@id='box90']/lrm[@id='box90']/lrm_resources/lrm_resource[@id='ClusterIP']/lrm_rsc_op[@id='ClusterIP_last_0']: @operation_key=ClusterIP_stop_0, @operation=stop, @transition-key=1:5:0:b0e5a179-8a24-4936-996a-fb0eb88cb2d6, @transition-magic=0:0;1:5:0:b0e5a179-8a24-4936-996a-fb0eb88cb2d6, @call-id=7, @rc-code=0, @exec-time=51
May 17 06:23:48 [159] box80 cib: info: cib_process_request: Completed cib_modify operation for section status: OK (rc=0, origin=box90/crmd/47, version=0.11.10)
May 17 06:23:53 [159] box80 cib: info: cib_process_ping: Reporting our current digest to box90: ab67a36d0f37d70b6fc6b64f7d779a81 for 0.11.10 (0x175ae20 0)
```

Please let me know should you need more information from me. Thanks.

Regards,
Vikas

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the IPaddr2 resource agent entry point and the provided corosync log, especially the failed `RTNETLINK answers: Operation not permitted` message while adding 172.17.0.85 to eth1. Reproduce the command in the described Docker cluster and determine whether the agent or container configuration is responsible. Done means the cause and a supported container-compatible path are identified and documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
infrastructure, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.