<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/ctdb, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/'/>
<entry>
<title>ctdb-scripts: Support interface altnames</title>
<updated>2026-04-17T00:11:50+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2026-04-09T07:52:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=b605cc7c88089fc5e2f5cce08543e7dbae148a24'/>
<id>b605cc7c88089fc5e2f5cce08543e7dbae148a24</id>
<content type='text'>
This avoids generating a warning like:

  WARNING: Public IP &lt;ip&gt; hosted on interface &lt;iface&gt; but VNN says &lt;altname&gt;

every time a public IP is removed from an interface that is configured
via an altname.

The new check will nearly always be successful because the IP will be
on the expected interface during releaseip/updateip.

The original check is now used as a backup when the IP is not on the
expected interface.  To allow the mask bits check to cover both cases,
the original check and the associated interface check needs to be
inside the else clause.

Update the unit test to reflect the change.

Best reviewed with "git show -w" or similar.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;

Autobuild-User(master): Martin Schwenke &lt;martins@samba.org&gt;
Autobuild-Date(master): Fri Apr 17 00:11:50 UTC 2026 on atb-devel-224
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This avoids generating a warning like:

  WARNING: Public IP &lt;ip&gt; hosted on interface &lt;iface&gt; but VNN says &lt;altname&gt;

every time a public IP is removed from an interface that is configured
via an altname.

The new check will nearly always be successful because the IP will be
on the expected interface during releaseip/updateip.

The original check is now used as a backup when the IP is not on the
expected interface.  To allow the mask bits check to cover both cases,
the original check and the associated interface check needs to be
inside the else clause.

Update the unit test to reflect the change.

Best reviewed with "git show -w" or similar.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;

Autobuild-User(master): Martin Schwenke &lt;martins@samba.org&gt;
Autobuild-Date(master): Fri Apr 17 00:11:50 UTC 2026 on atb-devel-224
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-tests: Add addip/releaseip altname unit test</title>
<updated>2026-04-16T23:09:33+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2026-04-13T04:48:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=8c8dded9481cae424df0205dd06bfc49014dcf63'/>
<id>8c8dded9481cae424df0205dd06bfc49014dcf63</id>
<content type='text'>
This shows that a warning is generated whenever an IP address is
removed using an altname.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This shows that a warning is generated whenever an IP address is
removed using an altname.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-tests: Implement altname property for ip link/addr</title>
<updated>2026-04-16T23:09:33+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2026-04-13T04:18:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=65bb57ebf486692705efcf395f06be4c41261047'/>
<id>65bb57ebf486692705efcf395f06be4c41261047</id>
<content type='text'>
Only implemented for these commands.  I don't even want to think about
doing this for ip route right now.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only implemented for these commands.  I don't even want to think about
doing this for ip route right now.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-scripts: Rename/reimplement get_iface_ip_maskbits()</title>
<updated>2026-04-16T23:09:33+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2026-04-09T05:29:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=04f8f7be1cabf180bc07772d730b35fea0c945a2'/>
<id>04f8f7be1cabf180bc07772d730b35fea0c945a2</id>
<content type='text'>
Reimplement to set prefix instead of maskbits.  Rename to
get_ip_prefix_iface().

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reimplement to set prefix instead of maskbits.  Rename to
get_ip_prefix_iface().

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-scripts: Add function ip_prefix_iface()</title>
<updated>2026-04-16T23:09:33+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2026-04-08T23:40:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=386d8881740924e376ac51053398db7e10f0b25e'/>
<id>386d8881740924e376ac51053398db7e10f0b25e</id>
<content type='text'>
Reimplement ip_maskbits_iface() using the ip -brief option.  Do less
parsing, no longer extract maskbits but return whole prefix.

Retain ip_maskbits_iface() for backward compatibility in case custom
event scripts are using it.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reimplement ip_maskbits_iface() using the ip -brief option.  Do less
parsing, no longer extract maskbits but return whole prefix.

Retain ip_maskbits_iface() for backward compatibility in case custom
event scripts are using it.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-tests: Implement -brief option for ip addr show stub</title>
<updated>2026-04-16T23:09:33+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2026-04-08T03:02:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=416c38003ff2824a0ec83a1171b9807c692a377b'/>
<id>416c38003ff2824a0ec83a1171b9807c692a377b</id>
<content type='text'>
Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-tests: Fix a typo in "ip link show" stub output</title>
<updated>2026-04-16T23:09:33+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2026-04-08T02:10:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=ee9b18876b4e7c104e9668a755a088b4933a2514'/>
<id>ee9b18876b4e7c104e9668a755a088b4933a2514</id>
<content type='text'>
Status is different to state and should not be repeated.  For example:

eth0             UP             aa:bb:cc:dd:ee:ff &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt;

Clearly nothing looks at this field but it should be correct.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Status is different to state and should not be repeated.  For example:

eth0             UP             aa:bb:cc:dd:ee:ff &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt;

Clearly nothing looks at this field but it should be correct.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-scripts: Drop full address prefix lengths</title>
<updated>2026-04-16T23:09:33+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2026-04-02T07:23:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=3e7859ed1cb4b70c3a0d73b9a35031b04bc7ad41'/>
<id>3e7859ed1cb4b70c3a0d73b9a35031b04bc7ad41</id>
<content type='text'>
ip addr assumes these defaults anyway.  They are just noise.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ip addr assumes these defaults anyway.  They are just noise.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-scripts: Add an extra variable to help reviewers</title>
<updated>2026-04-16T23:09:33+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2026-04-10T01:22:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=2ab11549c8c689a7be876408fa7fbee5411cf9c4'/>
<id>2ab11549c8c689a7be876408fa7fbee5411cf9c4</id>
<content type='text'>
Using $_bcast to determine if the address is an IPv6 one is lazy.  It
causes anyone reading the code (including the original author) to have
to go back and confirm that the condition makes sense.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using $_bcast to determine if the address is an IPv6 one is lazy.  It
causes anyone reading the code (including the original author) to have
to go back and confirm that the condition makes sense.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-scripts: Add function ip_addr_add()</title>
<updated>2026-04-16T23:09:33+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2026-04-08T01:28:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=44f5207bd7c562c1507984fddefc5e8f663f95cc'/>
<id>44f5207bd7c562c1507984fddefc5e8f663f95cc</id>
<content type='text'>
For consistency with new ip_addr_del().

Update all callers of add_ip_to_iface() to use this function
instead.

Retain add_ip_to_iface() for backward compatibility in case custom
event scripts are using it.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For consistency with new ip_addr_del().

Update all callers of add_ip_to_iface() to use this function
instead.

Retain add_ip_to_iface() for backward compatibility in case custom
event scripts are using it.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@redhat.com&gt;</pre>
</div>
</content>
</entry>
</feed>
