oxidecomputer / falcon

Fast Assessment Laboratory for Computers On Networks
Mozilla Public License 2.0
5 stars 2 forks source link

multi-tenancy support #76

Open rcgoodfellow opened 3 months ago

rcgoodfellow commented 3 months ago

If the same Falcon topology is run twice on the same machine, ZFS and data link names will collide. This is extremely unfortunate for shared lab environments.

A workaround is that users can give topologies unique names. There are a few ways to go about sorting this out.

  1. Add a random string or a counter of some kind to topology names.

If we choose the random string, it would need to be somewhat short, as we can easily bump up against OS limits for link names. If we choose the counter, system-wide coordination would be needed.

  1. Use random IDs for link names and ZFS names.

If we do this, features would need to be built into the Falcon CLI utilities to map the random names to topology-relevant names to aid in debugging and general observability.

elaine-oxide commented 1 month ago

See https://github.com/oxidecomputer/testbed/pull/53