undercloud installで失敗
■ エラーログ
なんかディスクスペース要件を満たしていないって言ってそう。
[stack@undercloud ~]$ openstack undercloud install
Exception occured while running the command
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/tripleoclient/command.py", line 32, in run
super(Command, self).run(parsed_args)
File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
return super(Command, self).run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/command.py", line 185, in run
return_code = self.take_action(parsed_args) or 0
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/undercloud.py", line 143, in take_action
inflight=inflight)
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/undercloud_config.py", line 828, in prepare_undercloud_deploy
undercloud_preflight.check(verbose_level, upgrade)
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/undercloud_preflight.py", line 491, in check
_check_diskspace(upgrade)
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/undercloud_preflight.py", line 101, in _check_diskspace
validation_name=[playbook])
File "/usr/lib/python2.7/site-packages/validations_libs/validation_actions.py", line 506, in run_validations
return vlog.get_results(uuid)
File "/usr/lib/python2.7/site-packages/validations_libs/validation_logs.py", line 534, in get_results
vlog = ValidationLog(logfile=result)
File "/usr/lib/python2.7/site-packages/validations_libs/validation_logs.py", line 72, in __init__
self.content = self._get_content()
File "/usr/lib/python2.7/site-packages/validations_libs/validation_logs.py", line 94, in _get_content
raise ValueError(msg)
ValueError: bad json format for /tmp/tripleosdMQla/ef37d79e-e6c5-4f80-9106-05ac7f0d480f_undercloud-disk-space_2022-11-12T12:14:30.741734Z.json
bad json format for /tmp/tripleosdMQla/ef37d79e-e6c5-4f80-9106-05ac7f0d480f_undercloud-disk-space_2022-11-12T12:14:30.741734Z.json
[stack@undercloud ~]$
■ sourceを見てみる
★部分が満たしてないんだと思われる。
[stack@undercloud ~]$ cat /usr/share/ansible/validation-playbooks/undercloud-disk-space.yaml
---
- hosts: undercloud
vars:
metadata:
name: Verify undercloud fits the disk space requirements
description: >
Make sure that the root partition on the undercloud node has enough
free space.
http://tripleo.org/install/environments/baremetal.html#minimum-system-requirements
groups:
- prep
- pre-introspection
volumes:
- {mount: /var/lib/docker, min_size: 10} ★
- {mount: /var/lib/config-data, min_size: 3} ★
- {mount: /var/log, min_size: 3}
- {mount: /usr, min_size: 5}
- {mount: /var, min_size: 20}
- {mount: /, min_size: 25}
roles:
- undercloud_disk_space
[stack@undercloud ~]$
■ containerのdisk容量
[stack@undercloud ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
overlay 251G 21G 219G 9% /
tmpfs 13G 4.0K 13G 1% /tmp
tmpfs 64M 0 64M 0% /dev
tmpfs 13G 356K 13G 1% /run
none 13G 1012K 13G 1% /etc/hosts
shm 63M 0 63M 0% /dev/shm
tmpfs 13G 0 13G 0% /run/lock
cgroup 1.0M 0 1.0M 0% /sys/fs/cgroup
tmpfs 13G 8.0M 13G 1% /var/log/journal
none 13G 0 13G 0% /sys/fs/cgroup/systemd/release_agent
tmpfs 2.5G 0 2.5G 0% /run/user/1000
[stack@undercloud ~]$
■ 対応方法
わ・・・わからん。。。
■ podmanfile