gitfs: No address associated with hostname for https protocol
When attempting to use a gitfs remote that's found via https, I get the following error:
2015-12-17 14:38:03,280 [salt.utils.gitfs ][ERROR ][4723] Exception 'Failed to resolve address for https: No address associated with hostname' caught while fetching gitfs remote 'https://git.company.com/salt/salt-states.git'
The relevant changes I make to the master config are:
gitfs_provider: pygit2
and
fileserver_backend:
- git
- roots
file_roots:
base:
- /srv/salt
gitfs_remotes:
- https://git.company.com/salt/salt-states.git
- git://github.com/saltstack-formulas/docker-formula.git
pillar_roots:
base:
- /srv/pillar
From pip list:
pygit2 (0.23.1)
installed on libgit2 v0.23.3.
Changing https: to git: gives a connection refused error instead. Changing the github remote to https: gives the same error.
# salt-master --version
salt-master 2015.8.3 (Beryllium)
@liamdawson, thanks for the report.
I presume this is because of "Git HTTPS repo using libgit2 in Ubuntu" —
you have to build libgit2 + libssl youself. Here is my small article how to make pygit2 to handle https.
Ideally we should try and get this fixed upstream. https://bugs.launchpad.net/ubuntu/+source/libgit2/+bug/1595565 is a bug report to upstream. If anyone knows of any other reports (say in Debian as well), it would be good to link them so we can add our weight to them
Related upstream bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832798
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.