Open leenaj0hn opened 5 years ago
Currently, to support compression we have a check to see whether compression license is enabled on the array or not. As per current logic we only check for Compression individual license. But we need to check for HPE 3PAR All-inclusive Single-System software license too. If either one of them is enabled then we can set compression enabled flag to True.
Output for /system call on 3PAR 192.168.67.5 which has Compression license enabled:
{
u 'freeCapacityMiB': 13181952.0, u 'IPv4Addr': u '192.168.67.5', u 'allocatedCapacityMiB': 6622208.0, u 'readOnlyParameters': {
u 'maxCompressedVolumeSizeMiB': 16777216,
u 'maxDedupVolumeSizeMiB': 16777216,
u 'maxVolumeSizeMiB': 67108864
}, u 'totalCapacityMiB': 19804160.0, u 'masterNode': 0, u 'id': 121644, u 'parameters': {
u 'rawSpaceAlertFC': 0,
u 'hostDIFTemplate': 2,
u 'thermalShutdown': True,
u 'remoteCopyHostThrottling': False,
u 'remoteSyslogSecurityHost': u '0.0.0.0',
u 'allowR0': False,
u 'overProvRatioLimit': 0.0,
u 'allowR5OnNLDrives': False,
u 'failoverMatchedSet': True,
u 'upgradeNote': u '',
u 'disableDedup': False,
u 'portFailoverEnabled': True,
u 'allowWrtbackUpgrade': False,
u 'eventLogNum': 1,
u 'autoExportAfterReboot': True,
u 'sessionTimeout': 3600,
u 'sparingAlgorithm': u 'Default',
u 'eventLogsize': 4194304,
u 'rawSpaceAlertSSD': 0,
u 'remoteSyslog': False,
u 'disableChunkletInitUNMAP': False,
u 'hostDIF': True,
u 'allowWrtbackSingleNode': False,
u 'disableCompr': False,
u 'complianceOfficerApproval': False,
u 'allowR5OnFCDrives': False,
u 'VVRetentionTimeMax': 1209600,
u 'personaProfile': 1,
u 'remoteSyslogHost': u '0.0.0.0',
u 'rawSpaceAlertNL': 0,
u 'overProvRatioWarning': 0.0
}, u 'chunkletSizeMiB': 1024, u 'location': u 'SY No. 192, Mahadevapura Post, Bengaluru, Karnataka, 560048, IN', u 'clusterNodes': [0, 1], u 'failedCapacityMiB': 0.0, u 'name': u 'CSSOS-SSA05', u 'licenseInfo': {
u 'WWNBASE': 121644,
u 'issueTimeSec': 1500974670,
u 'diskCount': -1,
u 'licenseState': {
u 'onlineImport': True,
u 'storageFederation': True,
u 'systemReporter': True,
u 'dynamicOptimization': True,
u 'qos': True,
u 'smartSAN': True,
u 'thinProvisioing': True,
u 'rmcApplicationSuite': True,
u 'peerVirtualization': True,
u 'thinPersistence': True,
u 'thinProvisioning': True,
u 'remoteCopy': True,
u 'adaptiveOptimization': True,
u 'darEncryption': True,
u 'virtualLock': True,
u 'domains': True,
u 'thinConversion': True,
u 'fileServices': True,
u 'virtualCopy': True
},
u 'issueTime8601': u '2017-07-25T14:54:30+05:30',
u 'licenses': [{
u 'name': u '3PAR OS Suite'
}, {
u 'name': u 'Adaptive Flash Cache'
}, {
u 'name': u 'Adaptive Optimization'
}, {
u 'name': u 'Autonomic Rebalance'
}, {
u 'name': u 'Cluster Extension'
}, {
u 'name': u 'Cluster Extension (102400G)'
}, {
u 'name': u 'Compression'
}, {
u 'name': u 'Data Encryption'
}, {
u 'name': u 'Dynamic Optimization'
}, {
u 'name': u 'File Persona (102400G)'
}, {
u 'name': u 'File Persona Basic'
}, {
u 'name': u 'Management Plug-In for VMware vCenter'
}, {
u 'name': u 'Online Import'
}, {
u 'name': u 'Peer Motion'
}, {
u 'name': u 'Peer Persistence'
}, {
u 'name': u 'Peer Persistence (102400G)'
}, {
u 'name': u 'Priority Optimization'
}, {
u 'name': u 'Recovery Manager Central'
}, {
u 'name': u 'Recovery Manager for Exchange'
}, {
u 'name': u 'Recovery Manager for Microsoft Hyper-V'
}, {
u 'name': u 'Recovery Manager for Oracle'
}, {
u 'name': u 'Recovery Manager for SQL'
}, {
u 'name': u 'Recovery Manager for VMware vSphere'
}, {
u 'name': u 'Remote Copy'
}, {
u 'name': u 'Remote Copy (102400G)'
}, {
u 'name': u 'RMC Application Suite'
}, {
u 'name': u 'Smart SAN'
}, {
u 'name': u 'Storage Federation'
}, {
u 'name': u 'System Reporter'
}, {
u 'name': u 'Thin Conversion'
}, {
u 'name': u 'Thin Copy Reclamation'
}, {
u 'name': u 'Thin Deduplication'
}, {
u 'name': u 'Thin Persistence'
}, {
u 'name': u 'Thin Provisioning (102400G)'
}, {
u 'name': u 'Virtual Copy'
}, {
u 'name': u 'Virtual Copy (102400G)'
}, {
u 'name': u 'Virtual Domains'
}, {
u 'name': u 'Virtual Lock'
}, {
u 'name': u 'VSS Provider for Microsoft Windows'
}]
}, u 'serialNumber': u '4C17162016', u 'totalNodes': 2, u 'contact': u 'Rakesh Chilkunda', u 'systemVersion': u '3.3.1.489', u 'flashCachePolicy': 3, u 'timeZone': u 'Asia/Kolkata', u 'model': u 'HPE_3PAR 8400', u 'onlineNodes': [0, 1]
}
Output for /system on Merlin 15.213.68.203 which has All-inclusive license enabled:
{
u 'comment': u ' ', u 'clusterNodes': [0, 1], u 'name': u 'S2935', u 'licenseInfo': {
u 'licenses': [{
u 'name': u 'Golden License.'
}],
u 'licenseState': {
u 'onlineImport': True,
u 'storageFederation': True,
u 'systemReporter': True,
u 'dynamicOptimization': True,
u 'qos': True,
u 'smartSAN': True,
u 'thinProvisioing': True,
u 'rmcApplicationSuite': True,
u 'peerVirtualization': True,
u 'thinPersistence': True,
u 'thinProvisioning': True,
u 'remoteCopy': True,
u 'adaptiveOptimization': True,
u 'darEncryption': True,
u 'virtualLock': True,
u 'domains': True,
u 'thinConversion': True,
u 'fileServices': True,
u 'virtualCopy': True
}
}, u 'freeCapacityMiB': 912384.0, u 'chunkletSizeMiB': 1024, u 'totalCapacityMiB': 3039232.0, u 'serialNumber': u '4UW0002935', u 'IPv4Addr': u '15.213.68.203', u 'totalNodes': 2, u 'parameters': {
u 'rawSpaceAlertFC': 0,
u 'hostDIFTemplate': 2,
u 'thermalShutdown': True,
u 'remoteCopyHostThrottling': False,
u 'remoteSyslogSecurityHost': u '0.0.0.0',
u 'overProvRatioLimit': 0.0,
u 'failoverMatchedSet': True,
u 'upgradeNote': u '',
u 'portFailoverEnabled': True,
u 'allowWrtbackUpgrade': 7,
u 'eventLogNum': 1,
u 'autoExportAfterReboot': True,
u 'sessionTimeout': 3600,
u 'sparingAlgorithm': u 'Default',
u 'eventLogsize': 4194304,
u 'rawSpaceAlertSSD': 0,
u 'remoteSyslog': False,
u 'disableChunkletInitUNMAP': False,
u 'hostDIF': True,
u 'allowWrtbackSingleNode': 7,
u 'complianceOfficerApproval': False,
u 'VVRetentionTimeMax': 1209600,
u 'personaProfile': 1,
u 'remoteSyslogHost': u '0.0.0.0',
u 'allowDomainUsersAffectNoDomain': 2,
u 'singleLunHost': False,
u 'rawSpaceAlertNL': 0,
u 'overProvRatioWarning': 0.0
}, u 'contact': u 'HPE HPE, 9886964841, sowmya.kutal-obappa@hpe.com', u 'systemVersion': u '4.0.0.143', u 'allocatedCapacityMiB': 2126848.0, u 'failedCapacityMiB': 0.0, u 'readOnlyParameters': {
u 'maxCompressedVolumeSizeMiB': 16777216,
u 'maxDedupVolumeSizeMiB': 16777216,
u 'maxVolumeSizeMiB': 67108864
}, u 'timeZone': u 'Asia/Kolkata', u 'model': u 'HPE_3PAR C650', u 'onlineNodes': [0, 1], u 'masterNode': 0, u 'id': 518593
}
When 'Golden License.' suite is installed on Merlin array creation of dedup volumes fails with error Error response from daemon: create test_vol1: Invalid input received: Compression is not supported on underlying hardware