Bug 1395390 - Can't deploy with OSP 9 images from an OSP 10 Undercloud if the Undercloud is configured with SSL
Summary: Can't deploy with OSP 9 images from an OSP 10 Undercloud if the Undercloud is...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jiri Stransky
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-15 21:30 UTC by Ramon Acedo
Modified: 2016-11-17 16:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-17 16:10:49 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Ramon Acedo 2016-11-15 21:30:51 UTC
If the Undercloud is configured with SSL and the OSP 9 overcloud-full image is used to deploy the following error appears during the os-collect-config run on a controller:


 (heat-config) [DEBUG] Running /var/lib/heat-config/hooks/puppet < /var/lib/heat-config/deployed/f748838f-7a68-49d9-a896-6fda40ecb5d6.json
 (heat-config) [INFO] {"deploy_stdout": "", "deploy_stderr": "\u001b[1;31mError: Could not find class ::tripleo::trusted_cas for overcloud-controller-0.localdomain on node overcloud-controller-0.localdo
 (heat-config) [DEBUG] [2016-11-15 15:25:19,382] (heat-config) [DEBUG] Running FACTER_heat_outputs_path="/var/run/heat-config/heat-config-puppet/f748838f-7a68-49d9-a896-6fda40ecb5d6"  FACTER_fqdn="overc
 (heat-config) [INFO] Return code 1
 (heat-config) [INFO] Error: Could not find class ::tripleo::trusted_cas for overcloud-controller-0.localdomain on node overcloud-controller-0.localdomain
ss ::tripleo::trusted_cas for overcloud-controller-0.localdomain on node overcloud-controller-0.localdomain
 (heat-config) [ERROR] Error running /var/lib/heat-config/heat-config-puppet/f748838f-7a68-49d9-a896-6fda40ecb5d6.pp. [1]

Looking at the file it uses "include ::tripleo::trusted_cas":

# Copyright 2015 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

if hiera('step') >= 4 {
  hiera_include('controller_classes', [])
}

$package_manifest_name = join(['/var/lib/tripleo/installed-packages/overcloud_controller_pacemaker', hiera('step')])
package_manifest{$package_manifest_name: ensure => present}
include ::tripleo::trusted_cas

[...]

No workaround at this point but could be a similar fix to the one in https://bugs.launchpad.net/tripleo/+bug/1626452

Comment 1 Ramon Acedo 2016-11-15 23:21:33 UTC
Please, disregard, this happens if --templates /usr/share/openstack-tripleo-heat-templates/mitaka/ is not specified when using the OSP 9 (Mitaka) Overcloud image from OSP 10.


Note You need to log in before you can comment on or make changes to this bug.