juju machines no longer outputs maas machine id

Bug #1821741 reported by Andrew McLeod
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Invalid
High
Unassigned

Bug Description

juju 2.5.3 now lists the display name, aka hostname for a maas node in juju status output / juju machines output. This is easier to read and understand, but since the maas API doesn't allow lookups via host name and requires the maas system id, this means extra steps to get the id from the hostname to perform actions against the maas API.

Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.6-beta1
Revision history for this message
Ian Booth (wallyworld) wrote :

The instance id is supposed to still be in status via the --format yaml (or json) option.
The machine name replaces instance id in tabular output (which is for humans). However, it appears the yaml/json output is missing the instance id so this will need to be addressed.

Changed in juju:
milestone: 2.6-beta1 → 2.5.4
Revision history for this message
Ian Booth (wallyworld) wrote :

Actually, I just tested on a MAAS setup and the instance id is being shown, eg

machines:
  "0":
    dns-name: 10.0.0.32
    ip-addresses:
    - 10.0.0.32
    instance-id: pybf87

Which allows you to navigate to:

http://<maasip>/MAAS/#/machine/pybf87

What's missing in this deployment is the display name, which isn't always available depending on what the maas reports.

Do you have a sample status --format yaml output we can look at to confirm there really is an issue?

Changed in juju:
status: Triaged → Incomplete
Revision history for this message
Ian Booth (wallyworld) wrote :

I just did another test with MAAS where the machine I was deploying to did report a hostname. Both instance id and hostname (aka display name) did show as expected in status --format yaml

machines:
  "0":
    dns-name: 10.0.0.32
    ip-addresses:
    - 10.0.0.32
    instance-id: s88gww
    display-name: nuc5

tabular status shows hostname as expected.

Marking the bug as invalid on that basis.

Note that the reason this change was made was to fix this bug https://bugs.launchpad.net/bugs/1501475

Changed in juju:
status: Incomplete → Invalid
milestone: 2.5.4 → none
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.