Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-1971

Cloudify local workflows cannot use get_secret in deployment plan

XMLWordPrintable

      Since commit [0] to cloudify's dsl_parser library, released in 4.2 (July 2017), all secrets are validated (for presence) when a deployment plan is prepared. A release of cloudify-common supporting python3 will be version 5.0.0 or likely above.

      Helm plugin tests use the get_secret function, which is not available in a local workflow, and this validation fails.

      [0] https://github.com/cloudify-cosmo/cloudify-dsl-parser/commit/df03ea3f0cbb32020b9b3425e0cbe58d2efe51c0

      A workaround is not to use the get_secret function during unit testing.

       ======================================================================
      ERROR: :param cfy_local:
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/cloudify/test_utils/local_workflow_decorator.py", line 258, in wrapped_test
          test_env = self.set_up(func_self)
        File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/cloudify/test_utils/local_workflow_decorator.py", line 237, in set_up
          test_env = local.init_env(temp_blueprint_path, **self.init_args)
        File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/cloudify/workflows/local.py", line 175, in init_env
          validate_version=validate_version)
        File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/cloudify/workflows/local.py", line 72, in __init__
          validate_version)
        File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/cloudify/workflows/local.py", line 197, in _parse_plan
          inputs=inputs)
        File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/dsl_parser/tasks.py", line 152, in prepare_deployment_plan
          _validate_secrets(plan, get_secret_method)
        File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/dsl_parser/tasks.py", line 123, in _validate_secrets
          "The get_secret intrinsic function is not supported"
      dsl_parser.exceptions.UnsupportedGetSecretError: The get_secret intrinsic function is not supported
      
      

            mirlos mirlos
            mirlos mirlos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: