Encountered the following error when running mistral-db-manage populate. This is traced to the latest version of ply==3.10 which breaks the yaql engine.
Traceback (most recent call last):
File "/home/vagrant/projects/openstack/mistral/.venv/bin/mistral-db-manage", line 10, in <module>
sys.exit(main())
File "/home/vagrant/projects/openstack/mistral/mistral/db/sqlalchemy/migration/cli.py", line 130, in main
CONF.command.func(config, CONF.command.name)
File "/home/vagrant/projects/openstack/mistral/mistral/db/sqlalchemy/migration/cli.py", line 71, in do_populate
action_manager.sync_db()
File "/home/vagrant/projects/openstack/mistral/mistral/services/action_manager.py", line 85, in sync_db
register_standard_actions()
File "/home/vagrant/projects/openstack/mistral/mistral/services/action_manager.py", line 49, in register_standard_actions
scope='public'
File "/home/vagrant/projects/openstack/mistral/mistral/services/actions.py", line 58, in create_or_update_actions
action_list_spec = spec_parser.get_action_list_spec_from_yaml(definition)
File "/home/vagrant/projects/openstack/mistral/mistral/workbook/parser.py", line 112, in get_action_list_spec_from_yaml
return get_action_list_spec(parse_yaml(text))
File "/home/vagrant/projects/openstack/mistral/mistral/workbook/parser.py", line 108, in get_action_list_spec
return base.instantiate_spec(actions_v2.ActionListSpec, spec_dict)
File "/home/vagrant/projects/openstack/mistral/mistral/workbook/base.py", line 63, in instantiate_spec
spec = spec_cls(data)
File "/home/vagrant/projects/openstack/mistral/mistral/workbook/base.py", line 329, in __init__
self.items.append(instantiate_spec(self.item_class, v))
File "/home/vagrant/projects/openstack/mistral/mistral/workbook/base.py", line 63, in instantiate_spec
spec = spec_cls(data)
File "/home/vagrant/projects/openstack/mistral/mistral/workbook/v2/actions.py", line 38, in __init__
super(ActionSpec, self).__init__(data)
File "/home/vagrant/projects/openstack/mistral/mistral/workbook/base.py", line 164, in __init__
self.validate_schema()
File "/home/vagrant/projects/openstack/mistral/mistral/workbook/v2/actions.py", line 59, in validate_schema
self.validate_expr(self._data.get('base-input', {}))
File "/home/vagrant/projects/openstack/mistral/mistral/workbook/base.py", line 208, in validate_expr
expr.validate(expression)
File "/home/vagrant/projects/openstack/mistral/mistral/expressions/__init__.py", line 58, in validate
evaluator.validate(expression)
File "/home/vagrant/projects/openstack/mistral/mistral/expressions/yaql_expression.py", line 95, in validate
for expr in found_expressions]
File "/home/vagrant/projects/openstack/mistral/mistral/expressions/yaql_expression.py", line 44, in validate
raise exc.YaqlGrammarException(getattr(e, 'message', e))
mistral.exceptions.YaqlGrammarException: Lexical error: illegal character '$' at position 1
Winson, is this still an issue you are seeing? Was it fixed with ply 3.11?
I assume it must be resolved because otherwise I think we would hit it in a number of places.