Bug 1030502

Summary: unable to connect rhsc-shell to a single label domain
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Dustin Tsang <dtsang>
Component: rhsc-cliAssignee: Shubhendu Tripathi <shtripat>
Status: CLOSED NOTABUG QA Contact: Dustin Tsang <dtsang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1CC: dpati, dtsang, knarra, mmahoney, mmccune, pprakash, ssampat
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: Corbett
Fixed In Version: cb8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-06 13:48:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot of rhsc-shell connect
none
screenshot none

Description Dustin Tsang 2013-11-14 15:15:00 UTC
Description of problem:

Using the shell to connect to a single label domain fails. For example connecting using the command below fails.

connect --url 'https://latest:443/api' --user 'admin@internal' --password 'redhat' -I

The following error is obtained. Note that the url format matches.

error: "https://latest:443/api" is invalid url format. valid format is http[s]://server:port/api.



Version-Release number of selected component (if applicable):
rhsc-cb7

How reproducible:
every time

Steps to Reproduce:
1. on the shell session for the machine hosting rhsc, enter command
connect --url 'https://latest:443/api' --user 'admin@internal' --password 'redhat' -I
2. when prompted for password, enter password and hit enter
3. when prompted, type 'connect' and hit enter

Actual results:
error: "https://latest:443/api" is invalid url format. valid format is http[s]://server:port/api.


Expected results:
user is able to successfully connect

Additional info:

Comment 2 Shubhendu Tripathi 2013-11-22 10:43:07 UTC
Hi Dustin,

Can you try the same with cb8? Also the command would be as below -

connect --url 'https://hostname/api' --user 'admin@internal' --password 'redhat' -I.

Note here port no not to be mentioned.

Comment 3 Dustin Tsang 2013-12-03 14:08:48 UTC
Still an issue in cb10:

error: "https://latest:443/api" is invalid url format. valid format is http[s]://server:port/api.

Comment 4 Shubhendu Tripathi 2013-12-04 04:19:02 UTC
Created attachment 832413 [details]
screenshot of rhsc-shell connect

Comment 5 Shubhendu Tripathi 2013-12-04 04:20:17 UTC
Dustin,

I tried the below command in cb10 and it works fine

connect --url 'https://10.70.42.167/api' --user 'admin@internal' --password 'redhat' -I

Screenshot shared for reference.

Request you to share the screenshot, the way you are trying to connect.

Comment 6 Dustin Tsang 2013-12-05 13:47:48 UTC
the bug is for a domain that only has a single hop dns lookup...for example:
https://latest/api
https://rhsc/api
https://myrhsc/api
https://thisismyrhsc/api

Comment 7 Dustin Tsang 2013-12-05 13:53:04 UTC
Created attachment 833163 [details]
screenshot

Comment 8 Shubhendu Tripathi 2013-12-06 03:44:12 UTC
Dustin,

In case of oVirt the domain names like https://latest/api, https://rhsc/api are not supported and so the error.

The domain names should be in the form like a.b.com. It should contain "." character. Its should be FQDN actually.

If you access the same setup using the IP address it would work fine.

Comment 9 Dusmant 2013-12-06 09:00:56 UTC
If FQDN format or IP address for host name is used and that works fine, then it's not a bug. Dustin, pls. confirm that.

Comment 10 Dustin Tsang 2013-12-06 13:48:04 UTC
FQDN or IP Address work fine.