Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 'Please give valid dataPathOperationType' when updating subclient properties #99

Closed
sergio-dr opened this issue Apr 28, 2020 · 7 comments

Comments

@sergio-dr
Copy link

Hi, I get errors when trying to update subclient properties, e.g.

# after opening session with CommCell:
client = commcell.clients.get('client name')
agent = client.agents.get('oracle') 
instance = agent.instances.get('instance name')
subclient = instance.subclients.get('subclient name')
print(subclient)
subclient.exclude_from_sla()

Output:

Subclient class instance for Subclient: "subclient name" of Backupset: "default"
---------------------------------------------------------------------------
SDKException                              Traceback (most recent call last)
<ipython-input-20-136b5446fb82> in <module>
      4 subclient = instance.subclients.get('subclient name')
      5 print(subclient)
----> 6 subclient.exclude_from_sla()

~\AppData\Local\Continuum\anaconda3\lib\site-packages\cvpysdk\subclient.py in exclude_from_sla(self)
   1834         """
   1835         self._set_subclient_properties(
-> 1836             "_commonProperties['excludeFromSLA']", True)
   1837 
   1838     def enable_intelli_snap(self, snap_engine_name, proxy_options=None):

~\AppData\Local\Continuum\anaconda3\lib\site-packages\cvpysdk\subclient.py in _set_subclient_properties(self, attr_name, value)
   1156         flag, response = self._cvpysdk_object.make_request('POST', self._SUBCLIENT, request_json)
   1157 
-> 1158         output = self._process_update_response(flag, response)
   1159 
   1160         if output[0]:

~\AppData\Local\Continuum\anaconda3\lib\site-packages\cvpysdk\subclient.py in _process_update_response(self, flag, response)
   1248                 '101',
   1249                 self._update_response_(
-> 1250                     response.text))
   1251 
   1252     def _process_backup_response(self, flag, response):

SDKException: Response was not success
{
"errorMessage":"Error: Please give valid dataPathOperationType[ADD | DELETE | OVERWRITE].","errorCode":1
}

Please tell me if you need more information. Thanks.

@vinudass
Copy link

Hello, what is the version of Commserve you are connecting to?

@sergio-dr
Copy link
Author

Hello, thanks for your assistance.
Commserve is 11SP17.16.

@vinudass
Copy link

vinudass commented May 6, 2020

Hello Sergio,
This issue is not seen in V11 SP17, if possible can you try with latest hotfix packs of SP17? you can create a support ticket for this issue by contacting support@commvault.com, they can assist you on this further. Thanks.

@sergio-dr
Copy link
Author

Hello, we think this may be related that this specific subclient has 'overrideDataPath' set. If we try with another subclient without that option, no error is shown. Would that make sense for you?
Of course we can open a support ticket, but wouldn't that take longer? (we suppose they will get back to you). Thanks.

@sergio-dr
Copy link
Author

Recently upgraded to SP19.7, but we get the same error as reported on the first post.

@spakhare
Copy link
Member

Hi @sergio-dr,

We need to look into the setup to get more details on this issue. You can inform the support team that the development team had requested you to raise a support ticket. That should be quickly escalated.

Thanks

@sergio-dr
Copy link
Author

Ok, I'll follow your recommendation. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants