move the c0re host options to deploy.hive-controller
This commit is contained in:
parent
525cbe0355
commit
74f463c40e
1 changed files with 257 additions and 94 deletions
|
|
@ -27,7 +27,8 @@ fn connect_hint(kind: ErrorKind, socket: &Path) -> String {
|
|||
ErrorKind::PermissionDenied => format!(
|
||||
"permission denied opening the host admin socket {path} — reaching it requires \
|
||||
membership in the `hive-admin` group. Add your user to \
|
||||
`services.hyperhive.adminUsers`, then log out and back in: secondary group \
|
||||
`services.hyperhive.deploy.hive-controller.adminUsers`, then log out and back \
|
||||
in: secondary group \
|
||||
membership is applied at login, so a shell opened before the change still \
|
||||
cannot connect. `id -nG` shows what the running shell actually has; \
|
||||
`newgrp hive-admin` picks the group up without a full re-login"
|
||||
|
|
@ -128,7 +129,10 @@ mod tests {
|
|||
fn permission_denied_names_the_group_and_the_relogin() {
|
||||
let h = hint(ErrorKind::PermissionDenied);
|
||||
assert!(h.contains("hive-admin"), "{h}");
|
||||
assert!(h.contains("adminUsers"), "{h}");
|
||||
assert!(
|
||||
h.contains("services.hyperhive.deploy.hive-controller.adminUsers"),
|
||||
"{h}"
|
||||
);
|
||||
assert!(h.contains("log out"), "{h}");
|
||||
assert!(
|
||||
!h.contains("not running"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue