더북(TheBook)

설치 및 환경설정

오픈스택 공식 매뉴얼을 참고해 Keystone을 설치하다 보면 다양한 장애물과 마주칩니다. 이 장에서는 필자가 미타카 버전을 설치하면서 마주친 다양한 장애물을 해결해 나가는 과정을 함께 담았습니다. 좀 더 자세한 트러블 슈팅 과정은 8장을 참고합니다.

1. Keystone을 설치하기 전에 앞에서 설치한 컨트롤러 노드의 MariaDB에 Keystone 데이터베이스부터 생성해야 합니다. mysql -u root -p 명령어를 이용해 실행하면 다음과 같이 MariaDB 실행 프롬프트에 접속합니다. 먼저 Keystone 데이터베이스를 생성하고 생성한 데이터베이스의 패스워드와 접속 권한을 설정합니다. 접속 권한은 localhost에서 접속할 수 있는 권한과 외부에서 접속할 수 있는 권한을 설정합니다.

root@controller:~# mysql -u root -p
Enter password: 앞에서 설정한 패스워드인 openstack 입력  Enter
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 40
Server version: 10.0.24-MariaDB-7 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 keystone; Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON keystone.* TO ‘keystone’@‘localhost’ IDENTIFIED BY ‘keystonedbpass’; Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON keystone.* TO ‘keystone’@‘%’ IDENTIFIED BY ‘keystonedbpass’; Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit; Bye

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.