[openstack-dev] [Fuel][plugins] Changing role regex from '*' to ['/.*/'] breaks MOS compatibility

Guillaume Thouvenin thouveng at gmail.com
Fri Apr 22 14:40:54 UTC 2016


deployment_tasks.yaml for the fuel-plugin-lma-collector plugin has this
task definition:

- id: lma-aggregator
  type: puppet
  version: 2.0.0
  requires: [lma-base]
  required_for: [post_deployment_end]
  role: '*'
    puppet_manifest: puppet/manifests/aggregator.pp
    puppet_modules: puppet/modules:/etc/puppet/modules
    timeout: 600

It works well with MOS 8. Unfortunately it doesn't work anymore with MOS 9:
the task doesn't appear in the deployment graph. The regression seems to be
introduced by the computable-task-fields-yaql feature [1].

We could use "roles: ['/.*/']" instead of "role: '*' " but then the task is
skipped when using MOS 8. We also tried to declare both "roles" and "role"
but again this doesn't work.

How can we ensure that the same version of the plugin can be deployed on
both versions of MOS? Obviously maintaining one Git branch per MOS release
is not an option.

[1] https://review.openstack.org/#/c/296414/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160422/5308c6b3/attachment.html>

More information about the OpenStack-dev mailing list