voxpupuli / puppet-proxysql

Puppet module to configure ProxySQL
Apache License 2.0
15 stars 56 forks source link

ProxySQL errors after 2.0.9 release #133

Closed baurmatt closed 4 years ago

baurmatt commented 4 years ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

Run acceptance tests

What are you seeing

img

What behaviour did you expect instead

Output log

$ PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=ubuntu1804-64 BEAKER_HYPERVISOR=docker CHECK=beaker bundle exec rake beaker
TEST_TIERS env variable not defined. Defaulting to run all tests.
/Users/mbaur/.rvm/rubies/ruby-2.6.3/bin/ruby -I/Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/rspec-core-3.9.1/lib:/Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/rspec-support-3.9.2/lib /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/rspec-core-3.9.1/exe/rspec spec/acceptance
/Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-rspec-6.2.4/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
/Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/specinfra-2.82.10/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here

Hosts file 'ubuntu1804-64' does not exist.
Trying as beaker-hostgenerator input.

Hypervisor for ubuntu1804-64-1 is docker
Beaker::Hypervisor, found some docker boxes to create
get
/v1.16/version
{}

Provisioning docker
provisioning ubuntu1804-64-1
Creating image
Dockerfile is         FROM ubuntu:18.04
        ENV container docker
          RUN apt-get update
          RUN apt-get install -y openssh-server openssh-client curl ntpdate lsb-release
        RUN mkdir -p /var/run/sshd
        RUN echo root:root | chpasswd
        RUN sed -ri 's/^#?PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config
        RUN sed -ri 's/^#?PasswordAuthentication .*/PasswordAuthentication yes/' /etc/ssh/sshd_config
        RUN sed -ri 's/^#?UseDNS .*/UseDNS no/' /etc/ssh/sshd_config
RUN cp /bin/true /sbin/agetty
RUN apt-get install -y net-tools wget locales apt-transport-https iproute2 gnupg
RUN locale-gen en_US.UTF-8
RUN echo LANG=en_US.UTF-8 > /etc/default/locale
        EXPOSE 22
        CMD ["/sbin/init"]
Docker build buildargs: {}
post
/v1.16/build
{:rm=>true, :buildargs=>"{}"}
Dockerfile0000640000000000000000000000133713624712027013314 0ustar00wheelwheel00000000000000        FROM ubuntu:18.04
        ENV container docker
          RUN apt-get update
          RUN apt-get install -y openssh-server openssh-client curl ntpdate lsb-release
        RUN mkdir -p /var/run/sshd
        RUN echo root:root | chpasswd
        RUN sed -ri 's/^#?PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config
        RUN sed -ri 's/^#?PasswordAuthentication .*/PasswordAuthentication yes/' /etc/ssh/sshd_config
        RUN sed -ri 's/^#?UseDNS .*/UseDNS no/' /etc/ssh/sshd_config
RUN cp /bin/true /sbin/agetty
RUN apt-get install -y net-tools wget locales apt-transport-https iproute2 gnupg
RUN locale-gen en_US.UTF-8
RUN echo LANG=en_US.UTF-8 > /etc/default/locale
        EXPOSE 22
        CMD ["/sbin/init"]

Creating container from image 7116c6f73d2d
post
/v1.16/containers/create
{}
{"Image":"7116c6f73d2d","Hostname":"ubuntu1804-64-1","HostConfig":{"PortBindings":{"22/tcp":[{"HostPort":"4582","HostIp":"0.0.0.0"}]},"PublishAllPorts":true,"Privileged":true,"RestartPolicy":{"Name":"always"}}}
Starting container 2a895a52f14286b602a8ca833b5bee3c90c9b3fb1d07a1760a472cb2f9fe2f2c
post
/v1.16/containers/2a895a52f14286b602a8ca833b5bee3c90c9b3fb1d07a1760a472cb2f9fe2f2c/start
{}
{}
get
/v1.16/containers/2a895a52f14286b602a8ca833b5bee3c90c9b3fb1d07a1760a472cb2f9fe2f2c/json
{}

Using docker server at 0.0.0.0
get
/v1.16/containers/2a895a52f14286b602a8ca833b5bee3c90c9b3fb1d07a1760a472cb2f9fe2f2c/json
{}

node available as  ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@0.0.0.0 -p 4582
get
/v1.16/containers/2a895a52f14286b602a8ca833b5bee3c90c9b3fb1d07a1760a472cb2f9fe2f2c/json
{}

ubuntu1804-64-1 10:15:03$ cat /etc/resolv.conf
  Attempting ssh connection to 0.0.0.0, user: root, opts: {:password=>"root", :port=>"4582", :forward_agent=>false, :auth_methods=>["password", "publickey", "hostbased", "keyboard-interactive"]}
  Warning: Try 1 -- Host 0.0.0.0 unreachable: Net::SSH::Disconnect - connection closed by remote host
  Warning: Trying again in 3 seconds
  Attempting ssh connection to 0.0.0.0, user: root, opts: {:password=>"root", :port=>"4582", :forward_agent=>false, :auth_methods=>["password", "publickey", "hostbased", "keyboard-interactive"], :logger=>#<Logger:0x00007fd073d36d78 @level=4, @progname=nil, @default_formatter=#<Logger::Formatter:0x00007fd073d36d28 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x00007fd073d36cd8 @shift_period_suffix=nil, @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @mon_mutex=#<Thread::Mutex:0x00007fd073d36c60>, @mon_mutex_owner_object_id=70266636580460, @mon_owner=nil, @mon_count=0>>, :password_prompt=>#<Net::SSH::Prompt:0x00007fd073d36c38>, :user=>"root"}
  # This file is included on the metadata iso
  nameserver 192.168.65.1

ubuntu1804-64-1 executed in 3.25 seconds

ubuntu1804-64-1 10:15:07$ echo '127.0.0.1   localhost localhost.localdomain
172.17.0.3  ubuntu1804-64-1. ubuntu1804-64-1
' >> /etc/hosts

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:07$ dpkg -s curl
  Package: curl
  Status: install ok installed
  Priority: optional
  Section: web
  Installed-Size: 387
  Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
  Architecture: amd64
  Multi-Arch: foreign
  Version: 7.58.0-2ubuntu3.8
  Depends: libc6 (>= 2.17), libcurl4 (= 7.58.0-2ubuntu3.8), zlib1g (>= 1:1.1.4)
  Description: command line tool for transferring data with URL syntax
   curl is a command line tool for transferring data with URL syntax, supporting
   DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3,
   POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP.
   .
   curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form
   based upload, proxies, cookies, user+password authentication (Basic, Digest,
   NTLM, Negotiate, kerberos...), file transfer resume, proxy tunneling and a
   busload of other useful tricks.
  Homepage: http://curl.haxx.se
  Original-Maintainer: Alessandro Ghedini <ghedo@debian.org>

ubuntu1804-64-1 executed in 0.04 seconds

ubuntu1804-64-1 10:15:07$ dpkg -s ntpdate
  Package: ntpdate
  Status: install ok installed
  Priority: optional
  Section: net
  Installed-Size: 179
  Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
  Architecture: amd64
  Source: ntp
  Version: 1:4.2.8p10+dfsg-5ubuntu7.1
  Depends: netbase, libc6 (>= 2.17), libssl1.1 (>= 1.1.0)
  Pre-Depends: dpkg (>= 1.15.7.2)
  Breaks: dhcp3-client (<< 4.1.0-1)
  Conffiles:
   /etc/default/ntpdate 39415ec9778476795fdbb832adc43b9b
   /etc/dhcp/dhclient-exit-hooks.d/ntpdate cb47fd9d3e21a204fb3ba4ca3fc8ab46
   /etc/logcheck/ignore.d.server/ntpdate 68d4df7cceb0e97bde87126c3a56b219
   /etc/network/if-up.d/ntpdate ed06d5e57fe9ae0b17fe1f9cea1c0d57
  Description: client for setting system time from NTP servers
   NTP, the Network Time Protocol, is used to keep computer clocks
   accurate by synchronizing them over the Internet or a local network,
   or by following an accurate hardware receiver that interprets GPS,
   DCF-77, NIST or similar time signals.
   .
   ntpdate is a simple NTP client that sets a system's clock to match
   the time obtained by communicating with one or more NTP servers.  It
   is not sufficient, however, for maintaining an accurate clock in the
   long run.  ntpdate by itself is useful for occasionally setting the
   time on machines that do not have full-time network access, such as
   laptops.
   .
   If the full NTP daemon from the package "ntp" is installed, then
   ntpdate is not necessary.
  Homepage: http://support.ntp.org/
  Original-Maintainer: Debian NTP Team <pkg-ntp-maintainers@lists.alioth.debian.org>

ubuntu1804-64-1 executed in 0.03 seconds
setting local environment on ubuntu1804-64-1

ubuntu1804-64-1 10:15:07$ mktemp -dt .XXXXXX
  /tmp/.QyvIKN

ubuntu1804-64-1 executed in 0.02 seconds

ubuntu1804-64-1 10:15:07$ echo 'PermitUserEnvironment yes' | cat - /etc/ssh/sshd_config > /tmp/.QyvIKN/sshd_config.permit

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:07$ mv /tmp/.QyvIKN/sshd_config.permit /etc/ssh/sshd_config

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:07$ service ssh restart

ubuntu1804-64-1 executed in 0.07 seconds

ubuntu1804-64-1 10:15:07$ mkdir -p ~/.ssh

ubuntu1804-64-1 executed in 0.02 seconds

ubuntu1804-64-1 10:15:07$ chmod 0600 ~/.ssh

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:07$ touch ~/.ssh/environment

ubuntu1804-64-1 executed in 0.02 seconds

ubuntu1804-64-1 10:15:07$ grep ^PATH=.*\$PATH ~/.ssh/environment

ubuntu1804-64-1 executed in 0.03 seconds
Exited: 1

ubuntu1804-64-1 10:15:07$ grep ^PATH= ~/.ssh/environment

ubuntu1804-64-1 executed in 0.02 seconds
Exited: 1

ubuntu1804-64-1 10:15:07$ echo "PATH=$PATH" >> ~/.ssh/environment

ubuntu1804-64-1 executed in 0.02 seconds
will not mirror environment to /etc/profile.d on non-sles platform host
ssh connection to ubuntu1804-64-1 has been terminated

ubuntu1804-64-1 10:15:07$ cat ~/.ssh/environment
  Attempting ssh connection to 0.0.0.0, user: root, opts: {:password=>"root", :port=>"4582", :forward_agent=>false, :auth_methods=>["password", "publickey", "hostbased", "keyboard-interactive"], :logger=>#<Logger:0x00007fd073d36d78 @level=4, @progname=nil, @default_formatter=#<Logger::Formatter:0x00007fd073d36d28 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x00007fd073d36cd8 @shift_period_suffix=nil, @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @mon_mutex=#<Thread::Mutex:0x00007fd073d36c60>, @mon_mutex_owner_object_id=70266636580460, @mon_owner=nil, @mon_count=0>>, :password_prompt=>#<Net::SSH::Prompt:0x00007fd073d36c38>, :user=>"root"}
  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

ubuntu1804-64-1 executed in 0.18 seconds
Disabling updates.puppetlabs.com by modifying hosts file to resolve updates to 127.0.0.1 on ubuntu1804-64-1

ubuntu1804-64-1 10:15:07$ echo '127.0.0.1   updates.puppetlabs.com
' >> /etc/hosts

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:07$ wget -O /tmp/puppet.deb http://apt.puppet.com/puppet6-release-bionic.deb
  --2020-02-24 09:15:07--  http://apt.puppet.com/puppet6-release-bionic.deb
  Resolving apt.puppet.com (apt.puppet.com)...   143.204.202.113, 143.204.202.46, 143.204.202.17, ...
  Connecting to apt.puppet.com (apt.puppet.com)|143.204.202.113|:80...   connected.
  HTTP request sent, awaiting response...   200 OK
  Length:   11736   (11K)   [application/x-debian-package]
  Saving to: ‘/tmp/puppet.deb’

       0K     .  .  .  .  .  .  .  .  .  .     .                                                            100% 3.57M=0.003s

  2020-02-24 09:15:07 (3.57 MB/s) - ‘/tmp/puppet.deb’ saved [11736/11736]

ubuntu1804-64-1 executed in 0.20 seconds

ubuntu1804-64-1 10:15:07$ dpkg -i --force-all /tmp/puppet.deb
  Selecting previously unselected package puppet6-release.
  (Reading database ... 11168 files and directories currently installed.)
  Preparing to unpack /tmp/puppet.deb ...
  Unpacking puppet6-release (6.0.0-5bionic) ...
  Setting up puppet6-release (6.0.0-5bionic) ...

  Configuration file '/etc/apt/sources.list.d/puppet6.list', does not exist on system.
  Installing new config file as you requested.

  Configuration file '/etc/apt/trusted.gpg.d/puppet6-keyring.gpg', does not exist on system.
  Installing new config file as you requested.

ubuntu1804-64-1 executed in 0.21 seconds

ubuntu1804-64-1 10:15:08$ apt-get update
  Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
  Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
  Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
  Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
  Get:5 http://apt.puppetlabs.com bionic InRelease [85.3 kB]
  Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [11.4 kB]
  Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1,127 kB]
  Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [44.7 kB]
  Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,350 kB]
  Get:10 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [4,247 B]
  Get:11 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [7,348 B]
  Get:12 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [823 kB]
  Get:13 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [835 kB]
  Get:14 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [31.0 kB]
  Get:15 http://apt.puppetlabs.com bionic/puppet6 amd64 Packages [41.0 kB]
  Get:16 http://apt.puppetlabs.com bionic/puppet6 all Packages [17.0 kB]
  Fetched 4,630 kB in 1s (3,517 kB/s)
  Reading package lists...

ubuntu1804-64-1 executed in 2.54 seconds

ubuntu1804-64-1 10:15:10$ echo "/opt/puppetlabs/bin"
  /opt/puppetlabs/bin

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:10$ echo "/opt/puppetlabs/puppet/bin"
  /opt/puppetlabs/puppet/bin

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:10$ grep ^PATH=.*\/opt\/puppetlabs\/bin:\/opt\/puppetlabs\/puppet\/bin ~/.ssh/environment

ubuntu1804-64-1 executed in 0.01 seconds
Exited: 1

ubuntu1804-64-1 10:15:10$ grep ^PATH= ~/.ssh/environment
  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:10$ sed -i -e "s/^PATH=/PATH=\/opt\/puppetlabs\/bin:\/opt\/puppetlabs\/puppet\/bin:/" ~/.ssh/environment

ubuntu1804-64-1 executed in 0.01 seconds
will not mirror environment to /etc/profile.d on non-sles platform host

ubuntu1804-64-1 10:15:10$ grep ^PATH=.*PATH ~/.ssh/environment

ubuntu1804-64-1 executed in 0.01 seconds
Exited: 1

ubuntu1804-64-1 10:15:10$ grep ^PATH= ~/.ssh/environment
  PATH=/opt/puppetlabs/bin:/opt/puppetlabs/puppet/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:10$ sed -i -e "s/^PATH=/PATH=PATH:/" ~/.ssh/environment

ubuntu1804-64-1 executed in 0.01 seconds
will not mirror environment to /etc/profile.d on non-sles platform host

ubuntu1804-64-1 10:15:10$ apt-get update
  Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
  Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
  Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  Hit:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  Hit:5 http://apt.puppetlabs.com bionic InRelease
  Reading package lists...

ubuntu1804-64-1 executed in 1.81 seconds

