SUSE-Enceladus / instance-billing-flavor-check

A CLI tool to determine if an instance is PAYG or BYOS across different CSPs
GNU General Public License v3.0
1 stars 0 forks source link

Fail fast when access to registration service is forbidden #13

Open mcalmer opened 6 months ago

mcalmer commented 6 months ago

The use case:

A customer has only BYOS instances and a total isolated network where no access to a not company network is allowed. Also no access to the cloud registration service is possible.

The customer manages the instances with SUSE Manager. SUSE Manager is calling instance-flavor-check on all clients to find out if they are BYOS or PAYG. This cause now delays and performance problems as the tool always need to reach a timeout before it can report BYOS.

Possible options to come around this:

See also: https://bugzilla.suse.com/show_bug.cgi?id=1218305#c59 and also https://bugzilla.suse.com/show_bug.cgi?id=1222134

jesusbv commented 5 months ago

In order to mitigate the performance impact on the request timeout, a timeout of 10 seconds (as agreed) instead of letting the request timeout with its default (longer) value

To help with the users with no network, a new flag like --retry-attempts defaulting to 3 would help so one could call the command with 0 and would have to wait 10 seconds (1 request) to get the value