ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
14.04k stars 3.42k forks source link

Identify Tower/Awx node on login screen #7927

Open rcdlinux opened 4 years ago

rcdlinux commented 4 years ago
ISSUE TYPE
SUMMARY

In case of using a Load balancer and a VIP as a front end of Tower for example. It will be very helpful to have an option of show the hostname or other info which identify the node into login screen.

wenottingham commented 4 years ago

What do you need the end node information for - what are you intending to use that info for?

rcdlinux commented 4 years ago

Hi Bill, A customer using Tower Cluster behind a F5 load balance requested that, there are many teams working and sometimes many of them are logged into one Tower node and they don't know what node is (before doing login into the node). He asked for this feature just to identify the Tower node that users will login in, it will help him to know if the load balancer is distributing the load correctly as each Tower node is running into a different VMware host and also distribute the team users on the nodes least used.

wenottingham commented 4 years ago

OK.

I feel that if the goal is to debug how the load balancer is working/check where it's being forwarded to, there should be a better way to do this than embedding the data on the login page.

Hitting /api/v2/ping and pulling active_node (or really, pulling any API endpoint and checking the X-API-Node header) would accomplish this from a debugging perspective.

rcdlinux commented 4 years ago

The advanced admins already doing the approach via API, this feature will be very useful for purpose of Web Ui end users to know the node with an easy approach. Thank you for accept it!

chriswolske commented 4 years ago

Another reason we would find this useful: we are mandated to have separate Tower instances for PRODUCTION network vs Development networks. Having the Tower server name, or possibly a different/configurable color scheme, would be another visual cue for everyone to be sure they are operating on the right environment.

wenottingham commented 4 years ago

Separate instance of the platform (clusters) entirely is covered by the custom logo/login info setting.

rcdlinux commented 3 years ago

We've tried to type the "hostname" of one master node using the new feature [1] in Tower 3.8, but it didn't work because this feature is being applied to all nodes in the Tower cluster, it seems to be written into the database and replicated to all cluster nodes, then it is not possible to use it with information related to one node of the cluster. Would this feature be a way to solve this RFE? If it's true, it didn't help yet. I suppose (as described in the help button) the new feature is to identify a cluster like "Production" or "Development" or a disclaimer, but not to identify a cluster node only.

Thank you!

[1] - Added the ability to include HTML in the Custom Login Info presented on the login page https://docs.ansible.com/ansible-tower/latest/html/release-notes/relnotes.html#release-notes-for-3-8-x

wenottingham commented 3 years ago

I updated the comment - custom login info is for denoting separate clusters however you see fit. It's not for denoting instances, which should be interchangeable (especially behind a load balancer).