Need to handle empty ghcr.io registry in prestage images playbook
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Tee Ngo |
Bug Description
Brief Description
-----------------
Prestage images playbook does not handle the case where the system controller is running stx6 while the subcloud is running stx5 (i.e. ghcr.io registry is defined but is empty).
Severity
--------
Major
Steps to Reproduce
------------------
Set up a DC system where the system controller is running stx6 and the subcloud(s) is running stx5
Apply the dev patch containing the subcloud prestage feature
Run subcloud prestage command on the system controller to prestage
Expected Behavior
------------------
Subcloud prestage completes successfully
Actual Behavior
----------------
Prestage images failed due to mishandling of empty ghcr.io registry
Reproducibility
---------------
100% reproducible
System Configuration
-------
Distributed Cloud
Branch/Pull Time/Commit
-------
http://
Last Pass
---------
This test passed when the system controller was also running stx5 load. It fails when the system controller runs stx6 load where the support for ghcr.io registry was first introduced.
Timestamp/Logs
--------------
500 Server Error: Internal Server Error ("manifest unknown: manifest unknown")
Image registry.
Image download succeeded: registry.
500 Server Error: Internal Server Error ("manifest unknown: manifest unknown")
Image registry.
HARD FAIL - Image download failed: registry.
500 Server Error: Internal Server Error ("manifest unknown: manifest unknown")
Image registry.
HARD FAIL - Image download failed: registry.
Local download flag: no
Traceback (most recent call last):
File "/tmp/.
raise Exception("Failed to download images %s" % failed_downloads)
Exception: Failed to download images [u'registry.
stdout_lines: <omitted>
Test Activity
-------------
Feature Testing
Workaround
----------
None
tags: | added: stx.7.0 stx.config |
Changed in starlingx: | |
importance: | Undecided → Medium |
assignee: | nobody → Tee Ngo (teewrs) |
Fix proposed to branch: master /review. opendev. org/c/starlingx /ansible- playbooks/ +/830515
Review: https:/