ngine-io / ansible-collection-cloudstack

CloudStack Ansible Collections
https://galaxy.ansible.com/ngine_io/cloudstack
GNU General Public License v3.0
21 stars 28 forks source link

Not all details should be required on custom service offerings #111

Closed toonvd closed 1 year ago

toonvd commented 2 years ago

Some hosting providers want to force a fixed cpu_speed for example. At the moment this results in being unable to deploy a new VM.

Ansible:

parameters are required together: cpu, cpu_speed, memory

Cloudstack:

The cpu speed of this offering id: XXX is not customizable. This is predefined in the template.

It seems this is a mismatch between CloudStack capabilities and this collection:

https://github.com/ngine-io/ansible-collection-cloudstack/blob/44f183c1eaec14d422216b3787dcbdd98ceabb36/plugins/modules/cs_instance.py#L1111

resmo commented 2 years ago

Hi @toonvd, can you share details which cloudstack version this is related to?

toonvd commented 2 years ago

Hi

"cloudstackversion": "4.16.1.1"

This has to do with custom constrained service offerings. Image below.

image

Small edit - CPU speed can also be forced on unconstrained

resmo commented 1 year ago

fixed by #114