Skip to content

Admin (/admin/)


As discussed in the operator guide, you can query what locks exist in a Shaken Fist cluster, as well as who is currently holding those locks (machine and process id).

REST API calls
Python API client: list cluster locks
from shakenfist_client import apiclient

sf_client = apiclient.Client()
locks = sf_client.get_existing_locks()

for ref, meta in locks.items():
    print('%s,%s,%s,%s' % (ref, meta['pid'], meta['node'], meta.get('operation')))
$ python3
/sflocks/sf/network/d2950d74-50c7-4790-a985-c43d9eb9bad9,2834066,sf-3,Network ensure mesh