New host detail page feedback (Foreman 3.0+)

Thanks! I don’t see this in 3.4 yet, but a lot seems to be queued for 3.5.

That would be very helpful (for most users, I presume). Many manufacturers store numbers in there which are used to get hardware support, so it’s quite useful to have this readily available.

Thanks for the pointers! Indeed, these look like good solutions, while barely maintained of course is an issue. Since we currently keep this information in Foreman (and extract it via hammer-cli to display it externally), we basically go the opposite way, but it’s an interesting thought to reconsider this.

Still, it would be useful (especially for “special” stuff like rtcwake which likely is not really of any use to others) to have a way to add custom cards / key-value-pairs displayed in the new UI. It would of course be lovely to see this as a core feature, or maybe as a plugin to the new UI?
I think it could help not only with special cases such as this one, but would also allow users to add additional information locally and suggest upstreaming it after determining that it is really useful to have and that it may be of common interest. What do you think?

It should be noted that in 3.5 there is parameters tab. In https://github.com/theforeman/foreman/pull/9368#issuecomment-1303699125 there’s a screenshot. It doesn’t fully address your concern, but it’s a step.

Oh yes. I didn’t respond to that part, but I’ll be explicit: I think a generic way to display facts and perhaps even some favorite parameters on custom cards could certainly make sense.

@MariaAga and @MariSvirik may have more thoughts on it.

IMHO this is something that could live in core if the configuration is generic enough, but it could certainly be prototyped in a plugin.

1 Like

Running Foreman 3.41 and seems SCAP is still missing from the “Host Overview” page. Is this something planned to be added? Would be nice to be able to see what SCAP policy(s) has been assigned to the host and perhaps compliance status. Bonus points to be able to change SCAP policy.

These are good suggestions. We didn’t have anything specific in mind for this plugin, the old page didn’t show anything either, which is why we probably missed it. @MariSvirik do you think you could create a card for the Overview or Detail page? One host can belong to multiple policies but I’d dare to say, mostly it’s a single policy for host. 3.5 is out already, but perhaps we could add something in 3.6 or 3.7. @tedevil (or anyone else), would you be interested in contributing this functionality? Currently we don’t have many active developers on the foreman_openscap plugin.

I should correct myself here - it was too late for 3.5 and is a 3.6 feature.

First of all, I really like the new design, it is clear and modern and works very well. There are only a few exceptional cases when I need to switch to the original page, like template preview.

There is one small thing I have noticed, though. When an ansible job has run and involved the host I am looking at, even though the host processed the job successfully, but another host had an issue, the status of that job shows “failed”. I think it would be better to show the host status here, which would be green and “success” and leave the ob status the job page, to avoid confusion.

3 Likes

I miss being able to view the templates generated for the system without having to go to the old page.

1 Like

Even if I have basic programming skills, I an not really a developer, more a “power user”, but I can for sure provide SCAP “input/feedback” if needed.
Hosts can for sure have multiple SCAP policies applied like when you want to roll out a new policy and see how it works on old hosts before switching.

1 Like

Great feedback, this is already possible in Foreman 3.5, introduced by Bug #35176: Hosts "New UI" no way to review templates - Foreman

If I get that correctly, the last remote execution status is determined by the overall job status, not the status for a particular host from that job. If that’s the case, I agree that’s not a great behavior. @aruzicka when you’re back, could you please confirm? :christmas_tree:

This I think is the same thing I replied to in the first paragraph. See how it looks at Foreman Community Demo #118 - YouTube, it should be in 3.5 already. We’ll be happy to hear feedback on this too :slight_smile:

Gotcha, let’s see if we can find someone to work on that. We should start first with the design, I’ll talk with our UXD.

Thanks everyone for wonderful feedback so far. I’ve renamed the thread so it better represents the topic. Please keep it coming.

Thank you Marek :slight_smile: It looks great and works, however, I wasn’t aware we need to turn on “experimental tabs” in the config in order to see the “Details” tab at all in the new host UI. Has this been officially included in 3.5 or is it still in preview?

It’s moving outside of experimental labs in Foreman 3.6: Refactor #35839: New host details - Move Details tab out of experimental labs - Foreman

But at this point it’s pretty full-featured; I wouldn’t hesitate to use it in 3.5 if you want to. :slight_smile:

2 Likes

Should we consider cherrypicking this change to 3.5.z? I think it was the intention to have it fully supported with 3.5 :slight_smile:

+1

cc @MariaAga @ekohl

I suggested it, but @MariaAga was against it:

That’s correct.

Thanks!

Since foreman_column_view has been sunset now, let me come back to this idea: Would one of the UI/UX devs be interested to add a way to add a custom card, showing custom facts?

With this, I think we’d have full feature parity to the old host details page (and of course more features in addition). As it is now, there is no replacement for foreman_column_view for the new host detail page, i.e. no way to add custom facts which may be site-specific (such as the programmed rtcwake time which is of interest for us, but not of general interest).

One thing I am missing is a quick way to update a host. Would be nice to have like the Errata card, an Update card that shows how many updates are available and a button/action to update everything now with maybe an option to also automatically solve traces after the update.

Are you asking for

  • a Packages card that shows installable updates and has an Install All button?
  • an Apply All button on the existing Errata card?

or something else?

I just feel like after the content hosts dialog went away:


Nothing similar seems to have replaced it (unless I missed something).

Would be nice to see some quick update actions you can do from the host page that does not require you to go through the remote execution dialog and then enter it again to solve any traces.

I quite like the 3-dotted dialog you can open for on some cards to perform actions. Thought perhaps update actions could be one of them.

Buy yes, I guess a new card for Packages is needed since if they do not have an errata they would be visable here.

Going back to what @olifre mentioned, foreman_column_view provided the ability to add a column based on any fact. The selectable columns feature doesn’t quite provide the same level of customization as it’s limited to a small number of pre-programmed facts, so although the functionality has been integrated into Foreman, it doesn’t have the capability that it did as a plugin.

Is there any way to add a custom column without having to dive into the inner workings of the code?

1 Like