@gcalixto:matrix.org | Hi all, | 12:32 |
---|---|---|
We found an issue when installing our DX lab with STX master to validate STX-O f/antelope to run sanity this week: | ||
[#2038968 - DX installation failed to pull images ](https://bugs.launchpad.net/starlingx/+bug/2038968) | ||
@maloute:matrix.org | > <@ldeataid:matrix.org> Please keep us updated with your results if possible, as Douglas said, we haven't tried applying STX-Openstack in a subcloud for a while | 13:38 |
I've tried to install stx-openstack, the application-upload stage is OK, but the application-stage fails, it seems that it can't find some images on the local subcloud and on the central cloud, I'm making a pastebin | ||
@maloute:matrix.org | https://pastebin.com/DuQWUYC4 | 13:40 |
@maloute:matrix.org | subcloud seems okay except that one major alarm related to the failure of stx-openstack | 13:42 |
@jreed:matrix.org | In a DC setup, ahead of time, before installing any app, the image have to be accounted for. One can have images added at install time or can manually add them. | 14:45 |
@jreed:matrix.org | I'm not 100% sure because I'm still learning, but I think there is some ability to fall back on public registry to download an image. So the subcloud will follow this pattern: | 14:46 |
1. Try pull from registry.local | ||
2. If not found, try pull from registry.central | ||
3. [Not sure about this] If not found, try public registry; eg docker.io | ||
@jreed:matrix.org | When I have this problem, I take the guess work out and manually confirm the images are present on registry.central first. | 14:47 |
@maloute:matrix.org | Not sure about 3 because my subcloud has internet connectivity so in theory it should download if there is a fallback to internet. I'm not sure how to test downloading images from registry central but will try in a couple if hours | 15:02 |
@brunomuniz:matrix.org | I don't know about 3 either, but I do have some info that hopefully is helpful. There's a way to configure `service-parameter`s, which include the URL for the docker registries that StarlingX uses. | 15:17 |
@brunomuniz:matrix.org | This is, for example, the output of `source /etc/platform/openrc; system service-parameter-list` | 15:18 |
@brunomuniz:matrix.org | We leverage that in this guide that we merged a few couple months ago: https://docs.starlingx.io/developer_resources/local_registry.html | 15:19 |
@brunomuniz:matrix.org | There's a script there on step 5 that you can easily customize so it pulls image from the official registries and then push into your `registry.central:5000` (this is the part you'd have to modify, I think). | 15:21 |
@brunomuniz:matrix.org | You provide a list to the script, a list of images that you want to make sure are available on the target registry, and if they are already there, the script will do nothing, so in a way it can help you check if any image is already there. | 15:22 |
@brunomuniz:matrix.org | My local registry that I use to speed-up my installations, for example, contain one of the images I saw in your pastebin: | 15:27 |
``` | ||
>> cat niles.txt | ||
docker.io/starlingx/stx-cinder:rc-stx.8.0-debian-stable-20230211T045208Z.0 | ||
images | ||
>> ./populate_registry.sh niles.txt | ||
--- docker.io/starlingx/stx-cinder:rc-stx.8.0-debian-stable-20230211T045208Z.0: Skipping... | ||
``` | ||
@maloute:matrix.org | Thank you brunomuniz and jreed I'll try this script. | 15:32 |
@jreed:matrix.org | A lot of the inner workings of StarlingX are not obvious/documented so that's why I tend to do things myself, like manually adding images and making sure they're in place. | 15:34 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!