model default network space does not apply to LXD containers

Bug #1883164 reported by Peter Matulis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Won't Fix
Medium
Nicolas Vinuesa

Bug Description

When I do this:

$ juju model-default default-space=public-space

I still get deploy errors like:

no obvious space for container "0/lxd/0", host machine has spaces: "public-space", "undefined"

Tags: seg
Revision history for this message
Ian Booth (wallyworld) wrote :

model-default sets the default value for newly created models. It doesn't affect exiting models.

Did you mean to type model-config?

Revision history for this message
Tim Penhey (thumper) wrote :

Could you also please include the space definitions for the model? And what the deploy commands were?

Revision history for this message
Joseph Phillips (manadart) wrote :

At present the default-space configuration applies only to the space used for the default binding. It does not inform host interface bridging for containers.

I think the expectation that is does is reasonable though. We should address it.

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Joseph Phillips (manadart)
Revision history for this message
Peter Matulis (petermatulis) wrote :

But confirm that `model-config` is the command to use here? It's confusing which one to use especially when the option itself is a type of default (like a default space).

Revision history for this message
Joseph Phillips (manadart) wrote :

Yes, model-config will do it. I noticed this was not documented, and added it to the docs here:
https://juju.is/docs/configuring-models

I'll amend when we address this ticket.

Felipe Reyes (freyes)
tags: added: seg
Changed in juju:
milestone: none → 3.0.0
Changed in juju:
milestone: 3.0.0 → 3.0.1
Changed in juju:
milestone: 3.0.1 → 3.0.2
Changed in juju:
milestone: 3.0.2 → 3.0.3
Changed in juju:
milestone: 3.0.3 → 3.0.4
summary: - Setting a model's default network space does not work
+ Setting a model's default network space does not apply to LXD containers
summary: - Setting a model's default network space does not apply to LXD containers
+ model default network space does not apply to LXD containers
Changed in juju:
milestone: 3.0.4 → 4.0-beta1
Changed in juju:
milestone: 4.0-beta1 → 4.0-beta2
Revision history for this message
Joseph Phillips (manadart) wrote :

This can be done with the Dqlite spaces implementation.

It is not difficult - we can discuss in Riga.

Changed in juju:
assignee: Joseph Phillips (manadart) → Nicolas Vinuesa (nvinuesa)
Changed in juju:
milestone: 4.0-beta2 → 4.0-beta3
Revision history for this message
John A Meinel (jameinel) wrote :

default-space shouldn't "apply to containers" but it *should* apply to the applications that would end up being deployed into containers.

At this point, we have a code path that we should probably remove that 'falls back to the alpha space' when doing automatic detection, that we should probably change to just refuse as all applications *must* have valid bindings.

Revision history for this message
Nicolas Vinuesa (nvinuesa) wrote :

For deployments, the bindings should be explicitly set. And for adding containers, space passed as constraints should do it.

Changed in juju:
status: Triaged → Won't Fix
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.