cloudify-cli icon indicating copy to clipboard operation
cloudify-cli copied to clipboard

Skip pagination when run cfy dep group extend --into-environments

Open ronaldnascimentosilva opened this issue 2 years ago • 1 comments

Command cfy deployment group extend --into-enviroment env-group test-group only extend 1000 deployments when the env-group have more than 1000 deployments

$ cfy dep group create -b blueprint_id -i auth_url="http://myserver/v3" env-group
Group env-group created
$ cfy dep group extend --count 1050 env-group
Group env-group updated. It now contains 1050 deployments
# Wait until all executions are completed
$ cfy exec summary status
$ cfy exec group start install -g env-group
# Wait until all executions are completed
$ cfy exec summary status
$ cfy dep group create -b tester-blueprint test-group
Group test-group created
$ cfy dep group extend --into-environments env-group test-group
Group test-group updated. It now contains 1000 deployments

After some investigation I realize the endpoint has a default pagination that limit the query, so i added a parameter in the request to ignore the pagination in this case.

ronaldnascimentosilva avatar Jan 26 '23 18:01 ronaldnascimentosilva

https://cloudifysource.atlassian.net/browse/WDR-156

ronaldnascimentosilva avatar Feb 01 '23 16:02 ronaldnascimentosilva