このセクションでは、コンテナサービスである Magnum のインストールについて紹介します。作業は、コントローラーノードで実施します。

Magnumは、Docker swarm や Kubernetes などのコンテナクラスタを提供する OpenStack の API サービスであり、これらの環境をコマンドで構築し、操作することができます。

データベースクライアントを使用して、データベースサーバーに root ユーザーとして接続します。

[root@controller ~]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 1075834
Server version: 10.1.20-MariaDB MariaDB Server

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> 

データベース magnum を作成します。

MariaDB [(none)]> CREATE DATABASE magnum;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> 

データベースに適切なアクセス権を付与します。ここでは magnum データベースに接続するパスワードは MAGNUM_DB_PASS としているので、実際の情報に置き換えてください。

MariaDB [(none)]> GRANT ALL PRIVILEGES ON magnum.* TO 'magnum'@'localhost' \
  IDENTIFIED BY 'MAGNUM_DB_PASS';
Query OK, 0 rows affected (0.02 sec)

MariaDB [(none)]> 

MariaDB [(none)]> GRANT ALL PRIVILEGES ON magnum.* TO 'magnum'@'%' \
  IDENTIFIED BY 'MAGNUM_DB_PASS';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> 
MariaDB [(none)]> quit
Bye
[root@controller ~]#

クレデンシャル, エンティティ, エンドポイントの作成

admin クレデンシャルを読み込み、管理者専用 CLI コマンドへのアクセス権を取得します。

[root@controller ~]# . openrc/admin-openrc 
[root@controller ~]# 

magnum ユーザーを作成します。ここでは、magnum ユーザーのパスワードは MAGNUM_PASS としているので、適宜変更して下さい。

[root@controller ~]# openstack user create --domain default \
  --password-prompt magnum
User Password:  MAGNUM_PASS
Repeat User Password:  MAGNUM_PASS
+---------------------+----------------------------------+
| Field               | Value                            |
+---------------------+----------------------------------+
| domain_id           | default                          |
| enabled             | True                             |
| id                  | 4b0c5227b51241ccb60b188d4ab69e06 |
| name                | magnum                           |
| options             | {}                               |
| password_expires_at | None                             |
+---------------------+----------------------------------+
[root@controller ~]# 

admin の ロールを magnum ユーザーと service プロジェクトに追加します。

[root@controller ~]# openstack role add --project service --user magnum admin
[root@controller ~]# 

magnum サービスエンティティーを作成します。

[root@controller ~]# openstack service create --name magnum \
  --description "OpenStack Container Infrastructure Management Service" \
  container-infra
+-------------+-------------------------------------------------------+
| Field       | Value                                                 |
+-------------+-------------------------------------------------------+
| description | OpenStack Container Infrastructure Management Service |
| enabled     | True                                                  |
| id          | 34ac1151ffa64d8b8abe70f2f4cb364a                      |
| name        | magnum                                                |
| type        | container-infra                                       |
+-------------+-------------------------------------------------------+
[root@controller ~]# 

Container Infrastructure Management サービスのAPI エンドポイントを作成します。

[root@controller ~]# openstack endpoint create --region RegionOne \
  container-infra public http://192.168.24.111:9511/v1
+--------------+----------------------------------+
| Field        | Value                            |
+--------------+----------------------------------+
| enabled      | True                             |
| id           | cc17ac9a35b6413f8a463edd5b702d01 |
| interface    | public                           |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | 34ac1151ffa64d8b8abe70f2f4cb364a |
| service_name | magnum                           |
| service_type | container-infra                  |
| url          | http://192.168.24.111:9511/v1    |
+--------------+----------------------------------+
[root@controller ~]# 
[root@controller ~]# openstack endpoint create --region RegionOne \
  container-infra internal http://192.168.24.111:9511/v1
+--------------+----------------------------------+
| Field        | Value                            |
+--------------+----------------------------------+
| enabled      | True                             |
| id           | f5a263841abc415c9ed478e377c3a5db |
| interface    | internal                         |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | 34ac1151ffa64d8b8abe70f2f4cb364a |
| service_name | magnum                           |
| service_type | container-infra                  |
| url          | http://192.168.24.111:9511/v1    |
+--------------+----------------------------------+
[root@controller ~]# 
[root@controller ~]# openstack endpoint create --region RegionOne \
  container-infra admin http://192.168.24.111:9511/v1
+--------------+----------------------------------+
| Field        | Value                            |
+--------------+----------------------------------+
| enabled      | True                             |
| id           | de29b33d54124167adb27291049a501e |
| interface    | admin                            |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | 34ac1151ffa64d8b8abe70f2f4cb364a |
| service_name | magnum                           |
| service_type | container-infra                  |
| url          | http://192.168.24.111:9511/v1    |
+--------------+----------------------------------+
[root@controller ~]# 

ドメインと管理ユーザーの作成

プロジェクトとユーザーを含む magnum ドメインを作成します。

[root@controller ~]# openstack domain create --description "Owns users and projects \
  created by magnum" magnum
+-------------+---------------------------------------------+
| Field       | Value                                       |
+-------------+---------------------------------------------+
| description | Owns users and projects   created by magnum |
| enabled     | True                                        |
| id          | 2223bafd209442b4800a4ef87148d76b            |
| name        | magnum                                      |
| tags        | []                                          |
+-------------+---------------------------------------------+
[root@controller ~]# 

magnumドメイン内のプロジェクトとユーザーを管理するためのmagnum_domain_admin ユーザーを作成します。ここでは、magnum_domain_admin ユーザーのパスワードは MAGNUM_MNG_PASS としているので、適宜変更して下さい。

[root@controller ~]# openstack user create --domain magnum --password-prompt \
  magnum_domain_admin
User Password:  MAGNUM_MNG_PASS
Repeat User Password:  MAGNUM_MNG_PASS
+---------------------+----------------------------------+
| Field               | Value                            |
+---------------------+----------------------------------+
| domain_id           | 2223bafd209442b4800a4ef87148d76b |
| enabled             | True                             |
| id                  | 501d45156b8544fead412b29ad2d725f |
| name                | magnum_domain_admin              |
| options             | {}                               |
| password_expires_at | None                             |
+---------------------+----------------------------------+
[root@controller ~]# 

admin の ロールを magum ドメインの magnum_domain_admin ユーザーに追加します。

[root@controller ~]# openstack role add --domain magnum --user-domain magnum --user \
  magnum_domain_admin admin
[root@controller ~]# 

コンポーネントのインストールと設定

openstack-rocky の yum リポジトリ(CentOS-Openstack-rocky.repo)を使って、 コンテナサービス ( Magnum ) に必要なパッケージをインストールします。

