Result of dashboard api call "murano/packages" depends from packages service backend

Bug #1561935 reported by Konstantin
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
python-muranoclient
Fix Released
High
Valerii Kovalchuk
Liberty
Fix Committed
High
Valerii Kovalchuk
Mitaka
Fix Released
High
Valerii Kovalchuk
Newton
Fix Released
High
Valerii Kovalchuk

Bug Description

Steps to reproduce

1. Install DevStack, glare plugin, murano service. Don`t set glare as packages service
2. Import package 'io.murano.apps.apache.ApacheHttpServer'
3. Set glare as packages service, enable glare in openstack_dashboard settings
4. Import package 'io.murano.apps.apache.ApacheHttpServer' again, to glare
5. Log in to Horizon, open developers console in browser. Type in console
   $.get('http://localhost:8000/api/v1/murano/packages/').success(function(data){console.log(data);})

  Result (in Resourses tab) :
{
    "has_more_data": false,
    "packages": [{
        "id": "72a7dab0-2d45-4545-8122-1627df4878a9",
        "name": "Apache HTTP Server",
        "owner_id": ""
    }
    ]
}

6. Disable glare usage in openstack_dashboard settings. Repeat step 5

Result :
{
    "has_more_data": false,
    "packages": [{
        "author": "Mirantis, Inc",
        "categories": ["Web", "Application Servers"],
        "class_definitions": ["io.murano.apps.apache.ApacheHttpServer"],
        "created": "2016-03-24T20:14:38",
        "description": "The Apache HTTP Server Project is an effort to develop and maintain an\r\nopen-source HTTP server for modern operating systems including UNIX and\r\nWindows NT. The goal of this project is to provide a secure, efficient and\r\nextensible server that provides HTTP services in sync with the current HTTP\r\nstandards.\r\nApache httpd has been the most popular web server on the Internet since\r\nApril 1996, and celebrated its 17th birthday as a project this February.\r\n",
        "enabled": true,
        "fully_qualified_name": "io.murano.apps.apache.ApacheHttpServer",
        "id": "cd6e6148928d41d4b65e1016dd2d9dc3",
        "is_public": false,
        "name": "Apache HTTP Server",
        "owner_id": "9bc59070e24f4e3eb5d54dfb9bd7f467",
        "supplier": {},
        "tags": ["HTTP", "Server", "WebServer", "HTML", "Apache"],
        "type": "Application",
        "updated": "2016-03-24T20:14:55"
    }
    ]
}

Expected: the same set of fields in result objects

Observed: different set of fields in result objects

Tags: glare
Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

If you had glare enabled at the time you uploaded packages — it is uploaded to glare. There is no way we can (or should) provide sync between glare and murano db.

Changed in python-muranoclient:
status: New → Invalid
Changed in python-muranoclient:
status: Invalid → In Progress
Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

agree, the problem is that to_dict differs

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-muranoclient (stable/mitaka)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-muranoclient (stable/liberty)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-muranoclient (master)

Reviewed: https://review.openstack.org/297118
Committed: https://git.openstack.org/cgit/openstack/python-muranoclient/commit/?id=dfe9cfefe488b49cce787f86ecb43a0fe6a000c0
Submitter: Jenkins
Branch: master

commit dfe9cfefe488b49cce787f86ecb43a0fe6a000c0
Author: Valerii Kovalchuk <email address hidden>
Date: Thu Mar 24 15:34:17 2016 +0200

    Improve dictionary representation of package from Glare

    Several keys added to dictionary representation of package imported
    from Glare to match packages from murano.
    Thus, dashboard API works in a similar way, no matter what backend
    is used.
    It also allows dashboard to filter applications by category and by
    some text in name, description or tags.

    Change-Id: Ia08a0629e55b8fa318b787d87bb3a2f793cb2a2a
    Closes-bug: #1561935

Changed in python-muranoclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-muranoclient (stable/mitaka)

Reviewed: https://review.openstack.org/298233
Committed: https://git.openstack.org/cgit/openstack/python-muranoclient/commit/?id=34f5336863bcaf0d9d96daea3dc25e625ab4ac24
Submitter: Jenkins
Branch: stable/mitaka

commit 34f5336863bcaf0d9d96daea3dc25e625ab4ac24
Author: Valerii Kovalchuk <email address hidden>
Date: Thu Mar 24 15:34:17 2016 +0200

    Improve dictionary representation of package from Glare

    Several keys added to dictionary representation of package imported
    from Glare to match packages from murano.
    Thus, dashboard API works in a similar way, no matter what backend
    is used.
    It also allows dashboard to filter applications by category and by
    some text in name, description or tags.

    Change-Id: Ia08a0629e55b8fa318b787d87bb3a2f793cb2a2a
    Closes-bug: #1561935

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

Reviewed: https://review.openstack.org/298234
Committed: https://git.openstack.org/cgit/openstack/python-muranoclient/commit/?id=ff6433bd0e974d135e4524ecbd62860d20bd8b7c
Submitter: Jenkins
Branch: stable/liberty

commit ff6433bd0e974d135e4524ecbd62860d20bd8b7c
Author: Valerii Kovalchuk <email address hidden>
Date: Thu Mar 24 15:34:17 2016 +0200

    Improve dictionary representation of package from Glare

    Several keys added to dictionary representation of package imported
    from Glare to match packages from murano.
    Thus, dashboard API works in a similar way, no matter what backend
    is used.
    It also allows dashboard to filter applications by category and by
    some text in name, description or tags.

    Change-Id: Ia08a0629e55b8fa318b787d87bb3a2f793cb2a2a
    Closes-bug: #1561935

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-muranoclient 0.9.0

This issue was fixed in the openstack/python-muranoclient 0.9.0 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-muranoclient 0.7.3

This issue was fixed in the openstack/python-muranoclient 0.7.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

This issue was fixed in the openstack/python-muranoclient 0.7.3 release.

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.