Add ability to move neutron services around the environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Low
|
Logan V | ||
Liberty |
Fix Released
|
Low
|
Logan V | ||
Trunk |
Fix Released
|
Low
|
Logan V |
Bug Description
In order to deploy projectcalico in openstack, I no longer need neutron agents containers as the compute nodes handle their own networking. On the compute node the only neutron service I need is neutron_dhcp_agent. So I made the obvious change to env.d:
belongs_to:
- compute_containers
contains:
- - neutron_
+ - neutron_dhcp_agent
+ - nova_api_metadata
- nova_compute
properties:
is_metal: true
This did not result in a neutron_dhcp_agent service being configured in the compute node, because the tasks are set up in a way that every neutron service besides neutron_
The following change I am testing allows neutron services to be deployed whereever the environment determines they must be.
diff --git a/playbooks/
index 381fa0b..efa8b15 100644
--- a/playbooks/
+++ b/playbooks/
@@ -60,7 +60,7 @@
notify:
- Restart neutron services
when: >
- inventory_hostname in groups[
+ inventory_hostname in groups[
tags:
- neutron-config
@@ -79,7 +79,7 @@
when:
- item.value.
- item.value.
- - inventory_hostname in groups[
+ - inventory_hostname in "{{ groups[ item.value.
tags:
- neutron-config
diff --git a/playbooks/
index da27dda..68df14f 100644
--- a/playbooks/
+++ b/playbooks/
@@ -36,7 +36,7 @@
system_group: "{{ neutron_
service_home: "{{ neutron_
when:
- - inventory_hostname in groups[
+ - inventory_hostname in groups[
- neutron_
tags:
- upstart-init
@@ -50,7 +50,7 @@
system_group: "{{ neutron_
service_home: "{{ neutron_
when:
- - inventory_hostname in groups[
+ - inventory_hostname in groups[
- neutron_
tags:
- upstart-init
@@ -78,7 +78,7 @@
system_group: "{{ neutron_
service_home: "{{ neutron_
when:
- - inventory_hostname in groups[
+ - inventory_hostname in groups[
- neutron_
tags:
- upstart-init
@@ -92,7 +92,7 @@
system_group: "{{ neutron_
service_home: "{{ neutron_
when:
- - inventory_hostname in groups[
+ - inventory_hostname in groups[
- neutron_
tags:
- upstart-init
After making this change I have a neutron_dhcp_agent deploying to my compute node as expected.
Hi @Logan,
The change you have in the diff looks sensible for general consumption. Might you have an change to post that up for review so that we get some core reviewer eyes on it and potentially in upstream?
If you need help getting started with the general OpenStack commit process let us know in the channel we'd be happy to help. In the meantime, thank you for the diff (patch) and I look forward to seeing it as a review in the future.