Bug 43595 - Create web interface for a server overview
Create web interface for a server overview
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.2
Other Linux
: P5 enhancement (vote)
: UCS 4.2
Assigned To: Alexander Kläser
Florian Best
: interim-2
: 39592 (view as bug list)
Depends on:
Blocks: 43680
  Show dependency treegraph
 
Reported: 2017-02-21 10:19 CET by Alexander Kläser
Modified: 2017-04-04 18:29 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Release Goal
Max CVSS v3 score:


Attachments
Mockup of server overview (82.92 KB, image/png)
2017-02-21 10:19 CET, Alexander Kläser
Details
umc_server_view_not_clickable.png (54.41 KB, image/png)
2017-03-15 06:34 CET, Stefan Gohmann
Details
umc_server_view_clickable.png (55.26 KB, image/png)
2017-03-15 06:35 CET, Stefan Gohmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2017-02-21 10:19:26 CET
Created attachment 8441 [details]
Mockup of server overview

In order to have a decent overview over all computers in a UCS domain, we need an extra interface which shows all computers of a domain. By clicking on an entry, this allows to navigate to the UMC web interface of the corresponding server.
Comment 1 Alexander Kläser univentionstaff 2017-03-01 04:47:10 CET
I added a first version of the site. The search is applied to IP addresses, server role, hostname, domainname.

TODO:
* Add portal entry
* Optimizations might be necessary for large environments


changelog-4.2-0.xml:
r77188 | Bug #43595: added changelog entry

univention-server (12.0.0-7):
r77186 | Bug #43595: Add recommendation to univention-server-overview

univention-dvd (2.0.0-8):
r77187 | Bug #43595: added univention-server-overview to task list

univention-server-overview (0.0.1-1):
r77185 | Bug #43595: Initial Release
Comment 2 Alexander Kläser univentionstaff 2017-03-01 11:05:22 CET
univention-server-overview (0.0.1-2):
r77192 | Bug #43595: Adjust labels and some styling
Comment 3 Alexander Kläser univentionstaff 2017-03-01 11:09:56 CET
(In reply to Alexander Kläser from comment #1)
> I added a first version of the site. The search is applied to IP addresses,
> server role, hostname, domainname.
> 
> TODO:
> * Add portal entry
> * Optimizations might be necessary for large environments

I added Bug 43680 for adding the portal entry. This bug can thus be closed.
Comment 4 Alexander Kläser univentionstaff 2017-03-02 12:43:06 CET
univention-server-overview (0.0.1-4):
r77233 | Bug #43595: fix coding style + references + entitites.encode()
r77225 | Bug #43595: Use umc.tools.isIPAddress()
Comment 5 Florian Best univentionstaff 2017-03-02 16:52:04 CET
* A computer without domainname redirects to $hostname.null.
* A computer without version shows UCS null.
* please say something about the "Zum Portal" button in the mockup.
* where is the list view?
* translations seem missing
* the menu contains only a '@' instead of the hostname
* the menu contains a login link which does nothing but immediately toggles the button to a logout link.
Comment 6 Alexander Kläser univentionstaff 2017-03-06 18:38:17 CET
(In reply to Florian Best from comment #5)
> * A computer without domainname redirects to $hostname.null.
> * A computer without version shows UCS null.

Fixed.

> * please say something about the "Zum Portal" button in the mockup.

I added a link into the menu which seems to be more appropriate.

> * where is the list view?

There is none.

> * translations seem missing

Fixed.

univention-server-overview (0.0.1-5):
r77386 | Bug #43595: Minor fixes + l10n integration

> * the menu contains only a '@' instead of the hostname
> * the menu contains a login link which does nothing but immediately toggles
>   the button to a logout link.

I fixed this via Bug 42263.
Comment 7 Florian Best univentionstaff 2017-03-07 14:48:09 CET
Servers without IP and FQDN redirect to "undefined".
Comment 8 Florian Best univentionstaff 2017-03-07 14:49:21 CET
Maybe we should sort the servers? First the DC Master, then DC Backups, then DC Slaves and then Memberservers?
Comment 9 Florian Best univentionstaff 2017-03-07 14:51:07 CET
I am visiting the page via FQDN but the link goes to the IP address.
Comment 10 Alexander Kläser univentionstaff 2017-03-08 13:32:20 CET
(In reply to Florian Best from comment #7)
> Servers without IP and FQDN redirect to "undefined".

Fixed.

(In reply to Florian Best from comment #8)
> Maybe we should sort the servers? First the DC Master, then DC Backups, then
> DC Slaves and then Memberservers?

Fixed.

(In reply to Florian Best from comment #9)
> I am visiting the page via FQDN but the link goes to the IP address.

Fixed.

I accidentally used the wrong bug number...

univention-server-overview (0.0.2-1):
r77460 | Bug #42263: Sort by server type + fix linking issues
Comment 11 Florian Best univentionstaff 2017-03-08 16:18:30 CET
A computer with:

univentionOperatingSystem: Windows 7 Professional
univentionOperatingSystemVersion: 6.1 (7601)

is shown as "UCS 6.1 (7601)".

This might happen for docker memberservers?
Comment 12 Florian Best univentionstaff 2017-03-09 13:26:13 CET
umc/de.po contains wrong entries.
Comment 13 Alexander Kläser univentionstaff 2017-03-09 22:31:58 CET
(In reply to Florian Best from comment #11)
> A computer with:
> 
> univentionOperatingSystem: Windows 7 Professional
> univentionOperatingSystemVersion: 6.1 (7601)
>
> is shown as "UCS 6.1 (7601)".
> 
> This might happen for docker memberservers?

My filter for computers/computer objects is (|(objectClass=univentionDomainController)(objectClass=univentionMemberServer)). I do not see how a windows entry could match this? I could not reproduce this problem.

Hm... ATM, I am not able to install any docker containers on my VM. Did you test that?

(In reply to Florian Best from comment #12)
> umc/de.po contains wrong entries.

Fixed (with wrong bug number).

univention-server-overview (0.0.3-2):
r77546 | Bug #42263: Fix entries in umc/de.po
Comment 14 Florian Best univentionstaff 2017-03-10 14:12:53 CET
Please hide docker memberservers otherwise every app is shown as single server.
This can be done with the following filter:
(!(univentionObjectFlag=docker))

Maybe we should also only show Systems with UMC (Bug #39592) ?
(univentionService=Univention Management Console)
Comment 15 Florian Best univentionstaff 2017-03-10 14:16:45 CET
*** Bug 39592 has been marked as a duplicate of this bug. ***
Comment 16 Alexander Kläser univentionstaff 2017-03-13 10:27:09 CET
(In reply to Florian Best from comment #14)
> Please hide docker memberservers otherwise every app is shown as single
> server.
> This can be done with the following filter:
> (!(univentionObjectFlag=docker))
> 
> Maybe we should also only show Systems with UMC (Bug #39592) ?
> (univentionService=Univention Management Console)

OK. Fixed (with wrong bug number).

univention-server-overview (0.0.3-4):
r77627 | Bug #42263: Filter out docker containers
Comment 17 Alexander Kläser univentionstaff 2017-03-13 11:22:56 CET
I spotted a side effect of adaptations with the method GalleryPane::_resizeItemNames() where the a-tag of the gallery tiles were removed. I adjusted this behaviour in the last commit:

univention-server-overview (0.0.3-5):
r77628 | Bug #43595: Make sure that the a-tag is not removed via _resizeItemNames
Comment 18 Stefan Gohmann univentionstaff 2017-03-15 06:33:04 CET
That looks really nice. To click one server, I have to be in the line of the hostname. It would be better if I could click as soon as the mouse over affect is visible.
Comment 19 Stefan Gohmann univentionstaff 2017-03-15 06:34:39 CET
Created attachment 8534 [details]
umc_server_view_not_clickable.png
Comment 20 Stefan Gohmann univentionstaff 2017-03-15 06:35:02 CET
Created attachment 8535 [details]
umc_server_view_clickable.png
Comment 21 Alexander Kläser univentionstaff 2017-03-15 09:24:53 CET
(In reply to Stefan Gohmann from comment #18)
> That looks really nice. To click one server, I have to be in the line of the
> hostname. It would be better if I could click as soon as the mouse over
> affect is visible.

OK, I adjusted this. The whole tile is now clickable.

univention-server-overview (0.0.3-6):
r77721 | Bug #43595: Make while gallery tile clickable
Comment 22 Florian Best univentionstaff 2017-03-17 13:45:19 CET
OK: Changelog
OK: functionality
Comment 23 Stefan Gohmann univentionstaff 2017-04-04 18:29:37 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".