Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare.sh - Syntax error while loading YAML #130

Open
shmcfarl opened this issue Jan 8, 2017 · 1 comment
Open

prepare.sh - Syntax error while loading YAML #130

shmcfarl opened this issue Jan 8, 2017 · 1 comment

Comments

@shmcfarl
Copy link

shmcfarl commented Jan 8, 2017

I am building a clean setup and running prepare.sh fails with an error.

./prepare.sh root

Warning: aci.yml was ignored
SSH password:
SUDO password[defaults to SSH password]:
ERROR! Syntax Error while loading YAML.

The error appears to have been in '/root/demo/k8s/prepare.yml': line 56, column 33, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

shell: ifconfig "{{ contiv_control_if }}" "{{ contiv_control_ip }}"/24
when: "{{ management_ip }}" != "{{ contiv_control_ip }}"
                            ^ here

We could be wrong, but this one looks like it might be an issue with
missing quotes. Always quote template expression brackets when they
start a value. For instance:

with_items:
  - {{ foo }}

Should be written as:

with_items:
  - "{{ foo }}"
@gaurav-dalvi
Copy link
Contributor

Thanks for trying it out. Are you using K8s 1.3.x ? We have started supporting K8s1.4.+ which is much cleaner and easier experience.

You can try here : https://github.com/contiv/netplugin/tree/master/install/k8s
Please let us know if you face any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants