Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-12546

BZ#2321715 openstack undercloud install on 16.2-latest aborts with keyerror and exception (Late oct 2024)

XMLWordPrintable

    • False
    • False
    • Committed
    • No Docs Impact
    • openstack-tripleo-common-11.7.1-2.20241105125025.e189622.el8ost
    • Committed
    • Committed
    • None
    • Important

      Description of problem:

      'openstack undercloud install' last worked fine a month ago (Sept 11th 2024).
      Now, with the latest rpms, I get a python error.
      Config files have not changed in several years.

      Sept 11th 2024:

        • Handling template files **
          jinja2 rendering normal template net-config-bond.j2.yaml
          rendering j2 template to file: /home/stack/tripleo-heat-installer-templates/./net-config-bond.yaml
          [..]
          rendering j2 template to file: /home/stack/tripleo-heat-installer-templates/./extraconfig/all_nodes/swap.yaml
          jinja2 rendering role template role.role.j2.yaml
          jinja2 rendering roles Undercloud
          rendering j2 template to file: /home/stack/tripleo-heat-installer-templates/./extraconfig/nova_metadata/krb-service-principals/undercloud-role.yaml
          jinja2 rendering network template network.network.j2.yaml
          jinja2 rendering networks External
          rendering j2 template to file: /home/stack/tripleo-heat-installer-templates/./network/external.yaml

      I now (2024/10/24) get this:
      rendering j2 template to file: /home/stack/tripleo-heat-installer-templates/./network/ports/external_from_pool_v6.yaml
      jinja2 rendering network template port_v6.network.j2.yaml
      jinja2 rendering networks External
      rendering j2 template to file: /home/stack/tripleo-heat-installer-templates/./network/ports/external_v6.yaml
      jinja2 rendering role template role.role.j2.yaml
      jinja2 rendering roles Undercloud
      rendering j2 template to file: /home/stack/tripleo-heat-installer-templates/./puppet/undercloud-role.yaml
      Exception: 'layers'
      Traceback (most recent call last):
      File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1297, in _standalone_deploy
      parsed_args)
      File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_deploy.py", line 814, in _deploy_tripleo_heat_templates
      self._prepare_container_images(env, roles_data)
      File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_deploy.py", line 759, in _prepare_container_images
      env, roles_data, dry_run=True)
      File "/usr/lib/python3.6/site-packages/tripleo_common/image/kolla_builder.py", line 228, in container_images_prepare_multi
      lock=lock
      File "/usr/lib/python3.6/site-packages/tripleo_common/image/kolla_builder.py", line 357, in container_images_prepare
      images, tag_from_label, default_tag)
      File "/usr/lib/python3.6/site-packages/tripleo_common/image/image_uploader.py", line 1142, in discover_image_tags
      discover_args):
      File "/usr/lib64/python3.6/concurrent/futures/_base.py", line 586, in result_iterator
      yield fs.pop().result()
      File "/usr/lib64/python3.6/concurrent/futures/_base.py", line 432, in result
      return self.__get_result()
      File "/usr/lib64/python3.6/concurrent/futures/_base.py", line 384, in __get_result
      raise self._exception
      File "/usr/lib64/python3.6/concurrent/futures/thread.py", line 56, in run
      result = self.fn(*self.args, **self.kwargs)
      File "/usr/lib/python3.6/site-packages/tripleo_common/image/image_uploader.py", line 2779, in discover_tag_from_inspect
      i = self._inspect(image_url, session=session, default_tag=default_tag)
      File "/usr/lib/python3.6/site-packages/tripleo_common/image/image_uploader.py", line 2606, in _inspect
      image_url, session=session, default_tag=default_tag)
      File "/usr/lib/python3.6/site-packages/tenacity/_init_.py", line 292, in wrapped_f
      return self.call(f, *args, **kw)
      File "/usr/lib/python3.6/site-packages/tenacity/_init_.py", line 358, in call
      do = self.iter(retry_state=retry_state)
      File "/usr/lib/python3.6/site-packages/tenacity/_init_.py", line 319, in iter
      return fut.result()
      File "/usr/lib64/python3.6/concurrent/futures/_base.py", line 425, in result
      return self.__get_result()
      File "/usr/lib64/python3.6/concurrent/futures/_base.py", line 384, in __get_result
      raise self._exception
      File "/usr/lib/python3.6/site-packages/tenacity/_init_.py", line 361, in call
      result = fn(*args, **kwargs)
      File "/usr/lib/python3.6/site-packages/tripleo_common/image/image_uploader.py", line 956, in _inspect
      layers = [x['digest'] for x in manifest['layers']]
      KeyError: 'layers'
      None
      Install artifact is located at /home/stack/undercloud-install-20241025085006.tar.bzip2

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

      Deployment Failed!

      ERROR: Heat log files: /var/log/heat-launcher/undercloud_deploy-395n1egj

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

      Deployment failed.

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

              rhn-support-ramishra Rabi Mishra
              jira-bugzilla-migration RH Bugzilla Integration
              David Rosenfeld David Rosenfeld
              rhos-dfg-df
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: