[murano+glare] Impossible to make package public

Bug #1501374 reported by Anastasia Kuznetsova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-muranoclient
Fix Released
Medium
Alexander Tivelkov
Liberty
Fix Released
Medium
Anastasia Kuznetsova

Bug Description

Steps to reproduce:

1) Enable Murano + GLARE interaction
murano-dashboard side:
1. Add 'MURANO_USE_GLARE = True' in the horizon/openstack_dashboard/settings.py
2. restart apache2 service

murano side:
1. uncomment "packages_service=murano" parameter in murano.conf and change its value to 'glance'
2. execute 'python setup.py install' in the contrib/glance folder
3. restart murano services

glance side:
1. uncomment "enable_v3_api = false" and change its value to 'true'
2. restart glance service

2) Log in WebUI
3) Navigate to "Murano" > "Manage" > "Package Definitions" tab
4) Try to import some package and make it public

Observed result:
Error: Unable to toggle public: Apache Tomcat

2015-09-30 13:31:49.885550 ERROR:muranodashboard.packages.views:Modifying package failed
2015-09-30 13:31:49.885567 Traceback (most recent call last):
2015-09-30 13:31:49.885572 File "/opt/stack/murano-dashboard/muranodashboard/packages/views.py", line 344, in done
2015-09-30 13:31:49.885575 murano_client.packages.update(app_id, data)
2015-09-30 13:31:49.885578 File "/usr/local/lib/python2.7/dist-packages/muranoclient/v1/artifact_packages.py", line 27, in inner
2015-09-30 13:31:49.885581 return func(*args, **kwargs)
2015-09-30 13:31:49.885584 File "/usr/local/lib/python2.7/dist-packages/muranoclient/v1/artifact_packages.py", line 258, in update
2015-09-30 13:31:49.885586 return PackageWrapper(self.glare.update(app_id, None, **body))
2015-09-30 13:31:49.885589 File "/usr/local/lib/python2.7/dist-packages/muranoclient/v1/artifact_packages.py", line 156, in update
2015-09-30 13:31:49.885592 package = self.client.get(app_id)
2015-09-30 13:31:49.885595 AttributeError: 'Client' object has no attribute 'get'
2015-09-30 13:31:49.885843 Recoverable error: 'Client' object has no attribute 'get'

Tags: glare
Changed in murano:
importance: Undecided → Medium
milestone: none → mitaka-1
tags: added: glare
Changed in murano:
status: New → Confirmed
status: Confirmed → Triaged
Changed in murano:
assignee: nobody → Alexander Tivelkov (ativelkov)
Revision history for this message
Alexander Tivelkov (ativelkov) wrote :
Changed in murano:
status: Triaged → In Progress
affects: murano → python-muranoclient
Changed in python-muranoclient:
milestone: mitaka-1 → none
milestone: none → 0.8.0
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-muranoclient (master)

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

commit 9ee3790662c8356d6319d6212bc5b26cecaebb92
Author: Alexander Tivelkov <email address hidden>
Date: Fri Nov 27 12:59:13 2015 +0300

    Fixed an incorrect call to the artifacts client

    The artifacts client was called incorrectly in the "toggle public"
    call routine, leading to an exception when changing the visibility of
    package if using Glare.
    This has been fixed.

    Change-Id: Ic3da93bde00d96909cae106c358bf4a7d64d19a8
    Closes-Bug: #1501374

Changed in python-muranoclient:
status: Fix Committed → Fix Released
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/256465

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

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

commit 82ed6844cec5fda103f7bf1f4ca51bcdc0a9cf37
Author: Alexander Tivelkov <email address hidden>
Date: Fri Nov 27 12:59:13 2015 +0300

    Fixed an incorrect call to the artifacts client

    The artifacts client was called incorrectly in the "toggle public"
    call routine, leading to an exception when changing the visibility of
    package if using Glare.
    This has been fixed.

    Change-Id: Ic3da93bde00d96909cae106c358bf4a7d64d19a8
    Closes-Bug: #1501374
    (cherry picked from commit 9ee3790662c8356d6319d6212bc5b26cecaebb92)

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.