License

The License Object represents the IBM Spectrum Scale license type of a node

  • A client license permits exchange of data between nodes on the same filesystem. Data cannot be shared directly with services, applications, etc.
  • A FPO license permits nodes to perform NSD server functions for sharing data with other nodes that have FPO or server licenses (but not client on non-GPFS)
  • A Server license permits a node to perform GPFS management functions and to share data directly with services, application, etc.

A license object cannot be created directly, and is always accessed either via the relevant Node object or the Licenses collection.

Description

class arcapix.fs.gpfs.license.License(nodeName, designatedLicense, requiredLicense)

A license determines what functions a node can perform and what data can be shared with who/what (according the relevant IBM Spectrum Scale license agreement)

id

Returns the name of the node the license applies to

Synonym for nodeName

Return type:str
nodeName

Returns the name of the node the license applies to

Return type:str
type

Returns the designated license type of the node

Synonym for designated

One of [server, client, fpo]

Return type:str
designated

Returns the designated license type of the node

One of [server, client, fpo]

Return type:str
required

Returns the required license type of the node, given the role it is performing

Return type:str
is_set()

Returns whether that node has a designed license

Return type:bool

Examples

Checking the designated licenses of the nodes on a cluster

>>> from arcapix.fs.gpfs import Cluster
>>>
>>> # Load the cluster
... mycluster = Cluster()
>>>
>>> # Print the block size of all file systems
... for node in mycluster.nodes.values():
...     print "Name: {0}\tLicense: {1}".format(node.name, node.license.type)
...
Name: pixstor-demo-01  License: server
Name: pixstor-demo-02  License: server

Changing the license of a node

>>> from arcapix.fs.gpfs import Cluster
>>>
>>> # Change node 'pixstor-demo-01' to a client license
... Cluster().nodes['pixstor-demo-01'].change(license='client')