Skip to content

Commit

Permalink
Closes-Bug: #1469264 - Neutron notification_driver param set incorrec…
Browse files Browse the repository at this point in the history
…tly.

Previously it was being set to empty if ceilometer was not enabled.
Patch 2:
- Reverting change to set this config for Ceilometer
- Whatever is the default value when neutron is installed, that will be taken
Patch 3:
- Missed removing one line

Change-Id: I557d7e3bcb8a4d9002fe65ccdc015212534055dd

Closes-Bug: #1478101 - Heat Auth Encryption Key set incorrectly

Previously the auth_encryption_key param of heat engine was being set as empty.
This is caused heat stack-create to fail.
Fab provisioned Heat uses Default auth key (This param is not set).

Fix:
Since puppet manifest of heat engine requires auth key as mandatory param, we are setting it to the default that Heat internally uses
If we wish to change the auth key, we can provide it in the openstack params as ::openstack::config::heat_encryption_key
There is an accompanying check-in to server-manager-repo to set this param there

Change-Id: Ie2c828fff0a206eec5e963a6902e9413d56026ac

Related-Bug: #1471596 - Smgr changes for Keepliaved independence for Cluster monitor and monitoring jobs

This check-in:
Is the Smgr side changes made for the checkins at:
https://review.opencontrail.org/#/c/12280/
and https://review.opencontrail.org/#/c/12281/

Extra parameters are being passed to the script setup-vnc-galera
These parameters are set or configured in ha_config.pp

Should go in after Thilak's commit:
https://review.opencontrail.org/#/c/12734/4

Small bug fix - Verified setup-vnc-galera ran on HA Setup

Change-Id: I9263248e2f632fc04dbebbb99afbd0abeff45390

Related-Bug: #1471596 - Readding Fab to Server Manager Provisioning

This check-in:
Brings back Fab package to Server Manager provisioning
There are many contrail-provisioning scripts that use fab commands and sm puppet scripts have to be extricated from these before fab can be removed

Change-Id: Ib289948e0e0317cff1a9de064e86b22b6acca265
  • Loading branch information
nitishkrishna committed Oct 10, 2015
1 parent 415e3b3 commit 97df333
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 18 deletions.
Expand Up @@ -102,6 +102,7 @@ def fixup_config_files(self):
template_vals,
self._temp_dir_name + '/galera_param')
local("sudo mv %s/galera_param /etc/contrail/ha/" % (self._temp_dir_name))
zk_servers_ports = ','.join(['%s:2181' %(s) for s in self._args.zoo_ip_list])


if self.check_cluster(self._args.galera_ip_list, self._args.self_ip):
Expand Down
Expand Up @@ -14,10 +14,13 @@

if ( $package_name != '' ) {
package {$package_name: ensure => latest, install_options => '--force-yes'} ->

package { ['binutils', 'make', 'libdpkg-perl', 'patch', 'dpkg-dev',
'python-software-properties', 'contrail-fabric-utils', 'contrail-setup' ] :
ensure => latest
} ->

package {Fabric: ensure => present, provider => pip, install_options => ['--find-links=file://opt/contrail/python_packages']}
# May need to install fabric-utils here. below commented out code is kept for reference, in case needed.
# pip install --upgrade --no-deps --index-url='' /opt/contrail/python_packages/Fabric-*.tar.gz

Expand Down
Expand Up @@ -2,7 +2,9 @@
# The puppet module to set up openstack::heat for contrail
#
#
class contrail::profile::openstack::heat () {
class contrail::profile::openstack::heat (
$heat_auth_encryption_key = $::openstack::config::heat_encryption_key
) {
openstack::resources::controller { 'heat': }
openstack::resources::database { 'heat': }
openstack::resources::firewall { 'Heat API': port => '8004', }
Expand Down Expand Up @@ -65,7 +67,7 @@
}

class { '::heat::engine':
auth_encryption_key => $::openstack::config::heat_encryption_key,
auth_encryption_key => $heat_auth_encryption_key
}

$contrail_api_server = $::contrail::params::config_ip_to_use
Expand Down
7 changes: 0 additions & 7 deletions contrail/environment/modules/neutron/manifests/init.pp
Expand Up @@ -189,11 +189,6 @@
# If set to boolean false, it will not log to any directory
# Defaults to /var/log/neutron
#
# [*notification_driver*]
# (optional) Driver or drivers to handle sending notifications.
# Value can be a string or a list.
# Defaults to []
#
class neutron (
$enabled = true,
$package_ensure = 'present',
Expand Down Expand Up @@ -251,7 +246,6 @@
$log_facility = 'LOG_USER',
$log_file = false,
$log_dir = '/var/log/neutron',
$notification_driver = '',
) {

include neutron::params
Expand Down Expand Up @@ -321,7 +315,6 @@
'DEFAULT/allow_overlapping_ips': value => $allow_overlapping_ips;
'DEFAULT/control_exchange': value => $control_exchange;
'DEFAULT/rpc_backend': value => $rpc_backend;
'DEFAULT/notification_driver': value => $notification_driver;
'agent/root_helper': value => $root_helper;
'agent/report_interval': value => $report_interval;
}
Expand Down
Expand Up @@ -5,12 +5,6 @@
# This follows the suggest deployment from the neutron Administrator Guide.
class openstack::common::contrail::neutron {
$controller_management_address = $::openstack::config::controller_address_management
$enable_ceilometer = $::contrail::params::enable_ceilometer
if ($enable_ceilometer) {
$notification_driver = 'neutron.openstack.common.notifier.rpc_notifier'
} else {
$notification_driver = ''
}

$data_network = $::openstack::config::network_data
$data_address = ip_for_network($data_network)
Expand All @@ -33,7 +27,6 @@
debug => $::openstack::config::debug,
verbose => $::openstack::config::verbose,
service_plugins => ['neutron_plugin_contrail.plugins.opencontrail.loadbalancer.plugin.LoadBalancerPlugin'],
notification_driver => $notification_driver,
}

class { '::neutron::server':
Expand Down
5 changes: 3 additions & 2 deletions contrail/environment/modules/openstack/manifests/init.pp
Expand Up @@ -179,6 +179,7 @@
#
# [*heat_encryption_key*]
# The encyption key for the shared heat services.
# Defaults to "notgood but just long enough i think"
#
# == Horizon
# [*horizon_secret_key*]
Expand Down Expand Up @@ -283,7 +284,7 @@
$ceilometer_password = undef,
$ceilometer_meteringsecret = undef,
$heat_password = undef,
$heat_encryption_key = undef,
$heat_encryption_key = "notgood but just long enough i think",
$horizon_secret_key = undef,
$tempest_configure_images = undef,
$tempest_image_name = undef,
Expand Down Expand Up @@ -348,7 +349,7 @@
ceilometer_password => hiera(openstack::ceilometer::password),
ceilometer_meteringsecret => hiera(openstack::ceilometer::meteringsecret),
heat_password => hiera(openstack::heat::password),
heat_encryption_key => hiera(openstack::heat::encryption_key),
heat_encryption_key => hiera(openstack::heat::encryption_key, $heat_encryption_key),
horizon_secret_key => hiera(openstack::horizon::secret_key),
verbose => hiera(openstack::verbose),
debug => hiera(openstack::debug),
Expand Down

0 comments on commit 97df333

Please sign in to comment.