Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kayobe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kayobe
Commits
107ee935
Commit
107ee935
authored
1 year ago
by
Zuul
Committed by
Gerrit Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix passwords.yml generation when parent directory doesn't exist"
parents
8dd280e8
52870831
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/roles/kolla-ansible/library/kolla_passwords.py
+3
-0
3 additions, 0 deletions
ansible/roles/kolla-ansible/library/kolla_passwords.py
releasenotes/notes/fix-kolla-passwords-f1b5d051c494b4d8.yaml
+8
-0
8 additions, 0 deletions
releasenotes/notes/fix-kolla-passwords-f1b5d051c494b4d8.yaml
with
11 additions
and
0 deletions
ansible/roles/kolla-ansible/library/kolla_passwords.py
+
3
−
0
View file @
107ee935
...
...
@@ -20,6 +20,7 @@ short_description: Generates a kolla-ansible passwords file
from
ansible.module_utils.basic
import
*
import
os
import
os.path
import
shutil
import
tempfile
...
...
@@ -238,6 +239,8 @@ def kolla_passwords(module):
checksum_temp_file
=
module
.
sha1
(
temp_file_path
)
changed
=
checksum_dest
!=
checksum_temp_file
else
:
os
.
makedirs
(
os
.
path
.
dirname
(
module
.
params
[
'
dest
'
]),
exist_ok
=
True
)
changed
=
True
# Encrypt the file.
...
...
This diff is collapsed.
Click to expand it.
releasenotes/notes/fix-kolla-passwords-f1b5d051c494b4d8.yaml
0 → 100644
+
8
−
0
View file @
107ee935
---
fixes
:
-
|
Fixes an issue where generation of ``passwords.yml`` for Kolla Ansible
could fail if the directory containing the file does not exist. This is
typical in a multiple environment setup, when creating a new environment.
See `story 2010293 <https://storyboard.openstack.org/#!/story/2010293>`_
for details.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment