After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 252 of 317

In the Datacenter 242 Glance across 2 nodes with FloatingIP 1. In order to have Glance able to run across multiple nodes, it must be configured with a shared storage backend (such as Swift) and be backed by a database backend (such as MySQL). On the first host, install and configure Glance, as described in Chapter 7, Glance OpenStack Image Service. 2. On the second node, simply install the required packages to run Glance, which is backed by MySQL and Swift: sudo apt-get install glance python-swift 3. Copy over the configuration files in /etc/glance to the second host, and start the glance-api and glance-registry services on both nodes, as follows: sudo start glance-api sudo start glance-registry 4. We can now use either the Glance server to view our images, as well as the FloatingIP address that is assigned to our first node. # First node glance -I admin -K openstack -T cookbook -N http://172.16.0.1:5000/v2.0 index # Second node glance -I admin -K openstack -T cookbook -N http://172.16.0.2:5000/v2.0 index # FloatingIP glance -I admin -K openstack -T cookbook -N http://172.16.0.10:5000/v2.0 index Configuring Pacemaker for use with Glance and Keystone 1. With Keystone and Glance running on both nodes, we can now configure Pacemaker to take control of this service, so that we can ensure Keystone and Glance are running on the appropriate node when the other node fails. To do this, we first disable the upstart jobs for controlling Keystone and Glance services. To do this, we create upstart override files for these services (on both nodes). Create /etc/init/ keystone.override, /etc/init/glance-api.override, and /etc/init/ glance-registry.override with just the keyword, manual, in. 2. We now grab the OCF agents that are able to control our Keystone and Glance services. We must do this on both our nodes. wget https://raw.github.com/madkiss/keystone /ha/tools/ocf/keystone wget https://raw.github.com/madkiss/glance/ ha/tools/ocf/glance-api wget https://raw.github.com/madkiss/glance/ ha/tools/ocf/glance-registry sudo mkdir -p /usr/lib/ocf/resource.d/openstack www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook