Hide Forgot
Description of problem: When creating the amphora image with octavia-diskimage-create.sh, it fetches Octavia from stable upstream instead of using the OSP 11 Octavia RPM: "Caching amphora-agent from https://git.openstack.org/openstack/octavia in /root/.cache/image-create/source-repositories/amphora_agent_4fc13bf1648c049f25ccae0082dd95e0b8b47e0b" How reproducible: 100% Steps to Reproduce: 1. Install Octavia OSP 11 RPM 2. Run octavia-diskimage-create.sh -i rhel Actual results: "Caching amphora-agent from https://git.openstack.org/openstack/octavia in /root/.cache/image-create/source-repositories/amphora_agent_4fc13bf1648c049f25ccae0082dd95e0b8b47e0b" Expected results: Caching amphora-agent from Octavia OSP 11 RPM
Good catch Arie! The reason this is happening is that the diskimage-builder.sh script uses the following element to deploy the amphora-agent (and some more python dependencies): https://github.com/openstack/octavia/blob/master/elements/amphora-agent/source-repository-amphora-agent We need to handle this a bit differently in RHEL (and possibly in CentOS). Instead of the above-mentioned element, we'll need a new element for RHEL which will: 1 Deploy the amphora-agent from an RPM (which is doable, we deploy openstack-selinux from repositories provided by subscription-manager). 2. Configure systemd to start the octavia-amphora-agent.service on boot. We don't need to handle any additional systemd configuration or python upper-constraints, since we expect the RPM to handle all of that.
An update on this fix (which is not currently merged). Bernard's patch[1] worked okay for me. I was able to create a RHEL based amphora with diskimage-builder.sh using this patch. I also managed to successfully create a loadbalancer and a attach a listener. The Amphora Agent is up and running and haproxy got configured and spawned. [1] https://review.openstack.org/#/c/469850
https://review.rdoproject.org/r/#/c/6985 got merged and already included in rhos-12.0-patches https://review.openstack.org/#/c/469850/ was just merged to u/s master.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:3462