Discussion:
Bug#1089157: bookworm-pu: package tango/9.3.4+dfsg1-2+deb12u1
(too old to reply)
Santiago Ruano Rincón
2024-12-06 12:00:01 UTC
Permalink
Package: release.debian.org
Severity: normal
Tags: bookworm
User: ***@packages.debian.org
Usertags: pu
X-Debbugs-Cc: ***@packages.debian.org, Thomas Braun <***@byte-physics.de>, Picca Frédéric-Emmanuel <***@debian.org>
Control: affects -1 + src:tango

Dear Release Team,

Please consider this tango update for bookworm. It mainly fixes
https://bugs.debian.org/1062979, which breaks using the tango DB, due to
incompatibilities with MariaDB 10.11, the version packaged in bookworm.
This has been broken since the bookworm release.

As a minor side change, it changes the Salsa CI configuration to run the
pipeline on the correct release: bookworm instead of experimental.

[ Impact ]
As #1062979 describes, tango features, functions or tools (such as
tango-starter or tango-admin) relying on the mariadb database will
continue to be unable to start or use the database.

[ Tests ]
I reproduced the issue and verified the fix just installing tango-db,
tango-accesscontrol and tango-starter along with mariadb-server in
bookworm. I have also tried using tango_admin to add a device property
in the database. The proposed changes include an autopkgtest that helps to
confirm the issue is fixed.

Without the fix: https://salsa.debian.org/science-team/tango/-/jobs/6707942
With the fix: https://salsa.debian.org/science-team/tango/-/jobs/6707881

[ Risks ]
Any non-identified risk of regression may be outweighed by being able to
start tango-starter and/or using the tango database.

[ Checklist ]
[x] *all* changes are documented in the d/changelog
[x] I reviewed all changes and I approve them
[x] attach debdiff against the package in (old)stable
[x] the issue is verified as fixed in unstable

A preliminary fix was included in unstable with 9.4.2+dfsg1-1:
https://tracker.debian.org/news/1451906/accepted-tango-942dfsg1-1-source-into-unstable/
and the complete upstream patch in experimental with 10.0.0+dfsg1-1~exp2
(now in unstable, since 10.0.0+dfsg1-1):
https://tracker.debian.org/news/1583619/accepted-tango-1000dfsg1-1exp2-source-into-experimental/

[ Changes ]
The proposed update is made of the following changes:

* debian/patches/0001-Fix-timestamp-columns-in-Mariadb-10.11-and-newer.patch
As tagged in the patch, this is based on the upstream fix (merged) to
address the issue. It is a backport of
https://gitlab.com/tango-controls/TangoDatabase/-/merge_requests/95,
removing the parts that cannot be applied in tango 9.3.4. The git commit
message is self-explaining:

Subject: [PATCH] Fix timestamp columns in Mariadb 10.11 and newer
...

This problem appears in MariaDb 10.11 since default value of
explicit_defaults_for_timestamp changed from OFF to ON, setting it to
OFF (set global explicit_defaults_for_timestamp=OFF;) make the
create_db_tables.sql.in work properly.

* debian/dbconfig-common/data/tango-db/upgrade/mysql/9.3.4
Applies similar changes in the existing tango database than those from
the patch above, at upgrade time.

* debian/tests/starter-basic
autopkgtest that helps to verify that tango-starter can effectively
start. tango-starter needs to register the Starter device in the tango
database, which is done in bookworm by the tango-starter's init.d,
using tango_admin:

do_start()
...
# register the tango-starter if necessary
tango_admin --check-device tango/admin/`hostname` || tango_admin --add-server Starter/`hostname` Starter tango/admin/`hostname` || return 2
...

Moreover, the autopkgtest also verifies it the database can be used,
adding a device property:

# test https://bugs.debian.org/1062979:
#
tango_admin --add-property sys/tg_test/1 key value
...

as suggested by Thomas in https://bugs.debian.org/1062979#39

* debian/gitlab-ci.yml
This changes the configured RELEASE from experimental to bookworm.
I (also) relied on Salsa CI for testing the update, and without this
change, for any future proposal, the Salsa CI user would need to
manually override the RELEASE variable, as I had to do.

[ Other info ]
None.

Thank in advance,

-- Santiago
Debian Bug Tracking System
2024-12-06 12:00:01 UTC
Permalink
Post by Santiago Ruano Rincón
affects -1 + src:tango
Bug #1089157 [release.debian.org] bookworm-pu: package tango/9.3.4+dfsg1-2+deb12u1
Added indication that 1089157 affects src:tango
--
1089157: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1089157
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Debian Bug Tracking System
2024-12-06 13:40:01 UTC
Permalink
tag -1 confirmed
Bug #1089157 [release.debian.org] bookworm-pu: package tango/9.3.4+dfsg1-2+deb12u1
Added tag(s) confirmed.
--
1089157: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1089157
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Jonathan Wiltshire
2024-12-06 13:40:02 UTC
Permalink
Control: tag -1 confirmed

Please go ahead.

Thanks,
--
Jonathan Wiltshire ***@debian.org
Debian Developer http://people.debian.org/~jmw

4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51
ed25519/0x196418AAEB74C8A1: CA619D65A72A7BADFC96D280196418AAEB74C8A1
Santiago Ruano Rincón
2024-12-06 13:50:01 UTC
Permalink
Post by Jonathan Wiltshire
Control: tag -1 confirmed
Please go ahead.
Done. Thank you for your quick reply!

Cheers,

-- S
Jonathan Wiltshire
2024-12-06 15:00:01 UTC
Permalink
package release.debian.org
tags 1089157 = bookworm pending
thanks

Hi,

The upload referenced by this bug report has been flagged for acceptance into the proposed-updates queue for Debian bookworm.

Thanks for your contribution!

Upload details
==============

Package: tango
Version: 9.3.4+dfsg1-2+deb12u1

Explanation: make the property_* tables compatible with MariaDB 10.11 at install time; add autopkgtest
Debian Bug Tracking System
2024-12-06 15:00:01 UTC
Permalink
Post by Jonathan Wiltshire
package release.debian.org
Limiting to bugs with field 'package' containing at least one of 'release.debian.org'
Limit currently set to 'package':'release.debian.org'
Post by Jonathan Wiltshire
tags 1089157 = bookworm pending
Bug #1089157 [release.debian.org] bookworm-pu: package tango/9.3.4+dfsg1-2+deb12u1
Added tag(s) pending; removed tag(s) confirmed.
Post by Jonathan Wiltshire
thanks
Stopping processing here.

Please contact me if you need assistance.
--
1089157: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1089157
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Debian Bug Tracking System
2025-01-11 11:20:07 UTC
Permalink
Your message dated Sat, 11 Jan 2025 11:03:09 +0000
with message-id <E1tWZGn-009jc2-***@coccia.debian.org>
and subject line Close 1089157
has caused the Debian Bug report #1089157,
regarding bookworm-pu: package tango/9.3.4+dfsg1-2+deb12u1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ***@bugs.debian.org
immediately.)
--
1089157: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1089157
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...