Bug 1435266

Summary: Octavia should not bind to local host but proper networker ip
Product: Red Hat OpenStack Reporter: Alexander Stafeyev <astafeye>
Component: openstack-tripleo-heat-templatesAssignee: Brent Eagles <beagles>
Status: CLOSED CURRENTRELEASE QA Contact: Alexander Stafeyev <astafeye>
Severity: high Docs Contact:
Priority: high    
Version: 11.0 (Ocata)CC: amuller, aschultz, astafeye, beagles, jjoyce, jlibosva, mburns, rhel-osp-director-maint
Target Milestone: z1Keywords: TestOnly, Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-8.0.2-35.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-10 10:34:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1378993    
Attachments:
Description Flags
conf file none

Description Alexander Stafeyev 2017-03-23 13:39:28 UTC
Created attachment 1265762 [details]
conf file

Description of problem:
/etc/octavia/octavia.conf
[DEFAULT]
# Print more verbose output (set logging level to INFO instead of default WARNING level).
# verbose = True
# Print debugging output (set logging level to DEBUG instead of default WARNING level).
# debug = False
# bind_host = 127.0.0.1 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# bind_port = 9876
# api_handler = queue_producer
#
# How should authentication be handled (keystone, noauth)
# auth_strategy = noauth


The specified i nthe cond file is 
host = 172.17.1.19 ---------> should be bind_host = 172.17.1.19


!!!conf file attached !!! 

Version-Release number of selected component (if applicable):
rhos11

How reproducible:
100%

Steps to Reproduce:
1. deploy ops11 with ospd + octavia yaml files 
2.
3.

Actual results:
Octavia binds to local host 

Expected results:
SHould bind to the networker

Additional info:

Comment 1 Assaf Muller 2017-04-13 18:38:27 UTC
Brent and I discussed this and came up with the following plan:

If you can please change bind_host to the IP of the controller on the internal API network and run Tempest to see if that works. If it does, then Brent can send a patch to TripleO to ensure that octavia-api binds on normal IP address on the internal API network, which means that it will not be a post-deployment documentation step, but will happen automatically through regular deployment.

If it doesn't work, then it will continue to be a post-deployment documented step (To use the IP address on the LB network) and we'll target 12 to fix it in TripleO.

Comment 2 Alexander Stafeyev 2017-04-19 05:29:17 UTC
(In reply to Assaf Muller from comment #1)
> Brent and I discussed this and came up with the following plan:
> 
> If you can please change bind_host to the IP of the controller on the
> internal API network and run Tempest to see if that works. If it does, then
> Brent can send a patch to TripleO to ensure that octavia-api binds on normal
> IP address on the internal API network, which means that it will not be a
> post-deployment documentation step, but will happen automatically through
> regular deployment.
> 
> If it doesn't work, then it will continue to be a post-deployment documented
> step (To use the IP address on the LB network) and we'll target 12 to fix it
> in TripleO.

I need to execute post deployment step anyhow. 
I will comment out the post deployment configuration and configure manually "bind_host" in the octavia.conf file. 

I will get back with the result.

Comment 4 Red Hat Bugzilla Rules Engine 2017-05-01 19:45:48 UTC
This bugzilla has been removed from the release and needs to be reviewed and Triaged for another Target Release.

Comment 5 Assaf Muller 2017-07-07 19:18:13 UTC
Following up on comment 2, did we nail this down?

Comment 6 Alexander Stafeyev 2017-08-14 11:42:33 UTC
(In reply to Assaf Muller from comment #5)
> Following up on comment 2, did we nail this down?

I do not recall what happened with this one. 

I do recall that changing the IP to the non localhost ip did not result with issues. 

May be NirM remembers something regarding that.

Comment 7 Nir Magnezi 2017-08-14 11:54:53 UTC
(In reply to Alexander Stafeyev from comment #6)
> (In reply to Assaf Muller from comment #5)
> > Following up on comment 2, did we nail this down?
> 
> I do not recall what happened with this one. 
> 
> I do recall that changing the IP to the non localhost ip did not result with
> issues. 
> 
> May be NirM remembers something regarding that.

I can't answer until both Or and Brent finalize the current Octavia:TripleO work, but maybe they'll have a better answer.

Comment 8 Brent Eagles 2017-10-31 12:48:44 UTC
This is currently being handled in workflow driven ansible in this patch: https://review.openstack.org/#/c/487450/

Comment 15 Jon Schlueter 2018-06-27 19:40:39 UTC
According to our records, this should be resolved by openstack-tripleo-heat-templates-8.0.2-38.el7ost.  This build is available now.