What happened:
ListMachines method errors out when there are no instances found in a project & zone. Thus resulting in false/unwanted errors in the orphan collection. Even though nothing is breaking, the dump of false errors in the logs makes it difficult to debug other issues.
What you expected to happen:
When there are no instances found in a project & zone, ListMachines method should return an empty MachineList
How to reproduce it (as minimally and precisely as possible):
Create a cluster with multi zone worker pool with minimum of 1 machine.
Observe the logs to witness the above error where the orphan collection posts error messages for machineClasses whose machines objects are not present.
What happened: ListMachines method errors out when there are no instances found in a project & zone. Thus resulting in false/unwanted errors in the orphan collection. Even though nothing is breaking, the dump of false errors in the logs makes it difficult to debug other issues.
What you expected to happen: When there are no instances found in a project & zone, ListMachines method should return an empty MachineList
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
Environment: