[MuranoPL] python metods result is not converted to immutable value

Bug #1502790 reported by Stan Lagun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
High
Stan Lagun
Liberty
Fix Released
High
Stan Lagun
Mitaka
Fix Released
High
Stan Lagun

Bug Description

When Python methods is called from MuranoPL code its result is not converted to immutable value that yaql 1.0 operates on.
For example consider that we have

def foo():
  return [1]

and MuranoPL code:
 - $val: list(1)
 - $cmp: foo() = $val

as a result $cmp will be set to false because [1] != (1,)

The bug causes all Docker/Kubernetes apps to break on re-deployment

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (master)

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

Changed in murano:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/230908

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (stable/liberty)

Reviewed: https://review.openstack.org/230908
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=6c8f31c31c8633af5d2898e29c4ce38b16068dff
Submitter: Jenkins
Branch: stable/liberty

commit 6c8f31c31c8633af5d2898e29c4ce38b16068dff
Author: Stan Lagun <email address hidden>
Date: Mon Oct 5 11:14:34 2015 +0300

    Python method results were not converted to immutable values

    When Python methods is called from MuranoPL code its result was not
    converted to immutable value that yaql 1.0 operates on.
    For example consider that we have

    def foo():
      return [1]

    and MuranoPL code:
     - $val: list(1)
     - $cmp: foo() = $val

    as a result $cmp was set to false because [1] != (1,)

    This bug caused all Docker/Kubernetes apps to break on re-deployment

    Change-Id: I56fcf8bfa01323aab2e79cf11a1569f97e5365a3
    Closes-Bug: #1502790

Changed in murano:
status: Confirmed → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

Reviewed: https://review.openstack.org/230907
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=e35c0749e01e5a4c897f3a2992b0d916203f9257
Submitter: Jenkins
Branch: master

commit e35c0749e01e5a4c897f3a2992b0d916203f9257
Author: Stan Lagun <email address hidden>
Date: Mon Oct 5 11:14:34 2015 +0300

    Python method results were not converted to immutable values

    When Python methods is called from MuranoPL code its result was not
    converted to immutable value that yaql 1.0 operates on.
    For example consider that we have

    def foo():
      return [1]

    and MuranoPL code:
     - $val: list(1)
     - $cmp: foo() = $val

    as a result $cmp was set to false because [1] != (1,)

    This bug caused all Docker/Kubernetes apps to break on re-deployment

    Change-Id: I56fcf8bfa01323aab2e79cf11a1569f97e5365a3
    Closes-Bug: #1502790

Changed in murano:
status: Fix Committed → Fix Released
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.