kolla-kubernetes build guide failure - kolla-ansible mismatch

Bug #1693281 reported by Andrew Bruce
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla-kubernetes
In Progress
Undecided
Anthony Lin

Bug Description

Originally filed bug under https://bugs.launchpad.net/kolla-ansible/+bug/1693014.

Just deployed Kolla following guide at https://docs.openstack.org/developer/kolla-kubernetes/deployment-guide.html

Problem is that neutron-dhcp-agent, neutron-l3-agent, and neutron-metadata-agent all fail to start because the ml2-conf.ini key is missing from the generated configMap.

The cause is a mismatch between kolla-ansible and kolla-kubernetes. Both contain a file named 'ansible/roles/neutron/tasks/config.yml' and the two files are different. Specifically, see services_need_ml2_conf_ini (file https://github.com/andybrucenet/kolla-ansible/blob/dec8fbd7a463ab58d5d5455fcfc45b0302c1a707/ansible/roles/neutron/tasks/config.yml)

I created a fork of kolla-ansible at https://github.com/andybrucenet/kolla-ansible and submitted a bug report. The maintainer indicated that this is not a real problem (you can see the maintainer's remarks in the bug link up top).

Because kolla-kubernetes appears to have a dependency on kolla-ansible, it is important that both teams agree on whether or not ml2_conf.ini is needed for a successful bare metal deployment.

Under the kolla-kubernetes file system, we find:

# helm/microservice/neutron-dhcp-agent-daemonset/templates/dhcp-agent-daemonset.yaml
 21 apiVersion: extensions/v1beta1
 22 kind: DaemonSet
 23 metadata:
 24 name: neutron-dhcp-agent
 25 labels:
 26 component: neutron
 27 system: dhcp-agent
...
117 - name: neutron-dhcp-agent-configmap
118 configMap:
119 name: neutron-dhcp-agent
120 items:
121 - key: neutron.conf
122 path: neutron.conf
123 - key: config.json
124 path: config.json
125 - key: ml2-conf.ini
126 path: ml2_conf.ini
127 - key: dhcp-agent.ini
128 path: dhcp_agent.ini
129 - key: dnsmasq.conf
130 path: dnsmasq.conf

One can see the dependency that kolla-kubernetes has on ml2_conf.ini. Additionally, that same yaml file has other commands (such as crudini) that set variables within ml2_conf.ini.

Please let me know if I should modify my kolla-kubernetes fork to remove all dependencies on ml2_conf.ini from:

* neutron-dhcp-agent
* neutron-l3-agent
* neutron-lbaas-agent
* neutron-metadata-agent
* neutron-vpnaas-agent

Please see https://github.com/openstack/kolla-ansible/compare/master...andybrucenet:master for details on neutron microservices in kolla-kubernetes currently requiring ml2_conf.ini

Revision history for this message
Andrew Bruce (andybrucenet) wrote :
Changed in kolla-kubernetes:
status: New → Fix Committed
Revision history for this message
Andrew Bruce (andybrucenet) wrote :

Went thru the gerrit guide so redoing this bug and PR

Changed in kolla-kubernetes:
assignee: nobody → Andrew Bruce (andybrucenet)
status: Fix Committed → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-kubernetes (master)

Fix proposed to branch: master
Review: https://review.openstack.org/467767

Changed in kolla-kubernetes:
status: New → In Progress
Changed in kolla-kubernetes:
assignee: Andrew Bruce (andybrucenet) → Anthony Lin (eanylin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla-kubernetes (master)

Change abandoned by Jeffrey Zhang (jeffrey.zhang@99cloud.net) on branch: master
Review: https://review.openstack.org/467767

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.