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
233f2b6d
Commit
233f2b6d
authored
7 years ago
by
Jenkins
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Update simple_cell_setup to manual creation"
parents
a910be91
5dfb81ef
No related branches found
Branches containing commit
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/simple_cell_setup.yml
+43
-37
43 additions, 37 deletions
ansible/roles/nova/tasks/simple_cell_setup.yml
with
43 additions
and
37 deletions
ansible/roles/nova/tasks/simple_cell_setup.yml
+
43
−
37
View file @
233f2b6d
---
#- name: Waiting for nova-compute service up
# command: >
# docker exec kolla_toolbox openstack
# --os-interface internal
# --os-auth-url {{ keystone_admin_url }}
# --os-identity-api-version 3
# --os-project-domain-name default
# --os-tenant-name admin
# --os-username admin
# --os-password {{ keystone_admin_password }}
# --os-user-domain-name default
# compute service list -f json --service nova-compute
# register: nova_compute_services
# changed_when: false
# run_once: True
# delegate_to: "{{ groups['nova-api'][0] }}"
# retries: 20
# delay: 10
# until:
# - nova_compute_services | success
# - nova_compute_services.stdout | from_json | length != 0
-
name
:
Create cell0 mappings
command
:
>
docker exec nova_api nova-manage cell_v2 map_cell0
register
:
map_cell0
changed_when
:
-
map_cell0 | success
-
'
"Cell0
is
already
setup"
not
in
map_cell0.stdout'
failed_when
:
-
map_cell0.rc !=
0
run_once
:
True
delegate_to
:
"
{{
groups['nova-api'][0]
}}"
-
include
:
bootstrap_service.yml
when
:
map_cell0.changed
# NOTE (egonzalez) Remove after service-list is fixed
-
name
:
TMP Waiting for nova-compute service up
-
name
:
Create base cell for legacy instances
command
:
>
docker exec kolla_toolbox mysql
-unova -p{{ nova_database_password }}
-h {{ database_address }} nova
-e "SELECT topic from services WHERE topic = 'compute'";
docker exec nova_api nova-manage cell_v2 create_cell
register
:
base_cell
changed_when
:
-
base_cell | success
failed_when
:
-
base_cell.rc !=
0
-
'
"already
exists"
not
in
base_cell.stdout'
run_once
:
True
delegate_to
:
"
{{
groups['nova-api'][0]
}}"
-
name
:
Waiting for nova-compute service up
command
:
>
docker exec kolla_toolbox openstack
--os-interface internal
--os-auth-url {{ keystone_admin_url }}
--os-identity-api-version 3
--os-project-domain-name default
--os-tenant-name admin
--os-username admin
--os-password {{ keystone_admin_password }}
--os-user-domain-name default
compute service list -f json --service nova-compute
register
:
nova_compute_services
changed_when
:
false
run_once
:
True
...
...
@@ -36,16 +46,12 @@
delay
:
10
until
:
-
nova_compute_services | success
-
nova_compute_services.stdout | length !=
0
-
nova_compute_services.stdout |
from_json |
length !=
0
-
name
:
Running nova simple cell setup
command
:
docker exec nova_api nova-manage cell_v2 simple_cell_setup
register
:
cell_setup
changed_when
:
-
cell_setup | success
-
'
"Cell0
is
already
setup"
not
in
cell_setup.stdout'
failed_when
:
-
cell_setup.rc !=
0
-
'
"No
hosts
found
to
map
to
cell,
exiting."
not
in
cell_setup.stdout'
-
name
:
Discovering nova hosts
command
:
>
docker exec nova_api nova-manage cell_v2 discover_hosts
register
:
discover_hosts
changed_when
:
False
run_once
:
True
delegate_to
:
"
{{
groups['nova-api'][0]
}}"
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