Bug 1224616

Summary: [New] - Console prompts for additional username and password when user logs in for the first time.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: RamaKasturi <knarra>
Component: rhscAssignee: Ramesh N <rnachimu>
Status: CLOSED ERRATA QA Contact: Triveni Rao <trao>
Severity: low Docs Contact:
Priority: medium    
Version: rhgs-3.1CC: anbabu, asriram, asrivast, bmohanra, Christian.Heggland, dpati, mbukatov, mlawrenc, nlevinki, rcyriac, rhs-bugs, rnachimu, rnalakka, sabose, sashinde, sgraf
Target Milestone: ---Keywords: Reopened, ZStream
Target Release: RHGS 3.1.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhsc-monitoring-uiplugin-0.2.4-1.el6rhs Doc Type: Bug Fix
Doc Text:
Previously, the Trends tab UI Plugin did not send the 'Prefer' http header as part of every REST API calls. Due to this, the existing REST API session was invalidated whenever the user clicked the Trends tab and the user is prompted to provide the user name and password again.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-05 09:20:13 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:
Bug Depends On:    
Bug Blocks: 1202842, 1216951, 1251815    
Attachments:
Description Flags
Attaching the screenshot for the username and password dialog box none

Description RamaKasturi 2015-05-25 06:49:58 UTC
Description of problem:
After installing console when user tries to log in console prompts for username and password. 

Issue can be easily reproducible by restarting the ovirt engine. Attached the screenshot to the bug.

Version-Release number of selected component (if applicable):
rhsc-3.1.0-0.0.scratch.master.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1. Install the new downstream build of rhgsc
2. Login into console.
3.

Actual results:
Adim will be prompted with username and password.

Expected results:
There should be no dialog which prompts for username and dashboard.

Additional info:

Comment 2 RamaKasturi 2015-05-25 06:51:18 UTC
Created attachment 1029362 [details]
Attaching the screenshot for the username and password dialog box

Comment 3 Sahina Bose 2015-06-03 04:49:11 UTC
Devel nacking this one - as this issue was not reproducible on a running engine.
And as per original BZ, it is reproducible only when ovirt-engine is restarted while the user was not logged out. This is a corner case, IMO.

Comment 4 RHEL Program Management 2015-06-03 04:55:51 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.

Comment 5 Sahina Bose 2015-06-03 05:43:48 UTC
Re-opening to retriage.

Comment 6 Stanislav Graf 2015-06-03 06:24:23 UTC
(In reply to Sahina Bose from comment #3)

I've encountered this issue after fresh install. -> not a corner case.

Comment 7 Sahina Bose 2015-06-03 08:57:17 UTC
Fresh install and a new browser instance?

Comment 8 Stanislav Graf 2015-06-03 11:37:56 UTC
(In reply to Sahina Bose from comment #7)
> Fresh install and a new browser instance?

I would need to retest to confirm that.

Comment 9 RamaKasturi 2015-06-03 11:59:35 UTC
i see this issue with fresh install

Comment 10 Ramesh N 2015-06-04 04:55:24 UTC
Even I saw this today. Strangely it comes only for the first login after setup. Afterwords even if someone else try to login from different system it doesn't come . Also it says 'REST API' not 'ENGINE'. We have investigate this more.

Comment 16 Sahina Bose 2015-06-30 10:06:25 UTC
Please try admin@internal/<engine password> should work.

Comment 17 Stanislav Graf 2015-06-30 10:12:40 UTC
(In reply to Stanislav Graf from comment #13)

Workaround
==========
(1) go to trends
(2) Input
admin@internal
(admin pass)
(3) Input
nagiosadmin
(nagios pass)

Works for me! Removing TestBlocker

Comment 18 monti lawrence 2015-07-22 20:22:44 UTC
Doc text is edited. Please sign off to be included in Known Issues.

Comment 19 anmol babu 2015-07-23 11:14:01 UTC
Edited the doc-text.Edited version looks good to me

Comment 20 anmol babu 2015-07-24 05:10:41 UTC
Looks good to me

Comment 21 Anjana Suparna Sriram 2015-08-10 10:24:09 UTC
Updated the Known Issue chapter with the modified text.

Comment 22 Sahina Bose 2015-08-13 08:44:13 UTC
*** Bug 1144018 has been marked as a duplicate of this bug. ***

Comment 23 Ramesh N 2015-08-13 08:54:27 UTC
HTTP Header "Prefer": "persistent-auth" is not being sent as part of REST API calls from Trends tab. As a result, engine invalidates the existing REST API session and asks for a password to create a new session. This header should be part of all REST API Calls. 

More info at :
  http://lists.ovirt.org/pipermail/devel/2014-July/008148.html
  http://www.ovirt.org/Features/RESTSessionManagement

Note: Dashboard is working without any issue as it sends the header.

Comment 25 Triveni Rao 2015-08-26 17:58:31 UTC
This bug is verified and found no issues.

Steps followed:
1. install fresh RHSC 
2. login as admin
3. checked that user is not prompted for userid password.

logged out from console and logged in again adn no issue. also other tabs were tested to make sure userid/passwd not prompted.


Last login: Wed Aug 26 04:07:11 2015 from dhcp-0-136.blr.redhat.com
[root@casino-vm5 ~]# rpm -qa | grep rhsc
rhsc-restapi-3.1.1-0.63.el6.noarch
rhsc-extensions-api-impl-3.1.1-0.63.el6.noarch
rhsc-setup-base-3.1.1-0.63.el6.noarch
rhsc-setup-plugin-ovirt-engine-3.1.1-0.63.el6.noarch
rhsc-webadmin-portal-3.1.1-0.63.el6.noarch
rhsc-setup-plugins-3.1.0-3.el6rhs.noarch
rhsc-cli-3.0.0.0-0.2.el6rhs.noarch
rhsc-lib-3.1.1-0.63.el6.noarch
rhsc-tools-3.1.1-0.63.el6.noarch
redhat-access-plugin-rhsc-3.0.0-3.el6rhs.noarch
rhsc-sdk-python-3.0.0.0-0.2.el6rhs.noarch
rhsc-branding-rhs-3.1.0-1.el6rhs.noarch
rhsc-setup-plugin-ovirt-engine-common-3.1.1-0.63.el6.noarch
rhsc-backend-3.1.1-0.63.el6.noarch
rhsc-dbscripts-3.1.1-0.63.el6.noarch
rhsc-3.1.1-0.63.el6.noarch
rhsc-doc-3.1.0-1.el6eng.noarch
rhsc-monitoring-uiplugin-0.2.4-1.el6rhs.noarch
rhsc-log-collector-3.1.0-1.0.el6rhs.noarch
rhsc-setup-3.1.1-0.63.el6.noarch
[root@casino-vm5 ~]#

Comment 26 Bhavana 2015-09-22 09:49:40 UTC
Hi Ramesh,

The doc text is updated. Please review it and share your technical review comments. If it looks ok, then sign-off on the same.

Comment 27 Ramesh N 2015-09-28 11:51:46 UTC
Doc text looks good. Approved.

Comment 29 errata-xmlrpc 2015-10-05 09:20:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1848.html