Skip to content

feat: Make containerdebug configurable - #860

Open
Maleware wants to merge 11 commits into
mainfrom
feat/containerdebug-config
Open

Maleware wants to merge 11 commits into
mainfrom
feat/containerdebug-config

Conversation

@Maleware

@Maleware Maleware commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Description

part of stackabletech/issues#884

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

  • Changes are OpenShift compatible
  • CRD changes approved
  • CRD documentation for all fields, following the style guide.
  • Helm chart can be installed and deployed operator works
  • Integration tests passed (for non trivial changes)
  • Changes need to be "offline" compatible
  • Links to generated (nightly) docs added
  • Release note snippet added

Reviewer

  • Code contains useful comments
  • Code contains useful logging statements
  • (Integration-)Test cases added
  • Documentation added or updated. Follows the style guide.
  • Changelog updated
  • Cargo.toml only contains references to git tags (not specific commits or branches)

Acceptance

  • Feature Tracker has been updated
  • Proper release label has been added
  • Links to generated (nightly) docs added
  • Release note snippet added
  • Add type/deprecation label & add to the deprecation schedule
  • Add type/experimental label & add to the experimental features tracker

Adds the containerdebug config (enabled, interval) from stackable-operator 0.122.0 to the config common to all roles and starts containerdebug in the main container from the merged role group config.

HDFS has no validated role group config layer, so the containerdebug config is validated while building each role group, which still fails the reconciliation before anything is applied.
@Maleware Maleware self-assigned this Nov 11, 2026
@Maleware Maleware moved this to Development: In Progress in Stackable Engineering Nov 11, 2026
@Maleware Maleware moved this from Development: In Progress to Development: Waiting for Review in Stackable Engineering Nov 13, 2026
@Maleware
Maleware marked this pull request as ready for review November 13, 2026 14:22
@razvan
razvan self-requested a review November 30, 2026 14:33
@razvan razvan moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Nov 30, 2026

@razvan razvan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The validation code is slightly over-complicated IMO. I attach a patch that simplifies it a little. The patch doesn't change the behavior of the validation.

What it does:

  • Deletes the local ConfigError type.
  • Deletes the type Error from the IntoValidated trait because it was always ConfigError and thus had no type discrimination effect.
  • The rest of the changes just accommodate the two deletes from above.

I tested it locally successfully.

containerdebug-validation.patch

#[derive(Clone, Debug)]
pub struct ValidatedCommonNodeConfig {
pub affinity: StackableAffinity,
/// The role group's validated `containerdebug` config, which the main `hdfs` container starts

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main container's name is not hdfs. It's namenode, datanode or journalnode.

Suggested change
/// The role group's validated `containerdebug` config, which the main `hdfs` container starts
/// The role group's validated `containerdebug` config, which the main container starts

@razvan

razvan commented Nov 30, 2026

Copy link
Copy Markdown
Member

Also the kuttl smoke test need to be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: In Review

Development

Successfully merging this pull request may close these issues.

2 participants