Bug 2221618 - Overcloud deployment fails with error message: Image registry.redhat.io/rhosp-rhel8/openstack-aodh-api has no tag 16.2.
Summary: Overcloud deployment fails with error message: Image registry.redhat.io/rhosp...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z6
: 16.2 (Train on RHEL 8.4)
Assignee: Nobody
QA Contact: David Rosenfeld
URL:
Whiteboard:
: 2239169 (view as bug list)
Depends On: 2224940
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-10 10:23 UTC by tkuroda
Modified: 2023-11-08 19:19 UTC (History)
8 users (show)

Fixed In Version: openstack-tripleo-common-11.7.1-2.20230809225403.e189622.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2224940 (view as bug list)
Environment:
Last Closed: 2023-11-08 19:19:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 2028260 0 None None None 2023-07-20 12:29:39 UTC
OpenStack gerrit 889387 0 None MERGED Do pagination when getting continer image tags 2023-07-26 09:02:08 UTC
Red Hat Issue Tracker OSP-26459 0 None None None 2023-07-10 10:25:18 UTC
Red Hat Product Errata RHBA-2023:6307 0 None None None 2023-11-08 19:19:37 UTC

Description tkuroda 2023-07-10 10:23:38 UTC
Description of problem:

Update deployment of overcloud fails with error message: Image registry.redhat.io/rhosp-rhel8/openstack-aodh-api has no tag 16.2.


Version-Release number of selected component (if applicable):

Red Hat OpenStack Platform release 16.2.2 (Train)
openstack-tripleo-common-11.7.1-2.20211218004850.173edba.el8ost.noarch Thu May 12 12:57:26 2022


How reproducible:

Always


Steps to Reproduce:

1. Configure container image preparation file (default: containers-prepare-parameter.yaml) without `tag: 16.2` parameter as follows.

parameter_defaults:
  ContainerImageRegistryCredentials:
    registry.redhat.io:
      'XXXXXXX' : 'XXXXXXX'
  ContainerImagePrepare:
  - push_destination: true
    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_from_label: '{version}-{release}'

2. Deploy overcloud.


Actual results:

Deployment fails with following messages.

WARNING: Following parameter(s) are deprecated and still defined. Deprecated parameters will be removed soon! GnocchiArchivePolicy, NovaComputeSchedulerHints
WARNING: Following parameter(s) are defined but not currently used in the deployment plan. These parameters may be valid but not in use due to the service or deployment configuration. AlertManagerContainerImage, GrafanaContainerImage, NovaComputeAvailabilityZone, PrometheusContainerImage, SwiftRingGetTempurl, SwiftRingPutTempurl
Exception occured while running the command
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tripleoclient/command.py", line 32, in run
    super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/cliff/command.py", line 185, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_deploy.py", line 1069, in take_action
    self._deploy_tripleo_heat_templates_tmpdir(stack, parsed_args)
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_deploy.py", line 435, in _deploy_tripleo_heat_templates_tmpdir
    new_tht_root, tht_root)
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_deploy.py", line 552, in _deploy_tripleo_heat_templates
    deployment_options=deployment_options)
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_deploy.py", line 571, in _try_overcloud_deploy_with_compat_yaml
    deployment_options=deployment_options)
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_deploy.py", line 308, in _heat_deploy
    deployment_options=deployment_options)
  File "/usr/lib/python3.6/site-packages/tripleoclient/workflows/deployment.py", line 87, in deploy_and_wait
    deploy(log, clients, **workflow_input)
  File "/usr/lib/python3.6/site-packages/tripleoclient/workflows/deployment.py", line 69, in deploy
    % (payload['status'], wf_name))
ValueError: Unexpected status FAILED for tripleo.deployment.v1.deploy_plan
Unexpected status FAILED for tripleo.deployment.v1.deploy_plan
Removing the current plan files
Uploading new plan files
Temporary Swift GET/PUT URL parameters have successfully been updated.
Plan updated.
Processing templates in the directory /tmp/tripleoclient-l_tq6jef/tripleo-heat-templates
Deploying templates in the directory /tmp/tripleoclient-l_tq6jef/tripleo-heat-templates
Initializing overcloud plan deployment
Image registry.redhat.io/rhosp-rhel8/openstack-aodh-api has no tag 16.2.
Available tags: 16.1.3-5.1610364748, 16.1.7-10.1646285508, 16.1.6-6, 16.0-79, 16.2.1-6, 16.0-106, 16.0, 16.1.5-1.1618379098, 16.1.8-9, 16.2.0-66-source, 16.1-50, 16.2.2-16-source, 16.2.3-9-source, 16.1.8-10.1655151541-source, 16.1.8-10-source, 16.0-104, 16.1.8-7-source, 16.1.8-9.1651483883-source, 16.2.0-70-source, 16.1.7-10.1643120407-source, 16.2.1-6.1645706313-source, 16.2.2-12, 16.2.2-14-source, 16.2.1-6.1645706313, 16.1.8-10.1655151541, 16.1.6-6.1634111158, 16.0-105, 16.1.8-7, 16.1.6-6.1634111158-source, 16.1.3-6.1614770396, 16.1.3-5.1611701331-source, 16.1.3-6.1614770396-source, 16.2.1-6.1643118678-source, 16.1.7, 16.2.1-6.1643118678, 16.1-45, 16.1.7-10.1643120407, 16.1.4, 16.2.2-12-source, 16.2.3-9, 16.1.6, 16.1-51, 16.1.3-6, 16.1.7-10, 16.1.6-6.1627296110, 16.1-50-source, 16.1.8-10, 16.1.3-5, 16.2.2-16, 16.1.6-6.1627296110-source


Expected results:

deployment to succeed


Additional info:

1. I reproduced this problem in my RHOSP 16.2 test environment during both director installation and overcloud deployment.

2. RHOSP 16.1 also show the same problem which is reported as https://bugzilla.redhat.com/show_bug.cgi?id=2221198.

Comment 2 Takashi Kajinami 2023-07-13 06:00:37 UTC
I think this is the same problem as bz 2221198 .

Can they try using tag:16.2.z instead of tag_from_label ?
It might be more recommended way because using tag_from_lebal or tag:16.2 always pulls the latest images
and can cause inconsistent versions between hosts and containers.

Note that the initial report mentions the customer is using 16.2.2. If they have ever completed deployment
with tag_from_label, without pinning images to the specific tags, they might have different container image
versions deployed. Please check that point and request the customer to follow minor update to resolve
the inconsistency if they have it.

Comment 15 Rabi Mishra 2023-09-18 03:56:31 UTC
*** Bug 2239169 has been marked as a duplicate of this bug. ***

Comment 25 errata-xmlrpc 2023-11-08 19:19:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.2.6 (Train) bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6307


Note You need to log in before you can comment on or make changes to this bug.