Issue installing Openstack All in One 16.1 on RHEL 8.2 Baremetal

Latest response

Not sure why this is failing:

RHEL 8.2 + RHELOS 16.1 All in One which uses TrileO.

Registry.redhat.io is setup and logged in.
Entitlements and Subscription have all required REPOs.

After initial requirements I run the following:
[stack@bnefvopenstack01 ~]$ sudo openstack tripleo deploy --templates --local-ip=$IP/$NETMASK -e /usr/share/openstack-tripleo-heat-templates/environments/standalone/standalone-tripleo.yaml -r /usr/share/openstack-tripleo-heat-templates/roles/Standalone.yaml -e $HOME/containers-prepare-parameters.yaml -e $HOME/standalone_parameters.yaml --output-dir $HOME --standalone

Installation stops as below and the lines in questions in tripleo_deploy.py refers to parsed_args :

rendering j2 template to file: /home/stack/tripleo-heat-installer-templates/./network/ports/net_vip_map_external_v6.yaml
jinja2 rendering network template port.network.j2.yaml
jinja2 rendering networks
jinja2 rendering network template port_from_pool.network.j2.yaml
jinja2 rendering networks
jinja2 rendering network template port_from_pool_v6.network.j2.yaml
jinja2 rendering networks
jinja2 rendering network template port_v6.network.j2.yaml
jinja2 rendering networks
jinja2 rendering role template role.role.j2.yaml
jinja2 rendering roles Standalone
rendering j2 template to file: /home/stack/tripleo-heat-installer-templates/./puppet/standalone-role.yaml
Exception: environment has wrong section "ContainerImageRegistryCredentials"
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1265, in standalone_deploy
parsed_args)
File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_deploy.py", line 767, in _deploy_tripleo_heat_templates
cleanup=parsed_args.cleanup)
File "/usr/lib/python3.6/site-packages/tripleoclient/utils.py", line 1170, in process_multiple_environments
env_path=env_path)
File "/usr/lib/python3.6/site-packages/heatclient/common/template_utils.py", line 314, in process_environment_and_files
env = environment_format.parse(raw_env)
File "/usr/lib/python3.6/site-packages/heatclient/common/environment_format.py", line 55, in parse
raise ValueError(
('environment has wrong section "%s"') % param)
ValueError: environment has wrong section "ContainerImageRegistryCredentials"
None
Not cleaning working directory /home/stack/tripleo-heat-installer-templates
Not cleaning ansible directory /home/stack/standalone-ansible-ggspnrci
Install artifact is located at /home/stack/standalone-install-20200831013528.tar.bzip2

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Deployment Failed!

ERROR: Heat log files: /var/log/heat-launcher/undercloud_deploy-cfqvqsnn

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Deployment failed.

Responses

It looks like the issue is the ContainerImageRegistryCredentials. Can you post the content of the containers-prepare-parameters.yaml (but omit the actual username and password obviously)?

Generated with the following on 2020-08-21T15:47:58.896491

#

openstack tripleo container image prepare default --output-env-file /home/stack/containers-prepare-parameters.yaml

#

parameter_defaults:

ContainerImagePrepare:

  • set:

    ceph_alertmanager_image: ose-prometheus-alertmanager

    ceph_alertmanager_namespace: registry.redhat.io/openshift4

    ceph_alertmanager_tag: 4.1

    ceph_grafana_image: rhceph-4-dashboard-rhel8

    ceph_grafana_namespace: registry.redhat.io/rhceph

    ceph_grafana_tag: 4

    ceph_image: rhceph-4-rhel8

    ceph_namespace: registry.redhat.io/rhceph

    ceph_node_exporter_image: ose-prometheus-node-exporter

    ceph_node_exporter_namespace: registry.redhat.io/openshift4

    ceph_node_exporter_tag: v4.1

    ceph_prometheus_image: ose-prometheus

    ceph_prometheus_namespace: registry.redhat.io/openshift4

    ceph_prometheus_tag: 4.1

    ceph_tag: latest

    name_prefix: openstack-

    name_suffix: ''

    namespace: registry.redhat.io/rhosp-rhel8

    neutron_driver: ovn

    rhel_containers: false

    tag: '16.1'

    tag_from_label: '{version}-{release}'

ContainerImageRegistryCredentials:

registry.redhat.io:

username: "password"

ContainerImageRegistryLogin: true

Thanks, Mark. It looks like ContainerImageRegistryCredentials and ContainerImageRegistryLogin need indentation so that they're children of parameter_defaults.

Thanks, that fixed it and the install completed successfully.