[root@controller ~]# yum --enablerepo=centos-openstack-rocky -y install openstack-magnum-api openstack-magnum-conductor python-magnumclient
読み込んだプラグイン:fastestmirror
Determining fastest mirrors
epel/x86_64/metalink                                     | 8.1 kB     00:00     
 * base: ftp.riken.jp
 * epel: ftp.riken.jp
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
base                                                     | 3.6 kB     00:00     
centos-ceph-luminous                                     | 2.9 kB     00:00     
centos-openstack-rocky                                   | 2.9 kB     00:00     
centos-qemu-ev                                           | 2.9 kB     00:00     
epel                                                     | 3.2 kB     00:00     
extras                                                   | 3.4 kB     00:00     
updates                                                  | 3.4 kB     00:00     
(1/4): epel/x86_64/updateinfo                              | 939 kB   00:00     
(2/4): centos-openstack-rocky/7/x86_64/primary_db          | 816 kB   00:04     
(3/4): epel/x86_64/primary                                 | 3.6 MB   00:16     
(4/4): updates/7/x86_64/primary_db                         | 1.3 MB   00:22     
epel                                                                12782/12782
パッケージ python2-magnumclient-2.10.0-1.el7.noarch はインストール済みか最新バージョンです
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ openstack-magnum-api.noarch 0:7.0.2-1.el7 を インストール
--> 依存性の処理をしています: openstack-magnum-common = 7.0.2-1.el7 のパッケージ: openstack-magnum-api-7.0.2-1.el7.noarch
---> パッケージ openstack-magnum-conductor.noarch 0:7.0.2-1.el7 を インストール
--> トランザクションの確認を実行しています。
---> パッケージ openstack-magnum-common.noarch 0:7.0.2-1.el7 を インストール
--> 依存性の処理をしています: python-magnum = 7.0.2-1.el7 のパッケージ: openstack-magnum-common-7.0.2-1.el7.noarch
--> トランザクションの確認を実行しています。
---> パッケージ python-magnum.noarch 0:7.0.2-1.el7 を インストール
--> 依存性の処理をしています: python2-docker >= 2.4.2 のパッケージ: python-magnum-7.0.2-1.el7.noarch
--> 依存性の処理をしています: python2-marathon のパッケージ: python-magnum-7.0.2-1.el7.noarch
--> 依存性の処理をしています: python2-kubernetes のパッケージ: python-magnum-7.0.2-1.el7.noarch
--> トランザクションの確認を実行しています。
---> パッケージ python2-docker.noarch 0:3.5.0-1.el7 を インストール
--> 依存性の処理をしています: python-websocket-client >= 0.32.0 のパッケージ: python2-docker-3.5.0-1.el7.noarch
--> 依存性の処理をしています: python-docker-pycreds >= 0.2.1 のパッケージ: python2-docker-3.5.0-1.el7.noarch
---> パッケージ python2-kubernetes.noarch 0:6.0.0-1.el7 を インストール
--> 依存性の処理をしています: python2-requests-oauthlib のパッケージ: python2-kubernetes-6.0.0-1.el7.noarch
--> 依存性の処理をしています: python2-google-auth のパッケージ: python2-kubernetes-6.0.0-1.el7.noarch
--> 依存性の処理をしています: python2-certifi のパッケージ: python2-kubernetes-6.0.0-1.el7.noarch
---> パッケージ python2-marathon.noarch 0:0.8.8-1.el7 を インストール
--> トランザクションの確認を実行しています。
---> パッケージ python-websocket-client.noarch 0:0.34.0-3.el7 を インストール
---> パッケージ python2-certifi.noarch 0:2018.10.15-1.el7 を インストール
---> パッケージ python2-docker-pycreds.noarch 0:0.2.1-4.el7 を インストール
---> パッケージ python2-google-auth.noarch 1:1.1.1-1.el7 を インストール
---> パッケージ python2-requests-oauthlib.noarch 0:0.8.0-5.el7 を インストール
--> 依存性解決を終了しました。

依存性を解決しました

================================================================================
 Package                   アーキテクチャー
                                  バージョン       リポジトリー            容量
================================================================================
インストール中:
 openstack-magnum-api      noarch 7.0.2-1.el7      centos-openstack-rocky 8.8 k
 openstack-magnum-conductor
                           noarch 7.0.2-1.el7      centos-openstack-rocky 8.9 k
依存性関連でのインストールをします:
 openstack-magnum-common   noarch 7.0.2-1.el7      centos-openstack-rocky  26 k
 python-magnum             noarch 7.0.2-1.el7      centos-openstack-rocky 472 k
 python-websocket-client   noarch 0.34.0-3.el7     centos-openstack-rocky  57 k
 python2-certifi           noarch 2018.10.15-1.el7 epel                    12 k
 python2-docker            noarch 3.5.0-1.el7      centos-openstack-rocky 190 k
 python2-docker-pycreds    noarch 0.2.1-4.el7      centos-openstack-rocky  15 k
 python2-google-auth       noarch 1:1.1.1-1.el7    centos-openstack-rocky  76 k
 python2-kubernetes        noarch 6.0.0-1.el7      centos-openstack-rocky 965 k
 python2-marathon          noarch 0.8.8-1.el7      epel                    49 k
 python2-requests-oauthlib noarch 0.8.0-5.el7      base                    35 k

トランザクションの要約
================================================================================
インストール  2 パッケージ (+10 個の依存関係のパッケージ)

総ダウンロード容量: 1.9 M
インストール容量: 21 M
Downloading packages:
(1/12): openstack-magnum-common-7.0.2-1.el7.noarch.rpm     |  26 kB   00:00     
(2/12): openstack-magnum-conductor-7.0.2-1.el7.noarch.rpm  | 8.9 kB   00:00     
(3/12): python-magnum-7.0.2-1.el7.noarch.rpm               | 472 kB   00:02     
(4/12): python-websocket-client-0.34.0-3.el7.noarch.rpm    |  57 kB   00:00     
(5/12): openstack-magnum-api-7.0.2-1.el7.noarch.rpm        | 8.8 kB   00:04     
(6/12): python2-docker-3.5.0-1.el7.noarch.rpm              | 190 kB   00:00     
(7/12): python2-docker-pycreds-0.2.1-4.el7.noarch.rpm      |  15 kB   00:00     
(8/12): python2-certifi-2018.10.15-1.el7.noarch.rpm        |  12 kB   00:01     
(9/12): python2-requests-oauthlib-0.8.0-5.el7.noarch.rpm   |  35 kB   00:00     
(10/12): python2-google-auth-1.1.1-1.el7.noarch.rpm        |  76 kB   00:00     
(11/12): python2-marathon-0.8.8-1.el7.noarch.rpm           |  49 kB   00:00     
(12/12): python2-kubernetes-6.0.0-1.el7.noarch.rpm         | 965 kB   00:01     
--------------------------------------------------------------------------------
合計                                               332 kB/s | 1.9 MB  00:05     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  インストール中          : python-websocket-client-0.34.0-3.el7.noarch    1/12 
  インストール中          : python2-docker-pycreds-0.2.1-4.el7.noarch      2/12 
  インストール中          : python2-docker-3.5.0-1.el7.noarch              3/12 
  インストール中          : python2-certifi-2018.10.15-1.el7.noarch        4/12 
  インストール中          : python2-requests-oauthlib-0.8.0-5.el7.noarc    5/12 
  インストール中          : 1:python2-google-auth-1.1.1-1.el7.noarch       6/12 
  インストール中          : python2-kubernetes-6.0.0-1.el7.noarch          7/12 
  インストール中          : python2-marathon-0.8.8-1.el7.noarch            8/12 
  インストール中          : python-magnum-7.0.2-1.el7.noarch               9/12 
  インストール中          : openstack-magnum-common-7.0.2-1.el7.noarch    10/12 
  インストール中          : openstack-magnum-api-7.0.2-1.el7.noarch       11/12 
  インストール中          : openstack-magnum-conductor-7.0.2-1.el7.noar   12/12 
  検証中                  : python2-marathon-0.8.8-1.el7.noarch            1/12 
  検証中                  : openstack-magnum-common-7.0.2-1.el7.noarch     2/12 
  検証中                  : 1:python2-google-auth-1.1.1-1.el7.noarch       3/12 
  検証中                  : python2-requests-oauthlib-0.8.0-5.el7.noarc    4/12 
  検証中                  : python-magnum-7.0.2-1.el7.noarch               5/12 
  検証中                  : python2-certifi-2018.10.15-1.el7.noarch        6/12 
  検証中                  : openstack-magnum-api-7.0.2-1.el7.noarch        7/12 
  検証中                  : python2-docker-3.5.0-1.el7.noarch              8/12 
  検証中                  : python-websocket-client-0.34.0-3.el7.noarch    9/12 
  検証中                  : python2-kubernetes-6.0.0-1.el7.noarch         10/12 
  検証中                  : python2-docker-pycreds-0.2.1-4.el7.noarch     11/12 
  検証中                  : openstack-magnum-conductor-7.0.2-1.el7.noar   12/12 

インストール:
  openstack-magnum-api.noarch 0:7.0.2-1.el7                                     
  openstack-magnum-conductor.noarch 0:7.0.2-1.el7                               

依存性関連をインストールしました:
  openstack-magnum-common.noarch 0:7.0.2-1.el7                                  
  python-magnum.noarch 0:7.0.2-1.el7                                            
  python-websocket-client.noarch 0:0.34.0-3.el7                                 
  python2-certifi.noarch 0:2018.10.15-1.el7                                     
  python2-docker.noarch 0:3.5.0-1.el7                                           
  python2-docker-pycreds.noarch 0:0.2.1-4.el7                                   
  python2-google-auth.noarch 1:1.1.1-1.el7                                      
  python2-kubernetes.noarch 0:6.0.0-1.el7                                       
  python2-marathon.noarch 0:0.8.8-1.el7                                         
  python2-requests-oauthlib.noarch 0:0.8.0-5.el7                                

完了しました!
[root@controller ~]# 

Magnum の設定ファイル( /etc/magnum/magnum.conf )を編集し、以下の設定をします。

