[Openstack] - openstack 수동설정 사전 작업
openstack 수동설정 사전 작업
* ubuntu 20.04 2대 사용 controller ip 192.168.1.10 / dhcp ip 192.168.2.5 ( process 4/1 memory 8GB hard disk 100GB) compute ip 192.168.1.11 / dhcp ip 192.168.2.6 ( process 2/1 memory 4GB hard disk 50GB) chrony #controller apt install -y chrony systemctl
y7712.tistory.com
* 사전 작업을 먼저 할 것
mysql
CREATE DATABASE placement;
GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'localhost' IDENTIFIED BY 'openstack';
GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'%' IDENTIFIED BY 'openstack';
mysql에서 placement db와 계정을 만들고 권한을 부여 해준다
. admin-openrc # keystone글 참조
# placement 계정 생성
openstack user create --domain default --password-prompt placement
# placement admin 권한 부여
openstack role add --project service --user placement admin
# placement 서비스 생성
openstack service create --name placement --description "Placement API" placement
# endpoint 생성
openstack endpoint create --region RegionOne placement public http://controller:8778
openstack endpoint create --region RegionOne placement internal http://controller:8778
openstack endpoint create --region RegionOne placement admin http://controller:8778
openstack에서 사용할 placement 계정/서비스 생성,권한부여를 해주고 endpoint를 만들어준다
apt install -y placement-api
nano /etc/placement/placement.conf
# placement.conf
[placement_database]
connection = mysql+pymysql://placement:openstack@controller/placement
[api]
auth_strategy = keystone
[keystone_authtoken]
auth_url = http://controller:5000/v3
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = placement
password = openstack
su -s /bin/sh -c "placement-manage db sync" placement
systemctl restart apache2
placement를 설치해주고 conf파일을 수정한 후 db를 초기화 하고 apache를 재시작해준다
* nova 연동
앞서 설치한 nova에서 conductor와 scheduler가 계속 down되는걸 확인할수 있는데 placement를 설정한 후엔 잘 실행된다
참조
https://docs.openstack.org/placement/latest/install/install-ubuntu.html
Install and configure Placement for Ubuntu — openstack-placement 9.1.0.dev18 documentation
Install and configure Placement for Ubuntu This section describes how to install and configure the placement service when using Ubuntu packages. Prerequisites Before you install and configure the placement service, you must create a database, service crede
docs.openstack.org
'Openstack' 카테고리의 다른 글
openstack 수동설정 nova (0) | 2023.09.07 |
---|---|
openstack 수동설정 glance (0) | 2023.09.07 |
openstack 수동설정 keystone (0) | 2023.09.06 |
openstack 수동설정 사전 작업 (0) | 2023.09.06 |
devstack으로 openstack 실습 (0) | 2023.09.05 |