Uploaded image for project: 'Community Package Repository'
  1. Community Package Repository
  2. CPR-642

puppetserver ca does not work in pupperware

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Container
    • Labels:
      None
    • Template:

      Error rendering 'issue-templates-customfield'. Please contact your Jira administrators.

    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Expected behaviour: similar to ./bin/puppet, running docker-compose exec puppet puppetserver gives a working puppetserver command.

      Actual behaviour: puppetserver ca list times out. See terminal capture below:

      david@davids:~/git/pupperware$ git describe --all --long
      heads/master-0-g738fe63
      david@davids:~/git/pupperware$ DNS_ALT_NAMES=puppet docker-compose up -d
      Creating network "pupperware_default" with the default driver
      Pulling puppet (puppet/puppetserver:)...
      latest: Pulling from puppet/puppetserver
      3b37166ec614: Pull complete
      504facff238f: Pull complete
      ebbcacd28e10: Pull complete
      c7fb3351ecad: Pull complete
      2e3debadcbf7: Pull complete
      d7d24179a268: Pull complete
      f03a8135d888: Pull complete
      c9a5f9c98dce: Pull complete
      591cad8c6eb3: Pull complete
      4f1f1088fcfd: Pull complete
      bcc3f646bcd9: Pull complete
      cd4fe3134cde: Pull complete
      139cf65a3656: Pull complete
      26df0728411e: Pull complete
      7d2a9e2ad058: Pull complete
      f67099305bb9: Pull complete
      d1c5167307c1: Pull complete
      Digest: sha256:a700b4989521d080a927648722abc5b99385aee90ad6becab187a18c653d4f68
      Status: Downloaded newer image for puppet/puppetserver:latest
      Pulling postgres (puppet/puppetdb-postgres:)...
      latest: Pulling from puppet/puppetdb-postgres
      f2aa67a397c4: Pull complete
      8218dd41bf94: Pull complete
      e9b7fa2e6bd8: Pull complete
      7288a45ee17f: Pull complete
      0d0f8a67376c: Pull complete
      670a6cc35896: Pull complete
      813e44621756: Pull complete
      ea7ddfb4fbee: Pull complete
      503fa1ce930e: Pull complete
      307093b60f47: Pull complete
      4ee6d994baaa: Pull complete
      f31df64113d1: Pull complete
      19ad029bff2b: Pull complete
      1d71c1d2eb01: Pull complete
      2f36db9ce0e5: Pull complete
      Digest: sha256:2de33346ecb6b8257a109f884e9e04c4727d822c9faf3f7de50f4f1a02d133e7
      Status: Downloaded newer image for puppet/puppetdb-postgres:latest
      Pulling puppetdb (puppet/puppetdb:)...
      latest: Pulling from puppet/puppetdb
      18d680d61657: Pull complete
      0addb6fece63: Pull complete
      78e58219b215: Pull complete
      eb6959a66df2: Pull complete
      14499264e032: Pull complete
      d81de918db21: Pull complete
      1fb6b8bb03de: Pull complete
      a5bdcaaafc25: Pull complete
      51be9788aa85: Pull complete
      5a2cbfb59dd7: Pull complete
      8f818dca0a43: Pull complete
      b59592910976: Pull complete
      Digest: sha256:f475adde2b2f0a3a8a239296c0d51f53fd0c7482bf57f631427c517dc2bc5bb7
      Status: Downloaded newer image for puppet/puppetdb:latest
      Creating pupperware_postgres_1 ... done
      Creating pupperware_puppet_1   ... done
      Creating pupperware_puppetdb_1 ... done
      david@davids:~/git/pupperware$ docker ps
      CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS                   PORTS                                              NAMES
      dbd517bcee05        puppet/puppetdb            "dumb-init /docker-e…"   4 minutes ago       Up 4 minutes             0.0.0.0:32769->8080/tcp, 0.0.0.0:32768->8081/tcp   pupperware_puppetdb_1
      26f2db86bd43        puppet/puppetdb-postgres   "docker-entrypoint.s…"   5 minutes ago       Up 4 minutes             5432/tcp                                           pupperware_postgres_1
      81715bb7d760        puppet/puppetserver        "dumb-init /docker-e…"   5 minutes ago       Up 4 minutes (healthy)   0.0.0.0:8140->8140/tcp                             pupperware_puppet_1
      david@davids:~/git/pupperware$ ./bin/puppet --version
      6.0.2
      david@davids:~/git/pupperware$ ./bin/puppet cert list
      This command is no longer functional, please use `puppetserver ca` instead.
      [...]
      david@davids:~/git/pupperware$ docker-compose exec puppet puppetserver --version
      puppetserver version: 6.0.1
      david@davids:~/git/pupperware$ docker-compose exec puppet puppetserver ca list
      Traceback (most recent call last):
      	14: from /opt/puppetlabs/server/apps/puppetserver/cli/apps/ca:5:in `<main>'
      	13: from /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.1.1/lib/puppetserver/ca/cli.rb:89:in `run'
      	12: from /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.1.1/lib/puppetserver/ca/action/list.rb:60:in `run'
      	11: from /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.1.1/lib/puppetserver/ca/action/list.rb:117:in `get_all_certs'
      	10: from /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.1.1/lib/puppetserver/ca/certificate_authority.rb:215:in `get_certificate_statuses'
      	 9: from /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.1.1/lib/puppetserver/ca/certificate_authority.rb:253:in `get'
      	 8: from /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.1.1/lib/puppetserver/ca/utils/http_client.rb:41:in `with_connection'
      	 7: from /opt/puppetlabs/puppet/lib/ruby/2.5.0/net/http.rb:609:in `start'
      	 6: from /opt/puppetlabs/puppet/lib/ruby/2.5.0/net/http.rb:909:in `start'
      	 5: from /opt/puppetlabs/puppet/lib/ruby/2.5.0/net/http.rb:920:in `do_start'
      	 4: from /opt/puppetlabs/puppet/lib/ruby/2.5.0/net/http.rb:935:in `connect'
      	 3: from /opt/puppetlabs/puppet/lib/ruby/2.5.0/timeout.rb:103:in `timeout'
      	 2: from /opt/puppetlabs/puppet/lib/ruby/2.5.0/net/http.rb:937:in `block in connect'
      	 1: from /opt/puppetlabs/puppet/lib/ruby/2.5.0/net/http.rb:937:in `open'
      /opt/puppetlabs/puppet/lib/ruby/2.5.0/net/http.rb:937:in `initialize': execution expired (Net::OpenTimeout)
      david@davids:~/git/pupperware$ 
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              david.schmitt David Schmitt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support