[root@controller ~]# vi /etc/magnum/magnum.conf 

[ api ] セクションで、magnum api がリッスンする ホストの IPアドレスを設定します。IPアドレスは、実際の環境に合わせて置き換えてください。

[api]
...
host = 192.168.24.111

[ certificates ]セクションで、証明書を保管するために barbican を使用するようにします。

[certificates]
...
cert_manager_type = barbican

[ cinder_client ]セクションで、リージョン名を設定します。

[cinder_client]
...
region_name = RegionOne

[ database ]セクションで、データベースアクセスを設定します。ここでは、magnum データベースに接続するパスワードは MAGNUM_DB_PASS としているので、実際の情報に置き換えてください。

[database]
...
connection = mysql+pymysql://magnum:MAGNUM_DB_PASS@controller/magnum
[keystone_authtoken]
...
memcached_servers = controller:11211
auth_version = v3
auth_uri = http://controller:5000/v3
project_domain_id = default
project_name = service
user_domain_id = default
password = MAgmU0527
username = magnum
auth_url = http://controller:5000
auth_type = password
admin_user = magnum
admin_password = MAgmU0527
admin_tenant_name = service
[trust]
...
trustee_domain_name = magnum
trustee_domain_admin_name = magnum_domain_admin
trustee_domain_admin_password = MAadmin27
trustee_keystone_interface = public
[oslo_messaging_notifications]
...
driver = messaging
[DEFAULT]
...
transport_url = rabbit://openstack:RMQopst01@controller
[oslo_concurrency]
...
lock_path = /var/lib/magnum/tmp
[root@controller ~]# su -s /bin/sh -c "magnum-db-manage upgrade" magnum
INFO  [alembic.runtime.migration] Context impl MySQLImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
INFO  [alembic.runtime.migration] Running upgrade  -> 2581ebaf0cb2, initial migration
INFO  [alembic.runtime.migration] Running upgrade 2581ebaf0cb2 -> 3bea56f25597, Multi Tenant Support
INFO  [alembic.runtime.migration] Running upgrade 3bea56f25597 -> 5793cd26898d, Add bay status
INFO  [alembic.runtime.migration] Running upgrade 5793cd26898d -> 3a938526b35d, Add docker volume size column
INFO  [alembic.runtime.migration] Running upgrade 3a938526b35d -> 35cff7c86221, add private network to baymodel
INFO  [alembic.runtime.migration] Running upgrade 35cff7c86221 -> 1afee1db6cd0, Add master flavor
INFO  [alembic.runtime.migration] Running upgrade 1afee1db6cd0 -> 2d1354bbf76e, ssh authorized key
INFO  [alembic.runtime.migration] Running upgrade 2d1354bbf76e -> 29affeaa2bc2, rename-bay-master-address
INFO  [alembic.runtime.migration] Running upgrade 29affeaa2bc2 -> 2ace4006498, rename-bay-minions-address
INFO  [alembic.runtime.migration] Running upgrade 2ace4006498 -> 456126c6c9e9, create baylock table
INFO  [alembic.runtime.migration] Running upgrade 456126c6c9e9 -> 4ea34a59a64c, add-discovery-url-to-bay
INFO  [alembic.runtime.migration] Running upgrade 4ea34a59a64c -> e772b2598d9, add-container-command
INFO  [alembic.runtime.migration] Running upgrade e772b2598d9 -> 2d8657c0cdc, add bay uuid
INFO  [alembic.runtime.migration] Running upgrade 2d8657c0cdc -> 4956f03cabad, add cluster distro
INFO  [alembic.runtime.migration] Running upgrade 4956f03cabad -> 592131657ca1, Add coe column to BayModel
INFO  [alembic.runtime.migration] Running upgrade 592131657ca1 -> 3b6c4c42adb4, Add unique constraints
INFO  [alembic.runtime.migration] Running upgrade 3b6c4c42adb4 -> 2b5f24dd95de, rename service port
INFO  [alembic.runtime.migration] Running upgrade 2b5f24dd95de -> 59e7664a8ba1, add_container_status
INFO  [alembic.runtime.migration] Running upgrade 59e7664a8ba1 -> 156ceb17fb0a, add_bay_status_reason
INFO  [alembic.runtime.migration] Running upgrade 156ceb17fb0a -> 1c1ff5e56048, rename_container_image_id
INFO  [alembic.runtime.migration] Running upgrade 1c1ff5e56048 -> 53882537ac57, add host column to pod
INFO  [alembic.runtime.migration] Running upgrade 53882537ac57 -> 14328d6a57e3, add master count to bay
INFO  [alembic.runtime.migration] Running upgrade 14328d6a57e3 -> 421102d1f2d2, create x509keypair table
INFO  [alembic.runtime.migration] Running upgrade 421102d1f2d2 -> 6f21dc998bb, Add master_addresses to bay
INFO  [alembic.runtime.migration] Running upgrade 6f21dc998bb -> 966a99e70ff, add-proxy
INFO  [alembic.runtime.migration] Running upgrade 966a99e70ff -> 6f21dc920bb, Add cert_uuuid to bay
INFO  [alembic.runtime.migration] Running upgrade 6f21dc920bb -> 5518af8dbc21, Rename cert_uuid
INFO  [alembic.runtime.migration] Running upgrade 5518af8dbc21 -> 4e263f236334, Add registry_enabled
INFO  [alembic.runtime.migration] Running upgrade 4e263f236334 -> 3be65537a94a, add_network_driver_baymodel_column
INFO  [alembic.runtime.migration] Running upgrade 3be65537a94a -> 1481f5b560dd, add labels column to baymodel table
INFO  [alembic.runtime.migration] Running upgrade 1481f5b560dd -> 1d045384b966, add-insecure-baymodel-attr
INFO  [alembic.runtime.migration] Running upgrade 1d045384b966 -> 27ad304554e2, adding magnum_service functionality
INFO  [alembic.runtime.migration] Running upgrade 27ad304554e2 -> 5ad410481b88, rename-insecure
INFO  [alembic.runtime.migration] Running upgrade 5ad410481b88 -> 2ae93c9c6191, add public column to baymodel table
INFO  [alembic.runtime.migration] Running upgrade 2ae93c9c6191 -> 33ef79969018, Add memory to container
INFO  [alembic.runtime.migration] Running upgrade 33ef79969018 -> 417917e778f5, Add server_type column to baymodel
INFO  [alembic.runtime.migration] Running upgrade 417917e778f5 -> 5977879072a7, add-env-to-container
INFO  [alembic.runtime.migration] Running upgrade 5977879072a7 -> 40f325033343, add bay_create_timeout to bay
INFO  [alembic.runtime.migration] Running upgrade 40f325033343 -> adc3b7679ae, add registry_trust_id to bay
INFO  [alembic.runtime.migration] Running upgrade adc3b7679ae -> 57fbdf2327a2, remove baylock
INFO  [alembic.runtime.migration] Running upgrade 57fbdf2327a2 -> 05d3e97de9ee, add volume driver
INFO  [alembic.runtime.migration] Running upgrade 05d3e97de9ee -> bb42b7cad130, remove node object
INFO  [alembic.runtime.migration] Running upgrade bb42b7cad130 -> 5d4caa6e0a42, create trustee for each bay
INFO  [alembic.runtime.migration] Running upgrade 5d4caa6e0a42 -> ee92b41b8809, Introduce Quotas
INFO  [alembic.runtime.migration] Running upgrade ee92b41b8809 -> 049f81f6f584, remove_ssh_authorized_key_from_baymodel
INFO  [alembic.runtime.migration] Running upgrade 049f81f6f584 -> e647f5931da8, add insecure_registry to baymodel
INFO  [alembic.runtime.migration] Running upgrade e647f5931da8 -> ef08a5e057bd, remove pod object
INFO  [alembic.runtime.migration] Running upgrade ef08a5e057bd -> d072f58ab240, modify x509keypair table
INFO  [alembic.runtime.migration] Running upgrade d072f58ab240 -> a1136d335540, Add docker storage driver column
INFO  [alembic.runtime.migration] Running upgrade a1136d335540 -> 085e601a39f6, remove service object
INFO  [alembic.runtime.migration] Running upgrade 085e601a39f6 -> 68ce16dfd341, add master_lb_enabled column to baymodel table
INFO  [alembic.runtime.migration] Running upgrade 68ce16dfd341 -> e0653b2d5271, Add fixed_subnet column to baymodel table
INFO  [alembic.runtime.migration] Running upgrade e0653b2d5271 -> 1f196a3dabae, remove container object
INFO  [alembic.runtime.migration] Running upgrade 1f196a3dabae -> 859fb45df249, remove replication controller
INFO  [alembic.runtime.migration] Running upgrade 859fb45df249 -> b1f612248cab, Add floating_ip_enabled column to baymodel table
INFO  [alembic.runtime.migration] Running upgrade b1f612248cab -> fcb4efee8f8b, add version info to bay
INFO  [alembic.runtime.migration] Running upgrade fcb4efee8f8b -> fb03fdef8919, rename_baymodel_to_clustertemplate
INFO  [alembic.runtime.migration] Running upgrade fb03fdef8919 -> 720f640f43d1, rename bay table to cluster
INFO  [alembic.runtime.migration] Running upgrade 720f640f43d1 -> bc46ba6cf949, add keypair to cluster
INFO  [alembic.runtime.migration] Running upgrade bc46ba6cf949 -> aa0cc27839af, add docker_volume_size to cluster
INFO  [alembic.runtime.migration] Running upgrade aa0cc27839af -> a0e7c8450ab1, add labels to cluster
INFO  [alembic.runtime.migration] Running upgrade a0e7c8450ab1 -> 52bcaf58fecb, add master_flavor_id to cluster
INFO  [alembic.runtime.migration] Running upgrade 52bcaf58fecb -> 04c625aa95ba, change storage driver to string
INFO  [alembic.runtime.migration] Running upgrade 04c625aa95ba -> 041d9a0f1159, add flavor_id to cluster
INFO  [alembic.runtime.migration] Running upgrade 041d9a0f1159 -> 9a1539f1cd2c, "add federation table
[root@controller ~]# 
[root@controller ~]# systemctl enable openstack-magnum-api.service \
  openstack-magnum-conductor.service
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-magnum-api.service to /usr/lib/systemd/system/openstack-magnum-api.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-magnum-conductor.service to /usr/lib/systemd/system/openstack-magnum-conductor.service.
[root@controller ~]# 

