oslo_config_validator: Setting container network to none

When spinning a container, podman_container defaults network to bridge
as opposed to docker_container that defaults to none.

This causes "Missing CNI default network" errors and doesn't run the
oslo-config-validator command as expected.

Change-Id: I4faeab61421a9dbd6e5e2ea92c7e64ab1467453b
This commit is contained in:
David Vallee Delisle 2021-07-12 16:21:45 -04:00
parent ea3931c0f6
commit 9311c11823
2 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@ oslo_config_validator_global_ignored_messages:
- 'WARNING:oslo_config.generator:normalizing group name.*'
- 'WARNING:stevedore.named:Could not load .*'
- 'WARNING:root:Deprecated opt .*'
- 'INFO:oslo_utils.netutils:Could not determine default network interface, using .*'
- 'ERROR:root:quotas/quota_[^\s]+ {{ invalid_setting_regex }}'
- '.*Ignoring option because it is part of the excluded patterns. This can be changed with the.*'

View File

@ -108,6 +108,7 @@
rm: true
user: 0
mount: "type=bind,source={{ oslo_config_validator_work_path }},destination=/oslo_config_validation"
network: none
command: "{{ oslo_command }}"
register: container_run
failed_when: