더북(TheBook)

설치 및 환경설정

운영체제 이미지를 관리하는 Glance는 컨트롤러 노드에 설치됩니다. 이때 이미지는 환경설정에서 설정한 디렉터리나 Swift 스토리지로 저장됩니다. 지금부터 Glance 서비스를 설치해 보겠습니다.

1. 먼저 mysql 명령어를 이용해 MariaDB에 접속합니다. Glance 데이터베이스를 생성하고, 외부에서 데이터베이스에 접근할 수 있도록 사용자, 패스워드, 접근 권한을 부여합니다.

[root@controller ~]# mysql -u root -popenstack
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 7
Server version: 10.1.12-MariaDB MariaDB Server

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 glance; Query OK, 1 row affected (0.00 sec)

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

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

MariaDB [(none)]> exit; Bye

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