MAAS Provider: Spaces and updated Subnets method #3834

Closed
wants to merge 96 commits into
from

Conversation

Projects
None yet
2 participants

This PR adds Spaces to the networking environ interface with an implementation for MAAS. It also updates the Subnets method to use the new API, including space information, where available (MAAS 1.9+).

(Review request: http://reviews.vapour.ws/r/3252/)

Michael Foord and others added some commits Nov 11, 2015

Merge pull request #3710 from voidspace/maas-spaces-supports-spaces
Implement SupportsSpaces

If we're running on a version of MAAS with the "network-deployment-ubuntu" capability then we support spaces on MAAS.

(Review request: http://reviews.vapour.ws/r/3116/)
Merge pull request #3719 from voidspace/maas-spaces-supports-spaces-2
apiserver correctly checks the result of calling SupportsSpaces

Correct a bug in the apiserver to correctly check the result of calling SupportsSpaces.

(Review request: http://reviews.vapour.ws/r/3125/)
Translate maas space names to Juju names, add SpaceProviderId to Subn…
…etInfo, correctly filter by subnet id in the new subnet code
Merge pull request #3759 from dimitern/maas-spaces-new-constraints
Added support for spaces constraints and interface bindings for node selection

Refactored code around selectNode / acquireNode / convertConstraints and
moved it in a separate file, and same for the related tests.

Now "networks" and "not_networks" arguments are formatted to include
positive or negative spaces (using the new syntax - "space:<name>").
Initial support for handling interface bindings is also in place, but
it's only unit tested for now.

Live tested on MAAS, in addition to the unit tests:
```
$ juju bootstrap
$ juju space create public-api
$ juju space create compute-external
$ juju add-machine --constraints spaces=public-api
$ juju add-machine --constraints spaces=^compute-external
```

Both of the above worked as expected, provided the spaces were created
on MAAS and (for the time being, manually) on Juju.

(Review request: http://reviews.vapour.ws/r/3167/)
Translate maas space names to Juju names, add SpaceProviderId to Subn…
…etInfo, correctly filter by subnet id in the new subnet code

@voidspace voidspace closed this Nov 30, 2015

@voidspace voidspace deleted the voidspace:maas-spaces-list-spaces branch Oct 6, 2016

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