Unable to add a subcloud with mixed docker_registries configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Tee Ngo |
Bug Description
Brief Description
-----------------
Unable to add a subcloud with mixed docker_registries configuration such as:
docker_registries:
k8s.gcr.io:
url: myaws.private.
type: aws-ecr
username: test_registry_user
password: St8rlingX*
gcr.io:
url: myaws.private.
type: aws-ecr
username: test_registry_user
password: St8rlingX*
quay.io:
url: quay.io
docker.io:
url: docker.io
docker.
url: myaws.private.
type: aws-ecr
username: test_registry_user
password: St8rlingX*
ghcr.io:
url: myaws.private.
type: aws-ecr
username: test_registry_user
password: St8rlingX*
defaults:
type: docker
Severity
--------
Critical
Steps to Reproduce
------------------
Add a subcloud with mixed docker_registries configuration (authenticated and unauthenticated registry sources)
Expected Behavior
------------------
Actual Behavior
----------------
Subcloud bootstrap fails with the following ansible error
TASK [bootstrap/
Thursday 03 February 2022 20:23:10 +0000 (0:00:00.015) 0:01:27.138 *****
fatal: [subcloud1]: FAILED! =>
msg: |-
The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'username'
The error appears to have been in '/usr/share/
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- block:
- name: Create Barbican secret for elastic registry if credentials exist
^ here
PLAY RECAP *******
subcloud1 : ok=177 changed=45 unreachable=0 failed=1
Reproducibility
---------------
100% reproducible
System Configuration
-------
Distributed Cloud
Branch/Pull Time/Commit
-------
Feb. 02, 2022 master build
Last Pass
---------
This configuration has never been verified before
Timestamp/Logs
--------------
See error log above
Test Activity
-------------
Feature Testing
Workaround
----------
None
Changed in starlingx: | |
assignee: | nobody → Tee Ngo (teewrs) |
description: | updated |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.con |
tags: |
added: stx.7.0 stx.config removed: stx.con |
tags: | added: stx.distcloud |
Fix proposed to branch: master /review. opendev. org/c/starlingx /ansible- playbooks/ +/827888
Review: https:/