typo in cloud definition yields "ERROR cloud <foo> does not require credentials"

Bug #1596038 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Eric Claude Jones

Bug Description

juju 2.0beta9

I imported a cloud definition file that had this:

    vmwarestack-trusty:
        type: maas
        auth-tpes: [oauth1]
        endpoint: http://10.245.200.27/MAAS
        config:
            default-series: trusty
            bootstrap-timeout: 900
            http-proxy: http://10.245.200.27:8000/
            https-proxy: http://10.245.200.27:8000/
            no-proxy: 127.0.0.1,localhost,169.254.169.254,10.245.200.27

Notice the typo in "auth-tpes". Juju was happy about it, no errors.

Then I tried to add a credential to it, and got this error:
ERROR cloud "vmwarestack-trusty" does not require credentials

That's super surprising and leads you in the completely wrong direction when debugging it.

Revision history for this message
Cheryl Jennings (cherylj) wrote :

Seems like the acceptable keys at that level should be well known, so we could check that they're valid.

Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
tags: added: bitesize
affects: juju-core → juju
Revision history for this message
Anastasia (anastasia-macmood) wrote :

PR against develop (2.2): https://github.com/juju/juju/pull/7116

Changed in juju:
status: Triaged → In Progress
assignee: nobody → Eric Claude Jones (ecjones)
milestone: none → 2.2-rc1
Revision history for this message
Anastasia (anastasia-macmood) wrote :

This PR validates cloud.yaml input against json schema and provides a more wholistic approach rather than just fixing this one instance \o/ Thank you, Eric!

Changed in juju:
milestone: 2.2-beta2 → 2.2-beta3
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
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.