omniosorg / zadm

zone management tool
https://omnios.org/setup/zadm
GNU General Public License v3.0
23 stars 8 forks source link

Zone naming convention issue #110

Closed Makr91 closed 2 years ago

Makr91 commented 2 years ago

Hello all,

I work for a MSP and we currently like to set the name of the Zone to have a prefix that we call a "partition id", just an id number for our zones to help identify location, purpose, etc. This isn't the actual hostname of the zone, but is used for situations where another zone maybe up as a clone.

When I try to modify a zone after creating it with zonecfg, I am getting the following error in zadm:

zadm edit "1012--web-01.dc-01.m4kr.net"
root: Execution of validator for 'limitpriv' returns with error: limitpriv not valid ()
root: Execution of validator for 'zonename' returns with error: zonename not valid (1012--web-01.dc-01.m4kr.net)
Do you want to retry [Y/n]?

To break down our naming convention its:

\<PARTID>--HOSTNAME IE: 1012--web-01.dc-01.m4kr.net

hadfl commented 2 years ago

Thanks for the bug report. The zonename validator in zadm is clearly a bit too restrictive. We'll fix it.