weizhouapache commented on PR #9201:
URL: https://github.com/apache/cloudstack/pull/9201#issuecomment-2163004564
@vishesh92
I tested host-affinity,
```
command="cmk deploy virtualmachine
zoneid=5a6557c9-b1e0-4fbf-bca4-7f376a96df65
templateid=344e6034-28ae-11ef-8462-1e00c200016f
serviceofferingid=2eb32c51-d604-472b-895e-019f31a2f146
networkids=39323a57-1e12-4f3d-b030-36ef7e850e22"
affinitygroup=$(cmk create affinitygroup type='host affinity'
name=test-`uuidgen`)
affinitygroupid=$(echo $affinitygroup |jq -r '.affinitygroup.id')
# create 2 vms in parallel
for i in `seq 1 2`;do $command affinitygroupids=$affinitygroupid & done
```
I tried twice. first time it works, second try it did not

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]