MAAS provider: cannot provision named instance

Bug #1237709 reported by Jonathan Davies
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Andrew Wilkins

Bug Description

In bug #1170337, it was requested that maas-name and maas-tags constraints (present in pyjuju) be implemented in the juju-core version.

However, only maas-tags was implemented and the bug was closed.

Related branches

Jonathan Davies (jpds)
tags: added: cts-cloud-review
William Reade (fwereade)
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
summary: - MAAS provider: Missing maas-name constraint
+ MAAS provider: cannot provision named instance
Revision history for this message
William Reade (fwereade) wrote :

maas-name is a bad constraint, because it makes no sense at a service level.

However, I understand that the functionality is necessary both at bootstrap time and subsequently. This should be implemented as a placement directive:

  juju bootstrap --to <hostname>
  juju deploy wordpress --to <hostname>
  juju add-unit wordpress --to <hostname>
  juju add-machine <hostname>

...in which each of the <hostname> params is really shorthand for <provider:hostname> (eg "garage-maas:gimli", but the "garage-maas:" bit can be inferred automatically because the whole environment is running on that maas anyway).

(Placement directives already exist for the lxc and ssh pseudo-providers -- "ssh:user@host", "lxc:3", but need some work to be generalised for this use case.)

Curtis Hovey (sinzui)
tags: added: cts
removed: cts-cloud-review
Curtis Hovey (sinzui)
tags: added: maas
Curtis Hovey (sinzui)
tags: added: constraint
tags: added: constraints
removed: constraint
Curtis Hovey (sinzui)
tags: added: cts-cloud-review
removed: cts
Changed in juju-core:
milestone: none → 1.17.0
Curtis Hovey (sinzui)
tags: added: maas-provider
removed: maas
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.17.0 → 1.19.0
Mark Ramm (mark-ramm)
Changed in juju-core:
milestone: 1.19.0 → 1.18.0
tags: added: landscape
Andrew Wilkins (axwalk)
Changed in juju-core:
assignee: nobody → Andrew Wilkins (axwalk)
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.20.0 → 1.19.1
Revision history for this message
Andrew Wilkins (axwalk) wrote :

@jpds can you please describe your requirements for maas-name?

I have support for add-machine <maas-name> in the works. We'll need to grow support for deploy/add-unit too, but I wanted to know if just having it on add-machine will be useful in the short term.

Revision history for this message
Björn Tillenius (bjornt) wrote :

Andrew, we need this in Landscape as well. We need it for bootstrap and add-machine. deploy/add-unit isn't important in the short-term.

Revision history for this message
Andrew Wilkins (axwalk) wrote :

Thanks Björn. Just waiting on reviews now.

Revision history for this message
Andrew Wilkins (axwalk) wrote :

I've implemented support for add-machine and bootstrap, which should land today.
I'm going to create a separate bug to cover deploy and add-unit, which requires more work.

Revision history for this message
Andrew Wilkins (axwalk) wrote :

Opened lp:1311976

Andrew Wilkins (axwalk)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
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.