[openstack-dev] [lbaas][octavia] suggestion for today's meeting agenda: How to make the Amphora-agent support additional Linux flavors
nmagnezi at redhat.com
Wed Jun 29 15:26:36 UTC 2016
Lately, I've been working on a fix for the amhpora-agent, which
currently only support Debian based flavors such as Ubuntu.
The main Issues here:
1. NIC hot plugs: Ubuntu's ethX.cfg files looks different from ifcfg-ethX
files which are accepted in Linux flavors such a RHEL, CentOS and Fedora,
read more in the fix commit msg.
2. The usage of Flavor specific features such as 'upstart'.
I would like to have a discussion about the second bullet mentioned above.
Due to the fact that in Octavia the loadbalancer runs inside of an instance
(Amphora), There are few actions that need to take place in the Amphora
instance boot process:
a. namespace and NIC created.
b. amphora agent starts
c. haproxy (and possibly keepalived) start
The Amphora-agent leverages the capabilities of 'upstart' to make that
happen, which is a bit problematic if we wish it to work on other flavors.
The default cloud image for Amphora today is Ubuntu, yet there are few more
options such as CentOS and Fedora.
Unlike the Ubuntu base image, which uses 'sysvinit', The latter two flavors
This creates incompatibility with the jinja2 templates used by the
The way I see it there are two possible solutions for this:
1. Include a systemd equivalent in the fix that will essentially
duplicate the functionality mentioned above and work in the other flavors.
2. Have a the amphora agent be the only binary that needs to be configured
to start upon boot, and that agent will take care of plugging namespaces
and NICs and also spawning needs processes. This is how it is done in lbaas
and l3 agents.
While the latter solution looks like a more "clean" design, the trade-off
here is a bigger change to the amphora agent.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev