machine-controller icon indicating copy to clipboard operation
machine-controller copied to clipboard

Openstack provider clean-up

Open irozzo-1A opened this issue 5 years ago • 3 comments

This issue is to do some clean-up in the openstack provider logic, that in some cases is not very clear or optimal. A few examples:

In order to get a network by name or ID we iterate through all networks instead of getting it directly with the proper API call: https://github.com/kubermatic/machine-controller/blob/master/pkg/cloudprovider/provider/openstack/helper.go#L217

Same applies for security groups: https://github.com/kubermatic/machine-controller/blob/master/pkg/cloudprovider/provider/openstack/helper.go#L184

The logic we use to get the default subset is a bit obscure: if we have just one subnet in the network provided in input we return it otherwise we obtain the subnets from the API and we return the first if any or we throw an error. If there is a reason behind that, I have some doubts, we should at least comment it properly. https://github.com/kubermatic/machine-controller/blob/master/pkg/cloudprovider/provider/openstack/helper.go#L416

irozzo-1A avatar Feb 21 '20 14:02 irozzo-1A

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale.

If this issue is safe to close now please do so with /close.

/lifecycle stale

kubermatic-bot avatar Jun 03 '20 16:06 kubermatic-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

kubermatic-bot avatar Sep 23 '20 21:09 kubermatic-bot

/remove-lifecycle rotten /kind cleanup

xmudrii avatar Oct 08 '20 09:10 xmudrii