Bug 270623 - net-mgmt/fence-agents : add new port version 4.12.1
Summary: net-mgmt/fence-agents : add new port version 4.12.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-03 11:23 UTC by florian.millet
Modified: 2023-04-03 14:01 UTC (History)
0 users

See Also:


Attachments
git diff for fence-agents version 4.12.1 (8.23 KB, text/plain)
2023-04-03 11:23 UTC, florian.millet
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description florian.millet 2023-04-03 11:23:54 UTC
Created attachment 241282 [details]
git diff for fence-agents version 4.12.1

This is a patch to add new port fence-agents to the latest version 4.12.1
(Tested ok on a custom poudriere repo on FreeBSD CURRENT)

A lot of these agents have Linuxism and have to be adapted, but the same problem exists for resource-agents so I think it is ok to have this as a base.
We can add patches later to modify the more used fencing agents to work out of the box on FreeBSD.

One side-note I observed when using fence-scsi : It would seem that on FreeBSD devices like /dev/da0 are not detected as block devices by Python, but instead are detected as character devices, this seems weird.
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-04-03 13:28:48 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8ab3666e9a903031a556ecaa3f2514169143d94d

commit 8ab3666e9a903031a556ecaa3f2514169143d94d
Author:     Florian Millet <florian.millet@ovhcloud.com>
AuthorDate: 2023-04-03 13:20:11 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2023-04-03 13:24:36 +0000

    net-mgmt/fence-agents: new port

    Fence agents were developed as device "drivers" which are able to prevent
    computers from destroying data on shared storage.
    Their aim is to isolate a corrupted computer, using one of three methods:

    - Power - A computer that is switched off cannot corrupt data, but it is
      important to not do a "soft-reboot" as we won't know if this is possible.
      This also works for virtual machines when the fence device is a hypervisor.
    - Network - Switches can prevent routing to a given computer, so even if a
      computer is powered on it won't be able to harm the data.
    - Configuration - Fibre-channel switches or SCSI devices allow us to limit who
      can write to managed disks.

    This is used by the Pacemaker cluster resource management.

    Note:
    A lot of these agents have Linuxism and have to be adapted, they will be
    patched later to work out of the box on FreeBSD.

    PR:             270623
    Sponsored by:   OVHcloud

 net-mgmt/Makefile                     |   1 +
 net-mgmt/fence-agents/Makefile (new)  |  35 +++++++
 net-mgmt/fence-agents/distinfo (new)  |   3 +
 net-mgmt/fence-agents/pkg-descr (new) |  13 +++
 net-mgmt/fence-agents/pkg-plist (new) | 184 ++++++++++++++++++++++++++++++++++
 5 files changed, 236 insertions(+)
Comment 2 florian.millet 2023-04-03 14:01:20 UTC
Thank you for the merge