[Pkg-samba-maint] Bug#929931: CTDB: Debian Enablement (focus: NFS HA)

Rafael David Tinoco rafaeldtinoco at ubuntu.com
Mon Jun 3 19:26:26 BST 2019


https://bugs.launchpad.net/debian/+source/ctdb/+bug/722201/comments/19

----

Future possible issue While ctdb is not merged to *at least* samba-4.9.7
(in Debian):

commit 022b9a6ca7d8cb6f541b1b24b27da4e1a3bea04b
Author: Martin Schwenke <martin at meltin.net>
Date: Tue Mar 26 00:49:49 2019

    ctdb-scripts: Add test variable CTDB_NFS_DISTRO_STYLE

    BUG: https://bugzilla.samba.org/show_bug.cgi?id=13860

    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at samba.org>
    (cherry picked from commit e72c3c800a50fe746164e319e21180c44d041619)


/etc/ctdb/nfs-linux-kernel-callout :

TODO:

 - place non-upstream (?) patch (DEP3) inside debian/patches (quilt):

 # Red Hat
 # nfs_service="nfs"
 # nfslock_service="nfslock"
 # nfs_config="/etc/sysconfig/nfs"

 # SUSE
 # nfs_service="nfsserver"
 # nfslock_service=""
 # nfs_config="/etc/sysconfig/nfs"

 # Debian
 nfs_service="nfs-kernel-server"
 nfslock_service=""
 nfs_config="/etc/default/nfs-kernel-server"

----

https://bugs.launchpad.net/debian/+source/ctdb/+bug/722201/comments/21

----

Future possible issue while ctdb is not merged to *at least* samba-4.9.8
(in Debian):

commit 49fa08814e2a1032e88353eec42b952316d6ec18
Author: Martin Schwenke <martin at meltin.net>
Date: Wed Mar 20 07:22:43 2019

    ctdb-scripts: Update statd-callout to try several configurationfiles

    The alternative seems to be to try something via CTDB_NFS_CALLOUT.
    That would be complicated and seems like overkill for something this
    simple.

    BUG: https://bugzilla.samba.org/show_bug.cgi?id=13860

    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at samba.org>
    (cherry picked from commit a2bd4085896804ee2da811e17f18c78a5bf4e658)

BUT, still, isn't appropriate since Debian systemd NFS server script is
called either nfs-kernel-server.service (or an alias called
nfs-server.service) OR nfs-ganesha.service (if using the userland nfs
server version).

/etc/ctdb/statd-callout:

 - place non-upstream (?) patch (DEP3) inside debian/patches(quilt)

 load_system_config "nfs-kernel-server"
 ...
 ctdb_setup_state_dir "service" "nfs-kernel-server"

----

TODO: NFS_HOSTNAME variable is mandatory for CTDB PUBLIC ADDRS

 - ctdb has to depend on nfs-common
(/usr/lib/systemd/scripts/nfs-utils_env.sh)
 - ctdb has to update /usr/lib/systemd/scripts/nfs-utils_env.sh ->
NFS_HOSTNAME=nodename
 - /etc/default/nfs-common has to be updated -> NFS_HOSTNAME=nodename

----

https://bugs.launchpad.net/ubuntu/+source/samba/+bug/722201/comments/23
BUG: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1821775
BUG: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1828799

----

TODO: Missing needed directories and files for initial start to work

 - ctdb.postinst and ctdbpostrm to create and delete
/var/lib/ctdb{volatile,persistent,state}
 - ctdb.postinst and ctdbpostrm to create and delete /etc/ctdb/nodes
(127.0.0.1 only) and /etc/ctdb/public_addresses (empty) files.
 - tmpfiles.d to create /run/ctdb

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20190603/5ee7ebd0/attachment-0001.sig>


More information about the Pkg-samba-maint mailing list