Creating and Deleting OpenStack Pacemaker IP Addresses


You can use the steps below if you need to change managed IP resources, for example, if you need to re-IP your RHEL OSP Overcloud endpoints.

In this example, we are changing a managed VIP from one IP to another.

First, we get a good look at the resource that we want to delete. Here we are going to delete the resource ip- This resource starts the VIP,

# pcs resource show ip-
Resource: ip- (class=ocf provider=heartbeat type=IPaddr2)
Attributes: ip= cidr_netmask=32
Operations: start interval=0s timeout=20s (ip-
stop interval=0s timeout=20s (ip-
monitor interval=10s timeout=20s (ip-

Now let’s actually delete it.

# pcs resource delete ip-
Attempting to stop: ip-…Stopped

Now lets create the replacement VIP

# pcs resource create ip- ocf:heartbeat:IPaddr2 ip= cidr_netmask=32 op monitor interval=10s

Now, let’s take a good look at it.

# pcs resource show ip-
Resource: ip- (class=ocf provider=heartbeat type=IPaddr2)
Attributes: ip= cidr_netmask=32
Operations: start interval=0s timeout=20s (ip-
stop interval=0s timeout=20s (ip-
monitor interval=10s (ip-

Now we need to check to make sure that the VIP started on one of our OpenStack controllers.

# pcs status | grep
ip- (ocf::heartbeat:IPaddr2): Started ctrl01

For good measure, let’s make sure we can ping it.

# ping
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=64 time=0.781 ms
64 bytes from icmp_seq=2 ttl=64 time=1.21 ms



RHEL 7 Two-Factor SSH Via Google Authenticator

In this post,  I am going to walk you through the process of installing and configuring two- factor SSH authentication via Google Authenticator. My base system is running a fresh install of RHEL 7.2

Installation Steps

The first step on my system was to install autoreconf, automake, and libtool. These packages are required by the script that we will need to in a couple more steps.

# yum -y install autoconf automake libtool

Now, we are going to install Git.

#yum -y install git

One more dependency to knock out. Install pam-devel as shown below.

# yum -y install pam-devel

Next, we clone the google-authenticator Git repo. In this example, I am cloning to /root

# git clone
Cloning into ‘google-authenticator’…
remote: Counting objects: 1435, done.
remote: Total 1435 (delta 0), reused 0 (delta 0), pack-reused 1435
Receiving objects: 100% (1435/1435), 2.32 MiB | 0 bytes/s, done.
Resolving deltas: 100% (758/758), done.

Now change directory as shown below and run

# cd /root/google-authenticator/libpam

# ./

Now run the following commands to finalize the module installs.

# ./configure


#make install

Assuming that you do not run into any errors, the following modules will be installed.

  • /usr/local/lib/security/
  • /usr/local/lib/security/

Continue reading

Red Hat OpenStack Technical Preview Features



According to this page,  a Technology Preview is a feature that is  currently unsupported, may not have complete functionality, and are not suitable for deployment in production. However, Red Hat provides these features and makes them availbile to the customer as a courtesy with the primary goal of exposing the feature to a wider audience.

I am quite often asked by my clients, which features are in tech preview for each release.  Instead of spending time looking these things up each time I figured I would document them here.


How to Determine Installed OpenStack director Version


Trying to determine that version of Red Hat OpenStack director that is installed on an Undercloud Controller is not as straight forward as one would hope.

I have created the simple table below that you can use to determine your installed director version via the installed version of the openstack-tripleo-heat-templates rpm.

Minimum RPM Version Release Date director Version
openstack-tripleo-heat-templates-0.8.6-123.el7ost UNK 7.3.1
openstack-tripleo-heat-templates-0.8.6-94.el7ost.noarch.rpm 2015-12-16 7.2
openstack-tripleo-heat-templates-0.8.6-71.el7ost.noarch.rpm 2015-10-05 7.1
openstack-tripleo-heat-templates-0.8.6-45.el7ost.noarch.rpm 2015-07-30 7.0
openstack-tripleo-heat-templates-0.8.14-11.el7ost.noarch 2016-04-20 8.0
oopenstack-tripleo-heat-templates-2.0.0-41.el7ost.noarch ?? 9.0
openstack-tripleo-heat-templates-5.2.0-15.el7ost.noarch ?? 10.0
openstack-tripleo-heat-templates-6.0.0-10.el7ost.noarch ?? 11.0

Hopefully, in the near future, we will see an rpm similar to redhat-release-server (the rpm that create /etc/redhat-release) included in future OSP director updates. Until then, this table should be of some assistance.

Related Bugzillas

Secondary Method – Updated 9/20/2016

You can also run the following command on your overcloud

[root@tpacpuictrl0 nova]# nova-manage –version

Now cross reference this info with this webpage.

CEPH: How to Restart an Install, or How to Reset a Cluster

logo_ceph_CMYK_coatedHey, are you installing CEPH in your test lab and you screwed it up, or something has gone wrong with your test cluster and you want to start over? Well, the instructions on how to do this are below.

Note that most of this process is actually well documented, but I added in a few extra steps good to run if you want to start from scratch without having to reinstall an OS.

First remove all CEPH rpms from your CEPH hosts, this includes Monitor nodes and OSD nodes. Note that I am in /root/ceph-deploy on my monitor/admin server.  If you have separate admin and monitor nodes then run these commands from your admin node.

# ceph-deploy purge mon01 osd01 osd02 osd03

Now purge all config files.

# ceph-deploy purgedata mon01 osd01 osd02 osd03

Now remove all keys

# ceph-deploy forgetkeys

Now delete any remaining files or keys from  /root/ceph-deploy, if there are any files in here that you may want to keep, just copy them to /root.

# rm -rf /root/ceph-deploy/*

Now remove Calamari. Note: that in my test lab I am running Calamari on my one MON node which also happens to be my admin node, so I run this command there

#yum remove ceph-deploy calamari-server calamari-clients

You can now start over. I am installing Red Hat Ceph 1.3, so I am using the instructions here.

You might also want to uninstall salt from your servers. If that’s the case just look for any of the packages below and rip them out. Your versions will vary.

  • salt-2015.5.3-4.el7.noarch
  • salt-minion-2015.5.3-4.el7.noarch
  • salt-master-2015.5.3-4.el7.noarch

Red Hat Enterprise Linux OpenStack Platform 7 Now GA


Today, August 5th, 2015, RHEL-OSP 7 goes GA. Based on the OpenStack Community release “Kilo” and featuring a new installer, OSP-director.

Check out the Red Hat’s press release below.

Red Hat Enterprise Linux OpenStack Platform 7 Now Generally Available