Skip to content
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

[WIP] podman-etcd: new resource agent #2023

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

clobrano
Copy link

Introduce a resource agent for Podman to manage etcd instances

This agent enables Pacemaker to control etcd containers, handling start, stop, monitor, and recovery operations.

Introduce a resource agent for Podman to manage etcd instances.

This agent enables Pacemaker to control etcd containers, handling
start, stop, monitor, and recovery operations.
@clobrano clobrano marked this pull request as draft February 18, 2025 08:52
Copy link

knet-jenkins bot commented Feb 18, 2025

Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/resource-agents/job/resource-agents-pipeline/job/PR-2023/1/input

@oalbrigt oalbrigt changed the title [WIP] Add etcd resource agent for Podman [WIP] podman-etcd: new new resource agent Feb 18, 2025
Copy link

knet-jenkins bot commented Feb 18, 2025

Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/resource-agents/job/resource-agents-pipeline/job/PR-2023/2/input

oalbrigt and others added 2 commits February 20, 2025 11:32
Notes
- fixed a couple of places where $? was used instead of $rc
- use if is_standalone; instead of if [ $? -eq 0 ] and other functions (and made sure we use rc=$? for cases where rc is used more than once)

Changes
- use tabs for all indentation
- quote string values in if's
- move all helper functions before agent's start/stop/monitor/etc command functions
- move meta-data/usage|help actions before this section in separate case-statement
- removed promote/demote-actions from metadata/usage. can re-add later if we need them
- use NODENAME (ocf_local_nodename)/NODEIP instead of $THIS_*/$nodename variables
- add crictl to validate-all() binary-checks
- cleaned up logging to always have space between : and $var
- start() - retry-loop: use break
- uncommented #remove_container()-line in stop-action
- replace -a in if with && (there are some known issues with using -o/-a in special cases)
- podman_notify(): combine the start/stop in case statement
@clobrano clobrano changed the title [WIP] podman-etcd: new new resource agent [WIP] podman-etcd: new resource agent Mar 7, 2025
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.

2 participants