컨트롤러 노드 설치 및 환경설정
컨트롤러 노드에 설치되는 대부분의 서비스는 데이터베이스를 생성하며, Keystone에 서비스 계정 및 엔드포인트를 생성한 후 본격적으로 해당 컴포넌트를 설치합니다. 환경설정을 한 후 재시작하면 설치가 완료됩니다. Cinder 역시 다른 서비스와 동일한 방법으로 설치해 보겠습니다.
1. 먼저 MariaDB에 접속하고, Cinder 데이터베이스를 생성합니다. 생성한 Cinder 데이터베이스에 접근할 수 있도록 접근 권한을 설정하고 빠져나옵니다.
root@controller:~# mysql -u root -popenstack
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 404
Server version: 10.0.25-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04
Copyright © 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
MariaDB [(none)]> CREATE DATABASE cinder; Query OK, 1 row affected (0.01 sec)
MariaDB [(none)]> GRANT ALL PRIVILEGES ON cinder.* TO ‘cinder’@‘localhost’ IDENTIFIED BY ‘cinderdbpass’; Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]> GRANT ALL PRIVILEGES ON cinder.* TO ‘cinder’@‘%’ IDENTIFIED BY ‘cinderdbpass’; Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> exit; Bye