Error messages regarding missing packages should be able to be pasted into the apt-get command directly

Bug #1505386 reported by Mike Pontillo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Jeffrey C Jones

Bug Description

When adding an Intel AMT today, I received the following error:

To control power with this power type, install the 'amtterm, wsmancli' package(s) on cluster 'maas'.

It would be nice if the error could call out the specific "apt-get install <package1> [[package2] ...]" command, rather than giving me a comma-separated list. (since in 90% of cases the next action will probably involve opening SSH toward the affected cluster and installing packages)

Related branches

Changed in maas:
milestone: none → 1.9.0
Revision history for this message
Jeffrey C Jones (trapnine) wrote :

Perhaps changing the output from comma-separated to space-separated would suffice (to make it easy to cut and paste to apt-get).

Thoughts:

- The required items will not always be apt installable. For example, IBM has their own HMC software package you download from them directly. The error for that looks like: "To proceed, install the 'HMC Management Software' package(s) on cluster 'maas'". To provide apt commands for the right drivers means the drivers have to know which are available via apt and which aren't, then format the responses in a more complex way to communicate the difference. Currently the low lever checkers provide a list of missing strings to install (human understandable software names), which gets piped up to the UI.

- The user may have an alternate method of installing software on their maas cluster, making our suggestion extra noise and incorrect. If they don't know apt-get, will they know how to ssh there to run the command, and should we put sudo in front?

Revision history for this message
Mike Pontillo (mpontillo) wrote :

Agreed, Jeff. Thanks for the feedback.

Changed in maas:
assignee: nobody → Jeffrey C Jones (trapnine)
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
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.