Issue link: https://read.uberflip.com/i/1334488
Chapter 7 145 How to do it... Carry out the following steps to configure OpenStack Compute to use OpenStack Image Service: 1. To get our OpenStack Compute service to communicate with OpenStack Image Service instead of the default image service, we edit /etc/nova/nova.conf to include the following lines: --image_service=nova.image.glance.GlanceImageService --glance_api_servers=172.16.0.1:9292 2. We then restart the nova-api and nova-objectstore services to pick up this change. sudo restart nova-api sudo restart nova-objectstore How it works... As we configure OpenStack Compute to use OpenStack Image Service, we modify the file /etc/nova/nova.conf, with the following flags: f The --image_service flag specifies the libraries to load for managing images. We point this to the GlanceImageService libraries. f The --glance_api_servers flag is used to direct OpenStack Compute to where we have installed OpenStack Image Service and the port we have configured the glance-api service to run on. By default, the glance-api service runs on TCP port 9292. Configuring OpenStack Image Service with OpenStack Storage Configuring OpenStack Image Service to use OpenStack Storage allows us to keep our images on easily accessible storage. Getting ready To begin with, ensure you are logged in to the server where OpenStack Image Service is installed. www.it-ebooks.info

