bypass-url no longer works

Bug #1512801 reported by Khanh-Toan TRAN
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Python client library for Sahara
Fix Released
Medium
Khanh-Toan TRAN

Bug Description

From version 0.9.1 "--bypass-url" no longers work.

Up until version 0.9.0, if Sahara endpoint is not declared in Keystone, user can still use sahara client by specifying Sahara URL at "--bypass-url". It is really useful in the case that the client wants to create a VM Sahara in its tenant and use the cloud provider's infrastructure without relying on Sahara service of the cloud provider (or in the case of the lack of the latter). In this case the Saraha VM is a client programme of the cloud provider.

From 0.9.1 forward, it is no longer the case:

class Client(object):

  def __init__ (...):
       ...
       service_type = self._determine_service_type(session,
                                                    auth,
                                                    service_type,
                                                    endpoint_type)

which searches data_processing endpoint in Keystone catalog and finds none, resulting in error (if Sahara endpoint is not declared in Keystone):

    "ERROR: Could not find Sahara endpoint in catalog"

Correcting this error is rather simple: determining service_type only if sahara_url is not supplied in the call.

Tags: bypass-url url
Changed in python-saharaclient:
assignee: nobody → Khanh-Toan TRAN (toan-tran)
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-saharaclient (master)

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

Changed in python-saharaclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-saharaclient (master)

Reviewed: https://review.openstack.org/241997
Committed: https://git.openstack.org/cgit/openstack/python-saharaclient/commit/?id=15cd2e3dd5ad4fd7007abde1609f415be3a31fd5
Submitter: Jenkins
Branch: master

commit 15cd2e3dd5ad4fd7007abde1609f415be3a31fd5
Author: Khanh-Toan Tran <email address hidden>
Date: Thu Nov 5 12:18:55 2015 +0100

    Fix bypass-url for CLI.

    Change-Id: Ib82e1844bda474c4fcb1bdfbbf3878a2d1c5f3c0
    Closes-Bug: #1512801

Changed in python-saharaclient:
status: In Progress → Fix Committed
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-saharaclient 0.12.0

This issue was fixed in the openstack/python-saharaclient 0.12.0 release.

Changed in python-saharaclient:
importance: Undecided → Medium
milestone: none → 0.12.0
Changed in python-saharaclient:
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.