Juju incorrectly placed a unit onto an existing machine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned | ||
MAAS |
Invalid
|
High
|
Newell Jensen |
Bug Description
Re-targeted to Juju (2.6.5) based on https:/
Old title: "maas reported 409 CONFLICT from "allocate" while the node matching constraints was available"
https:/
https:/
Juju tried 10 times to allocate a machine with tag "prometheus" but MAAS responded with 509s to all requests so Juju eventually marked the machine as failed. The machine is a pod VM (the host is in zone-3). Based on the DB dump it looks like it exists, is ready, has the right tag and interface with access to the right space.
8cf17ecd-
2019-07-05 19:55:23 regiond: [info] 10.246.64.6 POST /MAAS/api/
2019-07-05 19:55:24 regiond: [info] 10.246.64.6 POST /MAAS/api/
select x.hostname,
hostname | status | zone_id | name
-------
prometheus-3 | 4 | 3 | zone3
(1 row)
src/maasserver/
class NODE_STATUS:
# ...
READY = 4
#: The node is ready for named deployment.
maasdb=# select id from maasserver_node where hostname = 'prometheus-3';
id
----
13
(1 row)
maasdb=# select * from maasserver_space;
id | created | updated | name | description
----+--
1 | 2019-07-05 19:02:02.797481+00 | 2019-07-05 19:02:02.797481+00 | ps45_routers | foundation-engine created space: ps45_routers
2 | 2019-07-05 19:02:03.603296+00 | 2019-07-05 19:02:03.603296+00 | internal-space | foundation-engine created space: internal-space
3 | 2019-07-05 19:02:05.074262+00 | 2019-07-05 19:02:05.074262+00 | oam-space | foundation-engine created space: oam-space
4 | 2019-07-05 19:02:06.108567+00 | 2019-07-05 19:02:06.108567+00 | external-space | foundation-engine created space: external-space
5 | 2019-07-05 19:02:06.922964+00 | 2019-07-05 19:02:06.922964+00 | ceph-replica-space | foundation-engine created space: ceph-replica-space
6 | 2019-07-05 19:02:07.80897+00 | 2019-07-05 19:02:07.80897+00 | ceph-access-space | foundation-engine created space: ceph-access-space
(6 rows)
maasdb=# select vlan_id from maasserver_
vlan_id
---------
5002
(1 row)
maasdb=# select id,space_id from maasserver_vlan where id = 5002;
id | space_id
------+----------
5002 | 3
(1 row)
maasdb=# select node_id,tag_id from maasserver_node inner join maasserver_
node_id | tag_id
---------+--------
13 | 2
13 | 1
13 | 9
(3 rows)
maasdb=# select * from maasserver_tag where name like '%prometheus%';
id | created | updated | name | definition | comment | kernel_opts
----+--
9 | 2019-07-05 19:03:58.501961+00 | 2019-07-05 19:03:58.501961+00 | prometheus | | |
(1 row)
description: | updated |
Changed in maas: | |
assignee: | nobody → Newell Jensen (newell-jensen) |
Changed in maas: | |
status: | New → Incomplete |
status: | Incomplete → Triaged |
importance: | Undecided → High |
Changed in maas: | |
status: | Triaged → In Progress |
milestone: | none → 2.7.0alpha1 |
description: | updated |
Changed in maas: | |
status: | Incomplete → Invalid |
Changed in maas: | |
milestone: | 2.7.0alpha1 → none |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Dmitrii,
Can you verify that the machine also matches the interface constraints that you are trying to allocate the machine with? From your constraints, interfaces need to match:
'internal: space=2; nrpe-external- master: space=3; target: space=3; compute- peer:space= 3;prometheus- rules:space= 3;website: space=3; amqp:space= 3;secrets- storage: space=3; neutron- plugin: space=3; nova-ceilometer :space= 3;cloud- compute: space=3; ephemeral- backend: space=3; snmp-exporter: space=3; grafana- source: space=3; image-service: space=3; lxd:space= 3;scrape: space=3; blackbox- exporter: space=3; cloud-credentia ls:space= 3;ceph- access: space=3; 0:space= 3;alertmanager- service: space=3; ceph:space= 3'