nodes inheriting controller "tags" constraints from boostrap

Bug #1738030 reported by james beedy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned
MAAS
Invalid
Undecided
Unassigned

Bug Description

Bootstrap and deploy ubuntu x 9 http://paste.ubuntu.com/26177436/

All nodes just get stuck in "failed to acquire node" http://paste.ubuntu.com/26177445/.

I have created 3 zones in MAAS and assigned 3 nodes to each zone (see screenshot attached)

Revision history for this message
james beedy (jamesbeedy) wrote :
affects: juju → maas
description: updated
Changed in maas:
status: New → Incomplete
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi James,

There's no enough information to determine why Juju fails to allocate. This would typically mean that juju's sent constraints to MAAS do not match against any of the machines in MAAS.

Can you provide:

1. juju debug logs with the *exact* request juju makes to MAAS ? (this will tell what other contraints juju sends to MAAS aside from arch=amd64 mem=12G cores=4 )

2. Can you provide MAAS logs (regiond.log and maas.log specifically).

3. Can you test MAAS and allocate a machine with the constraints juju sends to MAAS ? e.g. maas <user> machines allocate <constraints>

Revision history for this message
james beedy (jamesbeedy) wrote :

$ juju deploy ubuntu -n 9 --to zone=openstack-a,zone=openstack-b,zone=openstack-c
Located charm "cs:ubuntu-10".
Deploying charm "cs:ubuntu-10".

bdx@bdxbdx:~
$ juju status --format yaml | pastebinit
http://paste.ubuntu.com/26177972/

@andreserl ^ is interesting to see that the tag="juju-controller" is being applied when trying to acquire the node

I'll have the info you've requested here in a few

Revision history for this message
james beedy (jamesbeedy) wrote :

whats interesting here http://paste.ubuntu.com/26178307/

is that machine 6 seems to have inherited the "tags" constraint given to the controller at bootstrap (`juju bootstrap dcmaas --constraints "tags=juju-controller"`)

I can verify that when I `juju deploy ubuntu` or `juju add-machine` the instance gets the "tags=juju-controller"

find controller logs attached

Revision history for this message
james beedy (jamesbeedy) wrote :

correction, machine 7

$ juju status --format yaml | pastebinit
http://paste.ubuntu.com/26178333/

summary: - failed to acquire node
+ nodes inheriting controller constraints from boostrap
summary: - nodes inheriting controller constraints from boostrap
+ nodes inheriting controller "tags" constraints from boostrap
Revision history for this message
Tim Penhey (thumper) wrote :

I *think* that the constraints set at bootstrap time do apply to the entire default model and the controller model.

If they are just for the controller model, there is --bootstrap-constraints.

If I'm right on this, we should fix the documentation, and perhaps the flag names.

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Based on the above, I'm marking this as invalid for MAAS.

Changed in maas:
status: Incomplete → Invalid
Revision history for this message
james beedy (jamesbeedy) wrote :

@thumper Dead on! When '--bootstrap-constraints' is used, the constraints are only applied to the controller.

sorry about the noise here.

Thanks

Revision history for this message
Anastasia (anastasia-macmood) wrote :

Online docs issue is tracked here: https://github.com/juju/docs/issues/2336.

This bug is now about adding clarity to flag descriptions.

tags: added: helptext
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
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.