CTDB: Enablement (NFS)

Bug #1831381 reported by Rafael David Tinoco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Server High Availability
In Progress
Medium
Rafael David Tinoco

Bug Description

Initial support enabling CTDB to install/run in Ubuntu Server.

Related bugs:

CTDB port is not aware of Ubuntu-specific NFS Settings
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/722201

ctdb service crashes on start Edit
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1335540

ctdb cannot create PID file Edit
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1821775

Package ctdb does not create directories in /var/lib/ctdb
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1828799

ss seems broken when using multiple filters in the same cmdline
https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/1831775

Those fixes will allow CTDB to be used to configure a HA NFS SERVER.

Documentation:

https://blueprints.launchpad.net/ubuntu-server-ha/+spec/ctdb-enablement-nfs

Changed in ubuntu-server-ha:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Rafael David Tinoco (rafaeldtinoco)
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Quick issue that might have to do with AES-NI support in my CPU:

during dh_install phase, for samba, I got:

make[1]: Leaving directory '/home/inaddy/work/sources/ubuntu/samba'
   dh_install
dh_install: Cannot find (any matches for) "usr/lib/*/samba/libaesni-intel.so.0" (tried in ., debian/tmp)

dh_install: samba-libs missing files: usr/lib/*/samba/libaesni-intel.so.0
dh_install: missing files, aborting
make: *** [debian/rules:86: binary] Error 25

And I checked upstream, there is a change in changelog:

----

commit 6bb871706c238b77d0064aabf906e22ef6d2aa12
Author: Mathieu Parent <email address hidden>
Date: Mon Oct 8 17:01:13 2018

    Enable --accel-aes=intelaesni on DEB_HOST_ARCH_CPU=amd64 instead of DEB_HOST_ARCH=amd64. This matches samba-libs.install and adds x32

diff --git a/debian/rules b/debian/rules
index 78ba34c16fb..40e1e8ba3ff 100755
--- a/debian/rules
+++ b/debian/rules
@@ -79,7 +79,7 @@ else
                --without-systemd
 endif

-ifeq ($(DEB_HOST_ARCH), amd64)
+ifeq ($(DEB_HOST_ARCH_CPU), amd64)
        conf_args += \
                --accel-aes=intelaesni
 endif

----

I *think* my CPU, being an OLD fashioned AMD FX(tm)-8350 Eight-Core Processor, doesn't support it AES-NI =), and it couldn't find the lib allegedly enabled by dh_configure (--access-aes=intelaesni). I'll workaround this in my merge attempt / SRUs for now, and investigate this later on.

summary: - CTDB: Initial support (focusing NFS)
+ CTDB: Enablement (NFS)
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Opened a Debian bug to track all these issues altogether (same thing as I'm doing here in this bug):

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929931

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :
description: updated
description: updated
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Alright, the specifications on everything I needed to do, in short terms, is this:

---- DONE

/etc/ctdb/statd-callout:

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

---- DONE

/etc/ctdb/events/legacy/60.nfs.script: 1: eval: rpc.rquotad: not found

legacy/60.nfs.script needs rpc.rquotad.

ctdb needs to depend on:
- nfs-kernel-server
- nfs-common
- quota

---- NO NEED

    ss -tn state established "${_ip_filter} ${_port_filter}" | awk 'NR > 1 {print $4, $3}' | sort >"$_my_connections"

---- EXAMPLE

Example of appendix to /etc/services to enable CTDB NFS HA:

/etc/services: (append)

rpc.nfsd 2049/tcp # RPC nfsd
....

---- EXAMPLE

TODO:
 - provide a /etc/ctdb/nfs-common.example
 - provide instructions to replace /etc/default/nfs-common with the example

---- EXAMPLE

TODO:
 - provide a /etc/ctdb/nfs-kernel-server.example
 - provide instructions to replace /etc/default/nfs-kernel-server with the example

---- EXAMPLE

TODO:
 - provide a /etc/ctdb/98-nfs-static-ports-sysctl.conf.example
 - provide instructions to place it as /etc/sysctl.d/98-nfs-static-ports.conf

---- DONE

[PATCH] ctdb-scripts: Fix tcp_tw_recycle existence check

https://lists.samba.org/archive/samba-technical/2019-June/133694.html

---- NO NEED

[PATCH] ctdb-scripts: Fix ss syntax in update_tickles()

https://lists.samba.org/archive/samba-technical/2019-June/133701.html

---- DONE:

ctdb cannot create PID file Edit

/var/run/ctdb

https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1821775

---- DONE:

Package ctdb does not create directories in /var/lib/ctdb

/var/lib/ctdb

https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1828799

----

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.