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
8ec3ffc6
Commit
8ec3ffc6
authored
5 years ago
by
Zuul
Committed by
Gerrit Code Review
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix nova deploy with Ansible<2.8"
parents
887938bb
5be093ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/nova/tasks/discover_computes.yml
+13
-12
13 additions, 12 deletions
ansible/roles/nova/tasks/discover_computes.yml
with
13 additions
and
12 deletions
ansible/roles/nova/tasks/discover_computes.yml
+
13
−
12
View file @
8ec3ffc6
...
@@ -28,17 +28,6 @@
...
@@ -28,17 +28,6 @@
delegate_to
:
"
{{
groups['nova-api'][0]
}}"
delegate_to
:
"
{{
groups['nova-api'][0]
}}"
-
name
:
Waiting for nova-compute services to register themselves
-
name
:
Waiting for nova-compute services to register themselves
vars
:
# A list containing the 'Host' field of compute services that have
# registered themselves. Don't exclude compute services that are disabled
# since these could have been explicitly disabled by the operator. While we
# could exclude services that are down, the nova-manage cell_v2
# discover_hosts does not do this so let's not block on it here.
found_compute_service_hosts
:
>-
{{ nova_compute_services.stdout |
from_json |
map(attribute='Host') |
list }}
become
:
true
become
:
true
command
:
>
command
:
>
docker exec kolla_toolbox openstack
docker exec kolla_toolbox openstack
...
@@ -60,7 +49,19 @@
...
@@ -60,7 +49,19 @@
delay
:
10
delay
:
10
until
:
until
:
-
nova_compute_services is success
-
nova_compute_services is success
-
found_compute_service_hosts is superset(expected_compute_service_hosts)
# A list containing the 'Host' field of compute services that have
# registered themselves. Don't exclude compute services that are disabled
# since these could have been explicitly disabled by the operator. While we
# could exclude services that are down, the nova-manage cell_v2
# discover_hosts does not do this so let's not block on it here.
# NOTE(mgoddard): Cannot factor this out into an intermediary variable
# before ansible 2.8, due to
# https://bugs.launchpad.net/kolla-ansible/+bug/1835817.
-
(nova_compute_services.stdout |
from_json |
map(attribute='Host') |
list)
is superset(expected_compute_service_hosts)
# TODO(yoctozepto): no need to do --by-service if ironic not used
# TODO(yoctozepto): no need to do --by-service if ironic not used
-
name
:
Discover nova hosts
-
name
:
Discover nova hosts
...
...
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