Skip to content

flasharray_client.get_arrays_space items are somestimes missing the parity value and id contains a bad value #20

@b1-luettje

Description

@b1-luettje

This one does not occur all the time and might therefore be tricky to reproduce. At (seemingly) random times the response items do not include the parity value and it seems that in the same case the id value is wrong as well:

In [29]: fa_client.get_rest_version()
Out[29]: '2.7'

In [30]: print(list(fa_client.get_arrays_space(start_time=1629445392362).items))  # missing parity value in response items and weird format of the `id` value
[{'capacity': 12277751218176,
 'id': '[1]',
 'name': 'pure-fa-m20',
 'space': {'data_reduction': 2.1125418177307798,
           'replication': 0,
           'shared': 12796382,
           'snapshots': 0,
           'system': 0,
           'thin_provisioning': None,
           'total_physical': 6577403768,
           'total_provisioned': 108447924224,
           'total_reduction': None,
           'unique': 6564607386,
           'virtual': None},
 'time': 1629445414000}, {'capacity': 12277766317671,
 'id': '[1]',
 'name': 'pure-fa-m20',
 'space': {'data_reduction': 2.0993222170640338,
           'replication': 0,
           'shared': 10733859,
           'snapshots': 0,
           'system': 0,
           'thin_provisioning': None,
           'total_physical': 6558415481,
           'total_provisioned': 108447924224,
           'total_reduction': None,
           'unique': 6547681622,
           'virtual': None},
 'time': 1629445714000}]

In [31]: print(list(fa_client.get_arrays_space().items))  # valid response item with `parity` value
[{'capacity': 12277766317671,
 'id': 'cc44cb2c-43cd-408d-82ff-e96f036a7dd8',
 'name': 'pure-fa-m20',
 'parity': 1.0,
 'space': {'data_reduction': 2.0993222170640338,
           'replication': 0,
           'shared': 10733859,
           'snapshots': 0,
           'system': 0,
           'thin_provisioning': 0.8730429611583748,
           'total_physical': 6558415481,
           'total_provisioned': 108447924224,
           'total_reduction': 16.535689838220545,
           'unique': 6547681622,
           'virtual': 13768227328},
 'time': 1629445694363}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions