OpenStack 네트워킹(neutron) 서비스 구성 전 선행조건
페이지 정보
본문
Neutron 서비스를 구성하기 전에, 데이터베이스, 서비스 credential, endpoint를 생성해야 한다
1 데이터베이스 생성
$ mysql -u root -p root 사용자로 연결
CREATE DATABASE neutron; neutron 데이터베이스를 생성합니다
neutron 데이터베이스에 적합한 액세스를 부여하고, NEUTRON_DBPASS 를 적절한 암호로 변경한다
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' \
IDENTIFIED BY 'NEUTRON_DBPASS';
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' \
IDENTIFIED BY 'NEUTRON_DBPASS';
데이터베이스 접속 클라이언트를 종료합니다.
2 admin credential에 대한 접근 권한을 얻기
$ source admin-openrc.sh
3 서비스 credential을 생성하기
1) neutron 사용자를 생성
$ openstack user create --domain default --password-prompt neutron
User Password:
Repeat User Password:
+-----------+-------------------------------------------+
| Field | Value |
+-----------+-------------------------------------------+
| domain_id | default |
| enabled | True |
| id | b20a6692f77b4258926881bf831eb683 |
| name | neutron |
+-----------+-------------------------------------------+
2) admin 역할을 neutron 사용자에 추가
$ openstack role add --project service --user neutron admin
3) neutron 서비스 엔티티를 생성
$ openstack service create --name neutron \
--description "OpenStack Networking" network
+-------------+------------------------------------------+
| Field | Value |
+-------------+------------------------------------------+
| description | OpenStack Networking |
| enabled | True |
| id | f71529314dab4a4d8eca427e701d209e |
| name | neutron |
| type | network |
+-------------+------------------------------------------+
4 네트워킹 서비스 API 엔드포인트 생성
$ openstack endpoint create --region RegionOne \
network public http://controller:9696
+----------------+-------------------------------------------+
| Field | Value |
+----------------+-------------------------------------------+
| enabled | True |
| id | 85d80a6d02fc4b7683f611d7fc1493a3 |
| interface | public |
| region | RegionOne |
| region_id | RegionOne |
| service_id | f71529314dab4a4d8eca427e701d209e |
| service_name | neutron |
| service_type | network |
| url | http://controller:9696 |
+--------------+--------------------------------------------+
$ openstack endpoint create --region RegionOne \
network internal http://controller:9696
+---------------+------------------------------------------+
| Field | Value |
+---------------+------------------------------------------+
| enabled | True |
| id | 09753b537ac74422a68d2d791cf3714f |
| interface | internal |
| region | RegionOne |
| region_id | RegionOne |
| service_id | f71529314dab4a4d8eca427e701d209e |
| service_name | neutron |
| service_type | network |
| url | http://controller:9696 |
+---------------+------------------------------------------+
$ openstack endpoint create --region RegionOne \
network admin http://controller:9696
+---------------+-----------------------------------------+
| Field | Value |
+---------------+-----------------------------------------+
| enabled | True |
| id | 1ee14289c9374dffb5db92a5c112fc4e |
| interface | admin |
| region | RegionOne |
| region_id | RegionOne |
| service_id | f71529314dab4a4d8eca427e701d209e |
| service_name | neutron |
| service_type | network |
| url | http://controller:9696 |
+--------------+------------------------------------------+
1 데이터베이스 생성
$ mysql -u root -p root 사용자로 연결
CREATE DATABASE neutron; neutron 데이터베이스를 생성합니다
neutron 데이터베이스에 적합한 액세스를 부여하고, NEUTRON_DBPASS 를 적절한 암호로 변경한다
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' \
IDENTIFIED BY 'NEUTRON_DBPASS';
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' \
IDENTIFIED BY 'NEUTRON_DBPASS';
데이터베이스 접속 클라이언트를 종료합니다.
2 admin credential에 대한 접근 권한을 얻기
$ source admin-openrc.sh
3 서비스 credential을 생성하기
1) neutron 사용자를 생성
$ openstack user create --domain default --password-prompt neutron
User Password:
Repeat User Password:
+-----------+-------------------------------------------+
| Field | Value |
+-----------+-------------------------------------------+
| domain_id | default |
| enabled | True |
| id | b20a6692f77b4258926881bf831eb683 |
| name | neutron |
+-----------+-------------------------------------------+
2) admin 역할을 neutron 사용자에 추가
$ openstack role add --project service --user neutron admin
3) neutron 서비스 엔티티를 생성
$ openstack service create --name neutron \
--description "OpenStack Networking" network
+-------------+------------------------------------------+
| Field | Value |
+-------------+------------------------------------------+
| description | OpenStack Networking |
| enabled | True |
| id | f71529314dab4a4d8eca427e701d209e |
| name | neutron |
| type | network |
+-------------+------------------------------------------+
4 네트워킹 서비스 API 엔드포인트 생성
$ openstack endpoint create --region RegionOne \
network public http://controller:9696
+----------------+-------------------------------------------+
| Field | Value |
+----------------+-------------------------------------------+
| enabled | True |
| id | 85d80a6d02fc4b7683f611d7fc1493a3 |
| interface | public |
| region | RegionOne |
| region_id | RegionOne |
| service_id | f71529314dab4a4d8eca427e701d209e |
| service_name | neutron |
| service_type | network |
| url | http://controller:9696 |
+--------------+--------------------------------------------+
$ openstack endpoint create --region RegionOne \
network internal http://controller:9696
+---------------+------------------------------------------+
| Field | Value |
+---------------+------------------------------------------+
| enabled | True |
| id | 09753b537ac74422a68d2d791cf3714f |
| interface | internal |
| region | RegionOne |
| region_id | RegionOne |
| service_id | f71529314dab4a4d8eca427e701d209e |
| service_name | neutron |
| service_type | network |
| url | http://controller:9696 |
+---------------+------------------------------------------+
$ openstack endpoint create --region RegionOne \
network admin http://controller:9696
+---------------+-----------------------------------------+
| Field | Value |
+---------------+-----------------------------------------+
| enabled | True |
| id | 1ee14289c9374dffb5db92a5c112fc4e |
| interface | admin |
| region | RegionOne |
| region_id | RegionOne |
| service_id | f71529314dab4a4d8eca427e701d209e |
| service_name | neutron |
| service_type | network |
| url | http://controller:9696 |
+--------------+------------------------------------------+
- 이전글네트워킹 옵션 1: 프로바이더 네트워크 21.07.09
- 다음글Nova설치 21.03.12
댓글목록
등록된 댓글이 없습니다.