[root@controller ~]# systemctl is-enabled openstack-magnum-api.service \
  openstack-magnum-conductor.service
enabled
enabled
[root@controller ~]# 
[root@controller ~]# systemctl start openstack-magnum-api.service \
  openstack-magnum-conductor.service
[root@controller ~]#

[root@controller ~]# systemctl status openstack-magnum-api.service \
  openstack-magnum-conductor.service
● openstack-magnum-api.service - OpenStack Magnum API Service
   Loaded: loaded (/usr/lib/systemd/system/openstack-magnum-api.service; enabled; vendor preset: disabled)
   Active: active (running) since 水 2019-01-02 20:01:20 JST; 406ms ago
 Main PID: 2145 (magnum-api)
   CGroup: /system.slice/openstack-magnum-api.service
           ├─2145 /usr/bin/python2 /usr/bin/magnum-api
           └─2161 /usr/bin/python2 /usr/bin/magnum-api

 1月 02 20:01:20 controller systemd[1]: openstack-magnum-api.service holdoff time over, scheduling restart.
 1月 02 20:01:20 controller systemd[1]: Stopped OpenStack Magnum API Service.
 1月 02 20:01:20 controller systemd[1]: Started OpenStack Magnum API Service.

● openstack-magnum-conductor.service - Openstack Magnum Conductor Service
   Loaded: loaded (/usr/lib/systemd/system/openstack-magnum-conductor.service; enabled; vendor preset: disabled)
   Active: active (running) since 水 2019-01-02 20:01:20 JST; 659ms ago
 Main PID: 2141 (magnum-conducto)
   CGroup: /system.slice/openstack-magnum-conductor.service
           └─2141 /usr/bin/python2 /usr/bin/magnum-conductor

 1月 02 20:01:20 controller systemd[1]: openstack-magnum-conductor.service holdoff time over, scheduling restart.
 1月 02 20:01:20 controller systemd[1]: Stopped Openstack Magnum Conductor Service.
 1月 02 20:01:20 controller systemd[1]: Started Openstack Magnum Conductor Service.
[root@controller ~]#