cohesity / management-sdk-python

Cohesity Management SDK for Python.
Apache License 2.0
21 stars 20 forks source link

Anfield does not handle Blackout periods #36

Closed w0rd3r closed 3 years ago

w0rd3r commented 3 years ago

❓ Questions and Requests

Hello, we do have an issue regarding Anfield.

When we export, then import, the Python module to import does not handle blackout periods of protection jobs.

You can see output below:

root@sqvmsauvelst01:/home/management-sdk-python-master/samples/project-anfield# python3 import_cluster_config10-59 INFO:import_app:Importing cluster config

INFO:import_app:Importing gflags

INFO:import_app:Importing Storage domains

INFO:import_app:Importing remote clusters

INFO:import_app:Importing Views

INFO:import_app:Importing Targets

INFO:import_app:Importing Sources

INFO:import_app:Importing Policies

INFO:import_app:Importing Jobs

INFO:import_app:Imported resources summary. INFO:import_app:Gflag services: kIris, kBridge, kNewScribe

INFO:import_app:Storage Domains: DefaultStorageDomain

INFO:import_app:Protection Views: nfsview, TestBob2

INFO:import_app:Protection Sources: sourceFQDN

INFO:import_app:Protection Policies: Bronze, Default Policy, Gold, replication_A, policy_poc, Silver, policy_tag

INFO:import_app:Protection Jobs: from13to14protection_poc, from13to14protection_tag, from13to14protection_view

ERROR:import_app:Please find the error list/corrective actions: ERROR:import_app: 1: Error creating Policy: Qualif, failed with error: 'BlackoutPeriod' object has no Id'

ERROR:import_app: 2: Protection policy not available for job from13to14QSIA

If it's an urgent request, Please contact us instead.

pyashish commented 3 years ago

Thanks for opening issue @w0rd3r . Can you let us know the SDK version and cluster version you are trying this on ?

w0rd3r commented 3 years ago

Thanks

6.5.1d And sdk dowloaded from latest release today

Bob

Le mer. 13 janv. 2021 à 18:53, Ashish Bhat notifications@github.com a écrit :

Thanks for opening issue @w0rd3r https://github.com/w0rd3r . Can you let us know the SDK version and cluster version you are trying this on ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cohesity/management-sdk-python/issues/36#issuecomment-759614859, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOP3LWLFZB4P5AAMVWKJYTSZXMXZANCNFSM4WAZAGUA .

naveena-maplelabs commented 3 years ago

@w0rd3r , Issue is fixed and patch release is made. Please install the latest sdk to avail the same. https://pypi.org/project/cohesity-management-sdk/1.5.2/