Jira (PDB-4940) Fix pdb 7 puppet-main server-main integration test failure

24 views
Skip to first unread message

Austin Blatt (Jira)

unread,
Oct 21, 2020, 8:41:04 PM10/21/20
to puppe...@googlegroups.com
Austin Blatt created an issue
 
PuppetDB / CI Blocker PDB-4940
Fix pdb 7 puppet-main server-main integration test failure
Issue Type: CI Blocker CI Blocker
Assignee: Unassigned
Created: 2020/10/21 5:40 PM
Priority: Normal Normal
Reporter: Austin Blatt

This is blocking the merge-up of a solution to failing clojure tests in travis and github. which is in turn blocking PDB-4939.

lein test :only puppetlabs.puppetdb.integration.terminus-failover/db-fallback
ERROR in (db-fallback) (fixtures.clj:243)
Uncaught exception, not in assertion.
expected: nil
  actual: clojure.lang.ExceptionInfo: Error running bundle exec puppet agent -t --confdir target/agent-conf/default-agent --server localhost --masterport 33769 --color false --certname default-agent --trace
{:kind :puppetlabs.puppetdb.integration.fixtures/bundle-exec-failure, :args ("puppet" "agent" "-t" "--confdir" "target/agent-conf/default-agent" "--server" "localhost" "--masterport" "33769" "--color" "false" "--certname" "default-agent" "--trace"), :result {:exit 1, :out "Info: Retrieving pluginfacts\nInfo: Retrieving plugin\n", :err "Warning: Unable to fetch my node definition, but the agent run will continue:\nWarning: Error 500 on SERVER: Server Error: Could not retrieve facts for default-agent: Error executing http request\nError: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Error executing http request\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/indirector/catalog/rest.rb:35:in `rescue in find'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/indirector/catalog/rest.rb:7:in `find'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/indirector/indirection.rb:223:in `find'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/configurer.rb:541:in `block in retrieve_new_catalog'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/util.rb:546:in `block in thinmark'\n/home/travis/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/util.rb:545:in `thinmark'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/configurer.rb:540:in `retrieve_new_catalog'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/configurer.rb:82:in `retrieve_catalog'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/configurer.rb:174:in `prepare_and_retrieve_catalog'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/configurer.rb:361:in `run_internal'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/configurer.rb:246:in `run'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/agent.rb:60:in `block (5 levels) in run'\n/home/travis/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/timeout.rb:93:in `block in timeout'\n/home/travis/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/timeout.rb:103:in `timeout'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/agent.rb:59:in `block (4 levels) in run'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/agent/locker.rb:21:in `lock'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/agent.rb:53:in `block (3 levels) in run'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/agent.rb:136:in `with_client'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/agent.rb:50:in `block (2 levels) in run'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/agent.rb:101:in `run_in_fork'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/agent.rb:49:in `block in run'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/application.rb:179:in `controlled_run'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/agent.rb:47:in `run'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/application/agent.rb:425:in `onetime'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/application/agent.rb:385:in `block in run_command'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/context.rb:62:in `override'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet.rb:306:in `override'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/application/agent.rb:381:in `run_command'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/application.rb:382:in `block in run'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/util.rb:735:in `exit_on_fail'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/application.rb:382:in `run'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/util/command_line.rb:143:in `run'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/lib/puppet/util/command_line.rb:77:in `execute'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-0296ab36fab8/bin/puppet:5:in `<top (required)>'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bin/puppet:23:in `load'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bin/puppet:23:in `<main>'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bin/ruby_executable_hooks:24:in `eval'\n/home/travis/build/puppetlabs/puppetdb/vendor/bundle/ruby/2.5.0/bin/ruby_executable_hooks:24:in `<main>'\nWarning: Not using cache on failed catalog\nError: Could not retrieve catalog; skipping run\n"}}
 at puppetlabs.puppetdb.integration.fixtures$bundle_exec.invokeStatic (fixtures.clj:243)
    puppetlabs.puppetdb.integration.fixtures$bundle_exec.doInvoke (fixtures.clj:235)
    clojure.lang.RestFn.applyTo (RestFn.java:139)
    clojure.core$apply.invokeStatic (core.clj:673)
    clojure.core$apply.doInvoke (core.clj:660)
    clojure.lang.RestFn.invoke (RestFn.java:2522)
    puppetlabs.puppetdb.integration.fixtures$run_puppet$fn__100061.invoke (fixtures.clj:270)
    puppetlabs.puppetdb.integration.fixtures$call_with_synchronized_command_processing.invokeStatic (fixtures.clj:130)
    puppetlabs.puppetdb.integration.fixtures$call_with_synchronized_command_processing.invoke (fixtures.clj:129)
    puppetlabs.puppetdb.integration.fixtures$run_puppet.invokeStatic (fixtures.clj:269)
    puppetlabs.puppetdb.integration.fixtures$run_puppet.invoke (fixtures.clj:248)
    puppetlabs.puppetdb.integration.fixtures$run_puppet.invokeStatic (fixtures.clj:250)
    puppetlabs.puppetdb.integration.fixtures$run_puppet.invoke (fixtures.clj:248)
    puppetlabs.puppetdb.integration.terminus_failover$fn__100672$fn__100681.invoke (terminus_failover.clj:21)
    puppetlabs.puppetdb.integration.terminus_failover$fn__100672.invokeStatic (terminus_failover.clj:19)
    puppetlabs.puppetdb.integration.terminus_failover/fn (terminus_failover.clj:7)
    clojure.test$test_var$fn__9737.invoke (test.clj:717)
    clojure.test$test_var.invokeStatic (test.clj:717)
    clojure.test$test_var.invoke (test.clj:708)
    clojure.test$test_vars$fn__9763$fn__9768.invoke (test.clj:735)
    clojure.test$default_fixture.invokeStatic (test.clj:687)
    clojure.test$default_fixture.invoke (test.clj:683)
    clojure.test$test_vars$fn__9763.invoke (test.clj:735)
    clojure.test$default_fixture.invokeStatic (test.clj:687)
    clojure.test$default_fixture.invoke (test.clj:683)
    clojure.test$test_vars.invokeStatic (test.clj:731)
    clojure.test$test_all_vars.invokeStatic (2020-10-21 23:18:39,740 WARN  [async-dispatch-1] [o.e.j.s.AbstractConnector] Acceptors should be <= availableProcessors: ServerConnector@630ed324{HTTP/1.1, (http/1.1)}{0.0.0.0:0}

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Austin Blatt (Jira)

unread,
Oct 21, 2020, 8:42:03 PM10/21/20
to puppe...@googlegroups.com

Austin Blatt (Jira)

unread,
Oct 26, 2020, 6:36:03 PM10/26/20
to puppe...@googlegroups.com

Austin Blatt (Jira)

unread,
Oct 28, 2020, 5:19:02 PM10/28/20
to puppe...@googlegroups.com
Austin Blatt commented on CI Blocker PDB-4940
 
Re: Fix pdb 7 puppet-main server-main integration test failure

Puppetserver was throwing an error that was not a subclass of Puppet::HTTP::HTTPError, so the puppetdb terminus' error handling did not catch it. https://github.com/puppetlabs/puppetserver/pull/2441 will fix the issue

Austin Blatt (Jira)

unread,
Oct 28, 2020, 5:19:03 PM10/28/20
to puppe...@googlegroups.com

Austin Blatt (Jira)

unread,
Oct 28, 2020, 5:20:02 PM10/28/20
to puppe...@googlegroups.com

Claudia Petty (Jira)

unread,
Jun 21, 2023, 10:54:01 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
Change By: Claudia Petty
Labels: ci-blocker
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages