Not clear if www_authenticate_uri is really needed

Bug #1822986 reported by massimo.sgaravatto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Sharat Sharma

Bug Description

I am validating a small OpenStack Rocky installation.
The nova part seems working but I noticed this warning in the nova log files:

Configuring www_authenticate_uri to point to the public identity endpoint is required; clients may\
 not be able to authenticate against an admin endpoint

Indeed I didn't set the attribute, since it is not mentioned in the Rocky installation guide.

If it is really required:
- I think it should be mentioned in the installation guide
- The nova services shouldn't start if it is not defined (also because according to the confi guide it has not a default)

If it is not required, the warning message is not very clear IMHO

summary: - Not clear if www__authenticate_uri is really needed
+ Not clear if www_authenticate_uri is really needed
Revision history for this message
Matt Riedemann (mriedem) wrote :

I've asked this same question before during a placement install guide review:

https://review.openstack.org/#/c/643938/5/doc/source/install/from-pypi.rst@139

I asked the keystone team about it and the answer is in the gerrit review, but this is probably the most relevant part:

(12:10:11 PM) cmurphy: well, it is kind of optional because of how openstackclient works
(12:10:42 PM) cmurphy: what it does is if it doesn't see a token in the X-Auth-Token header it sets the WWW-Authenticate header in its response to the user
(12:10:49 PM) cmurphy: to yell at them to go authenticate
(12:11:09 PM) cmurphy: but most clients sidestep that and go to keystone first anyways

The warning you mention is coming from keystonemiddleware which nova-api uses:

http://git.openstack.org/cgit/openstack/keystonemiddleware/tree/keystonemiddleware/auth_token/__init__.py#n581

Looking at that code, it's a fallback and that's why there is a warning because there is a TODO to remove the fallback and make it an error (but that is pretty old).

So I think the answer for this bug is yes the nova install docs should include setting that value as part of the install to include the public endpoint for the identity service.

tags: added: docs
Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
tags: added: low-hanging-fruit
tags: added: install-guide
Changed in nova:
assignee: nobody → Sharat Sharma (sharat-sharma)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.opendev.org/663530

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

Reviewed: https://review.opendev.org/663530
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=97ca86fad75dd601f6d38de95bb6a6709f0fdf80
Submitter: Zuul
Branch: master

commit 97ca86fad75dd601f6d38de95bb6a6709f0fdf80
Author: Sharat Sharma <email address hidden>
Date: Thu Jun 6 03:23:48 2019 -0400

    Modifying install-guide to include public endpoint for identity service

    - Adding a line to set www_authenticate_uri to point to the public identity endpoint
    - Removing version for public endpoint of identity service as per discussion in
      https://review.opendev.org/#/c/643938/5/doc/source/install/from-pypi.rst@139

    Change-Id: Iba5e5c9289196f24f0fbe0ae305d6bd834d18645
    Closes-Bug: #1822986

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 20.0.0.0rc1

This issue was fixed in the openstack/nova 20.0.0.0rc1 release candidate.

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.