Wednesday, April 4, 2018

05-openstack-compute-node-configuration

# apt install nova-compute


/etc/nova/nova.conf


[DEFAULT]
# ...
transport_url = rabbit://openstack:RABBIT_PASS@controller


[api]
# ...
auth_strategy = keystone
[keystone_authtoken]
# ...
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = NOVA_PASS


[DEFAULT]
# ...
my_ip = MANAGEMENT_INTERFACE_IP_ADDRESS


[DEFAULT]
# ...
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver


[vnc]
# ...
enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = $my_ip


[glance]
# ...
api_servers = http://controller:9292


[oslo_concurrency]
# ...
lock_path = /var/lib/nova/tmp


[placement]
# ...
os_region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:35357/v3
username = placement
password = PLACEMENT_PASS


$ egrep -c '(vmx|svm)' /proc/cpuinfo

/etc/nova/nova-compute.conf


[libvirt]
# ...
virt_type = qemu


# service nova-compute restart

Add the compute node to the cell database


Important: Run the following commands on the controller node.


$ openstack hypervisor list
# su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova


/etc/nova/nova.conf :
[scheduler]
discover_hosts_in_cells_interval = 300


$ openstack compute service list


$ openstack catalog list


$ openstack catalog list

# nova-status upgrade check

No comments:

Post a Comment