ubuntu1804-64-1 10:15:12$ apt-get install --force-yes  -y puppet-agent
  Reading package lists...
  Building dependency tree...
  Reading state information...
  The following NEW packages will be installed:
    puppet-agent
  0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
  Need to get 22.7 MB of archives.
  After this operation, 133 MB of additional disk space will be used.
  Get:1 http://apt.puppetlabs.com bionic/puppet6 amd64 puppet-agent amd64 6.13.0-1bionic [22.7 MB]
  debconf: delaying package configuration, since apt-utils is not installed
  Fetched 22.7 MB in 1s (22.2 MB/s)
  Selecting previously unselected package puppet-agent.
  (Reading database ...   (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%  (Reading database ... 55%  (Reading database ... 60%(Reading database ... 65%  (Reading database ... 70%  (Reading database ... 75%  (Reading database ... 80%  (Reading database ... 85%  (Reading database ... 90%  (Reading database ... 95%  (Reading database ... 100%(Reading database ... 11173 files and directories currently installed.)
  Preparing to unpack .../puppet-agent_6.13.0-1bionic_amd64.deb ...
  Unpacking puppet-agent (6.13.0-1bionic) ...
  Setting up puppet-agent (6.13.0-1bionic) ...
  Created symlink /etc/systemd/system/multi-user.target.wants/puppet.service → /lib/systemd/system/puppet.service.
  Created symlink /etc/systemd/system/multi-user.target.wants/pxp-agent.service → /lib/systemd/system/pxp-agent.service.
  Removed /etc/systemd/system/multi-user.target.wants/pxp-agent.service.
  Processing triggers for libc-bin (2.27-3ubuntu1) ...
  W  :   --force-yes is deprecated, use one of the options starting with --allow instead.

ubuntu1804-64-1 executed in 8.03 seconds

ubuntu1804-64-1 10:15:20$ echo "/opt/puppetlabs/bin"
  /opt/puppetlabs/bin

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:20$ echo "/opt/puppetlabs/puppet/bin"
  /opt/puppetlabs/puppet/bin

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:20$ grep ^PATH=.*\/opt\/puppetlabs\/bin:\/opt\/puppetlabs\/puppet\/bin ~/.ssh/environment
  PATH=PATH:/opt/puppetlabs/bin:/opt/puppetlabs/puppet/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:20$ grep ^PATH=.*PATH ~/.ssh/environment
  PATH=PATH:/opt/puppetlabs/bin:/opt/puppetlabs/puppet/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:20$ facter --json "os.release.major"
  {
    "os.release.major": "18.04"
  }

ubuntu1804-64-1 executed in 0.26 seconds

ubuntu1804-64-1 10:15:20$ facter --json "proxysql_version"
  {
    "proxysql_version": ""
  }

ubuntu1804-64-1 executed in 0.18 seconds

ubuntu1804-64-1 10:15:21$ echo /etc/puppetlabs/code/modules
  /etc/puppetlabs/code/modules

ubuntu1804-64-1 executed in 0.02 seconds
Using scp to transfer /Users/mbaur/Sources/puppet-proxysql to /etc/puppetlabs/code/modules/proxysql
localhost $ scp /Users/mbaur/Sources/puppet-proxysql ubuntu1804-64-1:/etc/puppetlabs/code/modules {:ignore => [".bundle", ".git", ".idea", ".vagrant", ".vendor", "vendor", "acceptance", "bundle", "spec", "tests", "log", ".svn", "junit", "pkg", "example", "tmp", ".", ".."]}
going to ignore (?-mix:((\/|\A)\.bundle(\/|\z))|((\/|\A)\.git(\/|\z))|((\/|\A)\.idea(\/|\z))|((\/|\A)\.vagrant(\/|\z))|((\/|\A)\.vendor(\/|\z))|((\/|\A)vendor(\/|\z))|((\/|\A)acceptance(\/|\z))|((\/|\A)bundle(\/|\z))|((\/|\A)spec(\/|\z))|((\/|\A)tests(\/|\z))|((\/|\A)log(\/|\z))|((\/|\A)\.svn(\/|\z))|((\/|\A)junit(\/|\z))|((\/|\A)pkg(\/|\z))|((\/|\A)example(\/|\z))|((\/|\A)tmp(\/|\z))|((\/|\A)\.(\/|\z))|((\/|\A)\.\.(\/|\z)))

ubuntu1804-64-1 10:15:22$ rm -rf /etc/puppetlabs/code/modules/proxysql

ubuntu1804-64-1 executed in 0.03 seconds

ubuntu1804-64-1 10:15:22$ mv /etc/puppetlabs/code/modules/puppet-proxysql /etc/puppetlabs/code/modules/proxysql

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:15:26$ puppet module install puppetlabs-mysql -v 10.3.0
  Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ...
  Notice: Downloading from https://forgeapi.puppet.com ...
  Notice: Installing -- do not interrupt ...
  /etc/puppetlabs/code/environments/production/modules
  └─┬ puppetlabs-mysql (v10.3.0)
    ├── puppetlabs-stdlib (v6.2.0)
    └── puppetlabs-translate (v2.1.0)

ubuntu1804-64-1 executed in 7.29 seconds

ubuntu1804-64-1 10:15:34$ puppet module install puppetlabs-apt -v 7.3.0
  Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ...
  Notice: Downloading from https://forgeapi.puppet.com ...
  Notice: Installing -- do not interrupt ...
  /etc/puppetlabs/code/environments/production/modules
  └─┬ puppetlabs-apt (v7.3.0)
    ├── puppetlabs-stdlib (v6.2.0)
    └── puppetlabs-translate (v2.1.0)

ubuntu1804-64-1 executed in 5.32 seconds

ubuntu1804-64-1 10:15:39$ puppet module install puppetlabs-stdlib -v 6.2.0
  Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ...
  Notice: Module puppetlabs-stdlib 6.2.0 is already installed.

ubuntu1804-64-1 executed in 1.02 seconds

ubuntu1804-64-1 10:15:40$ puppet module install puppet-extlib -v 4.2.0
  Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ...
  Notice: Downloading from https://forgeapi.puppet.com ...
  Notice: Installing -- do not interrupt ...
  /etc/puppetlabs/code/environments/production/modules
  └─┬ puppet-extlib (v4.2.0)
    └── puppetlabs-stdlib (v6.2.0)

ubuntu1804-64-1 executed in 4.05 seconds

ubuntu1804-64-1 10:15:44$ puppet module install camptocamp-systemd -v 2.8.0
  Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ...
  Notice: Downloading from https://forgeapi.puppet.com ...
  Notice: Installing -- do not interrupt ...
  /etc/puppetlabs/code/environments/production/modules
  └─┬ camptocamp-systemd (v2.8.0)
    ├─┬ puppetlabs-inifile (v4.1.0)
    │ └── puppetlabs-translate (v2.1.0)
    └── puppetlabs-stdlib (v6.2.0)

ubuntu1804-64-1 executed in 5.53 seconds

ubuntu1804-64-1 10:15:50$ puppet module install puppet/selinux
  Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ...
  Notice: Downloading from https://forgeapi.puppet.com ...
  Notice: Installing -- do not interrupt ...
  /etc/puppetlabs/code/environments/production/modules
  └─┬ puppet-selinux (v3.1.0)
    └── puppetlabs-stdlib (v6.2.0)

ubuntu1804-64-1 executed in 4.60 seconds

proxysql class
  Upgrading to version 2.0

ubuntu1804-64-1 10:15:54$ mktemp -t apply_manifest.pp.XXXXXX
  /tmp/apply_manifest.pp.NIpLPR

ubuntu1804-64-1 executed in 0.01 seconds
localhost $ scp /var/folders/rv/6kdq37x167bblm3k3n2tcz940000gn/T/beaker20200224-67522-1hvkp75 ubuntu1804-64-1:/tmp/apply_manifest.pp.NIpLPR {:ignore => }

ubuntu1804-64-1 10:15:54$ puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.NIpLPR
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Notice: Compiled catalog for ubuntu1804-64-1 in environment production in 0.51 seconds
  Info: Applying configuration version '1582535765'
  Notice: /Stage[main]/Proxysql::Prerequisites/Group[proxysql]/ensure: created
  Notice: /Stage[main]/Proxysql::Prerequisites/User[proxysql]/ensure: created
  Notice: /Stage[main]/Mysql::Client::Install/Package[mysql_client]/ensure: created
  Notice: /Stage[main]/Apt/File[preferences]/ensure: created
  Info: /Stage[main]/Apt/File[preferences]: Scheduling refresh of Class[Apt::Update]
  Notice: /Stage[main]/Apt/Apt::Setting[conf-update-stamp]/File[/etc/apt/apt.conf.d/15update-stamp]/ensure: defined content as '{md5}0962d70c4ec78bbfa6f3544ae0c41974'
  Info: /Stage[main]/Apt/Apt::Setting[conf-update-stamp]/File[/etc/apt/apt.conf.d/15update-stamp]: Scheduling refresh of Class[Apt::Update]
  Notice: /Stage[main]/Proxysql::Repo/Apt::Source[proxysql_repo]/Apt::Key[Add key: 1448BF693CA600C799EB935804A562FB79953B49 from Apt::Source proxysql_repo]/Apt_key[Add key: 1448BF693CA600C799EB935804A562FB79953B49 from Apt::Source proxysql_repo]/ensure: created
  Notice: /Stage[main]/Proxysql::Repo/Apt::Source[proxysql_repo]/Apt::Setting[list-proxysql_repo]/File[/etc/apt/sources.list.d/proxysql_repo.list]/ensure: defined content as '{md5}d78ce01e2392a51db2f99f9e0cdcb3e6'
  Info: /Stage[main]/Proxysql::Repo/Apt::Source[proxysql_repo]/Apt::Setting[list-proxysql_repo]/File[/etc/apt/sources.list.d/proxysql_repo.list]: Scheduling refresh of Class[Apt::Update]
  Info: Class[Apt::Update]: Scheduling refresh of Exec[apt_update]
  Notice: /Stage[main]/Apt::Update/Exec[apt_update]: Triggered 'refresh' from 1 event
  Notice: /Stage[main]/Proxysql::Install/Package[proxysql]/ensure: created
  Notice: /Stage[main]/Proxysql::Install/File[proxysql-datadir]/mode: mode changed '0755' to '0700'
  Info: Class[Proxysql::Install]: Scheduling refresh of Class[Proxysql::Service]
  Info: Computing checksum on file /etc/proxysql.cnf
  Info: /Stage[main]/Proxysql::Config/File[proxysql-config-file]: Filebucketed /etc/proxysql.cnf to puppet with sum 7135f93878621028270c117834e13980
  Notice: /Stage[main]/Proxysql::Config/File[proxysql-config-file]/content: content changed '{md5}7135f93878621028270c117834e13980' to '{md5}857962d7be4409c7e655ce9c3f4c0161'
  Notice: /Stage[main]/Proxysql::Config/File[proxysql-config-file]/owner: owner changed 'root' to 'proxysql'
  Info: /Stage[main]/Proxysql::Config/File[proxysql-config-file]: Scheduling refresh of Exec[reload-config]
  Info: /Stage[main]/Proxysql::Config/File[proxysql-config-file]: Scheduling refresh of Exec[reload-config]
  Info: Class[Proxysql::Service]: Scheduling refresh of Systemd::Dropin_file[proxysql ExecStart override]
  Info: Class[Proxysql::Service]: Scheduling refresh of Service[proxysql]
  Info: Class[Proxysql::Service]: Scheduling refresh of Exec[wait_for_admin_socket_to_open]
  Notice: /Stage[main]/Proxysql::Service/Service[proxysql]/ensure: ensure changed 'stopped' to 'running'
  Info: /Stage[main]/Proxysql::Service/Service[proxysql]: Unscheduling refresh on Service[proxysql]
  Notice: /Stage[main]/Proxysql::Service/Exec[wait_for_admin_socket_to_open]/returns: executed successfully
  Notice: /Stage[main]/Proxysql::Service/Exec[wait_for_admin_socket_to_open]: Triggered 'refresh' from 1 event
  Notice: /Stage[main]/Proxysql::Admin_credentials/File[root-mycnf-file]/ensure: defined content as '{md5}a971c3f50a522ff6004b359ab15a8903'
  Notice: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]/returns: ERROR 2013 (HY000) at line 2: Lost connection to MySQL server during query
  Info: Class[Proxysql]: Unscheduling all events on Class[Proxysql]
  Info: Stage[main]: Unscheduling all events on Stage[main]
  Error: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: Failed to call refresh: '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --execute="
            LOAD ADMIN VARIABLES FROM CONFIG;           LOAD ADMIN VARIABLES TO RUNTIME;           SAVE ADMIN VARIABLES TO DISK;           LOAD MYSQL VARIABLES FROM CONFIG;           LOAD MYSQL VARIABLES TO RUNTIME;           SAVE MYSQL VARIABLES TO DISK; "
          ' returned 1 instead of one of [0]
  Error: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --execute="
            LOAD ADMIN VARIABLES FROM CONFIG;           LOAD ADMIN VARIABLES TO RUNTIME;           SAVE ADMIN VARIABLES TO DISK;           LOAD MYSQL VARIABLES FROM CONFIG;           LOAD MYSQL VARIABLES TO RUNTIME;           SAVE MYSQL VARIABLES TO DISK; "
          ' returned 1 instead of one of [0]
  Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml
  Notice: Applied catalog in 25.51 seconds

ubuntu1804-64-1 executed in 37.04 seconds
Exited: 6
    works idempotently with no errors (FAILED - 1)
    Package "proxysql"

ubuntu1804-64-1 10:16:31$ /bin/sh -c ls\ /etc/gentoo-release
  ls:   cannot access '/etc/gentoo-release'  : No such file or directory

ubuntu1804-64-1 executed in 0.02 seconds
Exited: 2

ubuntu1804-64-1 10:16:31$ /bin/sh -c uname\ -sr
  Linux 4.19.76-linuxkit

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:16:31$ /bin/sh -c ls\ /etc/Eos-release
  ls: cannot access '/etc/Eos-release'  : No such file or directory

ubuntu1804-64-1 executed in 0.01 seconds
Exited: 2

ubuntu1804-64-1 10:16:31$ /bin/sh -c uname\ -sr
  Linux 4.19.76-linuxkit

ubuntu1804-64-1 executed in 0.02 seconds

ubuntu1804-64-1 10:16:31$ /bin/sh -c ls\ /var/run/current-system/sw
  ls:   cannot access '/var/run/current-system/sw'  : No such file or directory

ubuntu1804-64-1 executed in 0.02 seconds
Exited: 2

ubuntu1804-64-1 10:16:31$ /bin/sh -c ls\ /etc/alpine-release
  ls:   cannot access '/etc/alpine-release'  : No such file or directory

ubuntu1804-64-1 executed in 0.02 seconds
Exited: 2

ubuntu1804-64-1 10:16:31$ /bin/sh -c uname\ -s
  Linux

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:16:31$ /bin/sh -c swupd\ info
  /bin/sh: 1: swupd: not found

ubuntu1804-64-1 executed in 0.01 seconds
Exited: 127

ubuntu1804-64-1 10:16:31$ /bin/sh -c ls\ /etc/arch-release
  ls:   cannot access '/etc/arch-release'  : No such file or directory

ubuntu1804-64-1 executed in 0.02 seconds
Exited: 2

ubuntu1804-64-1 10:16:31$ /bin/sh -c uname\ -sr
  Linux 4.19.76-linuxkit

ubuntu1804-64-1 executed in 0.01 seconds

ubuntu1804-64-1 10:16:31$ /bin/sh -c ls\ /etc/coreos/update.conf
  ls:   cannot access '/etc/coreos/update.conf'  : No such file or directory

ubuntu1804-64-1 executed in 0.02 seconds
Exited: 2

ubuntu1804-64-1 10:16:31$ /bin/sh -c cat\ /etc/debian_version
  buster/sid

ubuntu1804-64-1 executed in 0.02 seconds

ubuntu1804-64-1 10:16:31$ /bin/sh -c lsb_release\ -ir
  Distributor ID:   Ubuntu
  Release:  18.04

ubuntu1804-64-1 executed in 0.07 seconds

ubuntu1804-64-1 10:16:32$ /bin/sh -c uname\ -m
  x86_64

ubuntu1804-64-1 executed in 0.02 seconds

ubuntu1804-64-1 10:16:32$ /bin/sh -c dpkg-query\ -f\ \'\$\{Status\}\'\ -W\ proxysql\ \|\ grep\ -E\ \'\^\(install\|hold\)\ ok\ installed\$\'
  install ok installed

ubuntu1804-64-1 executed in 0.03 seconds
      is expected to be installed
    Service "proxysql"

ubuntu1804-64-1 10:16:32$ /bin/sh -c systemctl\ --quiet\ is-enabled\ proxysql

ubuntu1804-64-1 executed in 0.02 seconds
      is expected to be enabled

ubuntu1804-64-1 10:16:32$ /bin/sh -c systemctl\ is-active\ proxysql
  active

ubuntu1804-64-1 executed in 0.02 seconds
      is expected to be running
    Command "proxysql --version"
      exit_status

ubuntu1804-64-1 10:16:32$ /bin/sh -c proxysql\ --version
  ProxySQL version 2.0.9-209-g60923e24, codename Truls

ubuntu1804-64-1 executed in 0.03 seconds
        is expected to eq 0
      stdout
        is expected to match /^ProxySQL version 2\.0\./
  extended testing

ubuntu1804-64-1 10:16:32$ mktemp -t apply_manifest.pp.XXXXXX
  /tmp/apply_manifest.pp.teP6Yu

ubuntu1804-64-1 executed in 0.02 seconds
localhost $ scp /var/folders/rv/6kdq37x167bblm3k3n2tcz940000gn/T/beaker20200224-67522-khofab ubuntu1804-64-1:/tmp/apply_manifest.pp.teP6Yu {:ignore => }

ubuntu1804-64-1 10:16:32$ puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.teP6Yu
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Notice: Compiled catalog for ubuntu1804-64-1 in environment production in 0.71 seconds
  Info: Applying configuration version '1582535802'
  Info: Computing checksum on file /etc/proxysql.cnf
  Info: /Stage[main]/Proxysql::Config/File[proxysql-config-file]: Filebucketed /etc/proxysql.cnf to puppet with sum 857962d7be4409c7e655ce9c3f4c0161
  Notice: /Stage[main]/Proxysql::Config/File[proxysql-config-file]/content: content changed '{md5}857962d7be4409c7e655ce9c3f4c0161' to '{md5}2dc9f6f882f06d2340947e637d674db2'
  Info: /Stage[main]/Proxysql::Config/File[proxysql-config-file]: Scheduling refresh of Exec[reload-config]
  Notice: /Stage[main]/Proxysql::Admin_credentials/Exec[proxysql-admin-credentials]/returns: executed successfully
  Info: Computing checksum on file /root/.my.cnf
  Info: /Stage[main]/Proxysql::Admin_credentials/File[root-mycnf-file]: Filebucketed /root/.my.cnf to puppet with sum a971c3f50a522ff6004b359ab15a8903
  Notice: /Stage[main]/Proxysql::Admin_credentials/File[root-mycnf-file]/content: content changed '{md5}a971c3f50a522ff6004b359ab15a8903' to '{md5}8178e7e905c966b685f274e4e387bc8a'
  Notice: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]/returns: ERROR 2013 (HY000) at line 2: Lost connection to MySQL server during query
  Info: Class[Proxysql]: Unscheduling all events on Class[Proxysql]
  Error: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: Failed to call refresh: '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --execute="
            LOAD ADMIN VARIABLES FROM CONFIG;           LOAD ADMIN VARIABLES TO RUNTIME;           SAVE ADMIN VARIABLES TO DISK;           LOAD MYSQL VARIABLES FROM CONFIG;           LOAD MYSQL VARIABLES TO RUNTIME;           SAVE MYSQL VARIABLES TO DISK; "
          ' returned 1 instead of one of [0]
  Error: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --execute="
            LOAD ADMIN VARIABLES FROM CONFIG;           LOAD ADMIN VARIABLES TO RUNTIME;           SAVE ADMIN VARIABLES TO DISK;           LOAD MYSQL VARIABLES FROM CONFIG;           LOAD MYSQL VARIABLES TO RUNTIME;           SAVE MYSQL VARIABLES TO DISK; "
          ' returned 1 instead of one of [0]
  Error: Could not prefetch proxy_mysql_replication_hostgroup provider 'proxysql': Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe SELECT `writer_hostgroup`, `reader_hostgroup`, `comment` FROM `mysql_replication_hostgroups`' returned 1: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/proxysql/proxysql_admin.sock' (111)
  Error: Failed to apply catalog: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe SELECT `writer_hostgroup`, `reader_hostgroup`, `comment` FROM `mysql_replication_hostgroups`' returned 1: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/proxysql/proxysql_admin.sock' (111)

ubuntu1804-64-1 executed in 11.42 seconds
Exited: 1
    works idempotently with no errors (FAILED - 2)
    Package "proxysql"

ubuntu1804-64-1 10:16:43$ /bin/sh -c dpkg-query\ -f\ \'\$\{Status\}\'\ -W\ proxysql\ \|\ grep\ -E\ \'\^\(install\|hold\)\ ok\ installed\$\'
  install ok installed

ubuntu1804-64-1 executed in 0.03 seconds
      is expected to be installed
    Service "proxysql"

ubuntu1804-64-1 10:16:43$ /bin/sh -c systemctl\ --quiet\ is-enabled\ proxysql

ubuntu1804-64-1 executed in 0.03 seconds
      is expected to be enabled

ubuntu1804-64-1 10:16:43$ /bin/sh -c systemctl\ is-active\ proxysql
  active

ubuntu1804-64-1 executed in 0.02 seconds
      is expected to be running
    Command "mysql -NB -e "SELECT comment FROM mysql_servers WHERE hostname = '127.0.0.1' AND port = 3307 AND hostgroup_id = 1;""
      exit_status

ubuntu1804-64-1 10:16:43$ /bin/sh -c mysql\ -NB\ -e\ \"SELECT\ comment\ FROM\ mysql_servers\ WHERE\ hostname\ \=\ \'127.0.0.1\'\ AND\ port\ \=\ 3307\ AND\ hostgroup_id\ \=\ 1\;\"
  ERROR   2002 (HY000)  : Can't connect to local MySQL server through socket '/var/lib/proxysql/proxysql_admin.sock' (111)

ubuntu1804-64-1 executed in 0.03 seconds
Exited: 1
        is expected to eq 0 (FAILED - 3)
      stdout
        is expected to match "^localhost:3307-1$" (FAILED - 4)
    Command "mysql -NB -e "SELECT comment FROM mysql_servers WHERE hostname = '127.0.0.1' AND port = 3307 AND hostgroup_id = 2;""
      exit_status

ubuntu1804-64-1 10:16:43$ /bin/sh -c mysql\ -NB\ -e\ \"SELECT\ comment\ FROM\ mysql_servers\ WHERE\ hostname\ \=\ \'127.0.0.1\'\ AND\ port\ \=\ 3307\ AND\ hostgroup_id\ \=\ 2\;\"
  ERROR   2002 (HY000)  : Can't connect to local MySQL server through socket '/var/lib/proxysql/proxysql_admin.sock' (111)

ubuntu1804-64-1 executed in 0.03 seconds
Exited: 1
        is expected to eq 0 (FAILED - 5)
      stdout
        is expected to match "^localhost:3307-2$" (FAILED - 6)
    Command "mysql -NB -e 'SELECT comment FROM mysql_replication_hostgroups WHERE writer_hostgroup = 10 AND reader_hostgroup = 20;'"
      exit_status

ubuntu1804-64-1 10:16:43$ /bin/sh -c mysql\ -NB\ -e\ \'SELECT\ comment\ FROM\ mysql_replication_hostgroups\ WHERE\ writer_hostgroup\ \=\ 10\ AND\ reader_hostgroup\ \=\ 20\;\'
  ERROR   2002 (HY000)  : Can't connect to local MySQL server through socket '/var/lib/proxysql/proxysql_admin.sock' (111)

ubuntu1804-64-1 executed in 0.02 seconds
Exited: 1
        is expected to eq 0 (FAILED - 7)
      stdout
        is expected to match "^Test MySQL Cluster 10-20$" (FAILED - 8)
    Command "mysql -NB -e 'SELECT comment FROM mysql_replication_hostgroups WHERE writer_hostgroup = 10 AND reader_hostgroup = 30;'"
      exit_status

ubuntu1804-64-1 10:16:43$ /bin/sh -c mysql\ -NB\ -e\ \'SELECT\ comment\ FROM\ mysql_replication_hostgroups\ WHERE\ writer_hostgroup\ \=\ 10\ AND\ reader_hostgroup\ \=\ 30\;\'
  ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/proxysql/proxysql_admin.sock' (111)

ubuntu1804-64-1 executed in 0.03 seconds
Exited: 1
        is expected to eq 0 (FAILED - 9)
      stdout
        is expected to eq ""
    Command "mysql -NB -e 'SELECT comment FROM mysql_group_replication_hostgroups WHERE writer_hostgroup = 5 AND backup_writer_hostgroup = 2 AND reader_hostgroup = 10 AND offline_hostgroup = 11;'"
      exit_status

ubuntu1804-64-1 10:16:43$ /bin/sh -c mysql\ -NB\ -e\ \'SELECT\ comment\ FROM\ mysql_group_replication_hostgroups\ WHERE\ writer_hostgroup\ \=\ 5\ AND\ backup_writer_hostgroup\ \=\ 2\ AND\ reader_hostgroup\ \=\ 10\ AND\ offline_hostgroup\ \=\ 11\;\'
  ERROR   2002 (HY000)  : Can't connect to local MySQL server through socket '/var/lib/proxysql/proxysql_admin.sock' (111)

ubuntu1804-64-1 executed in 0.03 seconds
Exited: 1
        is expected to eq 0 (FAILED - 10)
      stdout
        is expected to match "^Test MySQL GR Cluster 5-2-10-11$" (FAILED - 11)
    Command "mysql -NB -e 'SELECT comment FROM mysql_group_replication_hostgroups WHERE writer_hostgroup = 6 AND backup_writer_hostgroup = 3 AND reader_hostgroup = 20 AND offline_hostgroup = 30;'"
      exit_status

ubuntu1804-64-1 10:16:43$ /bin/sh -c mysql\ -NB\ -e\ \'SELECT\ comment\ FROM\ mysql_group_replication_hostgroups\ WHERE\ writer_hostgroup\ \=\ 6\ AND\ backup_writer_hostgroup\ \=\ 3\ AND\ reader_hostgroup\ \=\ 20\ AND\ offline_hostgroup\ \=\ 30\;\'
  ERROR   2002 (HY000)  : Can't connect to local MySQL server through socket '/var/lib/proxysql/proxysql_admin.sock' (111)

ubuntu1804-64-1 executed in 0.02 seconds
Exited: 1
        is expected to eq 0 (FAILED - 12)
      stdout
        is expected to eq ""
    Command "mysql -NB -e "SELECT username FROM mysql_users WHERE username = 'tester';""
      exit_status

ubuntu1804-64-1 10:16:43$ /bin/sh -c mysql\ -NB\ -e\ \"SELECT\ username\ FROM\ mysql_users\ WHERE\ username\ \=\ \'tester\'\;\"
  ERROR   2002 (HY000)  : Can't connect to local MySQL server through socket '/var/lib/proxysql/proxysql_admin.sock' (111)

ubuntu1804-64-1 executed in 0.02 seconds
Exited: 1
        is expected to eq 0 (FAILED - 13)
      stdout
        is expected to eq ""
    Command "mysql -NB -e 'SELECT username FROM mysql_users;'"
      exit_status

ubuntu1804-64-1 10:16:44$ /bin/sh -c mysql\ -NB\ -e\ \'SELECT\ username\ FROM\ mysql_users\;\'
  ERROR   2002 (HY000)  : Can't connect to local MySQL server through socket '/var/lib/proxysql/proxysql_admin.sock' (111)

ubuntu1804-64-1 executed in 0.02 seconds
Exited: 1
        is expected to eq 0 (FAILED - 14)
      stdout
        is expected to match "tester1" (FAILED - 15)
    Command "mysql -NB -e "SELECT default_schema FROM mysql_users WHERE username = 'tester1';""
      exit_status

ubuntu1804-64-1 10:16:44$ /bin/sh -c mysql\ -NB\ -e\ \"SELECT\ default_schema\ FROM\ mysql_users\ WHERE\ username\ \=\ \'tester1\'\;\"

ubuntu1804-64-1 executed in 0.02 seconds
        is expected to eq 0
      stdout
        is expected to match "^test1$" (FAILED - 16)
    Command "mysql -NB -e "SELECT default_hostgroup FROM mysql_users WHERE username = 'tester1';""
      exit_status

ubuntu1804-64-1 10:16:44$ /bin/sh -c mysql\ -NB\ -e\ \"SELECT\ default_hostgroup\ FROM\ mysql_users\ WHERE\ username\ \=\ \'tester1\'\;\"

ubuntu1804-64-1 executed in 0.02 seconds
        is expected to eq 0
      stdout
        is expected to match "^1$" (FAILED - 17)
    Command "mysql -NB -e "SELECT default_schema FROM mysql_users WHERE username = 'tester2';""
      exit_status

ubuntu1804-64-1 10:16:44$ /bin/sh -c mysql\ -NB\ -e\ \"SELECT\ default_schema\ FROM\ mysql_users\ WHERE\ username\ \=\ \'tester2\'\;\"

ubuntu1804-64-1 executed in 0.02 seconds
        is expected to eq 0
      stdout
        is expected to match "^test2$" (FAILED - 18)
    Command "mysql -NB -e "SELECT default_hostgroup FROM mysql_users WHERE username = 'tester2';""
      exit_status

ubuntu1804-64-1 10:16:44$ /bin/sh -c mysql\ -NB\ -e\ \"SELECT\ default_hostgroup\ FROM\ mysql_users\ WHERE\ username\ \=\ \'tester2\'\;\"

ubuntu1804-64-1 executed in 0.02 seconds
        is expected to eq 0
      stdout
        is expected to match "^2$" (FAILED - 19)
    Command "mysql -NB -e 'SELECT username FROM runtime_mysql_users;'"
      exit_status

ubuntu1804-64-1 10:16:44$ /bin/sh -c mysql\ -NB\ -e\ \'SELECT\ username\ FROM\ runtime_mysql_users\;\'

ubuntu1804-64-1 executed in 0.02 seconds
        is expected to eq 0
      stdout
        is expected to match "^tester1$" (FAILED - 20)
    Command "mysql -NB -e "SELECT username FROM runtime_mysql_users WHERE username = 'tester2';""
      exit_status

ubuntu1804-64-1 10:16:44$ /bin/sh -c mysql\ -NB\ -e\ \"SELECT\ username\ FROM\ runtime_mysql_users\ WHERE\ username\ \=\ \'tester2\'\;\"

ubuntu1804-64-1 executed in 0.02 seconds
        is expected to eq 0
      stdout
        is expected to eq ""
    Command "mysql -NB -e 'SELECT username FROM mysql_query_rules WHERE rule_id = 1;'"
      exit_status

ubuntu1804-64-1 10:16:44$ /bin/sh -c mysql\ -NB\ -e\ \'SELECT\ username\ FROM\ mysql_query_rules\ WHERE\ rule_id\ \=\ 1\;\'

ubuntu1804-64-1 executed in 0.02 seconds
        is expected to eq 0
      stdout
        is expected to match "^tester1$" (FAILED - 21)
    Command "mysql -NB -e 'SELECT match_pattern FROM mysql_query_rules WHERE rule_id = 1;'"
      exit_status

ubuntu1804-64-1 10:16:44$ /bin/sh -c mysql\ -NB\ -e\ \'SELECT\ match_pattern\ FROM\ mysql_query_rules\ WHERE\ rule_id\ \=\ 1\;\'

ubuntu1804-64-1 executed in 0.02 seconds
        is expected to eq 0
      stdout
        is expected to match "^\\^SELECT$" (FAILED - 22)
  with restart => true

ubuntu1804-64-1 10:16:44$ mktemp -t apply_manifest.pp.XXXXXX
  /tmp/apply_manifest.pp.qymlpb

ubuntu1804-64-1 executed in 0.02 seconds
localhost $ scp /var/folders/rv/6kdq37x167bblm3k3n2tcz940000gn/T/beaker20200224-67522-132lirp ubuntu1804-64-1:/tmp/apply_manifest.pp.qymlpb {:ignore => }

ubuntu1804-64-1 10:16:44$ puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.qymlpb
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Info: Loading facts
  Notice: Compiled catalog for ubuntu1804-64-1 in environment production in 0.56 seconds
  Info: Applying configuration version '1582535816'
  Info: Computing checksum on file /etc/proxysql.cnf
  Info: /Stage[main]/Proxysql::Config/File[proxysql-config-file]: Filebucketed /etc/proxysql.cnf to puppet with sum 2dc9f6f882f06d2340947e637d674db2
  Notice: /Stage[main]/Proxysql::Config/File[proxysql-config-file]/content: content changed '{md5}2dc9f6f882f06d2340947e637d674db2' to '{md5}1873d6fd93d5d97d99237358b9b9eb66'
  Info: /Stage[main]/Proxysql::Config/File[proxysql-config-file]: Scheduling refresh of Exec[reload-config]
  Info: Class[Proxysql::Config]: Scheduling refresh of Class[Proxysql::Service]
  Info: Class[Proxysql::Service]: Scheduling refresh of Systemd::Dropin_file[proxysql ExecStart override]
  Info: Class[Proxysql::Service]: Scheduling refresh of Service[proxysql]
  Info: Class[Proxysql::Service]: Scheduling refresh of Exec[wait_for_admin_socket_to_open]
  Notice: /Stage[main]/Proxysql::Service/Systemd::Dropin_file[proxysql ExecStart override]/File[/etc/systemd/system/proxysql.service.d]/ensure: created
  Notice: /Stage[main]/Proxysql::Service/Systemd::Dropin_file[proxysql ExecStart override]/File[/etc/systemd/system/proxysql.service.d/puppet.conf]/ensure: defined content as '{md5}6b2d2d6ee3a1fa6cfa4225e9d201734c'
  Info: /Stage[main]/Proxysql::Service/Systemd::Dropin_file[proxysql ExecStart override]/File[/etc/systemd/system/proxysql.service.d/puppet.conf]: Scheduling refresh of Class[Systemd::Systemctl::Daemon_reload]
  Info: Systemd::Dropin_file[proxysql ExecStart override]: Scheduling refresh of Service[proxysql]
  Notice: /Stage[main]/Proxysql::Service/Service[proxysql]: Triggered 'refresh' from 2 events
  Notice: /Stage[main]/Proxysql::Service/Exec[wait_for_admin_socket_to_open]/returns: executed successfully
  Notice: /Stage[main]/Proxysql::Service/Exec[wait_for_admin_socket_to_open]: Triggered 'refresh' from 1 event
  Notice: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]/returns: ERROR 2013 (HY000) at line 2: Lost connection to MySQL server during query
  Info: Class[Proxysql]: Unscheduling all events on Class[Proxysql]
  Info: Class[Systemd::Systemctl::Daemon_reload]: Scheduling refresh of Exec[systemctl-daemon-reload]
  Error: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: Failed to call refresh: '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --execute="
            LOAD ADMIN VARIABLES FROM CONFIG;           LOAD ADMIN VARIABLES TO RUNTIME;           SAVE ADMIN VARIABLES TO DISK;           LOAD MYSQL VARIABLES FROM CONFIG;           LOAD MYSQL VARIABLES TO RUNTIME;           SAVE MYSQL VARIABLES TO DISK; "
          ' returned 1 instead of one of [0]
  Error: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --execute="
            LOAD ADMIN VARIABLES FROM CONFIG;           LOAD ADMIN VARIABLES TO RUNTIME;           SAVE ADMIN VARIABLES TO DISK;           LOAD MYSQL VARIABLES FROM CONFIG;           LOAD MYSQL VARIABLES TO RUNTIME;           SAVE MYSQL VARIABLES TO DISK; "
          ' returned 1 instead of one of [0]
  Notice: /Stage[main]/Systemd::Systemctl::Daemon_reload/Exec[systemctl-daemon-reload]: Triggered 'refresh' from 1 event
  Info: Stage[main]: Unscheduling all events on Stage[main]
  Notice: Applied catalog in 11.57 seconds

ubuntu1804-64-1 executed in 24.16 seconds
Exited: 6
    works idempotently with no errors (FAILED - 23)
    Service "proxysql"

ubuntu1804-64-1 10:17:08$ /bin/sh -c systemctl\ is-active\ proxysql
  active

ubuntu1804-64-1 executed in 0.05 seconds
      is expected to be running
ssh connection to ubuntu1804-64-1 has been terminated
Cleaning up docker
get
/v1.16/containers/json
{}

Looking for an existing container with ID 2a895a52f14286b602a8ca833b5bee3c90c9b3fb1d07a1760a472cb2f9fe2f2c
stop container 2a895a52f14286b602a8ca833b5bee3c90c9b3fb1d07a1760a472cb2f9fe2f2c
post
/v1.16/containers/2a895a52f14286b602a8ca833b5bee3c90c9b3fb1d07a1760a472cb2f9fe2f2c/kill
{}

delete container 2a895a52f14286b602a8ca833b5bee3c90c9b3fb1d07a1760a472cb2f9fe2f2c
delete
/v1.16/containers/2a895a52f14286b602a8ca833b5bee3c90c9b3fb1d07a1760a472cb2f9fe2f2c
{}

deleting image 7116c6f73d2d
delete
/v1.16/images/7116c6f73d2d
{}

Warning: deletion of image 7116c6f73d2d caused internal Docker error: conflict: unable to delete 7116c6f73d2d (must be forced) - image is being used by stopped container fec71b6100f9

Failures:

  1) proxysql class Upgrading to version 2.0 works idempotently with no errors
     Failure/Error: apply_manifest(pp, catch_failures: true)
     Beaker::Host::CommandFailure:
       Host 'ubuntu1804-64-1' exited with 6 running:
        puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.NIpLPR
       Last 10 lines of output were:
        Info: Class[Proxysql]: Unscheduling all events on Class[Proxysql]
        Info: Stage[main]: Unscheduling all events on Stage[main]
        Error: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: Failed to call refresh: '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --execute="
                  LOAD ADMIN VARIABLES FROM CONFIG;           LOAD ADMIN VARIABLES TO RUNTIME;           SAVE ADMIN VARIABLES TO DISK;           LOAD MYSQL VARIABLES FROM CONFIG;           LOAD MYSQL VARIABLES TO RUNTIME;           SAVE MYSQL VARIABLES TO DISK; "
                ' returned 1 instead of one of [0]
        Error: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --execute="
                  LOAD ADMIN VARIABLES FROM CONFIG;           LOAD ADMIN VARIABLES TO RUNTIME;           SAVE ADMIN VARIABLES TO DISK;           LOAD MYSQL VARIABLES FROM CONFIG;           LOAD MYSQL VARIABLES TO RUNTIME;           SAVE MYSQL VARIABLES TO DISK; "
                ' returned 1 instead of one of [0]
        Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml
        Notice: Applied catalog in 25.51 seconds

     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/host.rb:394:in `exec'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-puppet-1.18.14/lib/beaker-puppet/helpers/puppet_helpers.rb:529:in `block in apply_manifest_on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-puppet-1.18.14/lib/beaker-puppet/helpers/puppet_helpers.rb:457:in `apply_manifest_on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-puppet-1.18.14/lib/beaker-puppet/helpers/puppet_helpers.rb:536:in `apply_manifest'
     # ./spec/acceptance/class_spec.rb:45:in `block (3 levels) in <top (required)>'

  2) proxysql class extended testing works idempotently with no errors
     Failure/Error: apply_manifest(pp, catch_failures: true)
     Beaker::Host::CommandFailure:
       Host 'ubuntu1804-64-1' exited with 1 running:
        puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.teP6Yu
       Last 10 lines of output were:
        Notice: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]/returns: ERROR 2013 (HY000) at line 2: Lost connection to MySQL server during query
        Info: Class[Proxysql]: Unscheduling all events on Class[Proxysql]
        Error: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: Failed to call refresh: '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --execute="
                  LOAD ADMIN VARIABLES FROM CONFIG;           LOAD ADMIN VARIABLES TO RUNTIME;           SAVE ADMIN VARIABLES TO DISK;           LOAD MYSQL VARIABLES FROM CONFIG;           LOAD MYSQL VARIABLES TO RUNTIME;           SAVE MYSQL VARIABLES TO DISK; "
                ' returned 1 instead of one of [0]
        Error: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --execute="
                  LOAD ADMIN VARIABLES FROM CONFIG;           LOAD ADMIN VARIABLES TO RUNTIME;           SAVE ADMIN VARIABLES TO DISK;           LOAD MYSQL VARIABLES FROM CONFIG;           LOAD MYSQL VARIABLES TO RUNTIME;           SAVE MYSQL VARIABLES TO DISK; "
                ' returned 1 instead of one of [0]
        Error: Could not prefetch proxy_mysql_replication_hostgroup provider 'proxysql': Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe SELECT `writer_hostgroup`, `reader_hostgroup`, `comment` FROM `mysql_replication_hostgroups`' returned 1: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/proxysql/proxysql_admin.sock' (111)
        Error: Failed to apply catalog: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe SELECT `writer_hostgroup`, `reader_hostgroup`, `comment` FROM `mysql_replication_hostgroups`' returned 1: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/proxysql/proxysql_admin.sock' (111)

     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/host.rb:394:in `exec'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-puppet-1.18.14/lib/beaker-puppet/helpers/puppet_helpers.rb:529:in `block in apply_manifest_on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-puppet-1.18.14/lib/beaker-puppet/helpers/puppet_helpers.rb:457:in `apply_manifest_on'
     # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-puppet-1.18.14/lib/beaker-puppet/helpers/puppet_helpers.rb:536:in `apply_manifest'
     # ./spec/acceptance/class_spec.rb:206:in `block (3 levels) in <top (required)>'

  3) proxysql class extended testing Command "mysql -NB -e "SELECT comment FROM mysql_servers WHERE hostname = '127.0.0.1' AND port = 3307 AND hostgroup_id = 1;"" exit_status is expected to eq 0
     Failure/Error: its(:exit_status) { is_expected.to eq 0 }

       expected: 0
            got: 1

       (compared using ==)

     # ./spec/acceptance/class_spec.rb:220:in `block (4 levels) in <top (required)>'

  4) proxysql class extended testing Command "mysql -NB -e "SELECT comment FROM mysql_servers WHERE hostname = '127.0.0.1' AND port = 3307 AND hostgroup_id = 1;"" stdout is expected to match "^localhost:3307-1$"
     Failure/Error: its(:stdout) { is_expected.to match '^localhost:3307-1$' }
       expected "" to match "^localhost:3307-1$"

     # ./spec/acceptance/class_spec.rb:221:in `block (4 levels) in <top (required)>'

  5) proxysql class extended testing Command "mysql -NB -e "SELECT comment FROM mysql_servers WHERE hostname = '127.0.0.1' AND port = 3307 AND hostgroup_id = 2;"" exit_status is expected to eq 0
     Failure/Error: its(:exit_status) { is_expected.to eq 0 }

       expected: 0
            got: 1

       (compared using ==)

     # ./spec/acceptance/class_spec.rb:225:in `block (4 levels) in <top (required)>'

  6) proxysql class extended testing Command "mysql -NB -e "SELECT comment FROM mysql_servers WHERE hostname = '127.0.0.1' AND port = 3307 AND hostgroup_id = 2;"" stdout is expected to match "^localhost:3307-2$"
     Failure/Error: its(:stdout) { is_expected.to match '^localhost:3307-2$' }
       expected "" to match "^localhost:3307-2$"

     # ./spec/acceptance/class_spec.rb:226:in `block (4 levels) in <top (required)>'

  7) proxysql class extended testing Command "mysql -NB -e 'SELECT comment FROM mysql_replication_hostgroups WHERE writer_hostgroup = 10 AND reader_hostgroup = 20;'" exit_status is expected to eq 0
     Failure/Error: its(:exit_status) { is_expected.to eq 0 }

       expected: 0
            got: 1

       (compared using ==)

     # ./spec/acceptance/class_spec.rb:230:in `block (4 levels) in <top (required)>'

  8) proxysql class extended testing Command "mysql -NB -e 'SELECT comment FROM mysql_replication_hostgroups WHERE writer_hostgroup = 10 AND reader_hostgroup = 20;'" stdout is expected to match "^Test MySQL Cluster 10-20$"
     Failure/Error: its(:stdout) { is_expected.to match '^Test MySQL Cluster 10-20$' }
       expected "" to match "^Test MySQL Cluster 10-20$"

     # ./spec/acceptance/class_spec.rb:231:in `block (4 levels) in <top (required)>'

  9) proxysql class extended testing Command "mysql -NB -e 'SELECT comment FROM mysql_replication_hostgroups WHERE writer_hostgroup = 10 AND reader_hostgroup = 30;'" exit_status is expected to eq 0
     Failure/Error: its(:exit_status) { is_expected.to eq 0 }

       expected: 0
            got: 1

       (compared using ==)

     # ./spec/acceptance/class_spec.rb:235:in `block (4 levels) in <top (required)>'

  10) proxysql class extended testing Command "mysql -NB -e 'SELECT comment FROM mysql_group_replication_hostgroups WHERE writer_hostgroup = 5 AND backup_writer_hostgroup = 2 AND reader_hostgroup = 10 AND offline_hostgroup = 11;'" exit_status is expected to eq 0
      Failure/Error: its(:exit_status) { is_expected.to eq 0 }

        expected: 0
             got: 1

        (compared using ==)

      # ./spec/acceptance/class_spec.rb:262:in `block (4 levels) in <top (required)>'

  11) proxysql class extended testing Command "mysql -NB -e 'SELECT comment FROM mysql_group_replication_hostgroups WHERE writer_hostgroup = 5 AND backup_writer_hostgroup = 2 AND reader_hostgroup = 10 AND offline_hostgroup = 11;'" stdout is expected to match "^Test MySQL GR Cluster 5-2-10-11$"
      Failure/Error: its(:stdout) { is_expected.to match '^Test MySQL GR Cluster 5-2-10-11$' }
        expected "" to match "^Test MySQL GR Cluster 5-2-10-11$"

      # ./spec/acceptance/class_spec.rb:263:in `block (4 levels) in <top (required)>'

  12) proxysql class extended testing Command "mysql -NB -e 'SELECT comment FROM mysql_group_replication_hostgroups WHERE writer_hostgroup = 6 AND backup_writer_hostgroup = 3 AND reader_hostgroup = 20 AND offline_hostgroup = 30;'" exit_status is expected to eq 0
      Failure/Error: its(:exit_status) { is_expected.to eq 0 }

        expected: 0
             got: 1

        (compared using ==)

      # ./spec/acceptance/class_spec.rb:267:in `block (4 levels) in <top (required)>'

  13) proxysql class extended testing Command "mysql -NB -e "SELECT username FROM mysql_users WHERE username = 'tester';"" exit_status is expected to eq 0
      Failure/Error: its(:exit_status) { is_expected.to eq 0 }

        expected: 0
             got: 1

        (compared using ==)

      # ./spec/acceptance/class_spec.rb:272:in `block (4 levels) in <top (required)>'

  14) proxysql class extended testing Command "mysql -NB -e 'SELECT username FROM mysql_users;'" exit_status is expected to eq 0
      Failure/Error: its(:exit_status) { is_expected.to eq 0 }

        expected: 0
             got: 1

        (compared using ==)

      # ./spec/acceptance/class_spec.rb:277:in `block (4 levels) in <top (required)>'

  15) proxysql class extended testing Command "mysql -NB -e 'SELECT username FROM mysql_users;'" stdout is expected to match "tester1"
      Failure/Error: is_expected.to match 'tester1'
        expected "" to match "tester1"

      # ./spec/acceptance/class_spec.rb:279:in `block (4 levels) in <top (required)>'

  16) proxysql class extended testing Command "mysql -NB -e "SELECT default_schema FROM mysql_users WHERE username = 'tester1';"" stdout is expected to match "^test1$"
      Failure/Error: its(:stdout) { is_expected.to match '^test1$' }
        expected "" to match "^test1$"

      # ./spec/acceptance/class_spec.rb:286:in `block (4 levels) in <top (required)>'

  17) proxysql class extended testing Command "mysql -NB -e "SELECT default_hostgroup FROM mysql_users WHERE username = 'tester1';"" stdout is expected to match "^1$"
      Failure/Error: its(:stdout) { is_expected.to match '^1$' }
        expected "" to match "^1$"

      # ./spec/acceptance/class_spec.rb:291:in `block (4 levels) in <top (required)>'

  18) proxysql class extended testing Command "mysql -NB -e "SELECT default_schema FROM mysql_users WHERE username = 'tester2';"" stdout is expected to match "^test2$"
      Failure/Error: its(:stdout) { is_expected.to match '^test2$' }
        expected "" to match "^test2$"

      # ./spec/acceptance/class_spec.rb:296:in `block (4 levels) in <top (required)>'

  19) proxysql class extended testing Command "mysql -NB -e "SELECT default_hostgroup FROM mysql_users WHERE username = 'tester2';"" stdout is expected to match "^2$"
      Failure/Error: its(:stdout) { is_expected.to match '^2$' }
        expected "" to match "^2$"

      # ./spec/acceptance/class_spec.rb:301:in `block (4 levels) in <top (required)>'

  20) proxysql class extended testing Command "mysql -NB -e 'SELECT username FROM runtime_mysql_users;'" stdout is expected to match "^tester1$"
      Failure/Error: its(:stdout) { is_expected.to match '^tester1$' }
        expected "" to match "^tester1$"

      # ./spec/acceptance/class_spec.rb:306:in `block (4 levels) in <top (required)>'

  21) proxysql class extended testing Command "mysql -NB -e 'SELECT username FROM mysql_query_rules WHERE rule_id = 1;'" stdout is expected to match "^tester1$"
      Failure/Error: its(:stdout) { is_expected.to match '^tester1$' }
        expected "" to match "^tester1$"

      # ./spec/acceptance/class_spec.rb:316:in `block (4 levels) in <top (required)>'

  22) proxysql class extended testing Command "mysql -NB -e 'SELECT match_pattern FROM mysql_query_rules WHERE rule_id = 1;'" stdout is expected to match "^\\^SELECT$"
      Failure/Error: its(:stdout) { is_expected.to match '^\^SELECT$' }
        expected "" to match "^\\^SELECT$"

      # ./spec/acceptance/class_spec.rb:321:in `block (4 levels) in <top (required)>'

  23) proxysql class with restart => true works idempotently with no errors
      Failure/Error: apply_manifest(pp, catch_failures: true)
      Beaker::Host::CommandFailure:
        Host 'ubuntu1804-64-1' exited with 6 running:
         puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.qymlpb
        Last 10 lines of output were:
            Info: Class[Systemd::Systemctl::Daemon_reload]: Scheduling refresh of Exec[systemctl-daemon-reload]
            Error: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: Failed to call refresh: '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --execute="
                      LOAD ADMIN VARIABLES FROM CONFIG;           LOAD ADMIN VARIABLES TO RUNTIME;           SAVE ADMIN VARIABLES TO DISK;           LOAD MYSQL VARIABLES FROM CONFIG;           LOAD MYSQL VARIABLES TO RUNTIME;           SAVE MYSQL VARIABLES TO DISK; "
                    ' returned 1 instead of one of [0]
            Error: /Stage[main]/Proxysql::Reload_config/Exec[reload-config]: '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --execute="
                      LOAD ADMIN VARIABLES FROM CONFIG;           LOAD ADMIN VARIABLES TO RUNTIME;           SAVE ADMIN VARIABLES TO DISK;           LOAD MYSQL VARIABLES FROM CONFIG;           LOAD MYSQL VARIABLES TO RUNTIME;           SAVE MYSQL VARIABLES TO DISK; "
                    ' returned 1 instead of one of [0]
            Notice: /Stage[main]/Systemd::Systemctl::Daemon_reload/Exec[systemctl-daemon-reload]: Triggered 'refresh' from 1 event
            Info: Stage[main]: Unscheduling all events on Stage[main]
            Notice: Applied catalog in 11.57 seconds

      # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/host.rb:394:in `exec'
      # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
      # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
      # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
      # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
      # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-puppet-1.18.14/lib/beaker-puppet/helpers/puppet_helpers.rb:529:in `block in apply_manifest_on'
      # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
      # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-4.17.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
      # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-puppet-1.18.14/lib/beaker-puppet/helpers/puppet_helpers.rb:457:in `apply_manifest_on'
      # /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/beaker-puppet-1.18.14/lib/beaker-puppet/helpers/puppet_helpers.rb:536:in `apply_manifest'
      # ./spec/acceptance/class_spec.rb:341:in `block (3 levels) in <top (required)>'

Finished in 1 minute 51.21 seconds (files took 19.84 seconds to load)
44 examples, 23 failures

Failed examples:

rspec ./spec/acceptance/class_spec.rb:36 # proxysql class Upgrading to version 2.0 works idempotently with no errors
rspec ./spec/acceptance/class_spec.rb:69 # proxysql class extended testing works idempotently with no errors
rspec ./spec/acceptance/class_spec.rb:220 # proxysql class extended testing Command "mysql -NB -e "SELECT comment FROM mysql_servers WHERE hostname = '127.0.0.1' AND port = 3307 AND hostgroup_id = 1;"" exit_status is expected to eq 0
rspec ./spec/acceptance/class_spec.rb:221 # proxysql class extended testing Command "mysql -NB -e "SELECT comment FROM mysql_servers WHERE hostname = '127.0.0.1' AND port = 3307 AND hostgroup_id = 1;"" stdout is expected to match "^localhost:3307-1$"
rspec ./spec/acceptance/class_spec.rb:225 # proxysql class extended testing Command "mysql -NB -e "SELECT comment FROM mysql_servers WHERE hostname = '127.0.0.1' AND port = 3307 AND hostgroup_id = 2;"" exit_status is expected to eq 0
rspec ./spec/acceptance/class_spec.rb:226 # proxysql class extended testing Command "mysql -NB -e "SELECT comment FROM mysql_servers WHERE hostname = '127.0.0.1' AND port = 3307 AND hostgroup_id = 2;"" stdout is expected to match "^localhost:3307-2$"
rspec ./spec/acceptance/class_spec.rb:230 # proxysql class extended testing Command "mysql -NB -e 'SELECT comment FROM mysql_replication_hostgroups WHERE writer_hostgroup = 10 AND reader_hostgroup = 20;'" exit_status is expected to eq 0
rspec ./spec/acceptance/class_spec.rb:231 # proxysql class extended testing Command "mysql -NB -e 'SELECT comment FROM mysql_replication_hostgroups WHERE writer_hostgroup = 10 AND reader_hostgroup = 20;'" stdout is expected to match "^Test MySQL Cluster 10-20$"
rspec ./spec/acceptance/class_spec.rb:235 # proxysql class extended testing Command "mysql -NB -e 'SELECT comment FROM mysql_replication_hostgroups WHERE writer_hostgroup = 10 AND reader_hostgroup = 30;'" exit_status is expected to eq 0
rspec ./spec/acceptance/class_spec.rb:262 # proxysql class extended testing Command "mysql -NB -e 'SELECT comment FROM mysql_group_replication_hostgroups WHERE writer_hostgroup = 5 AND backup_writer_hostgroup = 2 AND reader_hostgroup = 10 AND offline_hostgroup = 11;'" exit_status is expected to eq 0
rspec ./spec/acceptance/class_spec.rb:263 # proxysql class extended testing Command "mysql -NB -e 'SELECT comment FROM mysql_group_replication_hostgroups WHERE writer_hostgroup = 5 AND backup_writer_hostgroup = 2 AND reader_hostgroup = 10 AND offline_hostgroup = 11;'" stdout is expected to match "^Test MySQL GR Cluster 5-2-10-11$"
rspec ./spec/acceptance/class_spec.rb:267 # proxysql class extended testing Command "mysql -NB -e 'SELECT comment FROM mysql_group_replication_hostgroups WHERE writer_hostgroup = 6 AND backup_writer_hostgroup = 3 AND reader_hostgroup = 20 AND offline_hostgroup = 30;'" exit_status is expected to eq 0
rspec ./spec/acceptance/class_spec.rb:272 # proxysql class extended testing Command "mysql -NB -e "SELECT username FROM mysql_users WHERE username = 'tester';"" exit_status is expected to eq 0
rspec ./spec/acceptance/class_spec.rb:277 # proxysql class extended testing Command "mysql -NB -e 'SELECT username FROM mysql_users;'" exit_status is expected to eq 0
rspec ./spec/acceptance/class_spec.rb:278 # proxysql class extended testing Command "mysql -NB -e 'SELECT username FROM mysql_users;'" stdout is expected to match "tester1"
rspec ./spec/acceptance/class_spec.rb:286 # proxysql class extended testing Command "mysql -NB -e "SELECT default_schema FROM mysql_users WHERE username = 'tester1';"" stdout is expected to match "^test1$"
rspec ./spec/acceptance/class_spec.rb:291 # proxysql class extended testing Command "mysql -NB -e "SELECT default_hostgroup FROM mysql_users WHERE username = 'tester1';"" stdout is expected to match "^1$"
rspec ./spec/acceptance/class_spec.rb:296 # proxysql class extended testing Command "mysql -NB -e "SELECT default_schema FROM mysql_users WHERE username = 'tester2';"" stdout is expected to match "^test2$"
rspec ./spec/acceptance/class_spec.rb:301 # proxysql class extended testing Command "mysql -NB -e "SELECT default_hostgroup FROM mysql_users WHERE username = 'tester2';"" stdout is expected to match "^2$"
rspec ./spec/acceptance/class_spec.rb:306 # proxysql class extended testing Command "mysql -NB -e 'SELECT username FROM runtime_mysql_users;'" stdout is expected to match "^tester1$"
rspec ./spec/acceptance/class_spec.rb:316 # proxysql class extended testing Command "mysql -NB -e 'SELECT username FROM mysql_query_rules WHERE rule_id = 1;'" stdout is expected to match "^tester1$"
rspec ./spec/acceptance/class_spec.rb:321 # proxysql class extended testing Command "mysql -NB -e 'SELECT match_pattern FROM mysql_query_rules WHERE rule_id = 1;'" stdout is expected to match "^\\^SELECT$"
rspec ./spec/acceptance/class_spec.rb:325 # proxysql class with restart => true works idempotently with no errors

/Users/mbaur/.rvm/rubies/ruby-2.6.3/bin/ruby -I/Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/rspec-core-3.9.1/lib:/Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/rspec-support-3.9.2/lib /Users/mbaur/.rvm/gems/ruby-2.6.3@puppet-proxysql/gems/rspec-core-3.9.1/exe/rspec spec/acceptance failed

Any additional information you'd like to impart

baurmatt commented 4 years ago

Fixed in https://github.com/sysown/proxysql/pull/2538. But not yet released as deb package.

baurmatt commented 4 years ago

Requested 2.0.10 deb package in https://github.com/sysown/proxysql/issues/2555

mcrauwel commented 4 years ago

ProxySQL 2.0.10 was released tonight

baurmatt commented 4 years ago

Yep, can confirm that this fixes all errors -> Closing.