hashicorp / go-discover

Discover nodes in cloud environments
Mozilla Public License 2.0
560 stars 122 forks source link

OpenStack Domain missing #22

Open hprotzek opened 6 years ago

hprotzek commented 6 years ago

I am using go-discover over consul 1.0.2 with openstack and it fails to authenticate because of the by default empty Domain name:

ao := gophercloud.AuthOptions{
        // "domain_id": OS_DOMAIN_ID
        DomainID: "",
        // "domain_name": OS_DOMAIN_NAME
        DomainName:       "",
        IdentityEndpoint: url,
        Username:         username,
        Password:         password,
        TokenID:          token,
        TenantID:         projectID,
    }

2017/12/25 12:07:14 [ERR] agent: Join LAN: discover-os: Authentication failed: You must provide exactly one of DomainID or DomainName to authenticate by Username

bobchaos commented 6 years ago

+1 somewhat related, the docs state we should use "username" but the correct parameter to pass for this provider is "user_name" in 1.0.3

EikeIsermann commented 6 years ago

+1 I'm not sure on why these fields are commented out - but I can't get retry_join to work with Keystone V3 as DomainID or DomainName are always missing. I'm not that firm with go - is the issue on my side or is it the commented domain strings?

BabisK commented 6 years ago

42

mitchellmaler commented 6 years ago

I just ran into this issue. My openstack tenant requires domain but the provider does not allow passing a domain name or ID currently. When do you think this will be merged and then released with consul?