contiv-experimental / demo

Easy cut demos to try contiv [DEPRECATED]
Other
6 stars 25 forks source link

prepare.sh - Syntax error while loading YAML #130

Open shmcfarl opened 7 years ago

shmcfarl commented 7 years ago

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 commented 7 years ago

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.