Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
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
Kolla Ansible
Commits
249c6a26
Commit
249c6a26
authored
5 years ago
by
Zuul
Committed by
Gerrit Code Review
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix glance bootstrap with file backend"
parents
c02629d7
1abd15d4
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/glance/tasks/bootstrap_service.yml
+3
-7
3 additions, 7 deletions
ansible/roles/glance/tasks/bootstrap_service.yml
ansible/roles/glance/tasks/rolling_upgrade.yml
+8
-12
8 additions, 12 deletions
ansible/roles/glance/tasks/rolling_upgrade.yml
with
11 additions
and
19 deletions
ansible/roles/glance/tasks/bootstrap_service.yml
+
3
−
7
View file @
249c6a26
---
---
-
name
:
Enable log_bin_trust_function_creators function
-
name
:
Enable log_bin_trust_function_creators function
vars
:
glance_api
:
"
{{
glance_services['glance-api']
}}"
become
:
true
become
:
true
kolla_toolbox
:
kolla_toolbox
:
module_name
:
mysql_variables
module_name
:
mysql_variables
...
@@ -13,7 +11,7 @@
...
@@ -13,7 +11,7 @@
variable
:
log_bin_trust_function_creators
variable
:
log_bin_trust_function_creators
value
:
1
value
:
1
run_once
:
True
run_once
:
True
delegate_to
:
"
{{
groups[
glance_api
.group]
[0]
}}"
delegate_to
:
"
{{
glance_api
_hosts
[0]
}}"
when
:
when
:
-
not use_preconfigured_databases | bool
-
not use_preconfigured_databases | bool
...
@@ -35,11 +33,9 @@
...
@@ -35,11 +33,9 @@
restart_policy
:
"
never"
restart_policy
:
"
never"
volumes
:
"
{{
glance_api.volumes|reject('equalto',
'')|list
}}"
volumes
:
"
{{
glance_api.volumes|reject('equalto',
'')|list
}}"
run_once
:
True
run_once
:
True
delegate_to
:
"
{{
groups[
glance_api
.group]
[0]
}}"
delegate_to
:
"
{{
glance_api
_hosts
[0]
}}"
-
name
:
Disable log_bin_trust_function_creators function
-
name
:
Disable log_bin_trust_function_creators function
vars
:
glance_api
:
"
{{
glance_services['glance-api']
}}"
become
:
true
become
:
true
kolla_toolbox
:
kolla_toolbox
:
module_name
:
mysql_variables
module_name
:
mysql_variables
...
@@ -51,6 +47,6 @@
...
@@ -51,6 +47,6 @@
variable
:
log_bin_trust_function_creators
variable
:
log_bin_trust_function_creators
value
:
0
value
:
0
run_once
:
True
run_once
:
True
delegate_to
:
"
{{
groups[
glance_api
.group]
[0]
}}"
delegate_to
:
"
{{
glance_api
_hosts
[0]
}}"
when
:
when
:
-
not use_preconfigured_databases | bool
-
not use_preconfigured_databases | bool
This diff is collapsed.
Click to expand it.
ansible/roles/glance/tasks/rolling_upgrade.yml
+
8
−
12
View file @
249c6a26
...
@@ -4,14 +4,12 @@
...
@@ -4,14 +4,12 @@
# Upgrade first node (NEW NODE in the Glance documentation)
# Upgrade first node (NEW NODE in the Glance documentation)
-
include_tasks
:
config.yml
-
include_tasks
:
config.yml
when
:
inventory_hostname ==
groups["
glance
-
api
"]
[0]
when
:
inventory_hostname == glance
_
api
_hosts
[0]
-
include_tasks
:
stop_service.yml
-
include_tasks
:
stop_service.yml
when
:
inventory_hostname ==
groups["
glance
-
api
"]
[0]
when
:
inventory_hostname == glance
_
api
_hosts
[0]
-
name
:
Enable log_bin_trust_function_creators function
-
name
:
Enable log_bin_trust_function_creators function
vars
:
glance_api
:
"
{{
glance_services['glance-api']
}}"
become
:
true
become
:
true
kolla_toolbox
:
kolla_toolbox
:
module_name
:
mysql_variables
module_name
:
mysql_variables
...
@@ -23,7 +21,7 @@
...
@@ -23,7 +21,7 @@
variable
:
log_bin_trust_function_creators
variable
:
log_bin_trust_function_creators
value
:
1
value
:
1
run_once
:
True
run_once
:
True
delegate_to
:
"
{{
groups[
glance_api
.group]
[0]
}}"
delegate_to
:
"
{{
glance_api
_hosts
[0]
}}"
when
:
when
:
-
not use_preconfigured_databases | bool
-
not use_preconfigured_databases | bool
...
@@ -46,7 +44,7 @@
...
@@ -46,7 +44,7 @@
restart_policy
:
"
never"
restart_policy
:
"
never"
volumes
:
"
{{
glance_api.volumes
}}"
volumes
:
"
{{
glance_api.volumes
}}"
run_once
:
True
run_once
:
True
delegate_to
:
"
{{
groups[
glance_api
.group]
[0]
}}"
delegate_to
:
"
{{
glance_api
_hosts
[0]
}}"
-
name
:
Running Glance database migrate container
-
name
:
Running Glance database migrate container
vars
:
vars
:
...
@@ -67,13 +65,13 @@
...
@@ -67,13 +65,13 @@
restart_policy
:
"
never"
restart_policy
:
"
never"
volumes
:
"
{{
glance_api.volumes
}}"
volumes
:
"
{{
glance_api.volumes
}}"
run_once
:
True
run_once
:
True
delegate_to
:
"
{{
groups[
glance_api
.group]
[0]
}}"
delegate_to
:
"
{{
glance_api
_hosts
[0]
}}"
notify
:
notify
:
-
Restart glance-api container
-
Restart glance-api container
# Upgrade remaining node
# Upgrade remaining node
-
include_tasks
:
config.yml
-
include_tasks
:
config.yml
when
:
inventory_hostname !=
groups["
glance
-
api
"]
[0]
when
:
inventory_hostname != glance
_
api
_hosts
[0]
-
name
:
Flush handlers
-
name
:
Flush handlers
meta
:
flush_handlers
meta
:
flush_handlers
...
@@ -97,11 +95,9 @@
...
@@ -97,11 +95,9 @@
restart_policy
:
"
never"
restart_policy
:
"
never"
volumes
:
"
{{
glance_api.volumes
}}"
volumes
:
"
{{
glance_api.volumes
}}"
run_once
:
True
run_once
:
True
delegate_to
:
"
{{
groups[
glance_api
.group]
[0]
}}"
delegate_to
:
"
{{
glance_api
_hosts
[0]
}}"
-
name
:
Disable log_bin_trust_function_creators function
-
name
:
Disable log_bin_trust_function_creators function
vars
:
glance_api
:
"
{{
glance_services['glance-api']
}}"
become
:
true
become
:
true
kolla_toolbox
:
kolla_toolbox
:
module_name
:
mysql_variables
module_name
:
mysql_variables
...
@@ -113,7 +109,7 @@
...
@@ -113,7 +109,7 @@
variable
:
log_bin_trust_function_creators
variable
:
log_bin_trust_function_creators
value
:
0
value
:
0
run_once
:
True
run_once
:
True
delegate_to
:
"
{{
groups[
glance_api
.group]
[0]
}}"
delegate_to
:
"
{{
glance_api
_hosts
[0]
}}"
when
:
when
:
-
not use_preconfigured_databases | bool
-
not use_preconfigured_databases | bool
...
...
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