Date: | 2014-04-01 |
---|---|
tags: | rackspace, openstack, dev, rpc, private cloud |
category: | *nix |
- Description:
- Changing and or re-creating the VIPS on your Rackspace Private Openstack Cloud
If you come accross the need to change / modify the VIPS which control your Openstack cluster as provided by the Rackspace Private Cloud here is the process to successfully perform the operation.
First step is to modify the vips in the Environment JSON. In the Environment JSON you are going to modify the vip IP address. Once complete save the environment within your Chef server.
knife environment edit rpcs
Note that your environment name may be different, so change the rpcs to whatever it should be based on your setup.
Stop Monit on EVERYTHING
knife ssh 'name:*' '/etc/init.d/monit stop'
Remove all known Keystone Endpoints in the DB.
# Reset nova endpoints function reset_keystone_endpoint() { echo "Resetting Nova Endpoints" # Load the Openstack Credentials MYSQLCRD="/root/.my.cnf" REGION=${REGION:-"RegionOne"} if [[ -f "$MYSQLCRD" ]];then USERNAME="$(awk -F'=' '/user/ {print $2}' ${MYSQLCRD})" PASSWORD="$(awk -F'=' '/password/ {print $2}' ${MYSQLCRD})" NUKECMD="delete from endpoint where region=\"${REGION}\";" mysql -u "${USERNAME}" -p"${PASSWORD}" -o keystone -e "${NUKECMD}" fi } reset_keystone_endpoint
Remove all of the "vrrp" files localted on all of the controller nodes.
knife ssh 'name:*' 'tar -czf /root/vrrp-bak.tar.gz /etc/keepalived/conf.d/vrrp*; \ rm "/etc/keepalived/conf.d/vrrp*"'
Re-Run
chef-client
on everything.knife ssh 'name:*' 'chef-client'
Start Monit on EVERYTHING
knife ssh 'name:*' '/etc/init.d/monit start'
After this you should have new VIP