Skip to content

Commit

Permalink
Merge pull request #157 from stackhpc/upstream/yoga-2023-08-29
Browse files Browse the repository at this point in the history
Synchronise yoga with upstream
  • Loading branch information
mnasiadka authored Aug 29, 2023
2 parents 1b0c9c9 + 19aebf9 commit 04bb5a6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ansible/container-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@
password: "{{ kolla_docker_registry_password }}"
reauthorize: yes
when:
# NOTE(wszumski): Switch to truthy filter when min ansible>=2.10.5
- kolla_docker_registry_username not in [none, ""]
- kolla_docker_registry_password not in [none, ""]
- kolla_docker_registry_username is truthy
- kolla_docker_registry_password is truthy

- name: Ensure Kolla container images are built
shell:
Expand Down
10 changes: 10 additions & 0 deletions ansible/roles/deploy-containers/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
---
- name: Login to docker registry
docker_login:
registry_url: "{{ kolla_docker_registry or omit }}"
username: "{{ kolla_docker_registry_username }}"
password: "{{ kolla_docker_registry_password }}"
reauthorize: yes
when:
- kolla_docker_registry_username is truthy
- kolla_docker_registry_password is truthy

- name: Deploy containers (loop)
include_tasks: deploy.yml
vars:
Expand Down
6 changes: 6 additions & 0 deletions releasenotes/notes/kayobe_docker_login-495a424c2da479a7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
fixes:
- |
Fixed issue of seed containers being unable to use password
protected registry by adding docker login function to kayobe
deploy-containers role.
4 changes: 4 additions & 0 deletions roles/kayobe-diagnostics/files/get_logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ copy_logs() {
cp -r /etc/apt/sources.list.d/ ${LOG_DIR}/system_logs/
fi

if [[ -d /etc/systemd/ ]]; then
cp -rL /etc/systemd/ ${LOG_DIR}/system_logs/
fi

df -h > ${LOG_DIR}/system_logs/df.txt
# Gather disk usage statistics for files and directories larger than 1MB
du -d 5 -hx / | sort -hr | grep '^[0-9\.]*[MGT]' > ${LOG_DIR}/system_logs/du.txt
Expand Down

0 comments on commit 04bb5a6

Please sign in to comment.