Create cluster doesn't handle user variable additions at end of file

Bug #1647702 reported by Samuel Matzek
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
open-power-ref-design
Fix Released
Undecided
Luke Browning

Bug Description

Between running bootstrap-cluster and create-cluster I modified /etc/openstack_deploy/user_variables.yml and added my used IP ranges at the bottom of the file. When I run create-cluster it ran through the ceph cluster creation and then failed with this error:

Variable files: "-e @/etc/openstack_deploy/user_secrets_trove.yml -e @/etc/openstack_deploy/user_secrets.yml -e @/etc/openstack_deploy/user_var_ceilometer.yml -e @/etc/openstack_deploy/user_var_ceph.yml -e @/etc/openstack_deploy/user_var_haproxy.yml -e @/etc/openstack_deploy/user_variables_trove.yml -e @/etc/openstack_deploy/user_variables.yml "
ERROR: Syntax Error while loading YAML script, /etc/openstack_deploy/user_variables.yml
Note: The error may actually appear before this position: line 185, column 33

  - "172.29.240.1,172.29.240.50"
  - "172.29.244.1,172.29.244.50"apply_security_hardening: false

My guess is that this is because my edit did not have a new line at the end of the file.

This should be fixed and we should seriously consider running the syntax check command at the head of create-cluster, before the user walks away during Ceph cluster creation or anything else that runs before the OSA run. The syntax check is documented here [1].

[1] http://docs.openstack.org/developer/openstack-ansible/install-guide/installation.html

Changed in open-power-ref-design:
assignee: nobody → Luke Browning (lukebrowning-y)
Revision history for this message
Luke Browning (lukebrowning-y) wrote :
Changed in open-power-ref-design:
status: New → Fix Released
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.