[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: OpenShift V3 - Installation + configuration of pacemaker and stonith

These steps should not be necessary. See my response to your previous email.

If you do want to configure stonith, you will need to manually configure that following the openshift-ansible installation though.

As for the IP addresses, you will have to make sure that the VIP values used are externally addressable from the hosts. The environment you are deploying to will need to allow you to self-manage IPs as well (this is not possible in Public clouds and is only possible in a subset of OpenStack based clouds).

On Tue, Nov 10, 2015 at 8:48 AM, Lorenz Vanthillo <lorenz vanthillo outlook com> wrote:
I want to creat an OpenShift cluster with 2 masters and 3 nodes. The masters need to be HA. So I to use a pacemaker and a virtual IP.
But there is nowhere a good tutorial about the setup of this for OpenShift V3.
So I'm reading the Red Hat documentation about pacemaker and searching tutorials.

Will this be a good tutorial?

I'm doing the following:
(I have already written the firewallrules, right ports are open and my masters can ping to eachother hostnames.

sudo yum install corosync pcs pacemaker (on both masters)

sudo passwd hacluster (on both masters)
Changing password for user hacluster.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

sudo systemctl start pcsd (on both masters)

sudo pcs cluster auth master1.example.com master2.example.com (on both masters)

From now on, I'm only performing the commands on master1.evolane.com

sudo pcs cluster setup --name cluster_openshift master1.example.com master2.example.com

sudo pcs cluster start --all

sudo pcs status nodes

[centos master1 ~]$ sudo pcs status nodes
Pacemaker Nodes:
 Online: master1.evolane.com
 Offline: master2.evolane.com

[centos master2 ~]$ sudo pcs status nodes
Pacemaker Nodes:
 Online: master2.evolane.com
 Offline: master1.evolane.com

sudo pcs status corosync

[centos master1 ~]$ sudo pcs status corosync

Membership information
    Nodeid      Votes Name
         1          1 master1.evolane.com (local)

[centos master2 ~]$ sudo pcs status

Membership information
    Nodeid      Votes Name
         2          1 master2.evolane.com (local)

pcs property set no-quorum-policy=ignore

sudo pcs property

sudo pcs resource create virtual_ip ocf:heartbeat:IPaddr2 ip= cidr_netmask=32 op monitor interval=30s

sudo pcs status resources
[centos master1 ~]$ sudo pcs status resources
 virtual_ip    (ocf::heartbeat:IPaddr2):    Stopped

ping -c1 --> failed.

I can follow this tutorial this the moment I have to create a virtual IP. I can create it but I'm unable to ping to in.
The Ip's of my masters are:


Can someone of the list help me to configure this in a right way so that the ansible install will not fail. I even don't know if I'm doing it right for OpenShift.

users mailing list
users lists openshift redhat com

Jason DeTiberus

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]