[openstack-dev] [novaclient] invoking methods on the same client object in different theads caused malformed requests

Xiong, Huan huan.xiong at hxt-semitech.com
Tue Apr 3 10:25:29 UTC 2018


Hi,

I'm using a cloud benchmarking tool [1], which creates a *single* nova
client object in main thread and invoke methods on that object in different
worker threads. I find it generated malformed requests at random (my
system has python-novaclient 10.1.0 installed). The root cause was because
some methods in novaclient (e.g., those in images.py and networks.py) 
changed client object's service_type. Since all threads shared a single
client object, the change caused other threads generated malformed requests
and hence the failure.

I wonder if this is a known issue for novaclient, or the above approach is
not supported?

Thanks,
rayx

[1] https://github.com/ibmcb/cbtool



More information about the OpenStack-dev mailing list