SMLite:R3.0.3.x build 3: Provision stops at haproxy_completed with error at cassandra,ceilometer

Bug #1635978 reported by sundarkh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
New
Undecided
Unassigned
R3.0
Fix Committed
Critical
Nitish Krishna Kaveri
R3.0.3.x
Fix Committed
Critical
Nitish Krishna Kaveri

Bug Description

SMLite:R3.0.3.x build 3: Provision stops at haproxy_completed with error at cassandra,ceilometer

1) Install SM lite on a target
2) Observe that it stops at haproxy_completed with follwing errors

Syslog error
Oct 23 01:07:52 nodeg21 puppet-master[1285]: Unrecognised escape sequence '\/' in file /etc/puppet/environments/image_contrail_packages_3_0_3_1_3_kilo/modules/contrail/manifests/database/config_cassandra.pp at line 140

Oct 23 01:07:52 nodeg21 puppet-agent[2666]: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find data item openstack::ceilometer::mongo in any Hiera data file and no default supplied at /etc/puppet/environments/image_contrail_packages_3_0_3_1_3_kilo/modules/contrail/manifests/profile/mongodb.pp:13 on node nodeg21.englab.juniper.net

/etc/puppet/environments/image_contrail_packages_3_0_3_1_3_kilo/hieradata/nodeg21.englab.juniper.net-openstack.yaml

######## Ceilometer
openstack::ceilometer::mongo::password: 'contrail123'
openstack::ceilometer::password: 'contrail123'
openstack::ceilometer::meteringsecret: ''

 /etc/puppet/environments/image_contrail_packages_3_0_3_1_3_kilo/modules/contrail/manifests/database/config_cassandra.pp +140

exec { 'update-jamm':
        command => "sed -i -e 's/lib\/jamm-0.2.5.jar/lib\/jamm-0.3.0.jar/' $cassandra_env_file",
        provider => shell,
      }
      exec

testbed.py used
----------------
https://github.com/Juniper/contrail-tools/blob/master/testbeds/testbed_smgr_multi_node.py.ubuntu-14.04

sundarkh (sundar-kh)
description: updated
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/25195
Submitter: Nitish Krishna Kaveri (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/25195
Committed: http://github.org/Juniper/contrail-server-manager/commit/1ef99ca4af8e8c11d8994648ffdd383fffec61ef
Submitter: Zuul
Branch: R3.0.3.x

commit 1ef99ca4af8e8c11d8994648ffdd383fffec61ef
Author: nitishkrishna <email address hidden>
Date: Sun Oct 23 14:46:03 2016 -0700

Closes-Bug: #1635978 - Ceilometer param changed in puppet but not SM side

The parameter openstack::ceilometer::mongo::password: was changed to openstack::ceilometer::mongo:

But it is still being generated as openstack::ceilometer::mongo::password: in SM Lite
The hieradata template file was changed to reflect this.
This problem will be seen in SM lite or in SM if this param is not specified.

In SM, the cluster.json being used should use ceilometer:mongo: as here:

"openstack": {
"ceilometer": {
"mongo": "<password>",
If it is being set at all.

Change-Id: Iac6524b81665e53b5356a9b9ffe9fb5c6a436b13

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/25210
Submitter: Nitish Krishna Kaveri (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/25210
Committed: http://github.org/Juniper/contrail-puppet/commit/03467fe27d9e304b24812e690e79b17f6e1c432f
Submitter: Zuul
Branch: R3.0.3.x

commit 03467fe27d9e304b24812e690e79b17f6e1c432f
Author: nitishkrishna <email address hidden>
Date: Mon Oct 24 01:14:14 2016 -0700

Closes-Bug: #1635978 - Openstack manifests still using old param name

The param name was changed but we saw SM vs SM lite issues due to old params vs. new params

SM used new params which were able to use the new param name in contrail.yaml
But the SM lite nodes used old params which tried to use value in openstack.yaml
When this old param name was changed in the openstack.yaml aslo, it affected openstack modules which were using it

When this check-in is merged this parameter will be consistent in usage across both contrail and openstack yaml files
As well as contrail and openstack manifest files

Change-Id: Ifce5332e4a7bacd3158c7eba6673b4a9bf8f62ac

Revision history for this message
sundarkh (sundar-kh) wrote :

commit https://review.opencontrail.org/25210 did not made it to build R3.0.3.x build 4

and hence SM provisioning is failing now with

Oct 25 21:03:41 nodec35 puppet-agent[16219]: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find data item openstack::ceilometer::mongo::password in any Hiera data file and no default supplied at /etc/puppet/environments/ubuntu14kilo4/modules/openstack/manifests/init.pp:348 on node nodec35.englab.juniper.net

Revision history for this message
sundarkh (sundar-kh) wrote :

https://review.opencontrail.org/25210, got merged with build 6.

Issue not seen with build 6, Provision gets completed

Revision history for this message
Nitish Krishna Kaveri (nitishk) wrote :

Made fix_committed acc. to comment above

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/25531
Submitter: Nitish Krishna Kaveri (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/25531
Committed: http://github.org/Juniper/contrail-server-manager/commit/7ade00888c9041db3bf8c4be17b531c526f51304
Submitter: Zuul
Branch: R3.0

commit 7ade00888c9041db3bf8c4be17b531c526f51304
Author: nitishkrishna <email address hidden>
Date: Mon Oct 31 10:30:59 2016 -0700

Closes-Bug: #1635978 - Ceilometer param changed in puppet but not SM side

The parameter openstack::ceilometer::mongo::password: was changed to openstack::ceilometer::mongo:

But it is still being generated as openstack::ceilometer::mongo::password: in SM Lite
The hieradata template file was changed to reflect this.
This problem will be seen in SM lite or in SM if this param is not specified.

In SM, the cluster.json being used should use ceilometer:mongo: as here:

"openstack": {
"ceilometer": {
"mongo": "<password>",
If it is being set at all.

Change-Id: Iac6524b81665e53b5356a9b9ffe9fb5c6a436b13

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.