Skip to content

crimson(cephadm): port cephadm test suite to crimson-rados#66217

Closed
mohit84 wants to merge 1 commit intoceph:mainfrom
mohit84:cephadm_crimson
Closed

crimson(cephadm): port cephadm test suite to crimson-rados#66217
mohit84 wants to merge 1 commit intoceph:mainfrom
mohit84:cephadm_crimson

Conversation

@mohit84
Copy link
Contributor

@mohit84 mohit84 commented Nov 12, 2025

In the classic OSD test suite both ubuntu and centos builds are supported. However the crimson OSD only provides centos based builds so the same test layout cannot be reused directly.

To enable cephadm testing with crimson, this change ports the relevant test suite to the crimson-rados directory. Instead of linking entire subdirectories (like .qa/suites/orch/cephadm/{osds,smoke,workunits,smoke-singlehost}), the crimson suite uses selective symlinks for the required yaml files and exclude ubuntu specific yaml files.

Fixes: https://tracker.ceph.com/issues/71946

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Copy link
Contributor

@Matan-B Matan-B left a comment

Choose a reason for hiding this comment

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

Suite structure looks good! Can we avoid the cephadm.py change?

Comment on lines +787 to +799
flavor = config.get('flavor', 'default')
if flavor in ("crimson-debug", "crimson-release"):
log.info('Set crimson_cpu_num ....')
_shell(ctx, cluster_name, bootstrap_remote, [
'ceph', 'config', 'set', 'osd', 'crimson_cpu_num', '4'])
log.info('Set enable_experimental feature to crimson ...')
_shell(ctx, cluster_name, bootstrap_remote, [
'ceph', 'config', 'set', 'global',
'enable_experimental_unrecoverable_data_corrupting_features', 'crimson'])
log.info('Set set-allow-crimson --yes-i-really-mean-it ...')
_shell(ctx, cluster_name, bootstrap_remote, [
'ceph', 'osd', 'set-allow-crimson', '--yes-i-really-mean-it'])

Copy link
Contributor

Choose a reason for hiding this comment

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

These should already be set by crimson_qa_overrides:

    conf:
      global:
        enable experimental unrecoverable data corrupting features: crimson
      mon:
        osd pool default crimson: true

Can we cleanup this bit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@Matan-B Matan-B added this to Crimson Nov 12, 2025
@Matan-B Matan-B moved this to In Progress in Crimson Nov 12, 2025
@Matan-B
Copy link
Contributor

Matan-B commented Nov 12, 2025

Note: when testing this PR please --filter cephadm since the other directories shouldn't be impacted

if flavor in ("crimson-debug", "crimson-release"):
log.info('Set crimson_cpu_num ....')
_shell(ctx, cluster_name, bootstrap_remote, [
'ceph', 'config', 'set', 'osd', 'crimson_cpu_num', '4'])
Copy link
Contributor

@Matan-B Matan-B Nov 12, 2025

Choose a reason for hiding this comment

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

These should be set in a separate yaml to not edit common cephadm.yaml as much as possible
See how crimson-fixed-1.yaml sets crimson_cpu_num
We can introduce a new yaml in crimson-rados/cephadm dir that sets this.

'ceph', 'config', 'set', 'osd', 'crimson_cpu_num', '4'])
log.info('Set set-allow-crimson --yes-i-really-mean-it ...')
_shell(ctx, cluster_name, bootstrap_remote, [
'ceph', 'osd', 'set-allow-crimson', '--yes-i-really-mean-it'])
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:
tasks/ceph.py has already implemented this:

@contextlib.contextmanager
def check_enable_crimson(ctx, config):
    # enable crimson-osds if crimson
    log.info("check_enable_crimson: {}".format(is_crimson(config)))
    if is_crimson(config):
        cluster_name = config['cluster']
        first_mon = teuthology.get_first_mon(ctx, config, cluster_name)
        (mon_remote,) = ctx.cluster.only(first_mon).remotes.keys()
        log.info('check_enable_crimson: setting set-allow-crimson')
        mon_remote.run(
            args=[
                'sudo', 'ceph', '--cluster', cluster_name,
                'osd', 'set-allow-crimson', '--yes-i-really-mean-it'
            ]
        )
    yield

can we reuse some of the logic above? Perhaps is_crimson can be reused

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

In the classic OSD test suite both ubuntu and centos builds are supported.
However the crimson OSD only provides centos based builds so the same test
layout cannot be reused directly.

To enable cephadm testing with crimson, this change ports the relevant
test suite to the `crimson-rados` directory. Instead of linking entire
subdirectories (like .qa/suites/orch/cephadm/{osds,smoke,workunits,smoke-singlehost}),
the crimson suite uses selective symlinks for the required yaml files
and exclude ubuntu specific yaml files.

Fixes: https://tracker.ceph.com/issues/71946
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
@mohit84 mohit84 removed the status in Crimson Nov 13, 2025
@mohit84 mohit84 moved this to In Progress in Crimson Nov 13, 2025
Copy link
Contributor

@Matan-B Matan-B left a comment

Choose a reason for hiding this comment

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

lgtm!

From looking at https://pulpito.ceph.com/moagrawa-2025-11-13_05:59:02-crimson-rados-main-distro-default-smithi/ we still have a few failures. We should make sure only stable tests are included in crimson-rados suite.

The failed jobs could be either resolved or moved to the crimson-rados-experimental suite.

check_status=False)

log.info('Bootstrapping:checking and enabling crimson if needed')
check_enable_crimson(ctx, config)
Copy link
Contributor

Choose a reason for hiding this comment

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

That's much cleaner!

@Matan-B Matan-B moved this from In Progress to Needs QA in Crimson Nov 13, 2025
@Matan-B
Copy link
Contributor

Matan-B commented Nov 13, 2025

@mohit84, Once the crimson-rados/cepadm suite is green we can merge

@mohit84
Copy link
Contributor Author

mohit84 commented Nov 13, 2025

@mohit84, Once the crimson-rados/cepadm suite is green we can merge

I have checked after make a symlink number of teuthology jobs are not same similar to classic rados, i think we have to change the approach.

@Matan-B Matan-B moved this from Needs QA to In Progress in Crimson Nov 18, 2025
Copy link
Contributor

@Matan-B Matan-B left a comment

Choose a reason for hiding this comment

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

Can we change the default store used for testing crimson-rados/cephadm to SeaStore? Or add it as an option? It seems that cephadm suite is using bluestore only by default atm

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions bot added the stale label Jan 18, 2026
@github-actions
Copy link

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@github-actions github-actions bot closed this Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants