Improve registration check

Bug #1772064 reported by Jacek Nykis
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
landscape-client-charm
New
Undecided
Unassigned

Bug Description

I have an environment where something went wrong with registration. I'm not sure how that happened but current state is:
* landscape-client is configured to run
* the system is NOT registered with LS
* the charm workload status says "System successfully registered"

I think it's to do with try_to_register function which uses sysvconfig.is_configured_to_run() to figure out whether the system is registered or not.

If possible please improve the check so that we let users know something went wrong. Or even better retry registration on failures.

Related branches

Changed in landscape-client-charm:
assignee: nobody → Alexander Litvinov (alitvinov)
Revision history for this message
Alexander Litvinov (alitvinov) wrote :

Proposed patch fixes landscape-client-charm false-positive registration result with server.

Changed in landscape-client-charm:
assignee: Alexander Litvinov (alitvinov) → nobody
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.