Skip to content

Instantly share code, notes, and snippets.

@sbeliakou
Created January 31, 2017 19:39
Show Gist options
  • Save sbeliakou/b6792e87e1d31366f6ee7fee569f8363 to your computer and use it in GitHub Desktop.
Save sbeliakou/b6792e87e1d31366f6ee7fee569f8363 to your computer and use it in GitHub Desktop.
Using /Users/sbeliakou/Desktop/mntlab/cm/vagrant/tests/ansible.cfg as config file
PLAYBOOK: test.yml *************************************************************
1 plays in ./test.yml
PLAY [notverified] *************************************************************
TASK [setup] *******************************************************************
ok: [EPBYMINW2470.minsk.epam.com]
ok: [EPBYMINW2467.minsk.epam.com]
ok: [EPBYMINW3088.minsk.epam.com]
ok: [EPBYMINW2033.minsk.epam.com]
ok: [EPBYMINW2468.minsk.epam.com]
ok: [EPBYMINW2472.minsk.epam.com]
ok: [EPBYMINW2473.minsk.epam.com]
ok: [EPBYMINW2471.minsk.epam.com]
ok: [EPBYMINW3092.minsk.epam.com]
ok: [EPBYMINW1969.minsk.epam.com]
fatal: [EPBYMINW2466.minsk.epam.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added 'epbyminw2466.minsk.epam.com,10.6.103.21' (ECDSA) to the list of known hosts.\r\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n", "unreachable": true}
ok: [EPBYMINW3093.minsk.epam.com]
ok: [EPBYMINW6405.minsk.epam.com]
ok: [EPBYMINW6406.minsk.epam.com]
fatal: [EPBYMINW2976.minsk.epam.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added 'epbyminw2976.minsk.epam.com,10.6.102.26' (ECDSA) to the list of known hosts.\r\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n", "unreachable": true}
fatal: [EPBYMINW1766.minsk.epam.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host epbyminw1766.minsk.epam.com port 22: Operation timed out\r\n", "unreachable": true}
fatal: [EPBYMINW2695.minsk.epam.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host epbyminw2695.minsk.epam.com port 22: Operation timed out\r\n", "unreachable": true}
fatal: [EPBYMINW2629.minsk.epam.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host epbyminw2629.minsk.epam.com port 22: Operation timed out\r\n", "unreachable": true}
fatal: [EPBYMINW1374.minsk.epam.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host epbyminw1374.minsk.epam.com port 22: Operation timed out\r\n", "unreachable": true}
TASK [vagrant up] **************************************************************
task path: /Users/sbeliakou/Desktop/mntlab/cm/vagrant/tests/test.yml:9
fatal: [EPBYMINW2033.minsk.epam.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to epbyminw2033.minsk.epam.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_HXWuy8/ansible_module_command.py\", line 212, in <module>\r\n main()\r\n File \"/tmp/ansible_HXWuy8/ansible_module_command.py\", line 155, in main\r\n os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/home/student/workspace/vagrant'\r\n", "msg": "MODULE FAILURE"}
fatal: [EPBYMINW3088.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:00.758808", "end": "2017-01-31 22:38:54.497122", "failed": true, "rc": 1, "start": "2017-01-31 22:38:53.738314", "stderr": "A Vagrant environment or target machine is required to run this\ncommand. Run `vagrant init` to create a new Vagrant environment. Or,\nget an ID of a target machine from `vagrant global-status` to run\nthis command on. A final option is to change to a directory with a\nVagrantfile and to try again.", "stdout": "/home/student/workspace/vagrant\ntotal 4\ndrwxrwxr-x. 3 student student 4096 Jan 31 16:21 mntlab\n\nstarting vagrant project", "stdout_lines": ["/home/student/workspace/vagrant", "total 4", "drwxrwxr-x. 3 student student 4096 Jan 31 16:21 mntlab", "", "starting vagrant project"], "warnings": []}
stdout: /home/student/workspace/vagrant
total 4
drwxrwxr-x. 3 student student 4096 Jan 31 16:21 mntlab
starting vagrant project
stderr: A Vagrant environment or target machine is required to run this
command. Run `vagrant init` to create a new Vagrant environment. Or,
get an ID of a target machine from `vagrant global-status` to run
this command on. A final option is to change to a directory with a
Vagrantfile and to try again.
fatal: [EPBYMINW2472.minsk.epam.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to epbyminw2472.minsk.epam.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_PuAgBT/ansible_module_command.py\", line 212, in <module>\r\n main()\r\n File \"/tmp/ansible_PuAgBT/ansible_module_command.py\", line 155, in main\r\n os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/home/student/workspace/vagrant'\r\n", "msg": "MODULE FAILURE"}
changed: [EPBYMINW2467.minsk.epam.com] => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:02.744395", "end": "2017-01-31 22:38:56.490483", "rc": 0, "start": "2017-01-31 22:38:53.746088", "stderr": "", "stdout": "/home/student/workspace/vagrant\ntotal 12\ndrwxrwxr-x. 2 student student 4096 Jan 31 14:10 rsync\ndrwxrwxr-x. 2 student student 4096 Jan 31 18:12 shared\n-rw-rw-r--. 1 student student 1851 Jan 31 18:45 Vagrantfile\n\nstarting vagrant project\nBringing machine 'nginx' up with 'virtualbox' provider...\nBringing machine 'tomcat' up with 'virtualbox' provider...\n==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> nginx: flag to force provisioning. Provisioners marked to run always will still run.\n==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.", "stdout_lines": ["/home/student/workspace/vagrant", "total 12", "drwxrwxr-x. 2 student student 4096 Jan 31 14:10 rsync", "drwxrwxr-x. 2 student student 4096 Jan 31 18:12 shared", "-rw-rw-r--. 1 student student 1851 Jan 31 18:45 Vagrantfile", "", "starting vagrant project", "Bringing machine 'nginx' up with 'virtualbox' provider...", "Bringing machine 'tomcat' up with 'virtualbox' provider...", "==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> nginx: flag to force provisioning. Provisioners marked to run always will still run.", "==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> tomcat: flag to force provisioning. Provisioners marked to run always will still run."], "warnings": []}
stdout: /home/student/workspace/vagrant
total 12
drwxrwxr-x. 2 student student 4096 Jan 31 14:10 rsync
drwxrwxr-x. 2 student student 4096 Jan 31 18:12 shared
-rw-rw-r--. 1 student student 1851 Jan 31 18:45 Vagrantfile
starting vagrant project
Bringing machine 'nginx' up with 'virtualbox' provider...
Bringing machine 'tomcat' up with 'virtualbox' provider...
==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> nginx: flag to force provisioning. Provisioners marked to run always will still run.
==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.
changed: [EPBYMINW2468.minsk.epam.com] => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:02.791983", "end": "2017-01-31 22:38:56.526018", "rc": 0, "start": "2017-01-31 22:38:53.734035", "stderr": "", "stdout": "/home/student/workspace/vagrant\ntotal 4\n-rw-rw-r--. 1 student student 949 Jan 31 20:23 Vagrantfile\n\nstarting vagrant project\nBringing machine 'nginx' up with 'virtualbox' provider...\nBringing machine 'tomcat' up with 'virtualbox' provider...\n==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> nginx: flag to force provisioning. Provisioners marked to run always will still run.\n==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.", "stdout_lines": ["/home/student/workspace/vagrant", "total 4", "-rw-rw-r--. 1 student student 949 Jan 31 20:23 Vagrantfile", "", "starting vagrant project", "Bringing machine 'nginx' up with 'virtualbox' provider...", "Bringing machine 'tomcat' up with 'virtualbox' provider...", "==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> nginx: flag to force provisioning. Provisioners marked to run always will still run.", "==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> tomcat: flag to force provisioning. Provisioners marked to run always will still run."], "warnings": []}
stdout: /home/student/workspace/vagrant
total 4
-rw-rw-r--. 1 student student 949 Jan 31 20:23 Vagrantfile
starting vagrant project
Bringing machine 'nginx' up with 'virtualbox' provider...
Bringing machine 'tomcat' up with 'virtualbox' provider...
==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> nginx: flag to force provisioning. Provisioners marked to run always will still run.
==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.
changed: [EPBYMINW2470.minsk.epam.com] => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:02.969958", "end": "2017-01-31 22:38:56.532188", "rc": 0, "start": "2017-01-31 22:38:53.562230", "stderr": "", "stdout": "/home/student/workspace/vagrant\ntotal 28\n-rwxrwxr-x. 1 student student 182 Jan 31 20:02 nginx.sh\ndrwxrwxr-x. 4 student student 4096 Jan 31 20:02 share1\ndrwxrwxr-x. 2 student student 4096 Jan 31 20:02 share2\n-rw-rw-r--. 1 student student 14 Jan 31 22:20 student_name.txt\n-rwxrwxr-x. 1 student student 265 Jan 31 20:02 tomcat.sh\n-rw-rw-r--. 1 student student 1335 Jan 31 20:02 Vagrant.copy\n-rw-rw-r--. 1 student student 1413 Jan 31 22:07 Vagrantfile\n\nstarting vagrant project\nBringing machine 'nginx' up with 'virtualbox' provider...\nBringing machine 'tomcat' up with 'virtualbox' provider...\n==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> nginx: flag to force provisioning. Provisioners marked to run always will still run.\n==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.", "stdout_lines": ["/home/student/workspace/vagrant", "total 28", "-rwxrwxr-x. 1 student student 182 Jan 31 20:02 nginx.sh", "drwxrwxr-x. 4 student student 4096 Jan 31 20:02 share1", "drwxrwxr-x. 2 student student 4096 Jan 31 20:02 share2", "-rw-rw-r--. 1 student student 14 Jan 31 22:20 student_name.txt", "-rwxrwxr-x. 1 student student 265 Jan 31 20:02 tomcat.sh", "-rw-rw-r--. 1 student student 1335 Jan 31 20:02 Vagrant.copy", "-rw-rw-r--. 1 student student 1413 Jan 31 22:07 Vagrantfile", "", "starting vagrant project", "Bringing machine 'nginx' up with 'virtualbox' provider...", "Bringing machine 'tomcat' up with 'virtualbox' provider...", "==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> nginx: flag to force provisioning. Provisioners marked to run always will still run.", "==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> tomcat: flag to force provisioning. Provisioners marked to run always will still run."], "warnings": []}
stdout: /home/student/workspace/vagrant
total 28
-rwxrwxr-x. 1 student student 182 Jan 31 20:02 nginx.sh
drwxrwxr-x. 4 student student 4096 Jan 31 20:02 share1
drwxrwxr-x. 2 student student 4096 Jan 31 20:02 share2
-rw-rw-r--. 1 student student 14 Jan 31 22:20 student_name.txt
-rwxrwxr-x. 1 student student 265 Jan 31 20:02 tomcat.sh
-rw-rw-r--. 1 student student 1335 Jan 31 20:02 Vagrant.copy
-rw-rw-r--. 1 student student 1413 Jan 31 22:07 Vagrantfile
starting vagrant project
Bringing machine 'nginx' up with 'virtualbox' provider...
Bringing machine 'tomcat' up with 'virtualbox' provider...
==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> nginx: flag to force provisioning. Provisioners marked to run always will still run.
==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.
fatal: [EPBYMINW2471.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:01.370479", "end": "2017-01-31 22:38:56.909506", "failed": true, "rc": 1, "start": "2017-01-31 22:38:55.539027", "stderr": "An action 'up' was attempted on the machine 'tomcat',\nbut another process is already executing an action on the machine.\nVagrant locks each machine for access by only one process at a time.\nPlease wait until the other Vagrant process finishes modifying this\nmachine, then try again.\n\nIf you believe this message is in error, please check the process\nlisting for any \"ruby\" or \"vagrant\" processes and kill them. Then\ntry again.", "stdout": "/home/student/workspace/vagrant\ntotal 538008\ndrwxrwxr-x. 2 student student 4096 Jan 31 13:31 mntlab\n-rw-r--r--. 1 student student 303 Jan 31 22:37 nginxsetup.sh\n-rw-rw-r--. 1 student student 550884900 Jan 30 21:35 sbeliakou-vagrant-centos-6.8-x86_64.box\n-rw-r--r--. 1 student student 942 Jan 31 22:37 tomcatsetup.sh\n-rw-r--r--. 1 student student 4341 Jan 31 21:11 v\n-rw-rw-r--. 1 student student 4367 Jan 31 22:09 Vagrantfile\n\nstarting vagrant project\nBringing machine 'tomcat' up with 'virtualbox' provider...\nBringing machine 'nginx' up with 'virtualbox' provider...", "stdout_lines": ["/home/student/workspace/vagrant", "total 538008", "drwxrwxr-x. 2 student student 4096 Jan 31 13:31 mntlab", "-rw-r--r--. 1 student student 303 Jan 31 22:37 nginxsetup.sh", "-rw-rw-r--. 1 student student 550884900 Jan 30 21:35 sbeliakou-vagrant-centos-6.8-x86_64.box", "-rw-r--r--. 1 student student 942 Jan 31 22:37 tomcatsetup.sh", "-rw-r--r--. 1 student student 4341 Jan 31 21:11 v", "-rw-rw-r--. 1 student student 4367 Jan 31 22:09 Vagrantfile", "", "starting vagrant project", "Bringing machine 'tomcat' up with 'virtualbox' provider...", "Bringing machine 'nginx' up with 'virtualbox' provider..."], "warnings": []}
stdout: /home/student/workspace/vagrant
total 538008
drwxrwxr-x. 2 student student 4096 Jan 31 13:31 mntlab
-rw-r--r--. 1 student student 303 Jan 31 22:37 nginxsetup.sh
-rw-rw-r--. 1 student student 550884900 Jan 30 21:35 sbeliakou-vagrant-centos-6.8-x86_64.box
-rw-r--r--. 1 student student 942 Jan 31 22:37 tomcatsetup.sh
-rw-r--r--. 1 student student 4341 Jan 31 21:11 v
-rw-rw-r--. 1 student student 4367 Jan 31 22:09 Vagrantfile
starting vagrant project
Bringing machine 'tomcat' up with 'virtualbox' provider...
Bringing machine 'nginx' up with 'virtualbox' provider...
stderr: An action 'up' was attempted on the machine 'tomcat',
but another process is already executing an action on the machine.
Vagrant locks each machine for access by only one process at a time.
Please wait until the other Vagrant process finishes modifying this
machine, then try again.
If you believe this message is in error, please check the process
listing for any "ruby" or "vagrant" processes and kill them. Then
try again.
fatal: [EPBYMINW1969.minsk.epam.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to epbyminw1969.minsk.epam.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_P9NaX4/ansible_module_command.py\", line 212, in <module>\r\n main()\r\n File \"/tmp/ansible_P9NaX4/ansible_module_command.py\", line 155, in main\r\n os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/home/student/workspace/vagrant'\r\n", "msg": "MODULE FAILURE"}
fatal: [EPBYMINW3092.minsk.epam.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to epbyminw3092.minsk.epam.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_FIesX9/ansible_module_command.py\", line 212, in <module>\r\n main()\r\n File \"/tmp/ansible_FIesX9/ansible_module_command.py\", line 155, in main\r\n os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/home/student/workspace/vagrant'\r\n", "msg": "MODULE FAILURE"}
fatal: [EPBYMINW6406.minsk.epam.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to epbyminw6406.minsk.epam.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_APgrAy/ansible_module_command.py\", line 212, in <module>\r\n main()\r\n File \"/tmp/ansible_APgrAy/ansible_module_command.py\", line 155, in main\r\n os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/home/student/workspace/vagrant'\r\n", "msg": "MODULE FAILURE"}
fatal: [EPBYMINW2473.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:03.645106", "end": "2017-01-31 22:38:59.242278", "failed": true, "rc": 1, "start": "2017-01-31 22:38:55.597172", "stderr": "The box you're attempting to add doesn't support the provider\nyou requested. Please find an alternate box or use an alternate\nprovider. Double-check your requested provider to verify you didn't\nsimply misspell it.\n\nIf you're adding a box from HashiCorp's Atlas, make sure the box is\nreleased.\n\nName: sunofsparda/centos-6.8-x86_64\nAddress: https://atlas.hashicorp.com/sunofsparda/centos-6.8-x86_64\nRequested provider: [:virtualbox]", "stdout": "/home/student/workspace/vagrant\ntotal 12\ndrwxrwxr-x. 3 student student 4096 Jan 31 20:31 install\n-rw-rw-r--. 1 student student 4057 Jan 31 20:31 Vagrantfile\n-rwxrwxr-x. 1 student student 234 Jan 31 20:31 vjuh.sh\n\nstarting vagrant project\nBringing machine 'vm1' up with 'virtualbox' provider...\nBringing machine 'vm2' up with 'virtualbox' provider...\n==> vm1: Box 'sunofsparda/centos-6.8-x86_64' could not be found. Attempting to find and install...\n vm1: Box Provider: virtualbox\n vm1: Box Version: >= 0\n==> vm1: Loading metadata for box 'sunofsparda/centos-6.8-x86_64'\n vm1: URL: https://atlas.hashicorp.com/sunofsparda/centos-6.8-x86_64", "stdout_lines": ["/home/student/workspace/vagrant", "total 12", "drwxrwxr-x. 3 student student 4096 Jan 31 20:31 install", "-rw-rw-r--. 1 student student 4057 Jan 31 20:31 Vagrantfile", "-rwxrwxr-x. 1 student student 234 Jan 31 20:31 vjuh.sh", "", "starting vagrant project", "Bringing machine 'vm1' up with 'virtualbox' provider...", "Bringing machine 'vm2' up with 'virtualbox' provider...", "==> vm1: Box 'sunofsparda/centos-6.8-x86_64' could not be found. Attempting to find and install...", " vm1: Box Provider: virtualbox", " vm1: Box Version: >= 0", "==> vm1: Loading metadata for box 'sunofsparda/centos-6.8-x86_64'", " vm1: URL: https://atlas.hashicorp.com/sunofsparda/centos-6.8-x86_64"], "warnings": []}
stdout: /home/student/workspace/vagrant
total 12
drwxrwxr-x. 3 student student 4096 Jan 31 20:31 install
-rw-rw-r--. 1 student student 4057 Jan 31 20:31 Vagrantfile
-rwxrwxr-x. 1 student student 234 Jan 31 20:31 vjuh.sh
starting vagrant project
Bringing machine 'vm1' up with 'virtualbox' provider...
Bringing machine 'vm2' up with 'virtualbox' provider...
==> vm1: Box 'sunofsparda/centos-6.8-x86_64' could not be found. Attempting to find and install...
vm1: Box Provider: virtualbox
vm1: Box Version: >= 0
==> vm1: Loading metadata for box 'sunofsparda/centos-6.8-x86_64'
vm1: URL: https://atlas.hashicorp.com/sunofsparda/centos-6.8-x86_64
stderr: The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.
If you're adding a box from HashiCorp's Atlas, make sure the box is
released.
Name: sunofsparda/centos-6.8-x86_64
Address: https://atlas.hashicorp.com/sunofsparda/centos-6.8-x86_64
Requested provider: [:virtualbox]
fatal: [EPBYMINW6405.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:02.359312", "end": "2017-01-31 22:38:59.913472", "failed": true, "rc": 1, "start": "2017-01-31 22:38:57.554160", "stderr": "An error occurred while downloading the remote file. The error\nmessage, if any, is reproduced below. Please fix this error and try\nagain.\n\nCouldn't open file /home/student/workspace/vagrant/base", "stdout": "/home/student/workspace/vagrant\ntotal 4\n-rw-rw-r--. 1 student student 3008 Jan 31 21:44 Vagrantfile\n\nstarting vagrant project\nBringing machine 'default' up with 'virtualbox' provider...\n==> default: Box 'base' could not be found. Attempting to find and install...\n default: Box Provider: virtualbox\n default: Box Version: >= 0\n==> default: Box file was not detected as metadata. Adding it directly...\n==> default: Adding box 'base' (v0) for provider: virtualbox\n default: Downloading: base\n\r\u001b[K", "stdout_lines": ["/home/student/workspace/vagrant", "total 4", "-rw-rw-r--. 1 student student 3008 Jan 31 21:44 Vagrantfile", "", "starting vagrant project", "Bringing machine 'default' up with 'virtualbox' provider...", "==> default: Box 'base' could not be found. Attempting to find and install...", " default: Box Provider: virtualbox", " default: Box Version: >= 0", "==> default: Box file was not detected as metadata. Adding it directly...", "==> default: Adding box 'base' (v0) for provider: virtualbox", " default: Downloading: base", "", "\u001b[K"], "warnings": []}
stdout: /home/student/workspace/vagrant
total 4
-rw-rw-r--. 1 student student 3008 Jan 31 21:44 Vagrantfile
starting vagrant project
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'base' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'base' (v0) for provider: virtualbox
default: Downloading: base

stderr: An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't open file /home/student/workspace/vagrant/base
fatal: [EPBYMINW3093.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:02.970133", "end": "2017-01-31 22:39:00.202374", "failed": true, "rc": 1, "start": "2017-01-31 22:38:57.232241", "stderr": "An action 'up' was attempted on the machine 'nginx',\nbut another process is already executing an action on the machine.\nVagrant locks each machine for access by only one process at a time.\nPlease wait until the other Vagrant process finishes modifying this\nmachine, then try again.\n\nIf you believe this message is in error, please check the process\nlisting for any \"ruby\" or \"vagrant\" processes and kill them. Then\ntry again.", "stdout": "/home/student/workspace/vagrant\ntotal 12\ndrwxrwxr-x. 2 student student 4096 Jan 31 22:38 nginx_src\ndrwxrwxr-x. 2 student student 4096 Jan 31 22:38 tomcat_src\n-rw-rw-r--. 1 student student 1795 Jan 31 22:36 Vagrantfile\n\nstarting vagrant project\nBringing machine 'nginx' up with 'virtualbox' provider...\nBringing machine 'tomcat' up with 'virtualbox' provider...", "stdout_lines": ["/home/student/workspace/vagrant", "total 12", "drwxrwxr-x. 2 student student 4096 Jan 31 22:38 nginx_src", "drwxrwxr-x. 2 student student 4096 Jan 31 22:38 tomcat_src", "-rw-rw-r--. 1 student student 1795 Jan 31 22:36 Vagrantfile", "", "starting vagrant project", "Bringing machine 'nginx' up with 'virtualbox' provider...", "Bringing machine 'tomcat' up with 'virtualbox' provider..."], "warnings": []}
stdout: /home/student/workspace/vagrant
total 12
drwxrwxr-x. 2 student student 4096 Jan 31 22:38 nginx_src
drwxrwxr-x. 2 student student 4096 Jan 31 22:38 tomcat_src
-rw-rw-r--. 1 student student 1795 Jan 31 22:36 Vagrantfile
starting vagrant project
Bringing machine 'nginx' up with 'virtualbox' provider...
Bringing machine 'tomcat' up with 'virtualbox' provider...
stderr: An action 'up' was attempted on the machine 'nginx',
but another process is already executing an action on the machine.
Vagrant locks each machine for access by only one process at a time.
Please wait until the other Vagrant process finishes modifying this
machine, then try again.
If you believe this message is in error, please check the process
listing for any "ruby" or "vagrant" processes and kill them. Then
try again.
TASK [check boxes amount] ******************************************************
task path: /Users/sbeliakou/Desktop/mntlab/cm/vagrant/tests/test.yml:18
changed: [EPBYMINW2467.minsk.epam.com] => {"changed": true, "cmd": "vagrant status\n [ $(vagrant status | grep running | wc -l) -ne 2 ] && exit 1 || echo\n", "delta": "0:00:03.217262", "end": "2017-01-31 22:39:03.917182", "rc": 0, "start": "2017-01-31 22:39:00.699920", "stderr": "", "stdout": "Current machine states:\n\nnginx running (virtualbox)\ntomcat running (virtualbox)\n\nThis environment represents multiple VMs. The VMs are all listed\nabove with their current state. For more information about a specific\nVM, run `vagrant status NAME`.", "stdout_lines": ["Current machine states:", "", "nginx running (virtualbox)", "tomcat running (virtualbox)", "", "This environment represents multiple VMs. The VMs are all listed", "above with their current state. For more information about a specific", "VM, run `vagrant status NAME`."], "warnings": []}
stdout: Current machine states:
nginx running (virtualbox)
tomcat running (virtualbox)
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.
changed: [EPBYMINW2468.minsk.epam.com] => {"changed": true, "cmd": "vagrant status\n [ $(vagrant status | grep running | wc -l) -ne 2 ] && exit 1 || echo\n", "delta": "0:00:03.262545", "end": "2017-01-31 22:39:03.996532", "rc": 0, "start": "2017-01-31 22:39:00.733987", "stderr": "", "stdout": "Current machine states:\n\nnginx running (virtualbox)\ntomcat running (virtualbox)\n\nThis environment represents multiple VMs. The VMs are all listed\nabove with their current state. For more information about a specific\nVM, run `vagrant status NAME`.", "stdout_lines": ["Current machine states:", "", "nginx running (virtualbox)", "tomcat running (virtualbox)", "", "This environment represents multiple VMs. The VMs are all listed", "above with their current state. For more information about a specific", "VM, run `vagrant status NAME`."], "warnings": []}
stdout: Current machine states:
nginx running (virtualbox)
tomcat running (virtualbox)
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.
changed: [EPBYMINW2470.minsk.epam.com] => {"changed": true, "cmd": "vagrant status\n [ $(vagrant status | grep running | wc -l) -ne 2 ] && exit 1 || echo\n", "delta": "0:00:03.406949", "end": "2017-01-31 22:39:04.109735", "rc": 0, "start": "2017-01-31 22:39:00.702786", "stderr": "", "stdout": "Current machine states:\n\nnginx running (virtualbox)\ntomcat running (virtualbox)\n\nThis environment represents multiple VMs. The VMs are all listed\nabove with their current state. For more information about a specific\nVM, run `vagrant status NAME`.", "stdout_lines": ["Current machine states:", "", "nginx running (virtualbox)", "tomcat running (virtualbox)", "", "This environment represents multiple VMs. The VMs are all listed", "above with their current state. For more information about a specific", "VM, run `vagrant status NAME`."], "warnings": []}
stdout: Current machine states:
nginx running (virtualbox)
tomcat running (virtualbox)
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.
TASK [vagrant tests] ***********************************************************
task path: /Users/sbeliakou/Desktop/mntlab/cm/vagrant/tests/test.yml:24
fatal: [EPBYMINW2467.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "vagrant status | grep running | cut -d' ' -f1 | xargs --no-run-if-empty -iF vagrant ssh F -c \"curl -sIL localhost\"\n echo\n echo \"TOMCAT Forward:\"\n tcat=\"$(vagrant status | grep running | cut -d' ' -f1 | xargs -iF vagrant ssh F -c 'curl -s localhost' | grep Congratulations)\"\n [ -z $tcat ] && exit 1 || echo $tacat\n echo\n", "delta": "0:00:09.148379", "end": "2017-01-31 22:39:13.738702", "failed": true, "rc": 1, "start": "2017-01-31 22:39:04.590323", "stderr": "", "stdout": "\nTOMCAT Forward:", "stdout_lines": ["", "TOMCAT Forward:"], "warnings": []}
stdout:
TOMCAT Forward:
fatal: [EPBYMINW2468.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "vagrant status | grep running | cut -d' ' -f1 | xargs --no-run-if-empty -iF vagrant ssh F -c \"curl -sIL localhost\"\n echo\n echo \"TOMCAT Forward:\"\n tcat=\"$(vagrant status | grep running | cut -d' ' -f1 | xargs -iF vagrant ssh F -c 'curl -s localhost' | grep Congratulations)\"\n [ -z $tcat ] && exit 1 || echo $tacat\n echo\n", "delta": "0:00:09.268885", "end": "2017-01-31 22:39:13.862489", "failed": true, "rc": 1, "start": "2017-01-31 22:39:04.593604", "stderr": "", "stdout": "\nTOMCAT Forward:", "stdout_lines": ["", "TOMCAT Forward:"], "warnings": []}
stdout:
TOMCAT Forward:
changed: [EPBYMINW2470.minsk.epam.com] => {"changed": true, "cmd": "vagrant status | grep running | cut -d' ' -f1 | xargs --no-run-if-empty -iF vagrant ssh F -c \"curl -sIL localhost\"\n echo\n echo \"TOMCAT Forward:\"\n tcat=\"$(vagrant status | grep running | cut -d' ' -f1 | xargs -iF vagrant ssh F -c 'curl -s localhost' | grep Congratulations)\"\n [ -z $tcat ] && exit 1 || echo $tacat\n echo\n", "delta": "0:00:10.100804", "end": "2017-01-31 22:39:14.693265", "rc": 0, "start": "2017-01-31 22:39:04.592461", "stderr": "/bin/sh: line 4: [: too many arguments", "stdout": "HTTP/1.1 200 \r\nServer: nginx/1.10.2\r\nDate: Tue, 31 Jan 2017 19:39:03 GMT\r\nContent-Type: text/html;charset=UTF-8\r\nConnection: keep-alive\r\n\r\n\nTOMCAT Forward:", "stdout_lines": ["HTTP/1.1 200 ", "Server: nginx/1.10.2", "Date: Tue, 31 Jan 2017 19:39:03 GMT", "Content-Type: text/html;charset=UTF-8", "Connection: keep-alive", "", "", "TOMCAT Forward:"], "warnings": []}
stdout: HTTP/1.1 200
Server: nginx/1.10.2
Date: Tue, 31 Jan 2017 19:39:03 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
TOMCAT Forward:
stderr: /bin/sh: line 4: [: too many arguments
TASK [show Vagrantfile] ********************************************************
task path: /Users/sbeliakou/Desktop/mntlab/cm/vagrant/tests/test.yml:34
changed: [EPBYMINW2470.minsk.epam.com] => {"changed": true, "cmd": "echo ls -l echo echo \"Vagrantfile:\" cat Vagrantfile", "delta": "0:00:00.003034", "end": "2017-01-31 22:39:15.086267", "rc": 0, "start": "2017-01-31 22:39:15.083233", "stderr": "", "stdout": "ls -l echo echo Vagrantfile: cat Vagrantfile", "stdout_lines": ["ls -l echo echo Vagrantfile: cat Vagrantfile"], "warnings": []}
stdout: ls -l echo echo Vagrantfile: cat Vagrantfile
TASK [student] *****************************************************************
task path: /Users/sbeliakou/Desktop/mntlab/cm/vagrant/tests/test.yml:43
changed: [EPBYMINW2470.minsk.epam.com] => {"changed": true, "cmd": "cat student_name.txt", "delta": "0:00:00.003841", "end": "2017-01-31 22:39:15.508194", "rc": 0, "start": "2017-01-31 22:39:15.504353", "stderr": "", "stdout": "Pavel Heraska", "stdout_lines": ["Pavel Heraska"], "warnings": []}
stdout: Pavel Heraska
PLAY RECAP *********************************************************************
EPBYMINW1374.minsk.epam.com : ok=0 changed=0 unreachable=1 failed=0
EPBYMINW1766.minsk.epam.com : ok=0 changed=0 unreachable=1 failed=0
EPBYMINW1969.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW2033.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW2466.minsk.epam.com : ok=0 changed=0 unreachable=1 failed=0
EPBYMINW2467.minsk.epam.com : ok=3 changed=2 unreachable=0 failed=1
EPBYMINW2468.minsk.epam.com : ok=3 changed=2 unreachable=0 failed=1
EPBYMINW2470.minsk.epam.com : ok=6 changed=5 unreachable=0 failed=0
EPBYMINW2471.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW2472.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW2473.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW2629.minsk.epam.com : ok=0 changed=0 unreachable=1 failed=0
EPBYMINW2695.minsk.epam.com : ok=0 changed=0 unreachable=1 failed=0
EPBYMINW2976.minsk.epam.com : ok=0 changed=0 unreachable=1 failed=0
EPBYMINW3088.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW3092.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW3093.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW6405.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW6406.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment