Skip to content

Instantly share code, notes, and snippets.

@michaelcoburn
Created May 6, 2015 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelcoburn/c161d6cdf92ef0896b51 to your computer and use it in GitHub Desktop.
Save michaelcoburn/c161d6cdf92ef0896b51 to your computer and use it in GitHub Desktop.
[michael@Michaels-MacBook-Pro vagrant-percona-michaelcoburn]$vagrant up
Bringing machine 'ps1' up with 'virtualbox' provider...
==> ps1: Importing base box 'perconajayj/centos-x86_64'...
==> ps1: Matching MAC address for NAT networking...
==> ps1: Checking if box 'perconajayj/centos-x86_64' is up to date...
A VirtualBox machine with the name 'ps1' already exists.
Please use another name or delete the machine with the existing
name, and try again.
[michael@Michaels-MacBook-Pro vagrant-percona-michaelcoburn]$vagrant up
Bringing machine 'ps1' up with 'virtualbox' provider...
==> ps1: Checking if box 'perconajayj/centos-x86_64' is up to date...
==> ps1: Setting the name of the VM: ps1
==> ps1: Clearing any previously set network interfaces...
==> ps1: Preparing network interfaces based on configuration...
ps1: Adapter 1: nat
ps1: Adapter 2: hostonly
==> ps1: Forwarding ports...
ps1: 22 => 2222 (adapter 1)
==> ps1: Running 'pre-boot' VM customizations...
==> ps1: Booting VM...
==> ps1: Waiting for machine to boot. This may take a few minutes...
ps1: SSH address: 127.0.0.1:2222
ps1: SSH username: root
ps1: SSH auth method: private key
ps1: Warning: Connection timeout. Retrying...
ps1:
ps1: Vagrant insecure key detected. Vagrant will automatically replace
ps1: this with a newly generated keypair for better security.
ps1:
ps1: Inserting generated public key within guest...
ps1: Removing insecure key from the guest if its present...
ps1: Key inserted! Disconnecting and reconnecting using new SSH key...
==> ps1: Machine booted and ready!
==> ps1: Checking for guest additions in VM...
==> ps1: Setting hostname...
==> ps1: Configuring and enabling network interfaces...
==> ps1: Mounting shared folders...
ps1: /vagrant => /Users/michael/Vagrant/vagrant-percona-michaelcoburn
==> ps1: Running provisioner: hostmanager...
==> ps1: Running provisioner: percona_server.pp (puppet)...
==> ps1: Running Puppet with percona_server.pp...
==> ps1: Warning: Setting manifestdir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
==> ps1: (at /usr/share/ruby/vendor_ruby/puppet/settings.rb:1095:in `block in issue_deprecations')
==> ps1: Info: Loading facts in /vagrant/modules/staging/lib/facter/staging_http_get.rb
==> ps1: Info: Loading facts in /vagrant/modules/staging/lib/facter/staging_windir.rb
==> ps1: Info: Loading facts in /vagrant/modules/stdlib/lib/facter/facter_dot_d.rb
==> ps1: Info: Loading facts in /vagrant/modules/stdlib/lib/facter/pe_version.rb
==> ps1: Info: Loading facts in /vagrant/modules/stdlib/lib/facter/puppet_vardir.rb
==> ps1: Info: Loading facts in /vagrant/modules/stdlib/lib/facter/root_home.rb
==> ps1: Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
==> ps1: Notice: Compiled catalog for ps1.cap.lan in environment production in 1.28 seconds
==> ps1: Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
==> ps1: (at /usr/share/ruby/vendor_ruby/puppet/type.rb:816:in `set_default')
==> ps1: Info: Applying configuration version '1430917776'
==> ps1: Notice: /Stage[main]/Base::Swappiness/Exec[swappiness_sysctl_conf]/returns: executed successfully
==> ps1: Error: Could not update: Execution of '/bin/yum -d 0 -e 0 -y list Percona-Server-tokudb-56.x86_64' returned 1: Error: No matching Packages to list
==> ps1: Wrapped exception:
==> ps1: Execution of '/bin/yum -d 0 -e 0 -y list Percona-Server-tokudb-56.x86_64' returned 1: Error: No matching Packages to list
==> ps1: Error: /Stage[main]/Percona::Tokudb/Package[Percona-Server-tokudb-56.x86_64]/ensure: change from absent to latest failed: Could not update: Execution of '/bin/yum -d 0 -e 0 -y list Percona-Server-tokudb-56.x86_64' returned 1: Error: No matching Packages to list
==> ps1: Notice: /Stage[main]/Base::Swappiness/Exec[apply_sysctl]/returns: executed successfully
==> ps1: Notice: /Stage[main]/Mysql::Datadir/Mount[/var/lib/mysql]/device: device changed '/dev/mapper/VolGroup-lv_mysql' to '/dev/dm-2'
==> ps1: Notice: /Stage[main]/Mysql::Datadir/Mount[/var/lib/mysql]/pass: pass changed '2' to '0'
==> ps1: Notice: /Stage[main]/Mysql::Datadir/Mount[/var/lib/mysql]/dump: dump changed '1' to '0'
==> ps1: Info: /Stage[main]/Mysql::Datadir/Mount[/var/lib/mysql]: Scheduling refresh of Mount[/var/lib/mysql]
==> ps1: Info: /Stage[main]/Mysql::Datadir/Mount[/var/lib/mysql]: Scheduling refresh of Mount[/var/lib/mysql]
==> ps1: Info: /Stage[main]/Mysql::Datadir/Mount[/var/lib/mysql]: Scheduling refresh of Mount[/var/lib/mysql]
==> ps1: Info: Mount[/var/lib/mysql](provider=parsed): Remounting
==> ps1: Notice: /Stage[main]/Mysql::Datadir/Mount[/var/lib/mysql]: Triggered 'refresh' from 3 events
==> ps1: Info: /Stage[main]/Mysql::Datadir/Mount[/var/lib/mysql]: Scheduling refresh of Mount[/var/lib/mysql]
==> ps1: Notice: /Stage[main]/Base::Packages/Package[psmisc]/ensure: created
==> ps1: Notice: /Stage[main]/Test::Sysbench_test_script/File[/usr/local/bin/run_sysbench_reload.sh]/ensure: created
==> ps1: Notice: /Stage[main]/Test::Sysbench_test_script/File[/usr/local/bin/run_sysbench_oltp.sh]/ensure: created
==> ps1: Notice: /Stage[main]/Test::Sysbench_test_script/File[/usr/local/bin/run_sysbench_update_index.sh]/ensure: created
==> ps1: Notice: /Stage[main]/Base::Insecure/Service[firewalld]/ensure: ensure changed 'running' to 'stopped'
==> ps1: Notice: /Stage[main]/Base::Packages/Service[ntpd]/ensure: ensure changed 'stopped' to 'running'
==> ps1: Info: /Stage[main]/Base::Packages/Service[ntpd]: Unscheduling refresh on Service[ntpd]
==> ps1: Notice: /Stage[main]/Misc::Myq_gadgets/Exec[myq_gadgets]/returns: executed successfully
==> ps1: Notice: /Stage[main]/Percona::Repository/Package[percona-release]/ensure: created
==> ps1: Notice: /Stage[main]/Percona::Sysbench/Package[sysbench]/ensure: created
==> ps1: Notice: /Stage[main]/Percona::Sysbench/File[/root/sysbench_tests]/ensure: created
==> ps1: Notice: /Stage[main]/Percona::Server/Package[Percona-Server-shared-56.x86_64]/ensure: created
==> ps1: Notice: /Stage[main]/Percona::Server/Package[Percona-Server-client-56.x86_64]/ensure: created
==> ps1: Notice: /Stage[main]/Percona::Server/Package[Percona-Server-server-56.x86_64]/ensure: created
==> ps1: Info: /Stage[main]/Percona::Config/File[/etc/my.cnf]: Filebucketed /etc/my.cnf to puppet with sum 80e1eb23d5fbd77fc0ff681b0f0df297
==> ps1: Notice: /Stage[main]/Percona::Config/File[/etc/my.cnf]/content: content changed '{md5}80e1eb23d5fbd77fc0ff681b0f0df297' to '{md5}fb4643d0a8f31e008b9c37ab0c4d46b7'
==> ps1: Info: /Stage[main]/Percona::Config/File[/etc/my.cnf]: Scheduling refresh of Service[mysql]
==> ps1: Error: Could not start Service[mysql]: Execution of '/bin/systemctl start mysql' returned 1: Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details.
==> ps1: Wrapped exception:
==> ps1: Execution of '/bin/systemctl start mysql' returned 1: Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details.
==> ps1: Error: /Stage[main]/Percona::Service/Service[mysql]/ensure: change from stopped to running failed: Could not start Service[mysql]: Execution of '/bin/systemctl start mysql' returned 1: Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details.
==> ps1: Notice: /Stage[main]/Percona::Service/Service[mysql]: Triggered 'refresh' from 1 events
==> ps1: Notice: /Stage[main]/Percona::Toolkit/Package[percona-toolkit]/ensure: created
==> ps1: Notice: /Stage[main]/Test::User/Exec[create_test_localhost_user]: Dependency Service[mysql] has failures: true
==> ps1: Warning: /Stage[main]/Test::User/Exec[create_test_localhost_user]: Skipping because of failed dependencies
==> ps1: Notice: /Stage[main]/Test::User/Exec[create_test_global_user]: Dependency Service[mysql] has failures: true
==> ps1: Warning: /Stage[main]/Test::User/Exec[create_test_global_user]: Skipping because of failed dependencies
==> ps1: Notice: /Stage[main]/Test::Sysbench_load/Exec[create_schema]: Dependency Service[mysql] has failures: true
==> ps1: Warning: /Stage[main]/Test::Sysbench_load/Exec[create_schema]: Skipping because of failed dependencies
==> ps1: Notice: /Stage[main]/Test::Sysbench_load/Exec[prepare_database]: Dependency Service[mysql] has failures: true
==> ps1: Warning: /Stage[main]/Test::Sysbench_load/Exec[prepare_database]: Skipping because of failed dependencies
==> ps1: Notice: /Stage[main]/Misc::Myq_tools/Exec[myq_tools]/returns: executed successfully
==> ps1: Error: Could not find command 'ps_tokudb_admin'
==> ps1: Error: /Stage[main]/Percona::Tokudb/Exec[MySQL-TokuDB]/returns: change from notrun to 0 failed: Could not find command 'ps_tokudb_admin'
==> ps1: Info: Creating state file /var/lib/puppet/state/state.yaml
==> ps1: Notice: Finished catalog run in 805.08 seconds
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
[michael@Michaels-MacBook-Pro vagrant-percona-michaelcoburn]$vagrant provision
==> ps1: Running provisioner: hostmanager...
==> ps1: Running provisioner: percona_server.pp (puppet)...
==> ps1: Running Puppet with percona_server.pp...
==> ps1: Warning: Setting manifestdir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
==> ps1: (at /usr/share/ruby/vendor_ruby/puppet/settings.rb:1095:in `block in issue_deprecations')
==> ps1: Info: Loading facts in /vagrant/modules/staging/lib/facter/staging_http_get.rb
==> ps1: Info: Loading facts in /vagrant/modules/staging/lib/facter/staging_windir.rb
==> ps1: Info: Loading facts in /vagrant/modules/stdlib/lib/facter/facter_dot_d.rb
==> ps1: Info: Loading facts in /vagrant/modules/stdlib/lib/facter/pe_version.rb
==> ps1: Info: Loading facts in /vagrant/modules/stdlib/lib/facter/puppet_vardir.rb
==> ps1: Info: Loading facts in /vagrant/modules/stdlib/lib/facter/root_home.rb
==> ps1: Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
==> ps1: Notice: Compiled catalog for ps1.cap.lan in environment production in 1.32 seconds
==> ps1: Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
==> ps1: (at /usr/share/ruby/vendor_ruby/puppet/type.rb:816:in `set_default')
==> ps1: Info: Applying configuration version '1430921990'
==> ps1: Notice: /Stage[main]/Percona::Tokudb/Package[Percona-Server-tokudb-56.x86_64]/ensure: created
==> ps1: Error: Could not start Service[mysql]: Execution of '/bin/systemctl start mysql' returned 1: Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details.
==> ps1: Wrapped exception:
==> ps1: Execution of '/bin/systemctl start mysql' returned 1: Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details.
==> ps1: Error: /Stage[main]/Percona::Service/Service[mysql]/ensure: change from stopped to running failed: Could not start Service[mysql]: Execution of '/bin/systemctl start mysql' returned 1: Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details.
==> ps1: Notice: /Stage[main]/Test::User/Exec[create_test_localhost_user]: Dependency Service[mysql] has failures: true
==> ps1: Notice: /Stage[main]/Test::User/Exec[create_test_global_user]: Dependency Service[mysql] has failures: true
==> ps1: Notice: /Stage[main]/Test::Sysbench_load/Exec[create_schema]: Dependency Service[mysql] has failures: true
==> ps1: Notice: /Stage[main]/Test::Sysbench_load/Exec[prepare_database]: Dependency Service[mysql] has failures: true
==> ps1: Warning: /Stage[main]/Test::User/Exec[create_test_localhost_user]: Skipping because of failed dependencies
==> ps1: Warning: /Stage[main]/Test::User/Exec[create_test_global_user]: Skipping because of failed dependencies
==> ps1: Warning: /Stage[main]/Test::Sysbench_load/Exec[create_schema]: Skipping because of failed dependencies
==> ps1: Warning: /Stage[main]/Test::Sysbench_load/Exec[prepare_database]: Skipping because of failed dependencies
==> ps1: Notice: /Stage[main]/Percona::Tokudb/Exec[MySQL-TokuDB]/returns: Checking if Percona server is running with jemalloc enabled...
==> ps1: Notice: /Stage[main]/Percona::Tokudb/Exec[MySQL-TokuDB]/returns: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
==> ps1: Notice: /Stage[main]/Percona::Tokudb/Exec[MySQL-TokuDB]/returns: >> Error checking pid file location!
==> ps1: Error: ps_tokudb_admin --enable returned 1 instead of one of [0]
==> ps1: Error: /Stage[main]/Percona::Tokudb/Exec[MySQL-TokuDB]/returns: change from notrun to 0 failed: ps_tokudb_admin --enable returned 1 instead of one of [0]
==> ps1: Notice: Finished catalog run in 149.47 seconds
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment