Explicitly set use_direct_get to False
It is essential for nodepool that we use list and local filtering for openstack servers for scale reasons. For users who are using openstacksdk at scales that are not nodepool, it's less efficient to do lists all the time. There is a flag to control the behavior of get_server. Set it explicitly to request the behavior nodepool is looking for so that openstacksdk can change the default to better serve non-nodepool consumers. Change-Id: I7cf03285f9a04f3eef403c67d75e149605207eb1
This commit is contained in:
parent
74f960848c
commit
816921e4e2
|
@ -83,6 +83,7 @@ class OpenStackProvider(Provider):
|
||||||
rate_limit = 1 / self.provider.rate
|
rate_limit = 1 / self.provider.rate
|
||||||
return openstack.connection.Connection(
|
return openstack.connection.Connection(
|
||||||
config=self.provider.cloud_config,
|
config=self.provider.cloud_config,
|
||||||
|
use_direct_get=False,
|
||||||
rate_limit=rate_limit,
|
rate_limit=rate_limit,
|
||||||
statsd_host=os.getenv('STATSD_HOST', None),
|
statsd_host=os.getenv('STATSD_HOST', None),
|
||||||
statsd_port=os.getenv('STATSD_PORT ', None),
|
statsd_port=os.getenv('STATSD_PORT ', None),
|
||||||
|
|
Loading…
Reference in New Issue