Skip to content

Use Khepri to store vhosts, users and runtime parameters #4703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from

Conversation

dumbbell
Copy link
Collaborator

@dumbbell dumbbell commented May 3, 2022

TBW; this pull request is mainly to trigger testing in GitHub Actions. A complete description will be written when the work is closer to completion.

@dumbbell dumbbell self-assigned this May 3, 2022
@dumbbell dumbbell force-pushed the use-khepri-metadata-store branch 3 times, most recently from a05ae38 to cbf4b53 Compare May 5, 2022 15:57
@dumbbell dumbbell force-pushed the use-khepri-metadata-store branch 4 times, most recently from c651536 to afc12e3 Compare June 10, 2022 13:34
@dumbbell dumbbell force-pushed the use-khepri-metadata-store branch 3 times, most recently from 0efad05 to a4eb89f Compare June 20, 2022 12:07
@dumbbell dumbbell force-pushed the use-khepri-metadata-store branch 2 times, most recently from 3e48687 to 51d56dd Compare June 28, 2022 09:19
dumbbell added 9 commits June 28, 2022 14:13
It is handled by Khepri now.
If we find some crashes after stopping a node, the crash reports are
logged in Common Test HTML report and an assertion is fired.

Here is an example of a crash report found:

The console output:

    * [khepri_store]
        policy_ttl (00:00.574)
        operator_policy_ttl (00:00.178)
        operator_retroactive_policy_ttl (00:00.154)
        operator_retroactive_policy_publish_ttl (00:01.677)

    policy_SUITE > khepri_store
        {error,
            {{assertEqual,
                 [{module,rabbit_ct_broker_helpers},
                  {line,1050},
                  {expression,"CrashesCount"},
                  {expected,0},
                  {value,1}]},
             [{rabbit_ct_broker_helpers,find_crashes_in_logs,1,
                  [{file,"rabbit_ct_broker_helpers.erl"},{line,1050}]},
              {rabbit_ct_broker_helpers,stop_rabbitmq_nodes,1,
                  [{file,"rabbit_ct_broker_helpers.erl"},{line,1019}]},
              {rabbit_ct_helpers,run_steps,2,
                  [{file,"rabbit_ct_helpers.erl"},{line,136}]},
              {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
              {test_server,run_test_case_eval1,6,
                  [{file,"test_server.erl"},{line,1380}]},
              {test_server,run_test_case_eval,9,
                  [{file,"test_server.erl"},{line,1224}]}]}}

The Common Test HTML (truncated) report:

    *** User 2022-06-10 14:58:50.687 ***
    Looking up any crash reports in the node log files. If we find some, they will appear below:

    *** User 2022-06-10 14:58:50.716 ***
    gen_server termination:

    2022-06-10 14:58:25.785158+02:00 [error] <0.1387.0> ** Generic server rabbit_node_monitor terminating
    2022-06-10 14:58:25.785158+02:00 [error] <0.1387.0> ** Last message in was {'DOWN',#Ref<0.2117588230.1026555905.48245>,process,
    2022-06-10 14:58:25.785158+02:00 [error] <0.1387.0>                            {rabbit,'rmq-ct-khepri_store-1-21000@localhost'},
    2022-06-10 14:58:25.785158+02:00 [error] <0.1387.0>                            normal}
    (...)

    *** User 2022-06-10 14:58:50.717 ***
    Found 1 crash reports
@dumbbell dumbbell force-pushed the use-khepri-metadata-store branch from 51d56dd to f91548d Compare June 28, 2022 12:14
@dumbbell
Copy link
Collaborator Author

dumbbell commented Dec 8, 2023

This phase-1-only pull request was superseded by the full integration in #7206.

@dumbbell dumbbell closed this Dec 8, 2023
@dumbbell dumbbell deleted the use-khepri-metadata-store branch December 8, 2023 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants