Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-743

PE testing Report retrieval failure due to 57P01 database disconnection

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 2.2.0
    • Component/s: PE
    • Labels:
      None
    • Template:
    • Story Points:
      5
    • Sprint:
      20140730 to 20140813

      Description

      We've seen this failure a number of times. Digging into the puppetdb log, I can see that PuppetDB drops a connection for an unknown reason.

      A couple of recent examples:

      The JSON failure:

      [...]
      xaf08fumsthaz4h (redhat5-64-1) 12:01:01$  /etc/init.d/pe-httpd restart  
      Stopping pe-httpd: [  OK  ]
       
      Starting pe-httpd: pe-httpd.worker: Could not reliably determine the server's fully qualified domain name, using 10.18.15.56 for ServerName
      [  OK  ]
       
      xaf08fumsthaz4h (redhat5-64-1) executed in 8.41 seconds
      #<RuntimeError: PuppetAcceptance::DSL::Helpers.with_puppet_running_on failed (check backtrace for location) because: Host 'xaf08fumsthaz4h' exited with 1 running:
        /opt/puppet/bin/ruby -e '      require "net/http"
            require "json"
       
            puppetdb_url = URI("http://localhost:8080/v3/reports")
            puppetdb_url.query = URI.escape(%Q{query=["=","certname","xaf08fumsthaz4h"]})
            result = Net::HTTP.get(puppetdb_url)
            json = JSON.load(result)
            puts json.first["receive-time"]
      '  
      Last 10 lines of output were:
      	/opt/puppet/lib/ruby/1.9.1/json/common.rb:148:in `initialize': A JSON text must at least contain two octets! (JSON::ParserError)
      		from /opt/puppet/lib/ruby/1.9.1/json/common.rb:148:in `new'
      		from /opt/puppet/lib/ruby/1.9.1/json/common.rb:148:in `parse'
      		from /opt/puppet/lib/ruby/1.9.1/json/common.rb:309:in `load'
      		from -e:7:in `<main>'
      /usr/local/rvm/gems/ruby-1.9.3-p392/gems/beaker-1.13.1/lib/beaker/host.rb:201:in `exec'
      /usr/local/rvm/gems/ruby-1.9.3-p392/gems/beaker-1.13.1/lib/beaker/dsl/helpers.rb:86:in `on'
      ./tests/reports/submission.rb:18:in `query_last_report_time_on'
      ./tests/reports/submission.rb:31:in `block (3 levels) in run_test'
      ./tests/reports/submission.rb:28:in `each'
      ./tests/reports/submission.rb:28:in `block (2 levels) in run_test'
      [...]
      Warning: ./tests/reports/submission.rb errored in 88.29 seconds
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  ken Ken Barber
                  Reporter:
                  kurt.wall Kurt Wall
                  QA Contact:
                  Kurt Wall
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: