Don't distract the user with multiplied errors When No Internet Connectivity on PMM (but the user can access PMM server over local network)

Description

User story:

  • As a PMM user, I don't want to get "Red messages" every minute (or several of them) when my PMM server doesn't have connectivity to the internet (Offline mode) so that I'm not distracted by such messages because they are expected

UI/UX:

  • No red messages when OFFline mode for pmm server

  • information about connectivity problems presented inside components. ex: News panel showing the message "can't load news, because no internet connection" or Update panel show similar message

Acceptance criteria

  • When there is no connection from the PMM server to the internet ("Offline mode") there no red error popups on PMM pages

  • all needed errors/warning presented as messages inside appropriate panels

  • user able to operate with PMM without distractions on UI

Out of scope:

  • Eliminate problems when a connection between User and PMM server (user lost the connection) broken

Suggested implementation:
TBD

How to test:
TBD

Original report:

When there is no connectivity to the Internet, do not show warnings.  "Templating.  Template variable service failed. Failed to fetch..." warning is an example.

How to test

None

How to document

None

AFFECTED CS IDs

CS0018250, CS0018630

Attachments

3

Smart Checklist

Activity

Roma Novikov October 21, 2021 at 9:10 AM

thanks,

yes, we have now only one Var for disabling Updates. the plan is  to have two: current for  Updates and second - for Checking the updates 

Lalit Choudhary October 21, 2021 at 8:05 AM
Edited

I don't see this issue with  PMM 2.22 , no more update check message on Home dashboard.

But the pmm-managed log shows, it's still checking for updates, I think it's fine as it's tried and failed due to no internet connectivity. 

 

Current Issue I see: One thing I'm not sure about is, even when DISABLE_UPDATES=true , PMM still runs update check, 

 

No updated check messages/popups on PMM home dashboard but pmm-managed log has following entry for update check,

 

Roma Novikov August 16, 2021 at 2:59 PM

the fix in so we expect when Fix is ready - this will be closed too

Steve Hoffman August 13, 2021 at 8:04 PM

Tagged , was this not fixed with the work Jiri did to display current version if not internet that's in 2.21.0?

Steve Hoffman July 29, 2021 at 7:39 PM
Edited

Easy to reproduce on a VM.  Simply route default gateway to non-routing IP and login to pmm-server.  Wait ~30 seconds.  On ubuntu I did this two ways 1) disconnect network adapater removing all internet or 2) run similar as root: route add -net 0.0.0.0 netmask 0.0.0.0 gw <non.routing.ip.addr> ens33

in both cases after 30 seconds on the home page I get a red banner about failing to check for update.  

I think the bigger bug is already captured elsewhere that we do not allow user to uncheck "check for updates" for some reason which the ticket is linked and in progress.  (checked in 2.19.0 and 2.17.0). 

 

Duplicate

Details

Assignee

Reporter

Priority

Components

Fix versions

Affects versions

Smart Checklist

Created June 7, 2021 at 3:26 PM
Updated October 9, 2024 at 8:36 AM
Resolved October 21, 2021 at 9:10 AM