Subcloud prestage post upgrade/reinstall using prestaged data fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Tee Ngo |
Bug Description
Brief Description
-----------------
Subcloud prestage would fail if the following conditions are met a) it was previously upgraded or reinstalled using prestaged data and b) the prestage image list contains any stx-monitor images that start with docker.elastic.co
Severity
--------
Major
Steps to Reproduce
------------------
1. Bring up a DC system with 1 simplex subcloud
2. Apply stx-monitor app on both system controller and subcloud
2. Upgrade the system controller
3. Upload the prestage image list containing docker.
3. Prestage the simplex subcloud for upgrade
4. Upgrade the subcloud
5. Prestage the subcloud using dcmanager subcloud prestage command
A simpler way to reproduce the issue is as-follows
1. Bring up a DC system with 1 simplex subcloud
2. On the subcloud, manually pull image docker.
docker image tag docker.
docker image tag docker.
then push both to the local registry
docker image push registry.
docker image push registry.
3. Prestage the subcloud using dcmanager subcloud prestage command
Expected Behavior
------------------
Subcloud prestage succeeds
Actual Behavior
----------------
Subcloud prestage failed during generate image bundle step due to
Error: No such image: docker.
Reproducibility
---------------
100% reproducible
System Configuration
-------
Distributed Cloud
Branch/Pull Time/Commit
-------
March 31st, 2022 master build
Last Pass
---------
First time testing this case
Timestamp/Logs
--------------
The issue is readily reproducible
Test Activity
-------------
Feature Testing
Workaround
----------
Manually remove docker.
Changed in starlingx: | |
assignee: | nobody → Tee Ngo (teewrs) |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.7.0 stx.config stx.distcloud |
Fix proposed to branch: master /review. opendev. org/c/starlingx /ansible- playbooks/ +/837453
Review: https:/