add enforcement for single instance single pool
This commit is contained in:
1 parent
ab6a03be3b
commit
e2de9c5083
1 file changed
+3
@@ -110,6 +110,9 @@ func (cluster *Cluster) ResolvePoolMembership() error {
|
||||
if !ok {
|
||||
return fmt.Errorf("Instance %d claimed to be in node %s but was not", member.VMID, node.Name)
|
||||
}
|
||||
if instance.Pool != "" {
|
||||
return fmt.Errorf("Instance %d is in pools %s and %s which is not supported", member.VMID, instance.Pool, pool.PoolID)
|
||||
}
|
||||
instance.Pool = pool.PoolID
|
||||
log.Printf("[INFO] resolved pool membership for vmid=%d pool=%s", member.VMID, pool.PoolID)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user