Commvault / cvpysdk

Developer SDK - Python
https://commvault.github.io/cvpysdk/
Apache License 2.0
54 stars 41 forks source link

Opnestack VirtualServer instance object NONE type #55

Closed narabeltala closed 6 years ago

narabeltala commented 6 years ago

from cvpysdk.commcell import Commcell commcell = Commcell("host", "admin", "password") client = commcell.clients.get("dc_vim1") agent = client.agents.get('virtual server') instance=agent.instances.get('openstack') ==> gives NoneType

print agent.instances S. No. Instance Agent Client 1 openstack virtual server dc2_vim1

backupset=agent.backupsets.get('wf_test1_dc2')

Traceback (most recent call last): File "", line 1, in File "c:\Python27\lib\site-packages\cvpysdk-11.14-py2.7.egg\cvpysdk\backupset.py", line 484, in get self._backupsets[backupset_name]["id"] File "c:\Python27\lib\site-packages\cvpysdk-11.14-py2.7.egg\cvpysdk\backupset.py", line 586, in init self._agent_object = self._instance_object._agent_object AttributeError: 'NoneType' object has no attribute '_agent_object'

print agent.backupsets S. No. Backupset Instance Agent Client

1 wf_test2_swag111 openstack virtual server dc2_vim1 2 wf_test2_swag openstack virtual server dc2_vim1 3 wf_test1_dc2 openstack virtual server dc2_vim1 4 custom openstack virtual server dc2_vim1 5 wf_multitenancy_vdc openstack virtual server dc2_vim1 6 wf_new_test_dc2x openstack virtual server dc2_vim1 7 wf_upa_dc2 openstack virtual server dc2_vim1 8 defaultbackupset openstack virtual server dc2_vim1

klogan12 commented 6 years ago

We dont have open stack support part of our SDK. This is on our road map.

narabeltala commented 6 years ago

Thanks a lot for the response. Same thing I just found inside class VirtualServerInstance(Instance). For us this is kind of urgent. Can you please give us some pointers with which we can write this missing code to handle Virtual server for openstack.

Thanks again. Regards Soumya

On Wed, Oct 31, 2018 at 12:10 PM kloganathan_cvlt notifications@github.com wrote:

We dont have open stack support part of our SDK. This is on our road map.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CommvaultEngg/cvpysdk/issues/55#issuecomment-434578093, or mute the thread https://github.com/notifications/unsubscribe-auth/AqkEdr7fsKEcYoEFb9TlzNUppEj88B0Zks5uqUXVgaJpZM4YDYVg .

narabeltala commented 6 years ago

And also what are other ways to automate handling of Openstack based Virtual server in Commvault

On Wed, Oct 31, 2018 at 12:35 PM Soumya Sardar nara.beltala@gmail.com wrote:

Thanks a lot for the response. Same thing I just found inside class VirtualServerInstance(Instance). For us this is kind of urgent. Can you please give us some pointers with which we can write this missing code to handle Virtual server for openstack.

Thanks again. Regards Soumya

On Wed, Oct 31, 2018 at 12:10 PM kloganathan_cvlt < notifications@github.com> wrote:

We dont have open stack support part of our SDK. This is on our road map.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CommvaultEngg/cvpysdk/issues/55#issuecomment-434578093, or mute the thread https://github.com/notifications/unsubscribe-auth/AqkEdr7fsKEcYoEFb9TlzNUppEj88B0Zks5uqUXVgaJpZM4YDYVg .

GoelJatin commented 6 years ago

Hi @narabeltala ,

The support for OpenStack has been added to the dev branch.

Please install the SDK from the dev branch, and try it out.

Let us know if you have / face any other issues / concerns.

narabeltala commented 6 years ago

Thanks Jatin for the same. We have downloaded and trying an out of place restore. WIll update.

On Mon, Nov 5, 2018 at 12:14 PM Jatin Goel notifications@github.com wrote:

Hi @narabeltala https://github.com/narabeltala ,

The support for OpenStack has been added to the dev https://github.com/CommvaultEngg/cvpysdk/tree/dev branch.

Please install the SDK from the dev branch, and try it out.

Let us know if you have / face any other issues / concerns.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CommvaultEngg/cvpysdk/issues/55#issuecomment-435770473, or mute the thread https://github.com/notifications/unsubscribe-auth/AqkEdu6exhdP1UQ13NLk_hdSUeRStv-sks5ur95HgaJpZM4YDYVg .