Skip to content

OpenStack: prefer server tags instead of metadata #79

@kayrus

Description

@kayrus

At the moment Gardener nodes are detected by listing all the servers in the project, then the servers list is filtered at the MCM side:
https://github.com/gardener/machine-controller-manager/blob/86b72854549fa6cbe6c6a8c1c5ec727f164f07f3/pkg/driver/driver_openstack.go#L286

OpenStack Nova supports tags, and tags can be used to efficiently filter compute nodes, see https://github.com/gophercloud/gophercloud/blob/193120096e295dd6fe47e5e047e5fe1a5b231e54/openstack/compute/v2/servers/requests.go#L59..L74

Filtering by tags is more efficient and it can reduce the load on the nova API side.

cc @hardikdr @prashanth26

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/2dEffort for issue is around 2 dayskind/enhancementEnhancement, improvement, extensionlifecycle/rottenNobody worked on this for 12 months (final aging stage)platform/openstackOpenStack platform/infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions