It's impossible to import package if client authorized with --murano-url parameter and glare opts

Bug #1595657 reported by Victor Ryzhenkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-webapps-linkedin (Ubuntu)
In Progress
High
Kirill Zaitsev

Bug Description

1. Deploy devstack from master branch
2. Try to execute command:
murano --debug --os-username admin --os-password admin --os-tenant-name admin --os-auth-url http://172.18.162.71:5000 --os-region-name RegionOne --murano-url http://127.0.0.1:8082 --murano-packages-service glare package-import /opt/stack/murano/meta/io.murano/io.murano.zip --is-public

Expected:
Package imported

Actual:
Error HTTPMultipleChoices (HTTP 300) Requested version of Application Catalog API is not available. occurred while installing package io.murano

Info:

Using PDB we got:

(Pdb) l
432 if not glare_endpoint:
433 # no glare_endpoint and we requested to store packages in glare
434 # let's check keystone
435 try:
436 import pdb; pdb.set_trace()
437 -> glare_endpoint = keystone_auth.get_endpoint(
438 keystone_session,
439 service_type='artifact',
440 interface=endpoint_type,
441 region_name=args.os_region_name)
442 logger.debug('GLARE!!!: {0}'.format(glare_endpoint))
(Pdb) glare_endpoint = keystone_auth.get_endpoint(keystone_session, service_type='artifact', interface=endpoint_type, region_name=args.os_region_name)
(Pdb) glare_endpoint
'http://127.0.0.1:8082'
(Pub)

This is incorrect endpoint for this request.

DEBUG LOG:

Importing package io.murano
curl -g -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}2bac1de2bcaec42398547ff986780b5601d1da60' -H 'Content-Type: application/octet-stream' http://127.0.0.1:8082/v0.1/artifacts/murano/v1?&version=0.0.0&limit=20&name=io.murano&sort=name:asc
Starting new HTTP connection (1): 127.0.0.1
"GET /v0.1/artifacts/murano/v1?&version=0.0.0&limit=20&name=io.murano&sort=name:asc HTTP/1.1" 300 116

There is no such error, if murano-url parameter didn't exist in command.

Changed in python-muranoclient:
importance: Undecided → High
status: New → Confirmed
milestone: none → 0.9.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-muranoclient (master)

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

Changed in python-muranoclient:
assignee: nobody → Kirill Zaitsev (kzaitsev)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-muranoclient (master)

Change abandoned by Kirill Zaitsev (<email address hidden>) on branch: master
Review: https://review.openstack.org/333868

bugproxy (bugproxy)
affects: python-muranoclient → unity-webapps-linkedin (Ubuntu)
Changed in unity-webapps-linkedin (Ubuntu):
milestone: 0.9.0 → none
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.