"could not found expected ':'; line 80"
This woks:
'tst-www-apm-edu-au02-ap-southeast-2b.think.vpc or tst-www-ancb-edu-au02-ap-southeast-2b.think.vpc or tst-www-billyblue-edu-au02-ap-southeast-2b.think.vpc or tst-www-catc-edu-au02-ap-southeast-2b.think.vpc or tst-m-billyblue-edu-au-ap-southeast-2b.think.vpc or tst-www-jni-edu-au02-ap-southeast-2b.think.vpc or tst-www-ssnt-edu-au02-ap-southeast-2b.think.vpc or tst-www-torrens-edu-au02-ap-southeast-2b.think.vpc or tst-www-think-edu-au02-ap-southeast-2b.think.vpc or tst-www-williamblue-edu-au02-ap-southeast-2b.think.vpc or tst-acnt.edu.au02-ap-southeast-2b.think.vpc or tst-ancb.edu.au02-ap-southeast-2b.think.vpc or tst-billyblue.edu.au-ap-southeast-2b.think.vpc or tst-m-billyblue-edu-au-ap-southeast-2b.think.vpc or tst-ssnt.edu.au02-ap-southeast-2b.think.vpc or tst-staff-test-think-edu-au01-ap-southeast-2b.think.vpc or tst-williamblue.edu.au-ap-southeast-2b.think.vpc or tst-b2cwp01-ap-southeast-2b.think.vpc or tst-frontier04-ap-southeast-2b.think.vpc or tst-phidu-torrens-edu-au-ap-southeast-2b.think.vpc':
- current
This gives the error
'tst-www-apm-edu-au02-ap-southeast-2b.think.vpc or tst-www-ancb-edu-au02-ap-southeast-2b.think.vpc or tst-www-billyblue-edu-au02-ap-southeast-2b.think.vpc or tst-www-catc-edu-au02-ap-southeast-2b.think.vpc or tst-m-billyblue-edu-au-ap-southeast-2b.think.vpc or tst-www-jni-edu-au02-ap-southeast-2b.think.vpc or tst-www-ssnt-edu-au02-ap-southeast-2b.think.vpc or tst-www-torrens-edu-au02-ap-southeast-2b.think.vpc or tst-www-think-edu-au02-ap-southeast-2b.think.vpc or tst-www-williamblue-edu-au02-ap-southeast-2b.think.vpc or tst-acnt.edu.au02-ap-southeast-2b.think.vpc or tst-ancb.edu.au02-ap-southeast-2b.think.vpc or tst-billyblue.edu.au-ap-southeast-2b.think.vpc or tst-m-billyblue-edu-au-ap-southeast-2b.think.vpc or tst-ssnt.edu.au02-ap-southeast-2b.think.vpc or tst-staff-test-think-edu-au01-ap-southeast-2b.think.vpc or tst-williamblue.edu.au-ap-southeast-2b.think.vpc or tst-b2cwp01-ap-southeast-2b.think.vpc or tst-frontier04-ap-southeast-2b.think.vpc or tst-phidu-torrens-edu-au-ap-southeast-2b.think.vpc or tst-campaigns01-ap-southeast-2b.think.vpc':
- current
Full error:
_errors:
- Rendering Primary Top file failed, render error:
could not found expected ':'; line 80
---
[...]
- campaigns
'tst-deltawp*':
- s3cmd
- deltawp
# current b2c test servers.
'tst-www-apm-edu-au02-ap-southeast-2b.think.vpc or tst-www-ancb-edu-au02-ap-southeast-2b.think.vpc or tst-www-billyblue-edu-au02-ap-southeast-2b.think.vpc or tst-www-catc-edu-au02-ap-southeast-2b.think.vpc or tst-m-billyblue-edu-au-ap-southeast-2b.think.vpc or tst-www-jni-edu-au02-ap-southeast-2b.think.vpc or tst-www-ssnt-edu-au02-ap-southeast-2b.think.vpc or tst-www-torrens-edu-au02-ap-southeast-2b.think.vpc or tst-www-think-edu-au02-ap-southeast-2b.think.vpc or tst-www-williamblue-edu-au02-ap-southeast-2b.think.vpc or tst-acnt.edu.au02-ap-southeast-2b.think.vpc or tst-ancb.edu.au02-ap-southeast-2b.think.vpc or tst-billyblue.edu.au-ap-southeast-2b.think.vpc or tst-m-billyblue-edu-au-ap-southeast-2b.think.vpc or tst-ssnt.edu.au02-ap-southeast-2b.think.vpc or tst-staff-test-think-edu-au01-ap-southeast-2b.think.vpc or tst-williamblue.edu.au-ap-southeast-2b.think.vpc or tst-b2cwp01-ap-southeast-2b.think.vpc or tst-frontier04-ap-southeast-2b.think.vpc or tst-phidu-torrens-edu-au-ap-southeast-2b.think.vpc or tst-campaign01-ap-southeast-2b.think.vpc': <======================
Salt Version:
Salt: 2015.8.8.2
Dependency Versions:
Jinja2: 2.6
M2Crypto: 0.21.1
Mako: Not Installed
PyYAML: 3.10
PyZMQ: 14.0.1
Python: 2.7.3 (default, Dec 18 2014, 19:10:20)
RAET: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.4
cffi: Not Installed
cherrypy: 3.2.2
dateutil: 2.2
gitdb: 0.5.4
gitpython: 0.3.2 RC1
ioflo: Not Installed
libgit2: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.3.0
mysql-python: 1.2.3
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: Not Installed
smmap: 0.8.2
timelib: Not Installed
System Versions:
dist: Ubuntu 12.04 precise
machine: x86_64
release: 3.2.0-63-virtual
system: Ubuntu 12.04 precise
I've split the line across 2 patterns and we are working.
eg
'some hostnames here':
'The other half of the hostname patterns':
@DaveQB i am able to replicate this. seems to be a limit of 1025 characters. Anything over that number and the sls renderer fails.
For example:
This works:
➜ ~ cat /srv/salt/pillar/issues/33389.sls
'tst-www-apm-edu-au02-ap-southeast-2b.think.vpc or tst-www-ancb-edu-au02-ap-southeast-2b.think.vpc or tst-www-billyblue-edu-au02-ap-southeast-2b.think.vpc or tst-www-catc-edu-au02-ap-southeast-2b.think.vpc or tst-m-billyblue-edu-au-ap-southeast-2b.think.vpc or tst-www-jni-edu-au02-ap-southeast-2b.think.vpc or tst-www-ssnt-edu-au02-ap-southeast-2b.think.vpc or tst-www-torrens-edu-au02-ap-southeast-2b.think.vpc or tst-www-think-edu-au02-ap-southeast-2b.think.vpc or tst-www-williamblue-edu-au02-ap-southeast-2b.think.vpc or tst-acnt.edu.au02-ap-southeast-2b.think.vpc or tst-ancb.edu.au02-ap-southeast-2b.think.vpc or tst-billyblue.edu.au-ap-southeast-2b.think.vpc or tst-m-billyblue-edu-au-ap-southeast-2b.think.vpc or tst-ssnt.edu.au02-ap-southeast-2b.think.vpc or tst-staff-test-think-edu-au01-ap-southeast-2b.think.vpc or tst-williamblue.edu.au-ap-southeast-2b.think.vpc or tst-b2cwp01-ap-southeast-2b.think.vpc or tst-frontier04-ap-southeast-2b.think.vpc or tst-phidu-torrens-edu-au-ap-southeast-2b.think.vpcjjjjjjjj':
- current
But adding one more character does not:
➜ ~ cat /srv/salt/pillar/issues/33389.sls
'tst-www-apm-edu-au02-ap-southeast-2b.think.vpc or tst-www-ancb-edu-au02-ap-southeast-2b.think.vpc or tst-www-billyblue-edu-au02-ap-southeast-2b.think.vpc or tst-www-catc-edu-au02-ap-southeast-2b.think.vpc or tst-m-billyblue-edu-au-ap-southeast-2b.think.vpc or tst-www-jni-edu-au02-ap-southeast-2b.think.vpc or tst-www-ssnt-edu-au02-ap-southeast-2b.think.vpc or tst-www-torrens-edu-au02-ap-southeast-2b.think.vpc or tst-www-think-edu-au02-ap-southeast-2b.think.vpc or tst-www-williamblue-edu-au02-ap-southeast-2b.think.vpc or tst-acnt.edu.au02-ap-southeast-2b.think.vpc or tst-ancb.edu.au02-ap-southeast-2b.think.vpc or tst-billyblue.edu.au-ap-southeast-2b.think.vpc or tst-m-billyblue-edu-au-ap-southeast-2b.think.vpc or tst-ssnt.edu.au02-ap-southeast-2b.think.vpc or tst-staff-test-think-edu-au01-ap-southeast-2b.think.vpc or tst-williamblue.edu.au-ap-southeast-2b.think.vpc or tst-b2cwp01-ap-southeast-2b.think.vpc or tst-frontier04-ap-southeast-2b.think.vpc or tst-phidu-torrens-edu-au-ap-southeast-2b.think.vpcjjjjjjjjo':
- current
I have verified this on 2015.5.9, 2015.8.8.2, and the head of 2016.3
@Ch3LL
Cool. I am glad I wasn't reporting a false alarm.
Known issue in PyYAML:
http://pyyaml.org/browser/pyyaml/trunk/lib/yaml/scanner.py#L91
There is nothing we can do about this, really. I recommend we document this as a limitation of the anything parsed by YAML in Salt.
@cachedout and @DaveQB how does the doc addition in #33459 look?
It looks fine to me but let's also give @DaveQB a chance to respond before we just close this. :]
Cool. Sounds good. Good work @cachedout tracking back where the root cause for this issue lied.
Splitting my line over two lines and duplicating the pillars to apply worked out fine for me.
Thank you for the fast response and resolution.
Most helpful comment
It looks fine to me but let's also give @DaveQB a chance to respond before we just close this. :]