Using OpenStack Shared File Systems
Before working with the Shared File System service, you’ll need to create a
connection to your OpenStack cloud by following the Connect user
guide. This will provide you with the conn
variable used in the examples
below.
A Shared File System service availability zone is a failure domain for
your shared file systems. You may create a shared file system (referred
to simply as shares) in a given availability zone, and create replicas
of the share in other availability zones.
def list_availability_zones(conn):
print("List Shared File System Availability Zones:")
for az in conn.share.availability_zones():
print(az)