puppetdb dep8 tests fail for multiple reasons

Bug #2072516 reported by Pushkar Kulkarni
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppetdb (Ubuntu)
New
Medium
Pushkar Kulkarni
Jammy
New
Undecided
Unassigned
Noble
New
Medium
Pushkar Kulkarni
Plucky
New
Medium
Pushkar Kulkarni
Questing
New
Medium
Pushkar Kulkarni

Bug Description

[ Impact ]

* This bug-report was originally reported puppetdb dep8 test failures on noble
  after [1] was fixed. Many tests fail with HTTP 403 errors on
  autopkgtest.ubuntu.com infra due to the presence of a squid proxy.

  Currently puppetdb also FTBFS on resolute, questing, plucky and noble, due
  to build-time test failures. The failing tests fall into two of the
  (upstream-defined) categories:
  a. Command tests - related to a reported issue [2] in newer postgresql versions
  b. Service tests - related to expiration of certificates

  While questing (like resolute) is affected by category (a) and noble by
  category (b), plucky is affected by both (a) and (b).

  This SRU includes three changes:
  A) Fix command test failures (category a), by simply disabling the upstream tests.
  B) Fix service test failures (category b), by introducing a Ruby script that generates certificates during a build.
  C) Fix the HTTP 403 autopkgtest failures by adding the (local) URLs to the no_proxy environment variable.

  All the current stable releases need change (C). Additionally, questing needs (A)and plucky needs (B).

[ Test Plan ]

* The build-time test failures can be reproduced at will during a package build. The dep8 failures can be reproduced by requesting tests on autopkgtest.ubuntu.com. The dep8 test failures DO NOT reproduce locally using "autopkgtest" unless a proxy is configured.

[ Where problems could occur ]

* Change (A) disables a total of 3 upstream sub-tests under the "Command Tests" category. Disabling tests could let new regressions escape uncaught. It is a medium-risk change.

[ Other Info ]

* Further, the premise for (A) is [2] an open upstream issue. Though the exception stack match what we observe (on rr, qq and pp), it is reported for libpostgresql-jdbc-java 42.7.7 with postgresql 17.5-1. Plucky has libpostgresql-jdbc-java 42.7.5 and postgresql 17.6.

[1] https://bugs.launchpad.net/ubuntu/+source/puppetdb/+bug/2069384
[2] https://github.com/pgjdbc/pgjdbc/issues/3757

------------ Previous template ------------
Impact
* The puppetdb autopkgtests fail on noble after the FTBFS bug [1] is fixed.

Test Plan
* Running autopkgtests on noble reveals the failure.

Where problems could occur
Currently, both tests under debian/test fail on oracular [2].

====

autopkgtest [00:30:43]: @@@@@@@@@@@@@@@@@@@@ summary
standalone FAIL stderr: warn: JDK 21.0.4-ea is neither tested nor supported. Please use JDK 17
with-puppetserver FAIL non-zero exit status 1

====

Test "standalone" fails because of Java 21 usage warning appears on stderr. Test "with-puppetserver" is an integration
test of puppetdb and puppetserver. The latter has been updated to 8.4.1-1 on noble. Use of a custom format named PSON was
completely abandoned in puppetserver 8. Any use of PSON in puppetdb 7 on noble needs to be removed.

Other Info
PuppetDB 7.X is compatible with PuppetServer 8.X [3]

--------------------------------------------------------------------------------

Related branches

Changed in puppetdb (Ubuntu):
status: New → In Progress
assignee: nobody → Pushkar Kulkarni (pushkarnk)
importance: Undecided → Medium
Changed in puppetdb (Ubuntu Noble):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote : Re: autopkgtests fail with on oracular & noble

The same tests fail, with the same errors, on noble (puppetdb 7.12.1-3) after fixing the FTBFS reported by LP#2069384

summary: - autopkgtests fail with version 8.4.1-1 on oracular
+ autopkgtests fail with on oracular & noble
summary: - autopkgtests fail with on oracular & noble
+ autopkgtests fail on oracular & noble
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: autopkgtests fail on oracular & noble

This bug was fixed in the package puppetdb - 8.4.1-1ubuntu1

---------------
puppetdb (8.4.1-1ubuntu1) oracular; urgency=medium

  * Fix autopkgtest failures (LP: #2072516)
    - d/t/control: add allow-stderr to accommodate
      a Java version warning
    - d/t/with-puppetserver: avoid a parsing error
      on lxd by surrounding the node name in quotes

 -- Pushkar Kulkarni <email address hidden> Tue, 09 Jul 2024 01:01:45 +0530

Changed in puppetdb (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Dave Jones (waveform) wrote :

Unsubscribing ubuntu-sponsors for now; see comments on LP: #2069384

Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Pushkar, or anyone else affected,

Accepted puppetdb into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/puppetdb/7.12.1-3ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in puppetdb (Ubuntu Noble):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-noble
Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote : Re: autopkgtests fail on oracular & noble

TEST CASE:
1. Install and upgrade test.
    - try installing and removing puppetdb 7.12.1-3ubuntu0.1
      - apt install puppetdb=7.12.1-3ubuntu0.1
    - try upgrading puppetdb from 7.12.1-3 to 7.12.1-3ubuntu0.1 from noble-proposed
      - apt upgrade puppetdb=7.12.1-3ubuntu0.1
2. Run autopkgtests for puppetdb on noble using 7.12.1-3ubuntu0.1 from noble-proposed
   - autopkgtest puppetdb --apt-pocket=proposed=src:puppetdb -U -- lxd autopkgtest/ubuntu/noble/amd64

VERIFICATION DONE
1. Installation and upgrade from noble-proposed works as expected.
2. Autopkgtests pass with 7.12.1-3ubuntu0.1

tags: added: verification-done verification-done-noble
removed: verification-needed verification-needed-noble
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

According to [1], puppetdb 7.12.1-3ubuntu0.1 in noble-proposed is still failing[2]:

729s autopkgtest [09:47:09]: @@@@@@@@@@@@@@@@@@@@ summary
729s standalone PASS
729s with-puppetserver FAIL non-zero exit status 1

The only reason it's not marked as a regression in the excuses report[3] is, I believe, because the previous version was also failing. So normally this wouldn't be a problem, but here we are claiming in this bug that we are fixing the DEP8 tests, so I was expecting them to be green.

Can someone take a look, and either fix the error, or explain what's going on?

1. https://autopkgtest.ubuntu.com/packages/puppetdb/noble/amd64
2. https://autopkgtest.ubuntu.com/results/autopkgtest-noble/noble/amd64/p/puppetdb/20240731_094926_bb178@/log.gz

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

I can't reproduce these 403 errors locally. I wonder if failures in [1] are due to an infra issue. I'll take a detailed look later in my day tomorrow to attempt an explanation.

Locally, I ran:

=====

$ autopkgtest puppetdb --apt-pocket=proposed=src:puppetdb -U -- lxd autopkgtest/ubuntu/noble/amd64

...
...

autopkgtest [01:52:05]: @@@@@@@@@@@@@@@@@@@@ summary
standalone PASS
with-puppetserver PASS

=====

Full output here https://paste.ubuntu.com/p/4VKYk8v23b/

[1] https://autopkgtest.ubuntu.com/results/autopkgtest-noble/noble/amd64/p/puppetdb/20240731_094926_bb178@/log.gz

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Could it be the squid.internal proxy, set for dep8 runs in the infrastructure? Can you perhaps unset the proxy variables in the test, or use noproxy (or NOPROXY) for the domains the test is trying to fetch?

tags: added: verification-failed verification-failed-noble
removed: verification-done verification-done-noble
Revision history for this message
Chris Halse Rogers (raof) wrote :

I'm flipping this to verification-failed, as the autopkgtests did *not* pass -
https://autopkgtest.ubuntu.com/packages/puppetdb/noble/amd64 and particularly https://autopkgtest.ubuntu.com/results/autopkgtest-noble/noble/amd64/p/puppetdb/20240731_094926_bb178@/log.gz

It *does* look like an problem in the launchpad test environment, which has a restrictive proxy in place - you *might* be able to get some help from the documentation here: https://github.com/canonical/ubuntu-maintainers-handbook/blob/main/PackageTests.md#restrict-networking

That documentation points you to using the *real* proxy, only available on the Canonical VPN, but you could try something similar with a self-hosted restrictive proxy.

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote (last edit ):

Profuse apologies for the long delay on addressing this. To fix the autopkgtests by disabling the proxy (thanks for the information above!), I have created a new SRU bug report [1] for oracular and noble, and an MP [2] for oracular.

I am unsure if I must create the noble MP right now or wait for the reviews on [2]. I should probably wait.

[1] https://bugs.launchpad.net/ubuntu/+source/puppetdb/+bug/2084635
[2] https://code.launchpad.net/~pushkarnk/ubuntu/+source/puppetdb/+git/puppetdb/+merge/475170

Revision history for this message
Chris Halse Rogers (raof) wrote :

Re-subscribing ubuntu-sponsors; needs new upload from the previous comment.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Why a new bug report...
Now we have:
- original FTBFS: LP: #2069384
- dep8 failure (this bug): LP: #2072516
- another bug about dep8 failure: LP: #2084635
- with its own pr: https://code.launchpad.net/~pushkarnk/ubuntu/+source/puppetdb/+git/puppetdb/+merge/475170

And that new bug didn't have sponsors subscribed.

Ok, heading over there now...

Revision history for this message
Lukas Märdian (slyon) wrote (last edit ):

I talked to Pushkar and recommended closing the new bug #2084635 and keep resolving the DEP-8 test in this very bug instead.

Dropping the ~ubuntu-sponsors subscription for now, until we have an update merge-proposal.

I'm also adding additional bug targets an re-setting the bug status, as we need follow-up fixes to fully resolve this issue.

Changed in puppetdb (Ubuntu):
status: Fix Released → New
Changed in puppetdb (Ubuntu Noble):
status: Fix Committed → New
summary: - autopkgtests fail on oracular & noble
+ autopkgtests failures on multiple releases
summary: - autopkgtests failures on multiple releases
+ autopkgtests failures on stable releases
summary: - autopkgtests failures on stable releases
+ puppetdb dep8 tests fail for multiple reasons
Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

As suggested, I hope to use this bug for the puppetdb cleanup.

To start with, I have an MP raised to fix the puppetdb FTBFS and dep8 tests on resolute [1].

[1] https://code.launchpad.net/~pushkarnk/ubuntu/+source/puppetdb/+git/puppetdb/+merge/496485

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :
Changed in puppetdb (Ubuntu Plucky):
importance: Undecided → Medium
Changed in puppetdb (Ubuntu Questing):
importance: Undecided → Medium
Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :
Download full text (3.8 KiB)

Built puppetdb for stable versions in ppa:pushkarnk/ppa-12-2025

autopkgtest results:

* Results:
  - puppetdb/7.12.1-3ubuntu0.3
    + ✅ puppetdb on noble for amd64 @ 01.12.25 04:56:39
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-noble-pushkarnk-ppa-12-2025/noble/amd64/p/puppetdb/20251201_045639_383a7@/log.gz
    + ✅ puppetdb on noble for arm64 @ 01.12.25 04:58:24
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-noble-pushkarnk-ppa-12-2025/noble/arm64/p/puppetdb/20251201_045824_03d00@/log.gz
    + ✅ puppetdb on noble for armhf @ 01.12.25 05:01:11
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-noble-pushkarnk-ppa-12-2025/noble/armhf/p/puppetdb/20251201_050111_55909@/log.gz
    + ✅ puppetdb on noble for i386 @ 01.12.25 04:56:53
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-noble-pushkarnk-ppa-12-2025/noble/i386/p/puppetdb/20251201_045653_22c97@/log.gz
    + ✅ puppetdb on noble for ppc64el @ 01.12.25 04:59:25
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-noble-pushkarnk-ppa-12-2025/noble/ppc64el/p/puppetdb/20251201_045925_48189@/log.gz
    + ✅ puppetdb on noble for s390x @ 01.12.25 04:56:51
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-noble-pushkarnk-ppa-12-2025/noble/s390x/p/puppetdb/20251201_045651_54882@/log.gz

  - puppetdb/8.4.1-3ubuntu1.3
    + ✅ puppetdb on plucky for amd64 @ 01.12.25 07:58:16
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-pushkarnk-ppa-12-2025/plucky/amd64/p/puppetdb/20251201_075816_a084f@/log.gz
    + ✅ puppetdb on plucky for arm64 @ 01.12.25 10:08:04
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-pushkarnk-ppa-12-2025/plucky/arm64/p/puppetdb/20251201_100804_a3fe3@/log.gz
    + ✅ puppetdb on plucky for armhf @ 01.12.25 08:21:59
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-pushkarnk-ppa-12-2025/plucky/armhf/p/puppetdb/20251201_082159_2b3c8@/log.gz
    + ✅ puppetdb on plucky for i386 @ 01.12.25 07:57:47
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-pushkarnk-ppa-12-2025/plucky/i386/p/puppetdb/20251201_075747_c381d@/log.gz
    + ✅ puppetdb on plucky for ppc64el @ 01.12.25 10:15:09
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-pushkarnk-ppa-12-2025/plucky/ppc64el/p/puppetdb/20251201_101509_364c2@/log.gz
    + ✅ puppetdb on plucky for s390x @ 01.12.25 10:06:39
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-pushkarnk-ppa-12-2025/plucky/s390x/p/puppetdb/20251201_100639_2adb4@/log.gz

  - puppetdb/8.8.1-1~exp1ubuntu1~25.10
    + ✅ puppetdb on questing for amd64 @ 01.12.25 04:55:39
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-questing-pushkarnk-ppa-12-2025/questing/amd64/p/puppetdb/20251201_045539_77d5c@/log.gz
    + ✅ puppetdb on questing for arm64 @ 01.12.25 04:57:51
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-questing-pushkarnk-ppa-12-2025/questing/arm64/p/puppetdb/20251201_045751_37082@/log.gz
    + ✅ puppetdb on questing for armhf @ 01.12.25 05:00:00
      • Log: https://autopkgtest.ubuntu.com/results...

Read more...

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

debdiff for questing

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

debdiff for plucky

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

debdiff for noble

Changed in puppetdb (Ubuntu Plucky):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in puppetdb (Ubuntu Questing):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote (last edit ):

Updated SRU template.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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