Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
8867d48
Refactor: various: Drop cluster/internal.h includes from .c files
nrwahl2 Jul 23, 2026
6b63bca
Refactor: various: Don't include cluster/election_internal.h directly
nrwahl2 Jul 23, 2026
a16fb66
Refactor: various: Drop common/internal.h includes from .c files
nrwahl2 Jul 23, 2026
7d016f5
Refactor: based: Clean up shutdown logic
nrwahl2 Jan 11, 2026
b0aa2d9
Refactor: based: based_cib should always be non-NULL after init now
nrwahl2 Jan 14, 2026
56f7ded
Refactor: controller: Don't set mainloop to NULL in crmd_exit()
nrwahl2 Jul 23, 2026
5a22496
Refactor: various: Unref main loop consistently
nrwahl2 Jan 11, 2026
05166f4
Refactor: attrd: Drop mainloop_destroy_signal() from attrd_shutdown()
nrwahl2 Jan 11, 2026
536e4b9
Refactor: attrd: Assume main loop is running in attrd_shutdown()
nrwahl2 Jan 11, 2026
cc1ab8a
Refactor: based: Don't init node caches explicitly
nrwahl2 Jan 11, 2026
19a6288
Refactor: based: Drop based_peer_callback()
nrwahl2 Jan 11, 2026
6d0e08c
API: libcib: Deprecate cib_query and cib_connected_query
nrwahl2 Jan 11, 2026
dc7089b
Refactor: remoted: Drop cib_proxy_accept_ro()
nrwahl2 Jan 11, 2026
7be7e4f
Refactor: based: Check for old PCMK__SERVER_BASED_RW instance
nrwahl2 Jan 11, 2026
c17d49f
Refactor: based: Make PCMK__SERVER_BASED_RO behave like _RW
nrwahl2 Jan 11, 2026
60391d9
Refactor: based: Drop privileged argument of based_process_request()
nrwahl2 Jan 11, 2026
f773a3c
Refactor: libcib: Drop cib__op_attr_privileged
nrwahl2 Jan 11, 2026
d04c239
Refactor: liblrmd: Map proxied PCMK__SERVER_BASED_RO clients to _RW
nrwahl2 Jan 11, 2026
1439265
Refactor: libcrmcommon: pcmk__serve_based_ipc() starts only one server
nrwahl2 Jan 12, 2026
635374e
Refactor: based: Standardize based_cpg_dispatch()
nrwahl2 Jan 12, 2026
2652d38
Refactor: libcib: Drop unnecessary rc check in cib_native_signon()
nrwahl2 Jul 23, 2026
95611f7
Refactor: libcib: Unindent some of cib_native_signon()
nrwahl2 Jul 23, 2026
6279154
Refactor: libcib: Unindent more of cib_native_signon()
nrwahl2 Jul 23, 2026
1b431b7
Refactor: libcib: Unindent one more block of cib_native_signon()
nrwahl2 Jul 23, 2026
88c713b
Refactor: libcib: Compare CRM_OP_REGISTER case-sensitively
nrwahl2 Jul 23, 2026
e8ceff8
Feature: libcib: Ignore name argument of cib_api_operations_t:signon()
nrwahl2 Jul 23, 2026
b63210d
Feature: libcib: Don't set cib_t:type
nrwahl2 Jul 23, 2026
cd3ed6e
API: libcib: Deprecate cib_no_connection
nrwahl2 Jul 23, 2026
f4c78cc
Feature: libcib: Ignore type argument of signon method for native client
nrwahl2 Jul 23, 2026
b391967
API: libcib: Deprecate enum cib_conn_type
nrwahl2 Jul 23, 2026
97fb8b3
Refactor: libcib: Clean up the end of cib_native_signon()
nrwahl2 Jul 23, 2026
adbf9fd
Refactor: based: goto cleanup consistently in based_ipc_dispatch()
nrwahl2 Jul 24, 2026
2147d3f
Refactor: various: Use pcmk__is_set() and friends in more places
nrwahl2 Jul 24, 2026
e8c609b
Refactor: based: Add extra XML attrs only before based_process_request()
nrwahl2 Jul 24, 2026
5a4a4ef
Low: based: Ignore requests from unregistered clients
nrwahl2 Jul 24, 2026
fc7061d
Refactor: based: Standardize based_ipc_dispatch()
nrwahl2 Jan 12, 2026
e985f33
Refactor: libcrmcommon: Assert non-NULL args in pcmk__serve_execd_ipc()
nrwahl2 Jul 24, 2026
fd3e120
Refactor: remoted: Minor improvements to remoted__read_handshake_data()
nrwahl2 Jan 12, 2026
4b207b7
Refactor: based: New based_read_handshake_data()
nrwahl2 Jan 12, 2026
4782a20
Refactor: based: pcmk__remote_ready() in cib_remote_msg()
nrwahl2 Jan 12, 2026
3967d9b
Refactor: based: Some cleanup/standardization of cib_remote_msg()
nrwahl2 Jan 12, 2026
82f3970
Refactor: libcrmcommon: Reorganize pcmk__is_user_in_group() unit test
nrwahl2 Jan 12, 2026
280cdaf
Refactor: libcrmcommon: Use getgrnam() in pcmk__is_user_in_group()
nrwahl2 Jan 12, 2026
5f1cb61
Refactor: based: Drop is_daemon_group_member()
nrwahl2 May 3, 2026
04955d0
Refactor: based: authenticate_user() takes client_name argument
nrwahl2 May 3, 2026
fa1f4ad
Refactor: based: Rename login argument to msg
nrwahl2 May 3, 2026
58cde44
Refactor: based: Rename cib_remote_auth() variables
nrwahl2 May 3, 2026
464584f
Log: based: Improve cib_remote_auth() log messages
nrwahl2 May 3, 2026
d2144c0
Refactor: based: New based_remote_client_auth()
nrwahl2 Jan 12, 2026
df13952
Refactor: based: Functionize validating/parsing remote auth message
nrwahl2 Jan 12, 2026
bfe6476
Doc: based: Document confusion about "dangerous" options
nrwahl2 Jan 12, 2026
4101f9f
Refactor: based: Reorganize cib_handle_remote_msg()
nrwahl2 Jan 12, 2026
0b35ede
Refactor: based: Use pcmk__request_t in process_transaction_requests()
nrwahl2 Jan 12, 2026
23669c6
Refactor: based: based_process_request() takes pcmk__request_t argument
nrwahl2 Jan 12, 2026
cbfaa10
Refactor: based: Drop redundant client == NULL check
nrwahl2 Jan 12, 2026
381fa06
Refactor: based: forward_request() takes pcmk__request_t
nrwahl2 Jan 12, 2026
365c1f7
Refactor: based: parse_peer_options() takes pcmk__request_t
nrwahl2 Jan 12, 2026
00380ac
Refactor: based: based_perform_op_rw() takes pcmk__request_t
nrwahl2 Jan 12, 2026
30379e5
Doc: based: Drop TODO comment
nrwahl2 Jan 13, 2026
c09ee81
Refactor: based: Free output in the done section
nrwahl2 Jan 13, 2026
5041ad4
Refactor: libcib: Drop unneeded modifies flag for primary request
nrwahl2 Jan 13, 2026
de8b9dc
Feature: based: Drop support for cib_ismaster requests
nrwahl2 Jan 13, 2026
ca11c7f
Refactor: libcib, based: Drop cib__op_attr_local
nrwahl2 Jan 13, 2026
89d1689
Feature: based: Drop support for cib_delete_alt requests
nrwahl2 Jan 13, 2026
a94158f
Refactor: libcib: Drop cib__op_attr_replaces
nrwahl2 Jan 13, 2026
764ddee
Low: based: Replace/commit ops don't automatically write to disk
nrwahl2 Jan 13, 2026
9542079
Refactor: libcrmcommon: Drop pcmk__update_schema transform argument
nrwahl2 Jan 13, 2026
8f41495
Refactor: libcib: Drop cib__op_attr_writes_through
nrwahl2 Jan 13, 2026
b468294
Refactor: libcib: Drop cib__op_attr_transaction
nrwahl2 Jan 13, 2026
7ecfffe
Refactor: libcib: Drop enum cib__op_attr
nrwahl2 Jan 13, 2026
e22003c
Refactor: libcib: Clean up includes
nrwahl2 May 3, 2026
686fe3c
Refactor: libcib: Drop redundant cib_discard_reply check in cib_remote.c
nrwahl2 Jan 13, 2026
1930743
API: libcib: Deprecate cib_api_operations_t:query_from() method
nrwahl2 Jan 15, 2026
68d851a
Refactor: based: Drop redundant based_stand_alone() check
nrwahl2 Jan 15, 2026
102f340
Refactor: based: Call process_ping_reply() in process section
nrwahl2 Jan 16, 2026
703df50
Refactor: based: Check cib_status after checking process
nrwahl2 Jan 16, 2026
2020354
Refactor: based: Return void from parse_peer_options()
nrwahl2 Jan 16, 2026
3b1b10c
Refactor: based: Default needs_reply to false
nrwahl2 Jan 15, 2026
22bc1ba
Refactor: based: Construct reply only if needs_reply is true
nrwahl2 Jan 17, 2026
250d353
Low: based: Fix memory leak on upgrade when validate-with is not set
nrwahl2 Jan 18, 2026
0b2651a
Refactor: libcrmcluster: pcmk__cpg_send_xml() returns void
nrwahl2 Jan 18, 2026
a773898
Refactor: libcrmcluster: Pass GString to send_cpg_text()
nrwahl2 Jan 19, 2026
04b8c91
Refactor: libcrmcluster: Drop two memset() calls
nrwahl2 Jan 19, 2026
ed543fa
Refactor: libcrmcluster: Consolidate some init in send_cpg_text()
nrwahl2 Jan 19, 2026
150e55b
Refactor: libcrmcluster: Use size_t for local_name_len
nrwahl2 Jan 19, 2026
4716671
Refactor: libcrmcluster: Use pid_t for local_pid
nrwahl2 Jan 19, 2026
4ef9c5a
Refactor: libcrmcommon: Drop max argument from pcmk__compress()
nrwahl2 Jan 19, 2026
dff3891
Doc: libcrmcluster: Document a type conversion mess
nrwahl2 Jan 19, 2026
ddc26e8
Refactor: libcrmcluster: Reduce log call duplication
nrwahl2 Jan 19, 2026
e931b58
Refactor: libcrmcluster: Drop send_cpg_text()
nrwahl2 Jan 19, 2026
4b3f68d
Refactor: attrd: Return void from attrd_send_message()
nrwahl2 Jan 19, 2026
71e2d15
Refactor: libcrmcluster: Return void from pcmk__cluster_send_message()
nrwahl2 Jan 19, 2026
8d90e64
Refactor: based: Reuse req in based_process_upgrade()
nrwahl2 Jan 19, 2026
147902f
Log: based: Drop some basically redundant log messages
nrwahl2 Jan 20, 2026
add47eb
Refactor: based: Create reply only if we will send it
nrwahl2 Jan 20, 2026
5352906
Refactor: libcib: Reorder CIB request constants alphabetically
nrwahl2 Jan 20, 2026
6a8fe92
wip
nrwahl2 Jan 13, 2026
eee26a6
Refactor: based: Ignore cib_discard_reply
nrwahl2 Jan 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions daemons/attrd/attrd_alerts.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
*/

#include <crm_internal.h>

#include <crm/crm.h>
#include <crm/cib/internal.h>
#include <crm/cluster/internal.h>
#include <crm/cluster/election_internal.h>
#include <crm/common/xml.h>
#include <crm/lrmd_internal.h>

#include "pacemaker-attrd.h"

static GList *attrd_alert_list = NULL;
Expand Down
1 change: 0 additions & 1 deletion daemons/attrd/attrd_cib.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <crm/common/logging.h>
#include <crm/common/results.h>
#include <crm/common/xml.h>
#include <crm/cluster/internal.h> // pcmk__get_node()

#include "pacemaker-attrd.h"

Expand Down
1 change: 0 additions & 1 deletion daemons/attrd/attrd_corosync.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <stdlib.h>

#include <crm/cluster.h>
#include <crm/cluster/internal.h>
#include <crm/common/logging.h>
#include <crm/common/results.h>
#include <crm/common/xml.h>
Expand Down
1 change: 0 additions & 1 deletion daemons/attrd/attrd_elections.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <stdbool.h>

#include <crm/cluster.h>
#include <crm/cluster/election_internal.h>
#include <crm/common/xml.h>

#include "pacemaker-attrd.h"
Expand Down
1 change: 0 additions & 1 deletion daemons/attrd/attrd_ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <sys/types.h>

