[DockerGlassfish] Deployment with DockerGlassfish fails with [yaql.language.exceptions.NoFunctionRegisteredException]: Unknown function "join"

Bug #1623006 reported by Anastasia Kuznetsova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
k8s-docker-suite-app-murano
Fix Released
Medium
Dmytro Dovbii

Bug Description

Env: MOS 9.0 (Murano from Mitaka), yaql=1.1.0

Steps to reproduce:
1. Create Murano env
2. Add DockerStandaloneHost app to the env, add Docker Glassfish app
3. Deploy env

Expected result:
Deployment is successful

Observed result:

E Exception: Environment deploy finished with errors
E Message: [yaql.language.exceptions.NoFunctionRegisteredException]: Unknown function "join"
E yaql.language.exceptions.NoFunctionRegisteredException: Unknown function "join"
E Traceback (most recent call last):
E File "/tmp/murano-packages-cache/io.murano/0.0.0/bccf40cd-0656-4289-8d73-2e3c0999c6cd/Classes/Environment.yaml", line 102:9 in method deploy of type io.murano.Environment
E $.applications.pselect($.deploy())
E File "/tmp/murano-packages-cache/com.mirantis.docker.Interfaces/0.0.0/0e240214-65f3-47ff-b103-0a02b16ac1a2/Classes/DockerApplication.yaml", line 59:13 in method deploy of type com.mirantis.docker.DockerApplication
E $.onInstallationFinish()
E File "/tmp/murano-packages-cache/com.example.docker.DockerGlassFish/0.0.0/78a055a9-21fc-4237-9ead-90713d252f04/Classes/DockerGlassFish.yaml", line 66:30 in method onInstallationFinish of type com.example.docker.DockerGlassFish
E join(', ', $.applicationEndpoints. where($.scope = $this._scope and $.containerPort = 4848). select(format('http://{0}:{1}', $.address, $.port)))
E File "/usr/lib/python2.7/dist-packages/murano/dsl/helpers.py", line 51 in method evaluate
E return value(context)
E File "/usr/lib/python2.7/dist-packages/murano/dsl/yaql_expression.py", line 85 in method __call__
E return self._parsed_expression.evaluate(context=context)
E File "/usr/lib/python2.7/dist-packages/yaql/language/expressions.py", line 165 in method evaluate
E return self(utils.NO_VALUE, context, self.engine)
E File "/usr/lib/python2.7/dist-packages/yaql/language/expressions.py", line 156 in method __call__
E return super(Statement, self).__call__(receiver, context, engine)
E File "/usr/lib/python2.7/dist-packages/yaql/language/expressions.py", line 37 in method __call__
E return context(self.name, engine, receiver, context)(*self.args)
E File "/usr/lib/python2.7/dist-packages/yaql/language/contexts.py", line 65 in method <lambda>
E data_context, use_convention, function_filter)
E File "/usr/lib/python2.7/dist-packages/yaql/language/runner.py", line 49 in method call
E name, all_overloads, engine, receiver, data_context, args, kwargs)
E File "/usr/lib/python2.7/dist-packages/yaql/language/runner.py", line 117 in method choose_overload
E args = tuple(arg_evaluator(i, arg) for i, arg in enumerate(args))
E File "/usr/lib/python2.7/dist-packages/yaql/language/runner.py", line 117 in method <genexpr>
E args = tuple(arg_evaluator(i, arg) for i, arg in enumerate(args))
E File "/usr/lib/python2.7/dist-packages/yaql/language/runner.py", line 113 in method <lambda>
E and not isinstance(arg, expressions.Constant))
E File "/usr/lib/python2.7/dist-packages/yaql/language/expressions.py", line 37 in method __call__
E return context(self.name, engine, receiver, context)(*self.args)
E File "/usr/lib/python2.7/dist-packages/yaql/language/contexts.py", line 65 in method <lambda>
E data_context, use_convention, function_filter)
E File "/usr/lib/python2.7/dist-packages/yaql/language/runner.py", line 44 in method call
E raise exceptions.NoFunctionRegisteredException(name)

Changed in k8s-docker-suite-app-murano:
importance: Undecided → Medium
assignee: nobody → Dmytro Dovbii (ddovbii)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to k8s-docker-suite-app-murano (master)

Fix proposed to branch: master
Review: https://review.openstack.org/370175

Changed in k8s-docker-suite-app-murano:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to k8s-docker-suite-app-murano (master)

Reviewed: https://review.openstack.org/370175
Committed: https://git.openstack.org/cgit/openstack/k8s-docker-suite-app-murano/commit/?id=493ce1927faecf90650dac9e050b4c216f8c7823
Submitter: Jenkins
Branch: master

commit 493ce1927faecf90650dac9e050b4c216f8c7823
Author: Dmytro Dovbii <email address hidden>
Date: Wed Sep 14 17:40:50 2016 +0300

    Fix wrong usage of join()

    Change-Id: Iebb70cea8483b6f0a577ab6b8d8015c39fba6345
    Closes-Bug: #1623006

Changed in k8s-docker-suite-app-murano:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to k8s-docker-suite-app-murano (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/374076

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to k8s-docker-suite-app-murano (stable/mitaka)

Reviewed: https://review.openstack.org/374076
Committed: https://git.openstack.org/cgit/openstack/k8s-docker-suite-app-murano/commit/?id=d00620368ececc583cec2838ff40957d6ee530c7
Submitter: Jenkins
Branch: stable/mitaka

commit d00620368ececc583cec2838ff40957d6ee530c7
Author: Dmytro Dovbii <email address hidden>
Date: Wed Sep 14 17:40:50 2016 +0300

    Fix wrong usage of join()

    Change-Id: Iebb70cea8483b6f0a577ab6b8d8015c39fba6345
    Closes-Bug: #1623006
    (cherry picked from commit 493ce1927faecf90650dac9e050b4c216f8c7823)

tags: added: in-stable-mitaka
Changed in k8s-docker-suite-app-murano:
milestone: none → 1.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.