Uploaded image for project: 'Infrastructure Automation Content'
  1. Infrastructure Automation Content
  2. IAC-1420

postgresql module failed on rhel7 on puppet agent 7 with invalid byte sequence in US-ASCII

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • postgresql
    • None
    • Hide

      AC Module should run clean on all platforms

      Show
      AC Module should run clean on all platforms
    • Needs Assessment

    Description

      Failures

      postgresql module failed on rhel7 on puppet agent 7 with invalid byte sequence in US-ASCII

      The failures started from the latest litmus release. 

      Failing testcase

      spec/acceptance/alternative_port_spec.rb

      Detail Error Infm

       

        1) postgresql::server on an alternative port
      67     On host `35.195.186.108'
      68     Failure/Error: idempotent_apply(pp)
      69     RuntimeError:
      70       apply manifest failed
      71       ` puppet apply manifest_20210209_2687_1pkkuw5.pp --trace --detailed-exitcodes`
      72       with exit code 6 (expected: [0, 2])
      73       ====== Start output of failed Puppet apply ======
      74       Error: /Stage[main]/Postgresql::Server::Reload/Exec[postgresql_reload]: Failed to call refresh: invalid byte sequence in US-ASCII
      75       Error: /Stage[main]/Postgresql::Server::Reload/Exec[postgresql_reload]: invalid byte sequence in US-ASCII
      76       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/exec.rb:541:in `split'
      77       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/exec.rb:541:in `check'
      78       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/exec.rb:618:in `block (2 levels) in check_all_attributes'
      79       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/exec.rb:617:in `each'
      80       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/exec.rb:617:in `block in check_all_attributes'
      81       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/exec.rb:612:in `each'
      82       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/exec.rb:612:in `check_all_attributes'
      83       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/exec.rb:644:in `refresh'
      84       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:149:in `process_callback'
      85       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:34:in `block in process_events'
      86       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:121:in `block in queued_events'
      87       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:120:in `each'
      88       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:120:in `queued_events'
      89       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:33:in `process_events'
      90       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:288:in `eval_resource'
      91       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:191:in `call'
      92       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:191:in `block (2 levels) in evaluate'
      93       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:546:in `block in thinmark'
      94       /opt/puppetlabs/puppet/lib/ruby/2.7.0/benchmark.rb:308:in `realtime'
      95       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:545:in `thinmark'
      96       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:191:in `block in evaluate'
      97       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:122:in `traverse'
      98       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:178:in `evaluate'
      99       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:238:in `block (2 levels) in apply'
      100       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:546:in `block in thinmark'
      101       /opt/puppetlabs/puppet/lib/ruby/2.7.0/benchmark.rb:308:in `realtime'
      102       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:545:in `thinmark'
      103       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:237:in `block in apply'
      104       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:161:in `with_destination'
      105       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:146:in `as_logging_destination'
      106       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:236:in `apply'
      107       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:193:in `block (2 levels) in apply_catalog'
      108       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:546:in `block in thinmark'
      109       /opt/puppetlabs/puppet/lib/ruby/2.7.0/benchmark.rb:308:in `realtime'
      110       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:545:in `thinmark'
      111       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:192:in `block in apply_catalog'
      112       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:233:in `block in benchmark'
      113       /opt/puppetlabs/puppet/lib/ruby/2.7.0/benchmark.rb:308:in `realtime'
      114       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:232:in `benchmark'
      115       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:191:in `apply_catalog'
      116       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:431:in `run_internal'
      117       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:246:in `run'
      118       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:342:in `apply_catalog'
      119       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:254:in `block in main'
      120       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in `override'
      121       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:306:in `override'
      122       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:208:in `main'
      123       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:178:in `run_command'
      124       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:421:in `block in run'
      125       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:735:in `exit_on_fail'
      126       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:421:in `run'
      127       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:143:in `run'
      128       /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:77:in `execute'
      129       /opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
      130       Notice: Compiled catalog for litmus-99163c6117ce18df.c.ia-content.internal in environment production in 0.43 seconds
      131       Notice: /Stage[main]/Postgresql::Server::Install/Package[postgresql-server]/ensure: created
      132       Notice: /Stage[main]/Postgresql::Server::Initdb/Exec[postgresql_initdb]/returns: executed successfully
      133       Notice: /Stage[main]/Postgresql::Server::Config/File[/var/lib/pgsql/data/postgresql.conf]/seluser: seluser changed 'unconfined_u' to 'system_u'
      134       Notice: /Stage[main]/Postgresql::Server::Config/Exec[/usr/sbin/semanage port -a -t postgresql_port_t -p tcp 55433]/returns: executed successfully
      135       Notice: /Stage[main]/Postgresql::Server::Config/File[systemd-conf-dir]/ensure: created
      136       Notice: /Stage[main]/Postgresql::Server::Config/File[systemd-override]/ensure: defined content as '{sha256}eaf069b223c16d339ab8a4e549b13d383628027a81c3dd9a936b1fdd0bc2a5cd'
      137       Notice: /Stage[main]/Postgresql::Server::Config/Exec[restart-systemd]: Triggered 'refresh' from 2 events
      138       Notice: /Stage[main]/Postgresql::Server::Config/Concat[/var/lib/pgsql/data/pg_hba.conf]/File[/var/lib/pgsql/data/pg_hba.conf]/content: content changed '{sha256}17e97cbde0053e26048948effe1ca803e2ee2e02f32b0284978c5606a49e6299' to '{sha256}ee9f1ffccab5648ee678baed552e06cfd523fceabe0f1fafef7d2170f5d97d91'
      139       Notice: /Stage[main]/Postgresql::Server::Config/Concat[/var/lib/pgsql/data/pg_hba.conf]/File[/var/lib/pgsql/data/pg_hba.conf]/mode: mode changed '0600' to '0640'
      140       Notice: /Stage[main]/Postgresql::Server::Config/Concat[/var/lib/pgsql/data/pg_hba.conf]/File[/var/lib/pgsql/data/pg_hba.conf]/seluser: seluser changed 'unconfined_u' to 'system_u'
      141       Notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Config_entry[port]/Postgresql_conf[port]/ensure: created
      142       Notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Config_entry[data_directory]/Postgresql_conf[data_directory]/ensure: created
      143       Notice: /Stage[main]/Postgresql::Server::Config/Concat[/var/lib/pgsql/data/pg_ident.conf]/File[/var/lib/pgsql/data/pg_ident.conf]/content: content changed '{sha256}297f466913f31ff2dcfceea5ccb1a03027db54d9a95270dfd8044cb0c5b016a8' to '{sha256}c684aad655ee1c2161c2686f02c5ae44848613c31aa227281abb6bc5e10b9eac'
      144       Notice: /Stage[main]/Postgresql::Server::Config/Concat[/var/lib/pgsql/data/pg_ident.conf]/File[/var/lib/pgsql/data/pg_ident.conf]/mode: mode changed '0600' to '0640'
      145       Notice: /Stage[main]/Postgresql::Server::Config/Concat[/var/lib/pgsql/data/pg_ident.conf]/File[/var/lib/pgsql/data/pg_ident.conf]/seluser: seluser changed 'unconfined_u' to 'system_u'
      146       Notice: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::begin]: Triggered 'refresh' from 1 event
      147       Notice: /Stage[main]/Postgresql::Server::Service/Service[postgresqld]/ensure: ensure changed 'stopped' to 'running'
      148       Notice: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::end]: Triggered 'refresh' from 1 event
      

       

       

      Failures:

             Error: /Stage[main]/Postgresql::Server::Reload/Exec[postgresql_reload]: Failed to call refresh: invalid byte sequence in US-ASCII
      341       Error: /Stage[main]/Postgresql::Server::Reload/Exec[postgresql_reload]: invalid byte sequence in US-ASCII
      

      added a failure tracker: https://ui.honeycomb.io/puppet-modules/datasets/litmus-tests/result/zdUMYcEmBe6

      Attachments

        Activity

          People

            david.swan David Swan
            sheena Sheena Tharakanparampil
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support