Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2188012

Summary: The /usr/share/tripleo-common/container-images/container_image_prepare_defaults.yaml shipped with 17 has wrong ceph container tags
Product: Red Hat OpenStack Reporter: John Fulton <johfulto>
Component: openstack-tripleo-commonAssignee: Manoj Katari <mkatari>
Status: CLOSED CURRENTRELEASE QA Contact: Yogev Rabl <yrabl>
Severity: high Docs Contact:
Priority: high    
Version: 17.0 (Wallaby)CC: mburns, slinaber
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-common-15.4.1-0.20230420100513.51f6577.el9ost Doc Type: Bug Fix
Doc Text:
Before this update, 'tripleo container image prepare' operation failed as ceph container tags is incorrectly passed in container_image_prepare_defaults.yaml After this update with correct ceph container tags, 'tripleo container image prepare' operation is successful.
Story Points: ---
Clone Of:
: 2188252 (view as bug list) Environment:
Last Closed: 2023-04-26 14:16:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2188252    

Description John Fulton 2023-04-19 13:20:45 UTC
"ceph_prometheus_tag: 4.6" should be changed to "ceph_prometheus_tag: v4.6"
"ceph_alertmanager_tag: 4.6" should be changed to "ceph_alertmanager_tag: v4.6"

Comment 1 John Fulton 2023-04-19 13:22:53 UTC
As provided by Chris Janiszewski

parameter_defaults:
  ContainerImagePrepare:
  - push_destination: true
    set:
      ceph_alertmanager_image: ose-prometheus-alertmanager
      ceph_alertmanager_namespace: registry.redhat.io/openshift4
      ceph_alertmanager_tag: 4.6
      ceph_grafana_image: rhceph-5-dashboard-rhel8
      ceph_grafana_namespace: registry.redhat.io/rhceph
      ceph_grafana_tag: latest
      ceph_image: rhceph-5-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.6
      ceph_prometheus_image: ose-prometheus
      ceph_prometheus_namespace: registry.redhat.io/openshift4
      ceph_prometheus_tag: 4.6
      ceph_tag: latest
      name_prefix: openstack-
      name_suffix: ''
      namespace: registry.redhat.io/rhosp-rhel9
      neutron_driver: ovn
      rhel_containers: false
      tag: '17.0'
    tag_from_label: '{version}-{release}'
  ContainerImageRegistryCredentials:
    registry.redhat.io:
      7697100|chrisj: <passwd>

He got it working by doing the replacement suggested in comment #0. Otherwise it fails with:

(undercloud) [stack@chrisj-dcn-undercloud templates]$  sudo openstack tripleo container image prepare -e containers-prepare-parameter.yaml
[DEPRECATION WARNING]: ANSIBLE_CALLBACK_WHITELIST option, normalizing names to 
new standard, use ANSIBLE_CALLBACKS_ENABLED instead. This feature will be 
removed from ansible-core in version 2.15. Deprecation warnings can be disabled
 by setting deprecation_warnings=False in ansible.cfg.

PLAY [Container Image Prepare] *************************************************
2023-04-19 09:00:00.310763 | fa163eed-e674-3885-33bf-000000000008 |       TASK | Fetch roles_data
2023-04-19 09:00:00.740803 | fa163eed-e674-3885-33bf-000000000008 |         OK | Fetch roles_data | localhost
2023-04-19 09:00:00.741984 | fa163eed-e674-3885-33bf-000000000008 |     TIMING | Fetch roles_data | localhost | 0:00:00.477845 | 0.43s
2023-04-19 09:00:00.746625 | fa163eed-e674-3885-33bf-000000000009 |       TASK | Set fact for log file
2023-04-19 09:00:00.783695 | fa163eed-e674-3885-33bf-000000000009 |         OK | Set fact for log file | localhost
2023-04-19 09:00:00.785518 | fa163eed-e674-3885-33bf-000000000009 |     TIMING | Set fact for log file | localhost | 0:00:00.521367 | 0.04s
2023-04-19 09:00:00.790310 | fa163eed-e674-3885-33bf-00000000000a |       TASK | Get all files in directories
2023-04-19 09:00:01.293918 |                                      |    WARNING | Skipped '/root/.tripleo/environments' path due to this access issue: '/root/.tripleo/environments' is not a directory
2023-04-19 09:00:01.295133 | fa163eed-e674-3885-33bf-00000000000a |         OK | Get all files in directories | localhost
2023-04-19 09:00:01.295781 | fa163eed-e674-3885-33bf-00000000000a |     TIMING | Get all files in directories | localhost | 0:00:01.031636 | 0.50s
2023-04-19 09:00:01.300185 | fa163eed-e674-3885-33bf-00000000000b |       TASK | Build environment_files
2023-04-19 09:00:01.336316 | fa163eed-e674-3885-33bf-00000000000b |         OK | Build environment_files | localhost
2023-04-19 09:00:01.337456 | fa163eed-e674-3885-33bf-00000000000b |     TIMING | Build environment_files | localhost | 0:00:01.073317 | 0.04s
2023-04-19 09:00:01.341734 | fa163eed-e674-3885-33bf-00000000000c |       TASK | Build heat stack environment
2023-04-19 09:00:03.023188 | fa163eed-e674-3885-33bf-00000000000c |    CHANGED | Build heat stack environment | localhost
2023-04-19 09:00:03.025315 | fa163eed-e674-3885-33bf-00000000000c |     TIMING | Build heat stack environment | localhost | 0:00:02.761162 | 1.68s
2023-04-19 09:00:03.033321 | fa163eed-e674-3885-33bf-00000000000d |       TASK | Prepare container images, check logs in /root/container_image_prepare.log
2023-04-19 09:00:54.051635 | fa163eed-e674-3885-33bf-00000000000d |      FATAL | Prepare container images, check logs in /root/container_image_prepare.log | localhost | error={"changed": false, "error": "Not found image: https://registry.redhat.io/v2/openshift4/ose-prometheus-alertmanager/manifests/4.6", "msg": "Error running container image prepare: Not found image: https://registry.redhat.io/v2/openshift4/ose-prometheus-alertmanager/manifests/4.6", "params": {}, "success": false}
2023-04-19 09:00:54.054468 | fa163eed-e674-3885-33bf-00000000000d |     TIMING | Prepare container images, check logs in {{ cip_log_file }} | localhost | 0:00:53.790327 | 51.02s

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
localhost                  : ok=5    changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
2023-04-19 09:00:54.060453 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Summary Information ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-04-19 09:00:54.060907 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Total Tasks: 6          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-04-19 09:00:54.061412 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Elapsed Time: 0:00:53.797279 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-04-19 09:00:54.061888 |                                 UUID |       Info |       Host |   Task Name |   Run Time
2023-04-19 09:00:54.062378 | fa163eed-e674-3885-33bf-00000000000d |    SUMMARY |  localhost | Prepare container images, check logs in {{ cip_log_file }} | 51.02s
2023-04-19 09:00:54.062972 | fa163eed-e674-3885-33bf-00000000000c |    SUMMARY |  localhost | Build heat stack environment | 1.68s
2023-04-19 09:00:54.063455 | fa163eed-e674-3885-33bf-00000000000a |    SUMMARY |  localhost | Get all files in directories | 0.50s
2023-04-19 09:00:54.063979 | fa163eed-e674-3885-33bf-000000000008 |    SUMMARY |  localhost | Fetch roles_data | 0.43s
2023-04-19 09:00:54.064454 | fa163eed-e674-3885-33bf-000000000009 |    SUMMARY |  localhost | Set fact for log file | 0.04s
2023-04-19 09:00:54.064902 | fa163eed-e674-3885-33bf-00000000000b |    SUMMARY |  localhost | Build environment_files | 0.04s
2023-04-19 09:00:54.065367 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End Summary Information ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-04-19 09:00:54.065827 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ State Information ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-04-19 09:00:54.066278 | ~~~~~~~~~~~~~~~~~~ Number of nodes which did not deploy successfully: 1 ~~~~~~~~~~~~~~~~~
2023-04-19 09:00:54.066681 |  The following node(s) had failures: localhost
2023-04-19 09:00:54.067157 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ansible execution failed. playbook: /usr/share/ansible/tripleo-playbooks/cli-container-image-prepare.yaml, Run Status: failed, Return Code: 2
Exception occured while running the command
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/tripleoclient/command.py", line 32, in run
    super(Command, self).run(parsed_args)
  File "/usr/lib/python3.9/site-packages/osc_lib/command/command.py", line 39, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3.9/site-packages/cliff/command.py", line 186, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python3.9/site-packages/tripleoclient/v1/container_image.py", line 1092, in take_action
    oooutils.run_ansible_playbook(
  File "/usr/lib/python3.9/site-packages/tripleoclient/utils.py", line 739, in run_ansible_playbook
    raise RuntimeError(err_msg)
RuntimeError: Ansible execution failed. playbook: /usr/share/ansible/tripleo-playbooks/cli-container-image-prepare.yaml, Run Status: failed, Return Code: 2
Ansible execution failed. playbook: /usr/share/ansible/tripleo-playbooks/cli-container-image-prepare.yaml, Run Status: failed, Return Code: 2

Comment 5 Manoj Katari 2023-04-26 14:16:20 UTC
As BZ 2188252 will fix it for 17.1 and it won't fix in 17.0, this BZ can be closed.