Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-44775

Upload archive failed for retrieving Inventory host ids in kessel ephemeral env

XMLWordPrintable

    • Product / Portfolio Work
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Unset
    • None

      Description of Problem

      Upload archive failed for retrieving Inventory host ids in kessel ephemeral env, it throws 404 error"Failed: The following systems were not found in time: ['d2e8a145-31e3-46e1-86d2-80bcaaea6073']"

       

      Steps to Reproduce

      In [24]: upload_archive=app_org_admin_advisor.advisor.archive_uploader.upload(archive="non_rhel", wait_for_advisor=True)
      2026-02-04 09:46:00.662 [    INFO] [iqe_advisor.modeling.ingress_api] Uploading Insights archives using Ingress API asynchronously
      2026-02-04 09:46:00.662 [    INFO] [iqe_advisor.modeling.ingress_api] Uploading system: iqe-advisor-c96a113b-6e83-45a4-88db-61917a361944.test ...
      2026-02-04 09:46:00.663 [    INFO] [root] REST: http://ingress-service.ephemeral-moih6u.svc:8000/api/ingress/v1/upload
      2026-02-04 09:46:00.693 [    INFO] [iqe.base.rest_client] REST: POST http://ingress-service.ephemeral-moih6u.svc:8000/api/ingress/v1/upload with query params [] and x-rh-insights-request-id=ingress-service-847fb7cf86-99xg7/NemP67sBU2-011546
      2026-02-04 09:46:00.693 [    INFO] [iqe_advisor.modeling.ingress_api] System 'iqe-advisor-c96a113b-6e83-45a4-88db-61917a361944.test' upload status: 201 - response data: {'request_id': 'ingress-service-847fb7cf86-99xg7/NemP67sBU2-011546', 'upload': {'account_number': '5042115', 'org_id': '8420159'}}
      2026-02-04 09:46:00.694 [    INFO] [iqe_advisor.modeling.inventory_api] Retrieving Inventory host ids asynchronously
      2026-02-04 09:46:00.722 [    INFO] [iqe.base.rest_client] REST: GET http://host-inventory-service.ephemeral-moih6u.svc:8000/api/inventory/v1/hosts with query params [('insights_id', 'd2e8a145-31e3-46e1-86d2-80bcaaea6073')] and x-rh-insights-request-id=None
      
      
      ---------------------------------------------------------------------------
      Failed                                    Traceback (most recent call last)
      Cell In[24], line 1
      ----> 1 upload_archive=app_org_admin_advisor.advisor.archive_uploader.upload(archive="non_rhel", wait_for_advisor=True)File ~/lib/python3.12/site-packages/iqe_advisor/modeling/advisor_archive_uploader.py:52, in AdvisorArchiveUploader.upload(self, archive, hostname, insights_id, machine_id, wait_for_advisor, get_inventory_id, add_to_inventory_group, tags, sids, cleanup)
           49     get_inventory_id = True
           51 if get_inventory_id:
      ---> 52     self._advisor.inventory_api.get_inventory_id(archive)
           54     if wait_for_advisor:
           55         self._advisor.system_api.wait_for_reports(archive)File ~/lib/python3.12/site-packages/iqe_advisor/modeling/inventory_api.py:75, in InventoryApiWrapper.get_inventory_id(self, uploaded_archives)
           72 insights_ids = [archive.insights_id for archive in uploaded_archives]
           74 logger.info("Retrieving Inventory host ids asynchronously")
      ---> 75 return async_loop_call(
           76     uuids=insights_ids,
           77     uuid_param="insights_id",
           78     api_func=self._hosts_api.api_host_get_host_list,
           79     verification_func=_verify,
           80     uploads=uploaded_archives,
           81 )File ~/lib/python3.12/site-packages/iqe_advisor/utils/api_utils.py:95, in async_loop_call(uuids, uuid_param, api_func, verification_func, uploads, delay, retries)
           92 time.sleep(delay)
           94 if loop_count == retries:
      ---> 95     pytest.fail(f"The following systems were not found in time: {uuids}")File ~/lib/python3.12/site-packages/_pytest/outcomes.py:163, in _Fail.__call__(self, reason, pytrace)
          161 def __call__(self, reason: str = "", pytrace: bool = True) -> NoReturn:
          162     __tracebackhide__ = True
      --> 163     raise Failed(msg=reason, pytrace=pytrace)Failed: The following systems were not found in time: ['d2e8a145-31e3-46e1-86d2-80bcaaea6073']
      
       

       

       

      Actual Behavior  

      Failed for retrieving Inventory host ids asynchronously after upload archive

      Expected Behavior

      It should be able to get Inventory host ids asynchronously after upload archive

              lpichler@redhat.com Libor Pichler
              yanpliu yanping liu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: