diff --git a/tools/yaml-validate.py b/tools/yaml-validate.py index de21fd5505..9e628dfd04 100755 --- a/tools/yaml-validate.py +++ b/tools/yaml-validate.py @@ -172,6 +172,22 @@ DEPLOYMENT_RESOURCE_TYPES = [ ] VALID_ANSIBLE_UPGRADE_TAGS = [ 'common', 'validation', 'pre-upgrade' ] +WORKFLOW_TASKS_EXCLUSIONS = [ + './docker/services/octavia/octavia-deployment-config.yaml', + './docker/services/ceph-ansible/ceph-external.yaml', + './docker/services/ceph-ansible/ceph-osd.yaml', + './docker/services/ceph-ansible/ceph-rbdmirror.yaml', + './docker/services/ceph-ansible/ceph-client.yaml', + './docker/services/ceph-ansible/ceph-mds.yaml', + './docker/services/ceph-ansible/ceph-rgw.yaml', + './docker/services/ceph-ansible/ceph-base.yaml', + './docker/services/ceph-ansible/ceph-mon.yaml', + './docker/services/ceph-ansible/ceph-mgr.yaml', + './docker/services/skydive/skydive-base.yaml', + './docker/services/skydive/skydive-agent.yaml', + './docker/services/skydive/skydive-analyzer.yaml', +] + def exit_usage(): print('Usage %s ' % sys.argv[0]) @@ -537,6 +553,12 @@ def validate_docker_service(filename, tpl): print('ERROR: fast_forward_post_upgrade_tasks validation failed') return 1 + if 'workflow_tasks' in role_data and \ + filename not in WORKFLOW_TASKS_EXCLUSIONS: + print('ERROR: workflow_tasks are no longer supported ' + 'with config-download in %s.' % filename) + return 1 + if 'parameters' in tpl: for param in required_params: if param not in tpl['parameters']: