본문 바로가기
IT/그 외 IT

[OpenStack] 5. Nova 구성(2)

by 초록술 2022. 6. 3.
반응형

 

 

1. Nova 설치

root@nw1 ~(keystone)# apt -y install nova-api nova-conductor nova-scheduler nova-novncproxy placement-api python3-novaclient

 

 

2. Nova 설정

root@nw1 ~(keystone)# mv /etc/nova/nova.conf /etc/nova/nova.conf.org
root@nw1 ~(keystone)# vi /etc/nova/nova.conf

# create new
[DEFAULT]
# define IP address
my_ip = 192.168.105.191
state_path = /var/lib/nova
enabled_apis = osapi_compute,metadata
log_dir = /var/log/nova
# RabbitMQ connection info
transport_url = rabbit://openstack:RabbitMQ패스워드@192.168.105.191

[api]
auth_strategy = keystone

# Glance connection info
[glance]
api_servers = http://192.168.105.191:9292

[oslo_concurrency]
lock_path = $state_path/tmp

# MariaDB connection info
[api_database]
connection = mysql+pymysql://nova:NovaDB패스워드@192.168.105.191/nova_api

[database]
connection = mysql+pymysql://nova:NovaDB패스워드@192.168.105.191/nova

# Keystone auth info
[keystone_authtoken]
www_authenticate_uri = http://192.168.105.191:5000
auth_url = http://192.168.105.191:5000
memcached_servers = 192.168.105.191:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = Nova패스워드

[placement]
auth_url = http://192.168.105.191:5000
os_region_name = RegionOne
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = placement
password = Placement패스워드

[wsgi]
api_paste_config = /etc/nova/api-paste.ini

root@nw1 ~(keystone)# chmod 640 /etc/placement/placement.conf
root@nw1 ~(keystone)# chgrp placement /etc/placement/placement.conf


root@nw1 ~(keystone)# su -s /bin/bash placement -c "placement-manage db sync"
root@nw1 ~(keystone)# su -s /bin/bash nova -c "nova-manage api_db sync"
root@nw1 ~(keystone)# su -s /bin/bash nova -c "nova-manage cell_v2 map_cell0"
root@nw1 ~(keystone)# su -s /bin/bash nova -c "nova-manage db sync"
root@nw1 ~(keystone)# su -s /bin/bash nova -c "nova-manage cell_v2 create_cell --name cell1"
--transport-url not provided in the command line, using the value [DEFAULT]/transport_url from the configuration file
--database_connection not provided in the command line, using the value [database]/connection from the configuration file
root@nw1 ~(keystone)# systemctl restart apache2
root@nw1 ~(keystone)# for service in api conductor scheduler; do
systemctl restart nova-$service
done
root@nw1 ~(keystone)# openstack compute service list

 

 

 

 

 

 

 

참고 사이트

https://www.server-world.info/en/note?os=Ubuntu_20.04&p=openstack_xena&f=8 

 

Ubuntu 20.04 LTS : OpenStack Xena : Configure Nova #2 : Server World

root@dlp ~(keystone)# for service in api conductor scheduler; do systemctl restart nova-$service done

www.server-world.info

 

반응형

댓글