Skip to content

Allow Helm to spawn multiple tape servers

Summary

This MR allows for the spawning of multiple tape servers. Simply pass the -c <count> flag to create_instance.sh or run_systemtest.sh and they will be spawned appropriately. Each tape server will map to a tape drive according to its index.

For example, suppose we have 3 tape servers and 2 drives (where nd is the number of drive slots):

  • tpsrv01 will have index 0 and will have drive slot 0 % nd = 0 % 2 = 0
  • tpsrv02 will have index 1 and will have drive slot 1 % nd = 1 % 2 = 1
  • tpsrv03 will have index 2 and will have drive slot 2 % nd = 2 % 2 =

When there are more servers than drives, this will still ensure every server maps to a correct drive.

To find out how many drives there are, create_instance.sh performs a grep Drive -c /etc/mhvtl/device.conf. As such, this works under the assumption that drive slots always start from 0 and are increment by 1 for further slots.

This MR also contains:

  • some other clean-up of among other things the usage output of the aforementioned scripts.
  • a skip-image-reload flag to the build scripts so that you can easily redeploy with the same image

Additional Required Actions

  • Requires manual tests in pre-production: NO
  • Requires a documentation update: NO

References

Closes #890 (closed)

Edited by Niels Alexander Buegel

Merge request reports