# GroupNotRemoved

A Group is being deleted and the server has not released or deleted the group; it stays in phase Deleting until it does.

## Meaning

Deleting a Group releases the group, which stays read-only until a Group of the same name
declares it again, or with `spec.deletionPolicy: Delete` deletes it and every membership in
it. The operator makes that
call before it removes its finalizer, and the call failed: the server was unreachable,
refused the operator's credential, or the operator's grant no longer covers the organization
or the namespace (`groups` in `certManager.grpcTLS.allowedClients`). The condition's message
carries the server's answer.

## Impact

The group and its members still exist, and the dashboard still shows it read-only. Nothing
grants access through a group by itself, so no one gains or keeps access because of this
alone; the resource cannot be deleted until the call succeeds.

## Diagnosis

1. `kubectl -n <ns> describe group.nauthera.io <name>` for the server's answer.
2. `kubectl -n <release-ns> logs deploy/<release>-operator | grep <name>`.
3. `helm -n <release-ns> get values <release> -a | grep -A6 allowedClients` for the grant.

## Mitigation

- Restore the connection or the grant; the deletion completes on the next attempt.
- To let the resource go without the call, remove the `nauthera.io/group` finalizer; the
  group stays, read-only, and a Group of the same namespace and name declares it again.

## Escalation

A grant that covers the namespace and still cannot release or delete is unexpected: open an
issue with the resource's events, the request id from the operator's log and the server
version.

---

[Operator failure reasons](https://www.nauthera.io/docs/v1/runbooks/operator) · Generated from [`operator/internal/runbook/conditions.yaml`](https://github.com/nauthera/nauthera-server/blob/main/operator/internal/runbook/conditions.yaml) in nauthera-server.
