<div dir="ltr">Hi guys,<div><br></div><div>In template i have master_lb_disabled and i want to overwrite this option using:</div><div><br></div><div>ยป openstack coe cluster create cluster002 --cluster-template b7e0be01-bf3b-4c32-af60-98b9edefa0be --keypair ioni --master-count 2 --node-count 2 --master-lb-enabled<br></div><div><br clear="all"><div>master_count must be 1 when master_lb_enabled is False (HTTP 400) (Request-ID: req-608b8634-d98e-4efd-b0e4-543ebc9eb315<br></div><div><br></div><div>Looking at the code</div><div><a href="https://opendev.org/openstack/magnum/src/branch/master/magnum/api/controllers/v1/cluster.py#L552">https://opendev.org/openstack/magnum/src/branch/master/magnum/api/controllers/v1/cluster.py#L552</a><br></div><div><br></div><div><a href="https://opendev.org/openstack/magnum/src/branch/master/magnum/api/attr_validator.py#L210">https://opendev.org/openstack/magnum/src/branch/master/magnum/api/attr_validator.py#L210</a><br></div><div><br></div><div>It seems that the validator doesn't take in consideration the new cluster dictionary.</div><div><br></div><div>I've modified the validator with:</div><div>cluster.get('master_lb_enabled', cluster_template['master_lb_enabled']):</div><div><br></div><div>and it seems to work fine</div><div><br></div><div>Not sure if it is the right fix.</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Ionut Biru - <a href="https://fleio.com" target="_blank">https://fleio.com</a><br></div></div></div></div>