python-libmaas icon indicating copy to clipboard operation
python-libmaas copied to clipboard

Failed to set the cpu_over_commit_ratio parameter when adding KVM pod.

Open SpirosStyliaras opened this issue 4 years ago • 1 comments

Hi, The method make_payloads in the module maas.client.utils.multipart contains a bug I guess. We can not set value to cpu_over_commit_ratio parameter of Pod class. This parameter is supposed to be set with float value. When I try to create a KVM virsh pod I get the following error: AssertionError: 'cpu_over_commit_ratio' is unrecognised: <float value>

I guess we have to add the following elif condition in the make_payloads function: elif isinstance(content, float): yield make_bytes_payload(name, b"%f" % content)

SpirosStyliaras avatar Nov 29 '21 00:11 SpirosStyliaras

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Feb 02 '24 01:02 github-actions[bot]