[Pacemaker] Pacemaker and OpenStack RA

Andrew Beekhof andrew at beekhof.net
Wed Sep 11 04:53:55 UTC 2013


I replied to your entry here:
   http://openstack.redhat.com/forum/discussion/538/pacemaker-and-openstack-ra-issues#Item_3

But for completeness:

> Any ideas?
> 

This:

> p_glance-api_start_0 (node=main-controller, call=71, rc=1, status=Timed Out): unknown error
> 

suggests that there was not enough time for glance to start before the default 20s timeout.

Without knowing anything about glance, I can't say if that's unusual and without logs it's impossible to know what the agent was doing for those 20s.


On 10/09/2013, at 1:24 AM, Mael Lavault <mael.lavault at mailz.org> wrote:

> 
> Hi,
> 
> I'm setting up an Active/Passive configuration for OpenStack using 2
> nodes (2 controller nodes).
> 
> I'm having trouble to make some OpenStack ressources agent work.
> 
> pcs status command give me this :
> 
> Last updated: Mon Sep  9 11:05:13 2013
> Last change: Fri Sep  6 17:15:09 2013 via cibadmin on main-controller
> Stack: classic openais (with plugin)
> Current DC: main-controller - partition with quorum
> Version: 1.1.8-7.el6-394e906
> 2 Nodes configured, 2 expected votes
> 11 Resources configured.
> 
> 
> Online: [ main-controller secondary-controller ]
> 
> Full list of resources:
> 
> Resource Group: g_mysql
>     p_ip_mysql(ocf::heartbeat:IPaddr2): Started main-controller
>     p_fs_mysql(ocf::heartbeat:Filesystem): Started main-controller
>     p_mysql	(ocf::heartbeat:mysql):	Started main-controller
> Master/Slave Set: ms_drbd_mysql [p_drbd_mysql]
>     Masters: [ main-controller ]
>     Slaves: [ secondary-controller ]
> Resource Group: g_services_api
>     p_api-ip(ocf::heartbeat:IPaddr2): Started secondary-controller
>     p_keystone(ocf::openstack:keystone): Started secondary-controller
>    p_glance-api(ocf::openstack:glance-api): Stopped 
>     p_cinder-api(ocf::openstack:cinder-api): Stopped 
>     p_neutron-server(ocf::openstack:neutron-server): Stopped 
>     p_glance-registry(ocf::openstack:glance-registry): Stopped 
> 
> Failed actions:
>    p_glance-api_start_0 (node=main-controller, call=71, rc=1,
> status=Timed Out): unknown error
>    p_glance-api_start_0 (node=secondary-controller, call=71, rc=1,
> status=Timed Out): unknown error
> 
> Here is my conf: 
> 
> Corosync Nodes:
> 
> Pacemaker Nodes:
> main-controller secondary-controller 
> 
> Resources: 
> Group: g_mysql
>  Resource: p_ip_mysql (provider=heartbeat type=IPaddr2 class=ocf)
>   Attributes: ip=192.168.16.49 cidr_netmask=24 
>  Resource: p_fs_mysql (provider=heartbeat type=Filesystem class=ocf)
>   Attributes: device=/dev/drbd0 directory=/var/lib/mysql fstype=xfs 
>  Resource: p_mysql (provider=heartbeat type=mysql class=ocf)
>   Attributes: config=/etc/my.cnf pid=/var/run/mysqld/mysqld.pid socket=/var/run/mysqld/mysqld.sock log=/var/log/mysqld.log 
> Master: ms_drbd_mysql
>  Resource: p_drbd_mysql (provider=linbit type=drbd class=ocf)
>   Attributes: drbd_resource=mysql 
>   Operations: start interval=29s role=Master timeout=180s
> Group: g_services_api
>  Resource: p_api-ip (provider=heartbeat type=IPaddr2 class=ocf)
>   Attributes: ip=192.168.16.48 cidr_netmask=24 
>   Operations: monitor interval=30s
>  Resource: p_keystone (provider=openstack type=keystone class=ocf)
>   Attributes: config=/etc/keystone/keystone.conf os_password=8d99add1e17545f0 os_username=admin os_tenant_name=admin os_auth_url=http://192.168.16.48:5000/v2.0/ user=keystone 
>   Operations: monitor interval=30s timeout=30s
>  Resource: p_glance-api (provider=openstack type=glance-api class=ocf)
>   Attributes: config=/etc/glance/glance-api.conf os_password=8d99add1e17545f0 os_username=admin os_tenant_name=admin os_auth_url=http://192.168.16.48:5000/v2.0/ 
>   Operations: monitor interval=30s timeout=30s
>  Resource: p_cinder-api (provider=openstack type=cinder-api class=ocf)
>   Attributes: config=/etc/cinder/cinder.conf os_password=8d99add1e17545f0 os_username=admin os_tenant_name=admin os_auth_url=http://192.168.16.48:5000/v2.0/ 
>   Operations: monitor interval=30s timeout=30s
>  Resource: p_neutron-server (provider=openstack type=neutron-server class=ocf)
>   Attributes: os_password=8d99add1e17545f0 os_username=admin os_tenant_name=admin keystone_get_token_url=http://192.168.16.48:5000/v2.0/ 
>   Operations: monitor interval=30s timeout=30s
>  Resource: p_glance-registry (provider=openstack type=glance-registry class=ocf)
>   Attributes: config=/etc/glance/glance-registry.conf os_password=8d99add1e17545f0 os_username=admin os_tenant_name=admin os_auth_url=http://192.168.16.48:5000/v2.0/ 
>   Operations: monitor interval=30s timeout=30s
> 
> Location Constraints:
> Ordering Constraints:
>  promote ms_drbd_mysql then start g_mysql
> Colocation Constraints:
>  g_mysql with ms_drbd_mysql (with-rsc-role:Master)
> 
> Cluster Properties:
> dc-version: 1.1.8-7.el6-394e906
> cluster-infrastructure: classic openais (with plugin)
> expected-quorum-votes: 2
> no-quorum-policy: ignore
> pe-warn-series-max: 1000
> pe-input-series-max: 1000
> pe-error-series-max: 1000
> cluster-recheck-interval: 5min
> stonith-enabled: false
> 
> I can't understand why these service won't run. If I export the correct
> variable and launch them manually, the monitor and start action seems to
> work.
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130911/75550f1b/attachment-0004.sig>


More information about the Pacemaker mailing list