OneSlurm CLI

OpenNebula Commands

Run these on the OpenNebula Front-end.

CommandPurpose
onemarketapp export 'Service OneSlurm' 'Service OneSlurm' --datastore defaultImport the appliance from the Marketplace
onetemplate update <TEMPLATE_ID>Change a controller or worker VM template
oneflow-template update <SERVICE_TEMPLATE_ID>Change the service template
oneflow-template instantiate 'Service OneSlurm'Create a Cluster
oneflow listList the Clusters
oneflow show <SERVICE_ID>Show the roles and VMs of a Cluster
oneflow scale <SERVICE_ID> worker <NUMBER>Change the number of workers
oneflow delete <SERVICE_ID>Delete a Cluster
onevm ssh <VM_ID>Connect to a VM of the Cluster

Commands Inside the VMs

CommandWherePurpose
sinfoControllerPartitions and node states
scontrol show nodesControllerDetails of each node
squeueControllerJob queue
srun -N1 hostnameControllerRun a test job
scontrol update NodeName=<node> State=DRAIN Reason=<text>ControllerDrain a node before you remove it
scontrol update NodeName=<node> State=RESUMEControllerPut a drained or down node back in service
scontrol delete NodeName=<node>ControllerDelete a dynamic node
journalctl -u oneslurm-reconcileControllerLog of the reconciler
onegate service showAny VMThe service, as OneGate sees it
getent passwd <user>Any VMCheck an LDAP user
findmnt /homeAny VMCheck the NFS mount
cat /etc/one-appliance/statusAny VMResult of the appliance configuration