Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to change or disable ControlMaster for Vagrant rsync #8074

Closed
kenorb opened this issue Dec 2, 2016 · 2 comments
Closed

Ability to change or disable ControlMaster for Vagrant rsync #8074

kenorb opened this issue Dec 2, 2016 · 2 comments

Comments

@kenorb
Copy link
Contributor

kenorb commented Dec 2, 2016

Vagrant version

I'm using Vagrant 1.8.1

Host operating system & Guest operating system

Linux Ubuntu

Debug output

00:02:36.593 Command: rsync --verbose --archive --delete -z --copy-links --no-owner --no-group --rsync-path sudo rsync -e ssh -p 22 -o ControlMaster=auto -o ControlPath=/tmp/ssh.883 -o ControlPersist=10m -o StrictHostKeyChecking=no -o IdentitiesOnly=true -o UserKnownHostsFile=/dev/null -i '/var/lib/jenkins/secrets/Key.pem' --exclude .vagrant/ /var/lib/jenkins/workspace/Test-VM/ ubuntu@54.224.37.17:/vagrant
00:02:36.593 Error: Warning: Permanently added '54.224.37.17' (ECDSA) to the list of known hosts.
00:02:36.593 Timeout, server 54.224.37.17 not responding.
00:02:36.593 mux_client_request_session: read from master failed: Broken pipe
00:02:36.593 Failed to connect to new control master
00:02:36.593 rsync: connection unexpectedly closed (0 bytes received so far) [sender]

Expected behavior

ControlMaster should be disabled based on the ~/.ssh/config settings which are:

Host *
  ControlMaster no
  ControlPath none

However these settings are ignored.

Actual behavior

The ControlMaster is still set to auto are per rsync command above.

Steps to reproduce

Ideally Vagrant should use the same settings are per user SSH config file, but I think it's not. Same for other settings such as ControlPath which may fail sometimes for rsync, so I'd like to get rid of these settings or change them, as /tmp is not a good place to keep them anyway (as per this post). This is also to avoid issues as described in GH-6702 (but my both machines are Linux).

I'm using Vagrant AWS provider.

Workaround

The workaround is to comment out this line:

control_options = "-o ControlMaster=auto -o ControlPath=#{controlpath} -o ControlPersist=10m "

from helper.rb file. Although in my 1.8.1 I've got 3 lines to comment out.

@kenorb kenorb changed the title How to disable ControlMaster for Vagrant rsync? Ability to change or disable ControlMaster for Vagrant rsync Dec 2, 2016
@kenorb
Copy link
Contributor Author

kenorb commented Dec 2, 2016

Actually it wasn't the problem of ControlMaster. Don't need to disable it anymore.

@kenorb kenorb closed this as completed Dec 2, 2016
@ghost
Copy link

ghost commented Apr 3, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant