interactive add-cloud does not provide a default auth type

Bug #1641977 reported by Aaron Bentley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Won't Fix
Medium
Unassigned

Bug Description

According to requirements:
  System should provide a default auth type that is valid for the cloud type
  https://docs.google.com/document/d/1K2QPcdrsxAKpKEWT7RiRT-pL-D3LrLzl3QomVimKxAo/edit#

It does not do this. If I hit enter at the auth type prompt, it simply re-prompts.
$ juju add-cloud
Cloud Types
  maas
  manual
  openstack
  vsphere

Select cloud type: openstack

Enter a name for the cloud: j

Enter the API endpoint url for the cloud: j

Auth Types
  oauth1
  oauth2
  access-key
  userpass

Select one or more auth types separated by commas:

Select one or more auth types separated by commas:

Select one or more auth types separated by commas:

Select one or more auth types separated by commas:

Select one or more auth types separated by commas:

Select one or more auth types separated by commas:

Aaron Bentley (abentley)
tags: added: srs
Revision history for this message
Nate Finch (natefinch) wrote :

A default doesn't make any sense here. There's no "sane default", because there's no way for the system to know what's configured for that cloud.

Changed in juju:
status: Triaged → Invalid
Revision history for this message
Aaron Bentley (abentley) wrote :

The SRS doesn't demand a "sane" default, but it does demand a "default that is valid for the cloud type". This is entirely possible to provide. Even if it is a comma-separated list of all supported auth types, that would allow the user who has valid credentials to use them.

Rick has said that he wants the spec docs to be updated to reflect reality. As it stands, this behaviour does not meet the SRS requirements. If you believe the SRS requirement to be unattainable, please have the SRS doc updated before closing the bug.

Changed in juju:
status: Invalid → Triaged
Revision history for this message
Ian Booth (wallyworld) wrote :

Interactive add cloud can and should provide a valid list of auth types valid for the cloud. The user has first entered the cloud type and from there the valid auth types can be determined from the cloud type's credential schema

Revision history for this message
Richard Harding (rharding) wrote :

We should check on what's supported ootb with openstack in a canonical openstack install and start with that.

Manual/MAAS don't apply.

I'm not sure on what we need for vsphere and what the options are.

Revision history for this message
Richard Harding (rharding) wrote :

I've reached out to the OpenStack folks for experience on what the our typical OpenStack supports ootb. Putting this as incomplete until we get that feedback.

Changed in juju:
status: Triaged → Incomplete
milestone: 2.1.0 → 2.2.0
Changed in juju:
milestone: 2.2.0 → none
Revision history for this message
Anastasia (anastasia-macmood) wrote :

This has been fixed as part of ongoing improvements in the area.

In juju 2.1.0, we list available auth types for the selected cloud type.

For example, the output for openstack looks like this:

$ juju add-cloud
Cloud Types
  maas
  manual
  openstack
  vsphere

Select cloud type: openstack

Enter a name for your openstack cloud: <my cloud name>

Enter the API endpoint url for the cloud: <valid endpoint>

Auth Types
  access-key
  userpass

Changed in juju:
milestone: none → 2.1-rc2
status: Incomplete → Fix Committed
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Comment #6 was an answer to listing valid auth type for selected cloud type questioned in comment # 3.

As for providing *sane* default, I agree with comment # 1 - the primary objective of interactive add-cloud is to help configure connection details for highly customisable clouds. There is no such thing as "default" auth type - it is highly subjective to how the cloud is setup. In fact, to provide a "default" would be confusing to the user as well as misleading if the option is selected by the user without a thought.

Revision history for this message
Aaron Bentley (abentley) wrote :

AFAICT, interactive add-cloud still does not provide a default auth type. It sounds more like "Won't Fix" than "Fix committed."

Revision history for this message
Anastasia (anastasia-macmood) wrote :

@Aaron
I'll bring it up with the team.
I still fail to see what "default" can be suggested unless it's just the first auth type in the list of all available ones. The whole idea of interactive add-cloud is so that the user tells us what their cloud is configured to use.

Changed in juju:
status: Fix Committed → Triaged
importance: High → Medium
milestone: 2.1-rc2 → none
Revision history for this message
Anastasia (anastasia-macmood) wrote :

@Aaron,

After some deliberation, this is a Won't Fix as there is no way to determine what sane default auth type would be for custom clouds. We do not want to take a guess, make a suggestion and mislead the user.

Changed in juju:
status: Triaged → Won't Fix
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.