If the hieradata override file is empty, the deployment will fail with an error about it not being in the correct format because we attempt to convert it to yaml. We should do an empty check so we can more specifically tell the user what needs to be corrected.
rendering j2 template to file: /home/stack/tripleo-heat-installer-templates/./puppet/services/container-image-prepare.yaml
/etc/keystone file is Absent.
Unsupported data format in hieradata override /home/stack/hiera_override.yaml
Exception: Unsupported data format in hieradata override /home/stack/hiera_override.yaml
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1074, in _standalone_deploy
parsed_args)
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/tripleo_deploy.py", line 673, in _deploy_tripleo_heat_templates
environments = self._setup_heat_environments(parsed_args)
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/tripleo_deploy.py", line 638, in _setup_heat_environments
parsed_args.standalone_role))
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/tripleo_deploy.py", line 974, in _process_hieradata_overrides
raise exceptions.DeploymentError(msg)
DeploymentError: Unsupported data format in hieradata override /home/stack/hiera_override.yaml
None
Install artifact is located at /home/stack/undercloud-install-20181212121415.tar.bzip2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Deployment Failed!
ERROR: Heat log files: /var/log/heat-launcher/undercloud_deploy-6W6qSB
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Deployment failed.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An error has occured while deploying the Undercloud.
See the previous output for details about what went wrong.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Command '['sudo', 'openstack', 'tripleo', 'deploy', '--standalone', '--standalone-role', 'Undercloud', '--stack', 'undercloud', '--local-domain=localdomain', '--local-ip=192.168.24.1/24', '--templates=/usr/share/openstack-tripleo-heat-templates/', '--heat-native', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/docker.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/undercloud.yaml', '-e', '/home/stack/containers-prepare-parameter.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/masquerade-networks.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/ironic.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/ironic-inspector.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/mistral.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/zaqar-swift-backend.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/tripleo-ui.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/tempest.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/undercloud-haproxy.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/undercloud-keepalived.yaml', '--public-virtual-ip', '192.168.24.2', '--control-virtual-ip', '192.168.24.3', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/ss[stack@undercloud-0 ~]$ cat /home/stack/hiera_override.yaml
[stack@undercloud-0 ~]$
Fix proposed to branch: master /review. openstack. org/628267
Review: https:/