[API] [env-templates] List all templates doesn't work correctly

Bug #1542626 reported by Lin Yang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
High
Lin Yang

Bug Description

1. Create Public templates in primary tenant
2. Create Private template in another tenant
3. Execute ' murano env-template-list' with primary tenant

Expected: return private templates and the public template in another tennat

Actual: Only templates belongs to this tenant is listed

Toot cause:
https://github.com/openstack/murano/blob/master/murano/api/v1/templates.py#L60
It doesn't parse correct filter for is_public field.

Lin Yang (lin-a-yang)
Changed in murano:
assignee: nobody → Lin Yang (lin-a-yang)
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/277079

Changed in murano:
status: New → In Progress
Stan Lagun (slagun)
Changed in murano:
milestone: none → mitaka-3
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

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

commit 72cc7bf68edc900df50c06549e1206ef715e0cd0
Author: Lin Yang <email address hidden>
Date: Sat Feb 6 21:14:30 2016 +0800

    Fix incorrect result of listing templates

    - When user executes 'murano env-template-list', it only returns all
      templates belong this tenant, and doesn't include public templates
      from other tenants.
    - It returns all templates belong to tenant when only requests
      private templates.

    Change-Id: I50f70f28827c851139f74cff3923843c3d48170b
    Closes-Bug: #1542626
    Closes-Bug: #1540709

Changed in murano:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/murano 2.0.0.0b3

This issue was fixed in the openstack/murano 2.0.0.0b3 development milestone.

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.