Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1346001

Summary: environment opencontrail miss configuration of vrouter
Product: Red Hat OpenStack Reporter: Cyril Lopez <cylopez>
Component: openstack-tripleo-heat-templatesAssignee: Jiri Stransky <jstransk>
Status: CLOSED ERRATA QA Contact: Arik Chernetsky <achernet>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 8.0 (Liberty)CC: agurenko, atelang, ealcaniz, gbarros, jstransk, lhinds, mburns, morazi, pablo.iranzo, rhel-osp-director-maint
Target Milestone: asyncKeywords: OtherQA
Target Release: 8.0 (Liberty)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-0.8.14-20.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1383745 (view as bug list) Environment:
Last Closed: 2016-10-26 13:52:13 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: 1347518, 1364146, 1383745    

Description Cyril Lopez 2016-06-13 15:46:00 UTC
Description of problem:

Environment Opencontrail is only trying to do provisition of vrouter and he is missing the configuration part.

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-0.8.14-11.el7ost.noarch

How reproducible:
Deploy and check the end configuration or hieradata variable

Expected results:
call also 
- contrail::vrouter::config
set variable of contrail::vrouter::config and :
contrail::vnc_api::vnc_api_config: {[auth]
AUTHN_TYPE = keystone
AUTHN_PROTOCOL = http
AUTHN_SERVER = [VIP-Keystone]
AUTHN_PORT = 35357
AUTHN_URL = /v2.0/tokens}

Comment 7 Edu Alcaniz 2016-08-19 07:17:36 UTC
Hi, could we update this BZ and the status. 

Thanks
Very much

Comment 11 Edu Alcaniz 2016-08-24 10:37:45 UTC
I requested information/help to Juniper : Michael (mhenkel) and/or Nagendra
> (npchandran)

Comment 12 Edu Alcaniz 2016-09-06 06:04:59 UTC
Hi, could you update this Bugzilla?

Comment 14 Jiri Stransky 2016-09-06 14:24:27 UTC
Upstream bug: https://bugs.launchpad.net/tripleo/+bug/1620647

Comment 15 Jiri Stransky 2016-09-08 16:35:25 UTC
I looked at the code of t-h-t and the puppet module, we include contrail::vrouter which automatically pulls in contrail::vrouter::config, and that in turn pulls in contrail::vnc_api::vnc_api_config, so i think all the necessary Puppet classes are included, looks like we can just change the hiera settings for them.

And all their hiera settings should be already settable via NovaComputeExtraConfig parameter, so this is most probably just about providing good defaults.

I've submitted a patch here that sets the vnc_api_lib.ini settings as requested.

https://review.openstack.org/#/c/367497/

On my environment vnc_api_lib.ini got created with these contents:

[auth]
AUTHN_PROTOCOL=http
AUTHN_PORT=35357
AUTHN_TYPE=keystone
AUTHN_SERVER=192.0.2.14
AUTHN_URL=/v2.0/tokens


If needed, those settings are still overridable with hiera fed through NovaComputeExtraConfig.

Please let me know in gerrit in case something should be changed/added. (Also it would be good if someone with a Contrail lab could test it end-to-end.)

Comment 16 Luke Hinds 2016-09-16 07:57:47 UTC
This is now merged:

https://review.openstack.org/#/c/367497/

Comment 17 Edu Alcaniz 2016-09-19 11:06:14 UTC
thanks so much. When will be availabe in our repos.

Comment 18 Jiri Stransky 2016-09-19 11:40:27 UTC
It has been merged in time before stable/newton branching out, so it's currently headed into Newton / OSP 10.

Without the fix present in t-h-t yet, the same effect can be achieved by passing an environment file:

parameter_defaults:
  NovaComputeExtraConfig:
    contrail::vnc_api::vnc_api_config:
      'auth/AUTHN_TYPE':
        value: keystone
      'auth/AUTHN_PROTOCOL':
        value: http
      'auth/AUTHN_SERVER':
        value: "%{hiera('keystone_admin_api_vip')}"
      'auth/AUTHN_PORT':
        value: 35357
      'auth/AUTHN_URL':
        value: '/v2.0/tokens'

Comment 24 errata-xmlrpc 2016-10-26 13:52:13 UTC
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://rhn.redhat.com/errata/RHBA-2016-2113.html