After Deprec

openstack_cloud_computing_cookbook

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

Contents of this Issue

Navigation

Page 251 of 317

Chapter 11 241 8. We can now use this address to connect to our first node and, when we power that node off, that address will be sent to our second node after 30 seconds of no response from the first node. Keystone across 2 nodes with FloatingIP 1. If Keystone is not installed on this first host, install it and configure it appropriately, as if we are configuring a single host (See Chapter 3, Keystone OpenStack Identity Service). Ensure the keystone database is backed by a database backend such as MySQL. 2. With Keystone running on this host, we should be able to query Keystone using both its own IP address (172.16.0.1) and the floating IP (172.16.0.10) from a client that has access to the OpenStack environment. # Assigned IP export OS_USERNAME=admin export OS_PASSWORD=openstack export OS_TENANT_NAME=cookbook export OS_AUTH_URL=http://172.16.0.1:5000/v2.0/ keystone user-list # FloatingIP export OS_AUTH_URL=http://172.16.0.10:5000/v2.0/ keystone user-list 3. On the second node, install and configure Keystone, configured such that Keystone is pointing at the same database backend. sudo apt-get update sudo apt-get install keystone python-mysqldb 4. Copy over the /etc/keystone/keystone.conf file from the first host, put it in place on the second node, and then restart the Keystone service. There is no further work required, as the database population with endpoints and users has already been done on the first node. sudo stop keystone sudo start keystone 5. We can now interrogate the second Keystone service on its own IP address. # Second Node export OS_AUTH_URL=http://172.16.0.2:5000/v2.0/ keystone user-list 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