Issue link: https://read.uberflip.com/i/1334488
Starting OpenStack Compute 14 Configuring OpenStack Compute The /etc/nova/nova.conf file is a very important file and is referred to many times in this book. This file informs each OpenStack Compute service how to run and what to connect to in order to present OpenStack to our end users. This file will be replicated amongst our nodes as our environment grows. How to do it... To run our sandbox environment, we will configure OpenStack Compute so that it is accessible from our underlying host computer. We will have the API service (the service our client tools talk to) listen on our public interface and configure the rest of the services to run on the correct ports. The complete nova.conf file as used by the sandbox environment is laid out next and an explanation of each line (known as flags) follows. 1. First, we amend the /etc/nova/nova.conf file to have the following contents: --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --logdir=/var/log/nova --state_path=/var/lib/nova --lock_path=/var/lock/nova --force_dhcp_release --iscsi_helper=tgtadm --libvirt_use_virtio_for_bridges --connection_type=libvirt --root_helper=sudo nova-rootwrap --ec2_private_dns_show_ip --sql_connection=mysql://nova:openstack@172.16.0.1/nova --use_deprecated_auth --s3_host=172.16.0.1 --rabbit_host=172.16.0.1 --ec2_host=172.16.0.1 --ec2_dmz_host=172.16.0.1 --public_interface=eth1 --image_service=nova.image.glance.GlanceImageService --glance_api_servers=172.16.0.1:9292 --auto_assign_floating_ip=true --scheduler_default_filters=AllHostsFilter 2. For the openstack-compute service we specify that we are using software virtualization by specifying the following code in /etc/nova/ nova-compute.conf: --libvirt_type=qemu www.it-ebooks.info

