{"action":"closed","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/7541","repository_url":"https://api.github.com/repos/mitchellh/vagrant","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7541/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7541/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7541/events","html_url":"https://github.com/mitchellh/vagrant/issues/7541","id":163476147,"number":7541,"title":"rsync__args cause rsync to not occur, does not cause run to fail","user":{"login":"gravyboat","id":1396878,"avatar_url":"https://avatars.githubusercontent.com/u/1396878?v=3","gravatar_id":"","url":"https://api.github.com/users/gravyboat","html_url":"https://github.com/gravyboat","followers_url":"https://api.github.com/users/gravyboat/followers","following_url":"https://api.github.com/users/gravyboat/following{/other_user}","gists_url":"https://api.github.com/users/gravyboat/gists{/gist_id}","starred_url":"https://api.github.com/users/gravyboat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravyboat/subscriptions","organizations_url":"https://api.github.com/users/gravyboat/orgs","repos_url":"https://api.github.com/users/gravyboat/repos","events_url":"https://api.github.com/users/gravyboat/events{/privacy}","received_events_url":"https://api.github.com/users/gravyboat/received_events","type":"User","site_admin":false},"labels":[{"id":25816,"url":"https://api.github.com/repos/mitchellh/vagrant/labels/bug","name":"bug","color":"e11d21","default":true},{"id":218284916,"url":"https://api.github.com/repos/mitchellh/vagrant/labels/synced-folders/rsync","name":"synced-folders/rsync","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/mitchellh/vagrant/milestones/21","html_url":"https://github.com/mitchellh/vagrant/milestone/21","labels_url":"https://api.github.com/repos/mitchellh/vagrant/milestones/21/labels","id":2040489,"number":21,"title":"Primary","description":"Primary issues to pull from for point releases. Main composition is bug reports and long outstanding requests.","creator":{"login":"chrisroberts","id":266674,"avatar_url":"https://avatars.githubusercontent.com/u/266674?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisroberts","html_url":"https://github.com/chrisroberts","followers_url":"https://api.github.com/users/chrisroberts/followers","following_url":"https://api.github.com/users/chrisroberts/following{/other_user}","gists_url":"https://api.github.com/users/chrisroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisroberts/subscriptions","organizations_url":"https://api.github.com/users/chrisroberts/orgs","repos_url":"https://api.github.com/users/chrisroberts/repos","events_url":"https://api.github.com/users/chrisroberts/events{/privacy}","received_events_url":"https://api.github.com/users/chrisroberts/received_events","type":"User","site_admin":false},"open_issues":71,"closed_issues":29,"state":"open","created_at":"2016-09-30T16:45:35Z","updated_at":"2016-12-08T23:09:23Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-07-01T21:21:03Z","updated_at":"2016-12-08T23:09:23Z","closed_at":"2016-12-08T23:09:23Z","body":"### Issue\n\nWhen using `rsync__args` rsync'ing files does not work, the associated directory on the system is empty. When not using these arguments, all files are copied without issue.\n\nI'll preface the rest of the details by saying that I am using `bundle exec vagrant XYZ` for all commands due to the way the repo is structure. This issue only occurs however if `rsync__args` are provided. If I drop the `rsync__args` values then the machine provisions perfectly fine. From what I see in the debug log there are no errors related to the rsync, the files simply are not being copied. I Have also tried multiple options for `rsync__args` such as simply including `--verbose` to keep things extremely simple and it still fails. Putting any value in for `rsync__args` causes files to not be copied.\n### Vagrant version\n\n1.8.4 via `vagrant -v`, and 1.8.5.dev via `bundle show`\n### Host operating system\n\nUbuntu Linux 16.04\n### Guest operating system\n\nUbuntu Linux 16.04\n### Vagrantfile\n\n``` ruby\n# -*- mode: ruby -*-\n# vi: set ft=ruby :\n\nrequire \"dotenv\"\nDotenv.overload(\".env\", \".env.local\")\n\nVagrant.configure(\"2\") do |config|\n  config.vm.box = \"ubuntu-xenial64\"\n\n  config.vm.synced_folder \".\", \"/vagrant\", type: :rsync,\n    rsync__exclude: %w(.git/ .DS_Store boxes/),\n    rsync__args: [\"--verbose\", \"--rsh='trickle -u 256 ssh'\"]\n\n  config.vm.provider :aws do |aws, ovveride|\n    config.ssh.pty = true\n\n    aws.access_key_id       = ENV[\"AWS_ACCESS_KEY_ID\"]\n    aws.associate_public_ip = true\n    aws.instance_type       = ENV[\"AWS_INSTANCE_TYPE\"]\n    aws.keypair_name        = ENV[\"AWS_KEYPAIR_NAME\"]\n    aws.region              = ENV[\"AWS_REGION\"]\n    aws.secret_access_key   = ENV[\"AWS_SECRET_ACCESS_KEY\"]\n    aws.security_groups     = Array(ENV[\"AWS_SECURITY_GROUP\"])\n    aws.subnet_id           = ENV[\"AWS_SUBNET_ID\"]\n    aws.user_data = \"#!/bin/bash\\nsed -i -e 's/^Defaults.*requiretty/# Defaults requiretty/g' /etc/sudoers\"\n\n    override.nfs.functional = false\n    override.ssh.username   = \"ubuntu\"\n  end\n\n\n  %i(test_system).each do |role|\n    config.vm.define(role, autostart: false) do |machine|\n      opts = { env:        { SUITE: role },\n               keep_color: true,\n               path:       \"scripts/bootstrap.sh\" }\n\n      machine.vm.provision(\"shell\", opts)\n    end\n  end\nend\n\n```\n### Debug output\n\nI've pasted what portion of the debug log I can without concerns for security that are related to this issue and have scoured the logs prior to this portion for errors and there are none. The output is nearly identical between the working version, and the failing version:\n\nhttps://gist.github.com/gravyboat/16cb796944a8ef36b99c2d43be7e3d87\n### Expected behavior\n\nFiles should have been rsynced to the AWS instance using the arguments I specified.\n### Actual behavior\n\nFiles do not get rsync'd at all. The `vagrant up` quickly skips past the rsync stage.\n### Steps to reproduce\n1. `bundle exec vagrant up test_machine` while `rsync__args` exist within the Vagrantfile\n### References\n\nAre there any other GitHub issues (open or closed) that should be linked here?\n- Not that I am aware of at this time.\n"}}
{"actor":{"display_login":"chrisroberts"}}