Snapshot restore fails when deployments number > 1000

Description

The script /opt/manager/env/bin/python /opt/mgmtworker/env/lib/python2.7/site-packages/cloudify_system_workflows/snapshots/fix_snapshot_ssh_db.py fails on restoring on a manager that has already more than 1000 deployments restored. The script misses pagination handling.

Steps to Reproduce

Environment:
OS (CLI), HA cluster, cloud provider
------------------------------------

Steps to reproduce:
------------------
1. Create 1001 deployments with credentials on 3.4.2
2. Create a snapshot
3. Restore on 4.3+

Expected result:
---------------

Actual result:
-------------

Why Propose Close?

None

Status

Assignee

Unassigned

Reporter

Anna Szpoton

Labels

None

Severity

Critical

Target Version

4.4

Premium Only

no

Found In Version

4.3

QA Owner

Uri Wygodny

Bug Type

unknown

Customer Encountered

Yes

Customer Name

None

Release Notes

yes

Priority

None

Sprint

None

Priority

Unprioritized
Configure