Skip to content

Renovate/actions setup java 5.x#504

Closed
rp- wants to merge 38 commits into
masterfrom
renovate/actions-setup-java-5.x
Closed

Renovate/actions setup java 5.x#504
rp- wants to merge 38 commits into
masterfrom
renovate/actions-setup-java-5.x

Conversation

@rp-

@rp- rp- commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

github test PR

rp- and others added 30 commits July 9, 2026 16:24
The requiresAuth gate previously relied on the peer's AccessContext
identity being non-public, which is part of the access-control security
subsystem that is being removed. Satellites now simply mark the
controller peer as authenticated after a successful CtrlAuth handshake,
mirroring what the controller already does for satellite peers.
REST basic-auth against LDAP no longer creates security identities or
access contexts; it only validates the credentials and remembers the
user name on the REST peer for logging. The LINSTOR-native password
sign-in (SEC_IDENTITIES based) and the identity/role authorization
subsystem are removed.
Script-generated pass: remove AccessDeniedException catches whose body
only rethrows, unwrap the remaining try blocks, strip throws clauses,
AccessContext/ObjectProtection parameters and fields, requireAccess/
requirePrivileges statements, bare access-context call arguments and
security imports. The tree does not compile until the follow-up
cleanup commits.
Delete AccessContext, ObjectProtection, ACLs, security types/levels,
identities/roles/privileges, their database drivers and loaders, the
object-protection repositories, the context qualifier annotations and
the security test scaffolding.
Server module compiles again: error reporting loses its access context
section and user-name log prefix, the Peer interface loses its access
context, debug commands no longer display object protection data, and
the generated K8s CRD classes/table generator no longer reference
AccessDeniedException.
…ests

Repositories become plain map holders (renamed *ProtectionRepository to
*RepositoryImpl), object factories no longer create ObjectProtection,
database drivers extend AbsDatabaseDriver directly, Guice modules lose
their security bindings and the test infrastructure no longer sets up
identities, roles or object protection. Everything compiles again and
the test suite passes.
Adds an SQL migration dropping the security views and the ten SEC_*
tables (children first), and the corresponding K8s CRD migration that
deletes all security CRD instances. The regenerated database table
constants and GenCrdCurrent (new schema version v1-34-0) no longer
contain the security tables. Downgrading to an older LINSTOR version
is not possible after this migration ran.
…th probe

The SQL database connection test and checkHealth() probed
SEC_CONFIGURATION, which no longer exists after the security tables were
dropped. Probe PROPS_CONTAINERS instead, which every LINSTOR database has.
Starting an old controller against a database that a newer controller
already migrated (for example one that dropped the SEC_* tables) used
to fail halfway through loading with obscure errors. DbMigrater now
compares the highest applied migration version against the highest
migration known to this binary and aborts with a clear error message
instead.
CtrlRscDfnAutoVerifyAlgoHelper.manage() discarded the set of resources
touched by updateVerifyAlgorithm(). That was harmless as long as the
auto-helper chain only ran inside API calls that end with a satellite
update of the resource definition anyway (rsc create/delete/toggle-disk),
but since the chain also runs after every node full-sync, a recomputed
verify algorithm was committed to the database without being deployed to
the already connected satellites.

After a controller restart/upgrade this left the node whose full-sync
triggered the recompute with the new verify-alg while all other nodes
kept the old one in their .res files, forcing the DRBD connections
between them into StandAlone with no automatic recovery.

Set ctx.requiresUpdateFlux when the property changed (set, cleared or
removed), so CtrlRscAutoHelper pushes the update to all nodes of the
resource definition. Callers that already deploy resources are
unaffected: fluxUpdateApplied prevents a duplicate update.
Run tests, checkstyle and ErrorProne checks for all future PRs.
Before this change running only a single test could have gotten skipped
if the test was in the non-standard set but the default
"--variants standard" was used. The pipeline (build, unit tests, checks, etc)
ran but 0 lbtests were executed.

This patch fixes the issue by introducing a new "auto" (default) value
that is used as a switch between "--variant standard" or "--variant default"
(the latter includes all tests) if the tests to run is not "all".
If the variant is not "auto", whatever is in the variant is passed to vmshed.
The controller uses that command to collect systemd logs, allow that by
adding ourselves to the systemd-journal group. We can assume this group
exists on all systems that use systemd-journald.
setDrbdProxyPortImpl always read and wrote drbdProxyPortSource, even
when called for the target side. A drbd-proxy disable therefore never
cleared the target port, leaving it allocated in the target node's TCP
port pool and in the database, and an enable with explicit ports
deallocated the source port number from the target node's pool, freeing
a port owned by another resource.

Pass the field to operate on, as autoAllocateDrbdProxyPortImpl already
does.
DrbdRscData ports are allocated in the node TCP port pools while
loading from the database, but proxy ports on ResourceConnections were
not. After a controller restart the pools handed out ports still in
use by drbd-proxy, causing adjust failures and ValueInUseException on
later fixed allocations (for example toggle-disk).
The exception undo path deallocated the already-deallocated numbers a
second time instead of re-allocating them, so a failed setPorts left
the resource's persisted ports unreserved in the pool and later
allocations could hand them out again.
Those need to be planned and done manually
@rp-

rp- commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

workspace works

@rp- rp- closed this Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants