kubespray / kubespray-cli

Easy to use command line tool for kubernetes deployment with kubespray
GNU General Public License v3.0
252 stars 62 forks source link

ERROR! Syntax Error while loading YAML. #94

Closed pennpeng closed 7 years ago

pennpeng commented 7 years ago

openstack_version:ocata kubespray 0.4.9 ansible (2.3.1.0) Jinja2 (2.9.6)

[root@localhost ~]# kubespray openstack --masters 2 --nodes 2 --etcds 3
 [WARNING]: A directory /root/.kubespray already exists

Are you sure to overwrite it ? [Y/n] y

CLONING KUBESPRAY GIT REPO ***************************************************************************************************************************************************************************************************************************************************
Cloning into '/root/.kubespray'...
kubespray repo cloned
Create 4 instances on openstack ? [Y/n] y
ERROR! Syntax Error while loading YAML.

The error appears to have been in '/root/.kubespray/local.yml': line 10, column 28, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

          name: '{{item}}', network: a393ede1-6652-4986-9754-ce204fd4f8c6, region_name: RegionOne,
          security_groups: !!python/tuple [!!python/unicode 'k8s-havilland-3l5n6c'],
                           ^ here
jidar commented 7 years ago

I'm seeing the same issue, also using the openstack cloud config

de1m commented 7 years ago

90 Problem is fixed.

The file on ubuntu is here /usr/local/lib/python2.7/dist-packages/kubespray