PowerVC 2.1 インストールの確認 (RHEL HA add-onを構成する場合)

#### はじめに

以前、PowerVC 2.1 のレガシー・インストール(HA アドオンなし) を確認しました。

https://qiita.com/c_u/items/558081406ea3099875c3


今回は RHEL HA add-onありの場合のPowerVC 2.1 インストールを確認しました。
HA 有無しで指定項目の違いはありますが手順はほとんど変わりません。参考ログとしての記載です。



---
#### 環境

・PowerVC Management Server: 1 Node  (RHEL 8.6 ppc64le)  on S824


Java Runtime Environment が必要です。

https://www.ibm.com/docs/ja/powervc/2.1.0?topic=center-installing-power-virtualization-from-download

> Notes: Make sure you have Java Runtime Environment (JRE) on the management server.


この環境では openjdk を使用していました。

```
# rpm -qa | grep java
java-1.8.0-openjdk-headless-1.8.0.322.b06-11.el8.ppc64le
javapackages-filesystem-5.3.0-1.module+el8+2447+6f56d9a6.noarch
tzdata-java-2022a-1.el8.noarch
java-1.8.0-openjdk-1.8.0.322.b06-11.el8.ppc64le
```


---
#### 導入手順

参考：[ダウンロードからの IBM Power Virtualization Center のインストール](https://www.ibm.com/docs/ja/powervc/2.1.0?topic=center-installing-power-virtualization-from-download)
参考：[PowerVC Operations Manager によるインストールの開始](https://www.ibm.com/docs/ja/powervc/2.1.0?topic=center-initiate-installation-through-powervc-operations-manager)


導入前のリポジトリー状態
```
# dnf repolist
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

repo id                                                repo name
dvd-AppStream                                          RHEL8_AppStream
dvd-BaseOS                                             RHEL8_BaseOS
dvd-HA                                                 RHEL8_High_Availability
dvd-supplement                                         RHEL8_Supplement
```

=>  RHEL8_High_Availability の yum リポジトリーを構成済みです。

---
##### 1) opsmgr 導入

```
 ./setup_opsmgr.sh
################################################################################
Starting the PowerVC:setup_prepnode 2.1.0 installation on:
2023-02-19T23:34:53-05:00
################################################################################

2023-02-19T23:34:55.71-05:00 [WARNING]:[] 2.1 opsmgr will install and set default python to 3.9 at system level
Would you like to proceed?
Please answer yes or no.
Would you like to proceed?y
2023-02-19T23:35:26.59-05:00 [INFO]:[VALIDATION] BASE DIRECTORY : /opt/ibm/powervc-opsmgr
2023-02-19T23:35:26.60-05:00 [INFO]:[VALIDATION] INSTALL SCRIPT : /work/powervc-opsmgr-2.1.0/setup_opsmgr.sh
2023-02-19T23:35:26.60-05:00 [INFO]:[VALIDATION] LOG FILE : /opt/ibm/powervc-opsmgr/log/prep_node/prep_node_2023-02-19-2334.log
2023-02-19T23:35:26.63-05:00 [INFO]:[VALIDATION] OPERATING SYSTEM: Red Hat Enterprise Linux.
2023-02-19T23:35:26.63-05:00 [INFO]:[VALIDATION] User ID : root
International Program License Agreement

Part 1 - General Terms

BY DOWNLOADING, INSTALLING, COPYING, ACCESSING, CLICKING ON
AN "ACCEPT" BUTTON, OR OTHERWISE USING THE PROGRAM,
LICENSEE AGREES TO THE TERMS OF THIS AGREEMENT. IF YOU ARE
ACCEPTING THESE TERMS ON BEHALF OF LICENSEE, YOU REPRESENT
THAT YOU HAVE FULL AUTHORITY TO BIND LICENSEE TO THESE
TERMS.

IF YOU DO NOT AGREE TO THESE TERMS OR DO NOT HAVE
AUTHORITY: i) DO NOT DOWNLOAD, INSTALL, COPY, ACCESS, CLICK
ON AN "ACCEPT" BUTTON, OR USE THE PROGRAM; AND ii) PROMPTLY
RETURN THE UNUSED MEDIA, DOCUMENTATION, AND PROOF OF

Press Enter to continue viewing the license agreement, or
enter "1" to accept the agreement, "2" to decline it, "3"
to print it, "4" to read non-IBM terms, or "99" to go back
to the previous screen.
1
2023-02-19T23:35:31.93-05:00 [INFO]:[VALIDATION] License accepted.
2023-02-19T23:35:31.96-05:00 [INFO]:[VALIDATION] Configuring Yum repository for PowerVC-Opsmgr...
2023-02-19T23:35:33.13-05:00 [INFO]:[VALIDATION] Configuring Yum repository for PowerVC-Opsmgr rhel8...
2023-02-19T23:35:51.23-05:00 [INFO]:[VALIDATION] Installing PowerVC Ops. Manager...
2023-02-19T23:35:51.24-05:00 [INFO]:[INSTALL_POWERVC_OPSMGR] POWERVC OPSMGR PACKAGES : sshpass python3-netaddr rsync python3-oslo-i18n python3-crudini python3-powervc-opsmgr
2023-02-19T23:36:53.67-05:00 [INFO]:[INSTALL_POWERVC_OPSMGR] PowerVC Opsmgr packages installed successfully.
################################################################################
PowerVC:setup_prepnode installation completed at 2023-02-19T23:36:53-05:00.
Refer to
/opt/ibm/powervc-opsmgr/log/prep_node/prep_node_2023-02-19-2334.log
for more details.
################################################################################
```

---

##### 2) inventory 作成


インベントリーの作成で Legacy Installation、Node数、Virtual IP などを指定します。
今回は "Legacy Installation : n" 、1 node、VIP は Host node と同じサブネットで指定しました。


なお、PowerVC 2.1 から Advance オプションを使用することによりVIP はノードとは別のネットワークを指定することが可能です。

参考：[異なるサブネットからの VIP およびノード IP の作成](https://www.ibm.com/docs/ja/powervc/2.1.0?topic=manager-create-vip-node-ip-from-different-subnet)

インベントリーの作成を実行します。
この環境ではインベントリー名を "pvc210ha" で設定しています。


```
# powervc-opsmgr inventory -c pvc210ha
+--------------------------------------------------------------------------------+
|                               PowerVC Inventory                                |
+--------------------------------------------------------------------------------+
   PowerVC Install options
	Install Private cloud edition(y/n)  : y
	Configure Firewall (y/n)            : y
	Legacy Installation (y/n)           : n　　　　　　　　　　　　#<= n を指定しています
+--------------------------------------------------------------------------------+
   PowerVC Nodes
	Enter the number of nodes           : 1　　　　　　　　　　　　#<= 1 node 指定です
+--------------------------------------------------------------------------------+
   INFO:
     Primary/Bootstrap Node
  	* First node specified will be considered as primary or bootstrap node.
     Sudo User
  	* Sudo user with same username and password across all nodes is required.
+--------------------------------------------------------------------------------+
   PowerVC Node(s) Information
     Node 1
	Enter IP/Hostname for Node 1        : 172.16.X.XXX　　　　　#<= host と VIP は同じネットワークを指定
	Enter Username for Node 1           : root
	Enter Password for Node 1           :
+--------------------------------------------------------------------------------+
   Virtual IP
	Enter Virtual IP                    : 172.16.X.AAA        #<= host と VIP は同じネットワークを指定
+--------------------------------------------------------------------------------+

+--------------------------------------------------------------------------------+
|                          PowerVC Inventory - pvc210ha                          |
+--------------------------------------------------------------------------------+
	Cluster Name              : pvc210ha
	Cluster ID                : f0a91ffa-ab3b-4fb7-9f6e-c84f8bd95767
	Install Method            : cluster
	Edition                   : private_cloud
	Firewall Config           : True
	Login User                : root
	Virtual IP                : 172.16.X.AAA
	Primary/Bootstrap Host    : 172.16.X.XXX
	Hosts                     : 172.16.X.XXX
+--------------------------------------------------------------------------------+
|                  *** End of PowerVC Inventory - pvc210ha ***                   |
+--------------------------------------------------------------------------------+
Establishing passwordless connection

PLAY [{{ playbook_task_names.configure_ssh_keys }}] ****************************

TASK [Gathering Facts] *********************************************************
Sunday 19 February 2023  23:43:36 -0500 (0:00:00.089)       0:00:00.089 *******
[DEPRECATION WARNING]: Distribution rhel 8.6 on host 172.16.X.XXX should use
/usr/libexec/platform-python, but is using /usr/bin/python for backward
compatibility with prior Ansible releases. A future Ansible release will
default to using the discovered platform python for this host. See https://docs
.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for
more information. This feature will be removed in version 2.12. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [172.16.X.XXX]

TASK [command] *****************************************************************
Sunday 19 February 2023  23:43:38 -0500 (0:00:02.196)       0:00:02.286 *******
changed: [172.16.X.XXX]

TASK [include_vars] ************************************************************
Sunday 19 February 2023  23:43:39 -0500 (0:00:01.357)       0:00:03.643 *******
ok: [172.16.X.XXX]

~ 省略 ~ 

TASK [pvc_sshkeys : Copy the keys to the authorized_keys file] *****************
Sunday 19 February 2023  23:43:42 -0500 (0:00:00.414)       0:00:06.314 *******
ok: [172.16.X.XXX] => (item=172.16.X.XXX)

TASK [pvc_sshkeys : Make all Hosts known to each other - update known_hosts files] ***
Sunday 19 February 2023  23:43:42 -0500 (0:00:00.610)       0:00:06.925 *******
# 172.16.X.XXX:22 SSH-2.0-OpenSSH_8.0
ok: [172.16.X.XXX] => (item=172.16.X.XXX)
# localhost:22 SSH-2.0-OpenSSH_8.0
ok: [172.16.X.XXX] => (item=localhost)
# 127.0.0.1:22 SSH-2.0-OpenSSH_8.0
ok: [172.16.X.XXX] => (item=127.0.0.1)
172.16.X.XXX               : ok=16   changed=1    unreachable=0    failed=0    skipped=3    rescued=0    ignored=0

PLAY RECAP *********************************************************************
172.16.X.XXX               : ok=16   changed=1    unreachable=0    failed=0    skipped=3    rescued=0    ignored=0

Sunday 19 February 2023  23:43:44 -0500 (0:00:01.211)       0:00:08.136 *******
===============================================================================
Gathering Facts --------------------------------------------------------- 2.20s
command ----------------------------------------------------------------- 1.36s
pvc_sshkeys : Make all Hosts known to each other - update known_hosts files --- 1.21s
pvc_sshkeys : Copy the keys to the authorized_keys file ----------------- 0.61s
{{ pvc_sshkeys_task_names.get_home_directory_for_ansible_user }} -------- 0.54s
pvc_sshkeys : Creates ssh directory /root/.ssh -------------------------- 0.47s
pvc_sshkeys : Get the stat for ssh directory ---------------------------- 0.47s
pvc_sshkeys : Fetch public key ------------------------------------------ 0.41s
pvc_sshkeys : Generate ssh key pair ------------------------------------- 0.38s
include_vars ------------------------------------------------------------ 0.05s
include_vars ------------------------------------------------------------ 0.05s
pvc_sshkeys : include_vars ---------------------------------------------- 0.04s
include_vars ------------------------------------------------------------ 0.04s
{{ pvc_sshkeys_task_names.set_home_directory_for_ansible_user }} -------- 0.04s
{{ pvc_utils_task_names.store_locale_variable }} ------------------------ 0.04s
pvc_sshkeys : Delete ssh is file or link -------------------------------- 0.04s
include_vars ------------------------------------------------------------ 0.04s
include_vars ------------------------------------------------------------ 0.03s
{{ pvc_utils_task_names.error_message_for_utils_nls }} ------------------ 0.03s
SSH Key exchange successfully completed at, 2023-02-19 23:43:44.,
 Refer to
 /opt/ibm/powervc-opsmgr/ansible/artifacts/powervc-opsmgr_pvc210ha_ssh_key_xchg_20230219_234335/stdout
 for more details.
Inventory file generated successfully at /opt/ibm/powervc-opsmgr/ansible/inventory/pvc210ha

+--------------------------------------------------------------------------------+
|                          PowerVC Inventory - pvc210ha                          |
+--------------------------------------------------------------------------------+
	Cluster Name              : pvc210ha
	Cluster ID                : f0a91ffa-ab3b-4fb7-9f6e-c84f8bd95767
	Install Method            : cluster
	Edition                   : private_cloud
	Firewall Config           : True
	Login User                : root
	Virtual IP                : 172.16.X.AAA
	Primary/Bootstrap Host    : 172.16.X.XXX
	Hosts                     : 172.16.X.XXX
	Inventory Directory       : /opt/ibm/powervc-opsmgr/ansible/inventory/pvc210ha
+--------------------------------------------------------------------------------+
|                  *** End of PowerVC Inventory - pvc210ha ***                   |
+--------------------------------------------------------------------------------+
#
```

インベントリーが作成されました。

---

##### 3) PowerVC 2.1 導入

インストール・コマンドを実行します。
最初に pre_check が行われ、その後 install が実行されます。

```
# powervc-opsmgr install -c pvc210ha

PLAY [{{ playbook_task_names.precheck }}] **************************************
Sunday 19 February 2023  23:47:14 -0500 (0:00:00.121)       0:00:00.121 *******
[DEPRECATION WARNING]: Distribution rhel 8.6 on host 172.16.X.XXX should use
/usr/libexec/platform-python, but is using /usr/bin/python for backward
compatibility with prior Ansible releases. A future Ansible release will
default to using the discovered platform python for this host. See https://docs
.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for
more information. This feature will be removed in version 2.12. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

TASK [Gathering Facts] *********************************************************
[DEPRECATION WARNING]: Distribution rhel 8.6 on host 172.16.X.XXX should use
/usr/libexec/platform-python, but is using /usr/bin/python for backward
compatibility with prior Ansible releases. A future Ansible release will
default to using the discovered platform python for this host. See https://docs
.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for
more information. This feature will be removed in version 2.12. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [172.16.X.XXX]
Sunday 19 February 2023  23:47:16 -0500 (0:00:01.827)       0:00:01.949 *******
changed: [172.16.X.XXX]

TASK [command] *****************************************************************
changed: [172.16.X.XXX]
Sunday 19 February 2023  23:47:17 -0500 (0:00:01.221)       0:00:03.171 *******

~ 省略 ~ 


TASK [pvc_precheck : include_vars] *********************************************
ok: [172.16.X.XXX]
Sunday 19 February 2023  23:47:18 -0500 (0:00:00.062)       0:00:03.670 *******
Sunday 19 February 2023  23:47:18 -0500 (0:00:00.048)       0:00:03.718 *******
ok: [172.16.X.XXX]

TASK [pvc_precheck : package facts] ********************************************
ok: [172.16.X.XXX]
Sunday 19 February 2023  23:47:21 -0500 (0:00:02.946)       0:00:06.665 *******
[WARNING]: Consider using the yum, dnf or zypper module rather than running
'rpm'.  If you need to use command because yum, dnf or zypper is insufficient
you can add 'warn: false' to this command task or set 'command_warnings=False'
in ansible.cfg to get rid of this message.


~ 省略 ~ 



changed: [172.16.X.XXX]

TASK [pvc_main : Release lock - Remove lock file] ******************************
changed: [172.16.X.XXX]
Monday 20 February 2023  00:49:50 -0500 (0:00:00.676)       1:00:50.934 *******
included: /opt/ibm/powervc-opsmgr/ansible/core/roles/pvc_main/tasks/end_play.yml for 172.16.X.XXX
Monday 20 February 2023  00:49:51 -0500 (0:00:00.345)       1:00:51.279 *******
Monday 20 February 2023  00:49:51 -0500 (0:00:00.204)       1:00:51.484 *******
ok: [172.16.X.XXX]

TASK [pvc_main : set_fact] *****************************************************
ok: [172.16.X.XXX]
Monday 20 February 2023  00:49:51 -0500 (0:00:00.195)       1:00:51.679 *******
ok: [172.16.X.XXX] => {
    "msg": [
        "Play results ---------->",
        "Number of nodes        : 1",
        "List of nodes          : ['172.16.X.XXX']",
        "Number of failed nodes : 0",
        "List of failed nodes   : []"
    ]
}

TASK [pvc_main : debug] ********************************************************
ok: [172.16.X.XXX] => {
    "msg": [
        "Play results ---------->",
        "Number of nodes        : 1",
        "List of nodes          : ['172.16.X.XXX']",
        "Number of failed nodes : 0",
        "List of failed nodes   : []"
    ]
}
Monday 20 February 2023  00:49:51 -0500 (0:00:00.465)       1:00:52.145 *******
ok: [172.16.X.XXX -> 172.16.X.XXX] => (item=172.16.X.XXX)

TASK [pvc_main : synchronize state file] ***************************************
ok: [172.16.X.XXX -> 172.16.X.XXX] => (item=172.16.X.XXX)
Monday 20 February 2023  00:49:52 -0500 (0:00:00.973)       1:00:53.118 *******

TASK [pvc_main : synchronize inventory] ****************************************
ok: [172.16.X.XXX -> 172.16.X.XXX] => (item=172.16.X.XXX)
Monday 20 February 2023  00:49:58 -0500 (0:00:05.225)       1:00:58.344 *******
ok: [172.16.X.XXX] => {
    "msg": "Play completed successfully"
}

TASK [pvc_main : Success message for play] *************************************
ok: [172.16.X.XXX] => {
    "msg": "Play completed successfully"
}
Monday 20 February 2023  00:49:58 -0500 (0:00:00.175)       1:00:58.519 *******
172.16.X.XXX               : ok=2412 changed=1046 unreachable=0    failed=0    skipped=2371 rescued=0    ignored=2

PLAY RECAP *********************************************************************
172.16.X.XXX               : ok=2412 changed=1046 unreachable=0    failed=0    skipped=2371 rescued=0    ignored=2

Monday 20 February 2023  00:49:58 -0500 (0:00:00.165)       1:00:58.685 *******
===============================================================================
pvc_utils : Install selinux packages ----------------------------------- 63.52s
pvc_bootstrap_keystone : install keystone packages --------------------- 55.43s
pvc_bootstrap_keystone : Wait for keystone service to be active -------- 45.19s
pvc_ui : Install UI server and client packages ------------------------- 34.55s
pvc_galera_new : Installing mariadb and galera packages ---------------- 33.85s
pvc_reverse_proxy : restart proxyserver -------------------------------- 33.42s
pvc_reg_services : openstack create endpoints -------------------------- 32.35s
pvc_bootstrap_keystone : Create predefined roles ----------------------- 32.02s
pvc_galera_new : Wait for 30 seconds for WSREP become prepared state --- 30.63s
pvc_galera_new : Wait for 30 seconds for WSREP become prepared state --- 30.46s
pvc_main : Wait for 30 seconds to have galera as resource active ------- 30.39s
pvc_ansible : Unarchive tar images in remote node ---------------------- 28.54s
pvc_db_conn : Create DB credentials and grant permissions -------------- 28.39s
pvc_utils : Install generic packages ----------------------------------- 27.59s
pvc_pacemaker : Wait untill cluster is online and ready ---------------- 24.88s
pvc_pacemaker : Installing Packages for pacemaker ---------------------- 19.32s
pvc_firewalld : Open rabbitmq tcp ports on firewall -------------------- 15.63s
pvc_galera_new : Wait for 15 seconds to fully stop galera service ------ 15.56s
pvc_galera_new : Wait for 15 seconds to fully stop galera service ------ 15.48s
pvc_ui : Install nodejs-14 --------------------------------------------- 15.26s
IBM PowerVC installation successfully completed at 2023-02-20 00:49:58.
 Refer to
 /opt/ibm/powervc-opsmgr/ansible/artifacts/powervc-opsmgr_pvc210ha_install_20230219_234857/stdout
 for more details.
[WARNING]: Could not match supplied host pattern, ignoring: active_hosts

PLAY [{{ playbook_task_names.get_active_hosts }}] ******************************
Monday 20 February 2023  00:49:59 -0500 (0:00:00.081)       0:00:00.081 *******

TASK [{{ playbook_task_names.check_for_active_hosts }}] ************************
ok: [172.16.X.XXX]
Monday 20 February 2023  00:50:00 -0500 (0:00:00.794)       0:00:00.875 *******

TASK [{{ playbook_task_names.group_active_hosts }}] ****************************
changed: [172.16.X.XXX]

PLAY [{{ playbook_task_names.set_primary_host }}] ******************************
Monday 20 February 2023  00:50:00 -0500 (0:00:00.031)       0:00:00.906 *******
[DEPRECATION WARNING]: Distribution rhel 8.6 on host 172.16.X.XXX should use
/usr/libexec/platform-python, but is using /usr/bin/python for backward
compatibility with prior Ansible releases. A future Ansible release will
default to using the discovered platform python for this host. See https://docs
.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for
more information. This feature will be removed in version 2.12. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

TASK [Gathering Facts] *********************************************************
[DEPRECATION WARNING]: Distribution rhel 8.6 on host 172.16.X.XXX should use
/usr/libexec/platform-python, but is using /usr/bin/python for backward
compatibility with prior Ansible releases. A future Ansible release will
default to using the discovered platform python for this host. See https://docs
.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for
more information. This feature will be removed in version 2.12. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [172.16.X.XXX]
Monday 20 February 2023  00:50:04 -0500 (0:00:03.961)       0:00:04.868 *******
ok: [172.16.X.XXX] => {
    "msg": "['172.16.X.XXX'] , 172.16.X.XXX"
}

TASK [debug] *******************************************************************
ok: [172.16.X.XXX] => {
    "msg": "['172.16.X.XXX'] , 172.16.X.XXX"
}
Monday 20 February 2023  00:50:04 -0500 (0:00:00.031)       0:00:04.900 *******

PLAY [{{ playbook_task_names.sync_inventory }}] ********************************
Monday 20 February 2023  00:50:04 -0500 (0:00:00.040)       0:00:04.940 *******
changed: [172.16.X.XXX]


~ 省略 ~ 


TASK [pvc_lock : Release lock - Remove lock file] ******************************
changed: [172.16.X.XXX]
Monday 20 February 2023  00:50:08 -0500 (0:00:00.255)       0:00:08.263 *******
ok: [172.16.X.XXX] => {
    "msg": [
        "Number of nodes        : 1",
        "List of Nodes          : ['172.16.X.XXX']",
        "Number of failed nodes : 0",
        "List of failed nodes   : [] "
    ]
}

TASK [pvc_lock : Display Failed nodes if case of failure] **********************
ok: [172.16.X.XXX] => {
    "msg": [
        "Number of nodes        : 1",
        "List of Nodes          : ['172.16.X.XXX']",
        "Number of failed nodes : 0",
        "List of failed nodes   : [] "
    ]
}
172.16.X.XXX               : ok=20   changed=4    unreachable=0    failed=0    skipped=7    rescued=0    ignored=0

PLAY RECAP *********************************************************************
172.16.X.XXX               : ok=20   changed=4    unreachable=0    failed=0    skipped=7    rescued=0    ignored=0

Monday 20 February 2023  00:50:08 -0500 (0:00:00.047)       0:00:08.310 *******
===============================================================================
Gathering Facts --------------------------------------------------------- 3.96s
command ----------------------------------------------------------------- 1.27s
{{ playbook_task_names.check_for_active_hosts }} ------------------------ 0.79s
pvc_lock : Acquire lock - Check for Lock file --------------------------- 0.45s
pvc_lock : Acquire lock - Create PowerVC Lock file ---------------------- 0.42s
pvc_lock : Release lock - Remove lock file ------------------------------ 0.26s
{{ pvc_sync_inv_task_names.check_for_lock_file }} ----------------------- 0.24s
{{ pvc_sync_inv_task_names.set_fact_for_lock_file_based_on_all_node }} --- 0.06s
include_vars ------------------------------------------------------------ 0.06s
pvc_lock : Configure lock facts based on all node ----------------------- 0.06s
include_vars ------------------------------------------------------------ 0.05s
include_vars ------------------------------------------------------------ 0.05s
pvc_lock : Display Failed nodes if case of failure ---------------------- 0.05s
{{ pvc_utils_task_names.store_locale_variable }} ------------------------ 0.04s
Error Message for utils nls --------------------------------------------- 0.04s
{{ pvc_sync_inv_task_names.set_fact }} ---------------------------------- 0.04s
set_fact ---------------------------------------------------------------- 0.04s
pvc_lock : Configure lock facts based on file --------------------------- 0.04s
include_vars ------------------------------------------------------------ 0.04s
pvc_lock : End the play if lock found ----------------------------------- 0.04s
Inventory sync is successful
Access PowerVC UI at https://172.16.X.AAA
#
```

Deprecation warning などが出ていますが導入されました。
導入はおよそ 1 時間でした。



---
PowerVC 2.1 (HAあり)GUI 確認

![スクリーンショット 2023-02-20 16.47.11.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/517421/0655fe1d-c683-9afe-c483-4506d9f35aa9.png)

GUI  自体は HA 有 or 無 の選択で特に違いはない様子です。



---

#### 導入後


導入で自動作成されるyum(dnf) レポジトリーがそのまま登録状態でした。
必要に応じて登録解除、設定削除実施が必要になると思います。

```
# ls -l /etc/yum.repos.d/
total 16
-rw-r--r--. 1 root root 1299 Feb 19 23:50 powervc.repo
-rw-r--r--. 1 root root  467 Feb 19 23:50 pvc-opsmgr.repo
-rw-r--r--. 1 root root 1026 Feb 19 23:50 pvc-osp.repo
-rw-r--r--. 1 root root  358 Dec 22 22:19 redhat.repo
```

```
# dnf repolist
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

repo id                                                   repo name
dvd-AppStream                                             RHEL8_AppStream
dvd-BaseOS                                                RHEL8_BaseOS
dvd-HA                                                    RHEL8_High_Availabilityt
dvd-supplement                                            RHEL8_Supplement
powervc-noarch                                            POWERVC Openstack noarch
powervc-opsmgr-noarch                                     POWERVC Opsmgr noarch
powervc-opsmgr-ppc64le                                    POWERVC Opsmgr ppc64le
powervc-ppc64le                                           POWERVC Openstack ppc64le
pvc-openstack-multiarch-rhel8                             POWERVC Openstack multiarch rhel8
pvc-openstack-noarch                                      POWERVC Openstack noarch
pvc-openstack-noarch-rhel8                                POWERVC Openstack noarch rhel8
pvc-openstack-ppc64le                                     POWERVC Openstack ppc64le
python3-PyNaCl                                            python3-PyNaCl
python3-PyYAML                                            python3-PyYAML
python3-bcrypt                                            python3-bcrypt
```




以上です。