Commissioning output xml is hard to understand, would be nice to have yaml as an output option.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Newell Jensen |
Bug Description
It would be nice to have the xml output for commissioning in a more human readable format, such as yaml. This would make the output information more human readable. Here is an example of what we could have:
Current xml (example):
<node id="network" claimed="true" class="network" handle=
<vendor>Red Hat, Inc</vendor>
<width units="
<clock units="
<setting id="broadcast" value="yes" />
<setting id="driver" value="virtio_net" />
<setting id="driverversion" value="1.0.0" />
<setting id="ip" value="
<setting id="latency" value="0" />
<setting id="link" value="yes" />
<setting id="multicast" value="yes" />
<capability id="msix" >MSI-X</capability>
<capability id="bus_master" >bus mastering<
<capability id="cap_list" >PCI capabilities listing<
<capability id="rom" >extension ROM</capability>
<capability id="ethernet" />
<capability id="physical" >Physical interface<
<resources>
<resource type="irq" value="10" />
<resource type="ioport" value="
<resource type="memory" value="
<resource type="memory" value="
</resources>
</node>
Current yaml (example):
- node:
- id: network
- claimed: true
- class: network
- handle: PCI:0000:00:03.0
- description:
- product:
Virtio network device
- vendor:
Red Hat, Inc
- physid:
3
- businfo:
- logicalname:
eth0
- version:
00
- serial:
- width:
- units: bits
32
- clock:
- units: Hz
- configuration:
- setting:
- id: broadcast
- value: yes
- setting:
- id: driver
- value: virtio_net
- setting:
- id: driverversion
- value: 1.0.0
- setting:
- id: ip
- value: 10.17.17.103
- setting:
- id: latency
- value: 0
- setting:
- id: link
- value: yes
- setting:
- id: multicast
- value: yes
- capabilities:
- capability:
- id: msix
MSI-X
- capability:
- id: bus_master
bus mastering
- capability:
- id: cap_list
PCI capabilities listing
- capability:
- id: rom
- capability:
- id: ethernet
- capability:
- id: physical
- resources:
- resource:
- type: irq
- value: 10
- resource:
- type: ioport
- value: c060(size=32)
- resource:
- type: memory
- value: febd5000-febd5fff
- resource:
- type: memory
- value: feb80000-febbffff
Related branches
- Blake Rouse (community): Approve
-
Diff: 112 lines (+55/-3)3 files modifiedsrc/maasserver/templates/metadataserver/nodecommissionresult.html (+28/-3)
src/metadataserver/models/noderesult.py (+12/-0)
src/metadataserver/models/tests/test_nodecommissionresult.py (+15/-0)
Changed in maas: | |
assignee: | nobody → Newell Jensen (newell-jensen) |
importance: | Undecided → High |
status: | New → In Progress |
description: | updated |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | none → 1.7.0 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
There is a reason to show the XML: so that people can write XPath expressions to match it for use with "auto" tags. If you show YAML by default you need to provide a way to see the raw XML too.
Perhaps there is a half-way house, which is to use a JavaScript colourisation library to make the XML prettier and easier to read.