salt icon indicating copy to clipboard operation
salt copied to clipboard

gitfs: No address associated with hostname for https protocol

Open liamdawson opened this issue 10 years ago • 5 comments

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 avatar Dec 17 '15 14:12 liamdawson

@liamdawson, thanks for the report.

jfindlay avatar Dec 17 '15 18:12 jfindlay

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.

denis-kalinin avatar Nov 03 '16 15:11 denis-kalinin

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

timwsuqld avatar Feb 24 '17 00:02 timwsuqld

Related upstream bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832798

timwsuqld avatar Feb 24 '17 00:02 timwsuqld

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.

stale[bot] avatar Sep 08 '18 17:09 stale[bot]