With Azure, management-certificate-path should not be required if management-certificate is set in the juju environment

Bug #1411846 reported by John George
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-quickstart
Triaged
High
Unassigned

Bug Description

When using quickstart with a juju environment.yaml which has management-certificate: defined the follow error is given:

juju --debug quickstart -e test-release-azure2 --constraints mem=2G --no-browser /tmp/landscape-scalable.yaml
2015-01-16 20:54:52 INFO juju.cmd supercommand.go:37 running juju [1.20.14-trusty-amd64 gc]
usage: juju-quickstart [-h] [-e ENV_NAME] [-n BUNDLE_NAME] [-i]
                       [--environments-file ENV_FILE]
                       [--gui-charm-url CHARM_URL] [--no-browser]
                       [--distro-only] [--ppa] [--version] [--debug]
                       [--description] [--upload-tools]
                       [--upload-series UPLOAD_SERIES]
                       [--constraints CONSTRAINTS]
                       [bundle]
juju-quickstart: error: cannot use the test-release-azure2 environment:
a value is required for the management certificate path field
2015-01-16 20:54:53 ERROR juju.cmd supercommand.go:323 subprocess encountered error code 2

The Juju azure provider only requires "management-certificate-path" if "management-certificate" is not set.

With such a environment.yaml, I made the following brute force change and observed that quickstart deployment of a bundle was successful:

diff /usr/lib/python2.7/dist-packages/quickstart/models/envs.py.orig /usr/lib/python2.7/dist-packages/quickstart/models/envs.py
578,584d577
< fields.FilePathField(
< 'management-certificate-path', required=True,
< label='management certificate path',
< help='the path to the pem file associated to the certificate '
< 'uploaded in the Azure management console: '
< 'https://manage.windowsazure.com '
< '(Settings -> Management Certificates)'),

Tags: azure juju-ci
John George (jog)
summary: - With Azure management-certificate-path should not be required if
+ With Azure, management-certificate-path should not be required if
management-certificate is set in the juju environment
Curtis Hovey (sinzui)
tags: added: azure juju-ci
Changed in juju-quickstart:
status: New → Triaged
importance: Undecided → High
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.