#include <crm/cluster.h>
#include <crm/cluster/internal.h>
#include <crm/common/logging.h>
#include <crm/common/results.h>
#include <crm/common/util.h>
Expand Down
5 changes: 2 additions & 3 deletions daemons/attrd/attrd_messages.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <glib.h>

#include <crm/cluster/internal.h> // pcmk__get_node()
#include <crm/common/xml.h>

#include "pacemaker-attrd.h"
Expand Down Expand Up @@ -349,7 +348,7 @@ attrd_send_protocol(const pcmk__node_status_t *peer)
pcmk__xml_free(attrd_op);
}

gboolean
void
attrd_send_message(const pcmk__node_status_t *node, xmlNode *data, bool confirm)
{
const char *op = pcmk__xe_get(data, PCMK_XA_TASK);
Expand All @@ -366,5 +365,5 @@ attrd_send_message(const pcmk__node_status_t *node, xmlNode *data, bool confirm)
}

attrd_xml_add_writer(data);
return pcmk__cluster_send_message(node, pcmk_ipc_attrd, data);
pcmk__cluster_send_message(node, pcmk_ipc_attrd, data);
}
23 changes: 6 additions & 17 deletions daemons/attrd/attrd_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,28 +57,16 @@ attrd_shutdown(int nsig)
// Tell various functions not to do anthing
shutting_down = true;

// Don't respond to signals while shutting down
mainloop_destroy_signal(SIGTERM);
mainloop_destroy_signal(SIGCHLD);
mainloop_destroy_signal(SIGPIPE);
mainloop_destroy_signal(SIGUSR1);
mainloop_destroy_signal(SIGUSR2);
mainloop_destroy_signal(SIGTRAP);

attrd_free_waitlist();
attrd_free_confirmations();

g_clear_pointer(&peer_protocol_vers, g_hash_table_destroy);

if ((mloop == NULL) || !g_main_loop_is_running(mloop)) {
/* If there's no main loop active, just exit. This should be possible
* only if we get SIGTERM in brief windows at start-up and shutdown.
*/
crm_exit(CRM_EX_OK);
} else {
g_main_loop_quit(mloop);
g_main_loop_unref(mloop);
}
// There should be no way to get here without the main loop running
CRM_CHECK((mloop != NULL) && g_main_loop_is_running(mloop),
crm_exit(CRM_EX_OK));

g_main_loop_quit(mloop);
}

/*!
Expand All @@ -99,6 +87,7 @@ void
attrd_run_mainloop(void)
{
g_main_loop_run(mloop);
g_clear_pointer(&mloop, g_main_loop_unref);
}

/* strlen("value") */
Expand Down
1 change: 0 additions & 1 deletion daemons/attrd/pacemaker-attrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <crm/common/iso8601.h>
#include <crm/common/ipc.h>
#include <crm/common/xml.h>
#include <crm/cluster/internal.h>

#include "pacemaker-attrd.h"

Expand Down
10 changes: 5 additions & 5 deletions daemons/attrd/pacemaker-attrd.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

#ifndef PACEMAKER_ATTRD__H
# define PACEMAKER_ATTRD__H
#define PACEMAKER_ATTRD__H

#include <regex.h>
#include <stdbool.h>
Expand All @@ -18,7 +18,7 @@

#include <crm/crm.h>
#include <crm/cluster.h>
#include <crm/cluster/election_internal.h>
#include <crm/cluster/internal.h>
#include <crm/common/internal.h>
#include <crm/cib/cib_types.h>

Expand Down Expand Up @@ -211,8 +211,8 @@ void attrd_client_clear_failure(pcmk__request_t *request);
void attrd_client_update(pcmk__request_t *request);
void attrd_client_refresh(pcmk__request_t *request);
xmlNode *attrd_client_query(pcmk__request_t *request);
gboolean attrd_send_message(const pcmk__node_status_t *node, xmlNode *data,
bool confirm);
void attrd_send_message(const pcmk__node_status_t *node, xmlNode *data,
bool confirm);

xmlNode *attrd_add_value_xml(xmlNode *parent, const attribute_t *a,
const attribute_value_t *v, bool force_write);
Expand Down Expand Up @@ -266,4 +266,4 @@ void attrd_set_node_xml_id(const char *node_name, const char *node_xml_id);
void attrd_forget_node_xml_id(const char *node_name);
void attrd_cleanup_xml_ids(void);

#endif /* PACEMAKER_ATTRD__H */
#endif // PACEMAKER_ATTRD__H
Loading