Bug 1322336

Summary: IPv6 overcloud deployment fails
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: openstack-tripleo-heat-templatesAssignee: Giulio Fidente <gfidente>
Status: CLOSED ERRATA QA Contact: Marius Cornea <mcornea>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: adarazs, dbecker, gfidente, jslagle, mburns, morazi, nbarcet, rhel-osp-director-maint
Target Milestone: ga   
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-0.8.14-4.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-15 14:31:41 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:

Description Marius Cornea 2016-03-30 10:31:46 UTC
Description of problem:
IPv6 overcloud deployment fails with the following error:

[root@overcloud-controller-0 hieradata]# FACTER_heat_outputs_path="/var/run/heat-config/heat-config-puppet/4d333b62-073d-4209-a95a-0fc499d14655"  FACTER_fqdn="overcloud-controller-0.localdomain"  FACTER_deploy_config_name="ControllerLoadBalancerDeployment_Step1"  puppet apply --detailed-exitcodes /var/lib/heat-config/heat-config-puppet/4d333b62-073d-4209-a95a-0fc499d14655.pp 
Could not retrieve fact='apache_version', resolution='<anonymous>': undefined method `[]' for nil:NilClass
Could not retrieve fact='apache_version', resolution='<anonymous>': undefined method `[]' for nil:NilClass
Error: Error from DataBinding 'hiera' while looking up 'tripleo::packages::enable_install': (<unknown>): found unexpected ':' while scanning a plain scalar at line 296 column 27 on node overcloud-controller-0.localdomain
Wrapped exception:
(<unknown>): found unexpected ':' while scanning a plain scalar at line 296 column 27
Wrapped exception:
(<unknown>): found unexpected ':' while scanning a plain scalar at line 296 column 27
Error: Error from DataBinding 'hiera' while looking up 'tripleo::packages::enable_install': (<unknown>): found unexpected ':' while scanning a plain scalar at line 296 column 27 on node overcloud-controller-0.localdomain


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

How reproducible:


Steps to Reproduce:
1. Deploy IPv6 enabled overcloud
export THT=/usr/share/openstack-tripleo-heat-templates
openstack overcloud deploy --templates \
-e $THT/environments/network-isolation-v6.yaml \
-e ~/templates/network-environment-v6.yaml \
-e $THT/environments/storage-environment.yaml \
-e ~/templates/enable-tls.yaml \
-e ~/templates/inject-trust-anchor.yaml \
--control-scale 3 \
--compute-scale 1 \
--ceph-storage-scale 2 \
--ntp-server clock.redhat.com \
--libvirt-type qemu


Actual results:
Deployment fails:

    "deploy_stderr": "Could not retrieve fact='apache_version', resolution='<anonymous>': undefined method `[]' for nil:NilClass\nCould not retrieve fact='apache_version', resolution='<anonymous>': undefined method `[]' for nil:NilClass\n\u001b[1;31mError: Error from DataBinding 'hiera' while looking up 'tripleo::packages::enable_install': (<unknown>): found unexpected ':' while scanning a plain scalar at line 296 column 27 on node overcloud-controller-2.localdomain\nWrapped exception:\n(<unknown>): found unexpected ':' while scanning a plain scalar at line 296 column 27\nWrapped exception:\n(<unknown>): found unexpected ':' while scanning a plain scalar at line 296 column 27\u001b[0m\n\u001b[1;31mError: Error from DataBinding 'hiera' while looking up 'tripleo::packages::enable_install': (<unknown>): found unexpected ':' while scanning a plain scalar at line 296 column 27 on node overcloud-controller-2.localdomain\u001b[0m\n", 
    "deploy_status_code": 1


Expected results:
Deployment succeeds.

Additional info:

If I comment out the following value in hiera then running puppet manually works:

awk '{ if (NR==296) print $0 }' /etc/puppet/hieradata/controller.yaml

cinder_iscsi_ip_address: [fd00:fd00:fd00:3000::15]

Comment 2 Attila Darazs 2016-03-31 11:58:27 UTC
Another data point: I manually modified the tripleo-heat-templates to include the changes from 297222 and the deployment succeeded with IPv6. It failed without. Latest poodle.

Comment 7 errata-xmlrpc 2016-04-15 14:31:41 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-0637.html