Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Offline array object cannot be deserialized properly #3

Open
lmprice opened this issue Nov 10, 2016 · 0 comments
Open

Offline array object cannot be deserialized properly #3

lmprice opened this issue Nov 10, 2016 · 0 comments

Comments

@lmprice
Copy link
Contributor

lmprice commented Nov 10, 2016

Issue Type
  • Bug Report
Component Name

/storage-systems

SANtricity OS Version

2.0

NetApp E/EF-Series Model

2600

OS / Environment

Windows/Python 2.6

Summary

The deserialization fails because the value of a fields is None where a string was expected. This is a direct result of the array being offline.

Reproduction
  • Add an array using a bad IP address
  • Attempt to retrieve the list of storage-systems
Expected Results

A list containing the storage-systems

Actual Results

File "C:/Users/lorenp/PycharmProjects/santricity-webapi-pythonsdk/samples/volume_provisioning.py", line 29, in
storage_system = system_api.get_storage_system(system_id="1")
File "C:\Users\lorenp\PycharmProjects\santricity-webapi-pythonsdk\netapp\santricity\api\v2\storage_systems_api.py", line 1617, in get_storage_system
callback=params.get('callback'))
File "C:\Users\lorenp\PycharmProjects\santricity-webapi-pythonsdk\netapp\santricity\api_client.py", line 320, in call_api
response_type, auth_settings, callback)
File "C:\Users\lorenp\PycharmProjects\santricity-webapi-pythonsdk\netapp\santricity\api_client.py", line 153, in __call_api
deserialized_data = self.deserialize(response_data, response_type)
File "C:\Users\lorenp\PycharmProjects\santricity-webapi-pythonsdk\netapp\santricity\api_client.py", line 240, in deserialize
return self.__deserialize(data, response_type)
File "C:\Users\lorenp\PycharmProjects\santricity-webapi-pythonsdk\netapp\santricity\api_client.py", line 283, in __deserialize
return self.__deserialize_model(data, klass)
File "C:\Users\lorenp\PycharmProjects\santricity-webapi-pythonsdk\netapp\santricity\api_client.py", line 574, in __deserialize_model
setattr(instance, attr, self.__deserialize(value, attr_type))
File "C:\Users\lorenp\PycharmProjects\santricity-webapi-pythonsdk\netapp\santricity\models\v2\storage_system_response.py", line 1023, in fc_remote_mirroring_state
.format(allowed_values)
ValueError: Invalid value for fc_remote_mirroring_state, must be one of ['unknown', 'disabled', 'enabledLegacyRvm', 'enabledArvm', 'enabledAll', '__UNDEFINED']

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

No branches or pull requests

1 participant