Network Service 인 Neutron 설정
1. keystone 에 Neutron user 및 service 추가
root@nw1 ~(keystone)# openstack user create --domain default --project service --password neutron패스워드 설정 neutron
root@nw1 ~(keystone)# openstack role add --project service --user neutron admin
root@nw1 ~(keystone)# openstack service create --name neutron --description "OpenStack Networking service" network
root@nw1 ~(keystone)# export controller=192.168.105.191
root@nw1 ~(keystone)#
root@nw1 ~(keystone)# openstack endpoint create --region RegionOne network public http://$controller:9696
root@nw1 ~(keystone)# openstack endpoint create --region RegionOne network internal http://$controller:9696
root@nw1 ~(keystone)# openstack endpoint create --region RegionOne network admin http://$controller:9696
2. MariaDB에 Neutron 추가
root@nw1 ~(keystone)# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 251
Server version: 10.3.34-MariaDB-0ubuntu0.20.04.1 Ubuntu 20.04
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database neutron_ml2;
Query OK, 1 row affected (0.000 sec)
MariaDB [(none)]> grant all privileges on neutron_ml2.* to neutron@'localhost' identified by 'neutron DB 패스워드 설정';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> grant all privileges on neutron_ml2.* to neutron@'%' identified by 'neutron DB 패스워드 설정';
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> exit
Bye
root@nw1 ~(keystone)#
참고 사이트
https://www.server-world.info/en/note?os=Ubuntu_20.04&p=openstack_xena&f=10
'IT > 그 외 IT' 카테고리의 다른 글
[OpenStack] 7. Neutron 네트워크 설정 (0) | 2022.06.08 |
---|---|
[OpenStack] 6. Neutron 구성(2) (0) | 2022.06.07 |
[OpenStack] 5. nava 구성(3) (0) | 2022.06.05 |
[OpenStack] Nova state down 으로 인한 password 삭제 및 cell 재등록 (2) | 2022.06.04 |
[OpenStack] 5. Nova 구성(2) (0) | 2022.06.03 |
댓글