Drop EnvironProvider methods #6083

Merged
merged 2 commits into from Aug 25, 2016

Conversation

Projects
None yet
4 participants
Member

axw commented Aug 24, 2016

Drop EnvironProvider.RestrictedConfigAttributes
and EnvironProvider.SecretAttrs methods, and
stop adding credential attributes to and removing
them from model config.

To enable this, there are two functional changes:

  • in the ec2 provider, vpc-id-force is no longer
    restricted. This attribute is only used at
    bootstrap time, so it doesn't need to be the
    same in each model. Preferably it wouldn't be
    in model config at all, but we don't have a
    way of describing provider-specific bootstrap
    config.
  • in the manual provider, we drop the bootstrap-user
    config attribute and extend the endpoint syntax
    to permit user@host as well as host.
Drop EnvironProvider methods
Drop EnvironProvider.RestrictedConfigAttributes
and EnvironProvider.SecretAttrs methods, and
stop adding credential attributes to and removing
them from model config.

To enable this, there are two functional changes:
 - in the ec2 provider, vpc-id-force is no longer
   restricted. This attribute is only used at
   bootstrap time, so it doesn't need to be the
   same in each model. Preferably it wouldn't be
   in model config at all, but we don't have a
   way of describing provider-specific bootstrap
   config.
 - in the manual provider, we drop the bootstrap-user
   config attribute and extend the endpoint syntax
   to permit user@host as well as host.
Member

axw commented Aug 24, 2016

QA

  1. bootstrap azure
  2. add-model foo
  3. get-model-config (check no credentials included)
  4. check controller logs, make sure there are no warnings about unknown config attributes
  5. bootstrap manual/ubuntu@host
Owner

wallyworld commented Aug 25, 2016

lgtm

@@ -272,9 +275,34 @@ var unsupportedConstraints = []string{
func (e *manualEnviron) ConstraintsValidator() (constraints.Validator, error) {
validator := constraints.NewValidator()
validator.RegisterUnsupported(unsupportedConstraints)
+ if isRunningController() {
provider/manual/environ.go
+ if isRunningController() {
+ validator.UpdateVocabulary(constraints.Arch, []string{arch.HostArch()})
+ } else {
+ // We're running outsode of the Juju controller, so we must
provider/manual: add arch to constraints vocab
Fix bootstrapping of manual provider.
Member

axw commented Aug 25, 2016

$$merge$$

Contributor

jujubot commented Aug 25, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Aug 25, 2016

Build failed: Does not match ['fixes-1616584', 'fixes-1614161', 'fixes-1611514', 'fixes-1475212']
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/8930

Member

axw commented Aug 25, 2016

This fixed a critical issue with the manual provider arch constraints, JFDIing.

$$jfdi$$

Contributor

jujubot commented Aug 25, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Aug 25, 2016

Build failed: Does not match ['fixes-1616584', 'fixes-1614161', 'fixes-1611514', 'fixes-1475212']
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/8931

Member

axw commented Aug 25, 2016

$$JFDI$$

Contributor

jujubot commented Aug 25, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit 2420894 into juju:master Aug 25, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment