8000 Agent forwarding fails when using ssh tunnel for starting service by fleetctl · Issue #1352 · coreos/fleet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Agent forwarding fails when using ssh tunnel for starting service by fleetctl #1352

Closed
l15k4 opened this issue Sep 14, 2015 · 1 comment
Closed

Comments

@l15k4
Copy link
l15k4 commented Sep 14, 2015

Hey,

I created a new ticket for this issue as it is a different problem.

@bcwaldon Isn't it possible to get more information about the problem? It happens here :
https://github.com/coreos/fleet/blob/master/Godeps/_workspace/src/golang.org/x/crypto/ssh/agent/forward.go#L19

CoreOS stable (723.3.0)

Agent forwarding works on my laptop in general terms. my .ssh/config :

################################################
# General
Host *
StrictHostKeyChecking no
ServerAliveInterval 15
ForwardAgent yes
ForwardX11 no
###################################

Sometimes load works and it gets stuck on start but it happens even on service load :

$ fleetctl --version
fleetctl version 0.11.5+git
$ export FLEETCTL_TUNNEL=127.0.0.1:2222
$ ls
es-data@.service  es-discovery@.service  es-intelligent-discovery@.service  es@.service
$ fleetctl list-machines
MACHINE     IP      METADATA
d6112b20... 172.17.8.102    -
e604d80e... 172.17.8.101    -
$ fleetctl list-units
UNIT    MACHINE ACTIVE  SUB
$ fleetctl load es-data@{1,2}.service
2015/09/14 10:23:23 WARN fleetctl.go:799: Error retrieving Unit(es-data@2.service) from Registry: Get http://domain-sock/fleet/v1/units/es-data%402.service?alt=json: forwarding request denied
2015/09/14 10:23:34 WARN fleetctl.go:799: Error retrieving Unit(es-data@1.service) from Registry: Get http://domain-sock/fleet/v1/units/es-data%401.service?alt=json: forwarding request denied
2015/09/14 10:23:38 WARN fleetctl.go:799: Error retrieving Unit(es-data@2.service) from Registry: Get http://domain-sock/fleet/v1/units/es-data%402.service?alt=json: forwarding request denied
2015/09/14 10:24:09 WARN fleetctl.go:799: Error retrieving Unit(es-data@1.service) from Registry: Get http://domain-sock/fleet/v1/units/es-data%401.service?alt=json: forwarding request denied
2015/09/14 10:24:52 WARN fleetctl.go:799: Error retrieving Unit(es-data@2.service) from Registry: Get http://domain-sock/fleet/v1/units/es-data%402.service?alt=json: forwarding request denied
2015/09/14 10:25:17 WARN fleetctl.go:799: Error retrieving Unit(es-data@1.service) from Registry: Get http://domain-sock/fleet/v1/units/es-data%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/09/14 10:25:17 WARN fleetctl.go:799: Error retrieving Unit(es-data@2.service) from Registry: Get http://domain-sock/fleet/v1/units/es-data%402.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/09/14 10:25:27 WARN fleetctl.go:799: Error retrieving Unit(es-data@1.service) from Registry: Get http://domain-sock/fleet/v1/units/es-data%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/09/14 10:25:29 WARN fleetctl.go:799: Error retrieving Unit(es-data@2.service) from Registry: Get http://domain-sock/fleet/v1/units/es-data%402.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/09/14 10:25:44 WARN fleetctl.go:799: Error retrieving Unit(es-data@1.service) from Registry: Get http://domain-sock/fleet/v1/units/es-data%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/09/14 10:26:05 WARN fleetctl.go:799: Error retrieving Unit(es-data@2.service) from Registry: Get http://domain-sock/fleet/v1/units/es-data%402.service?alt=json: ssh: rejected: administratively prohibited (open failed)

Imho if you try reproduce sections Remote Fleet Access and Vagrant https://github.com/coreos/fleet/blob/master/Documentation/using-the-client.md you won't be able to start the services....

It seems to be resolved by explicitly setting --endpoint http://172.17.8.101:2379,http://172.17.8.101:2379

Anyway it hangs indefinitely with these debug messages :

2015/09/14 14:17:37 DEBUG fleetctl.go:815: Waiting for Unit(es-data@2.service) state(inactive) to be loaded
2015/09/14 14:17:37 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units/es-data%401.service?alt=json
2015/09/14 14:17:37 DEBUG http.go:31: HTTP GET http://domain-sock/fleet/v1/units/es-data%401.service?alt=json 200 OK
2015/09/14 14:17:37 DEBUG fleetctl.go:815: Waiting for Unit(es-data@1.service) state(inactive) to be loaded
2015/09/14 14:17:37 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units/es-data%402.service?alt=json
2015/09/14 14:17:37 DEBUG http.go:31: HTTP GET http://domain-sock/fleet/v1/units/es-data%402.service?alt=json 200 OK
2015/09/14 14:17:37 DEBUG fleetctl.go:815: Waiting for Unit(es-data@2.service) state(inactive) to be loaded
2015/09/14 14:17:37 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units/es-data%401.service?alt=json
2015/09/14 14:17:37 DEBUG http.go:31: HTTP GET http://domain-sock/fleet/v1/units/es-data%401.service?alt=json 200 OK
2015/09/14 14:17:37 DEBUG fleetctl.go:815: Waiting for Unit(es-data@1.service) state(inactive) to be loaded
2015/09/14 14:17:38 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units/es-data%402.service?alt=json
2015/09/14 14:17:38 DEBUG http.go:31: HTTP GET http://domain-sock/fleet/v1/units/es-data%402.service?alt=json 200 OK
2015/09/14 14:17:38 DEBUG fleetctl.go:815: Waiting for Unit(es-data@2.service) state(inactive) to be loaded
2015/09/14 14:17:38 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units/es-data%401.service?alt=json
2015/09/14 14:17:38 DEBUG http.go:31: HTTP GET http://domain-sock/fleet/v1/units/es-data%401.service?alt=json 200 OK
2015/09/14 14:17:38 DEBUG fleetctl.go:815: Waiting for Unit(es-data@1.service) state(inactive) to be loaded
2015/09/14 14:17:38 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units/es-data%402.service?alt=json
2015/09/14 14:17:38 DEBUG http.go:31: HTTP GET http://domain-sock/fleet/v1/units/es-data%402.service?alt=json 200 OK
2015/09/14 14:17:38 DEBUG fleetctl.go:815: Waiting for Unit(es-data@2.service) state(inactive) to be loaded
2015/09/14 14:17:38 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units/es-data%401.service?alt=json
2015/09/14 14:17:38 DEBUG http.go:31: HTTP GET http://domain-sock/fleet/v1/units/es-data%401.service?alt=json 200 OK
2015/09/14 14:17:38 DEBUG fleetctl.go:815: Waiting for Unit(es-data@1.service) state(inactive) to be loaded
2015/09/14 14:17:39 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units/es-data%402.service?alt=json
2015/09/14 14:17:39 DEBUG http.go:31: HTTP GET http://domain-sock/fleet/v1/units/es-data%402.service?alt=json 200 OK
2015/09/14 14:17:39 DEBUG fleetctl.go:815: Waiting for Unit(es-data@2.service) state(inactive) to be loaded
2015/09/14 14:17:39 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units/es-data%401.service?alt=json
2015/09/14 14:17:39 DEBUG http.go:31: HTTP GET http://domain-sock/fleet/v1/units/es-data%401.service?alt=json 200 OK
2015/09/14 14:17:39 DEBUG fleetctl.go:815: Waiting for Unit(es-data@1.service) state(inactive) to be loaded
@l15k4 l15k4 changed the title Agent forwarding fails when using fleetctl --tunnel Agent forwarding fails when using ssh tunnel for starting service by fleetctl Sep 14, 2015
@l15k4
Copy link
Author
l15k4 commented Sep 14, 2015

It wasn't related to ssh tunnel, I was just loading multiple services where the latter depends on the former this way :

fleetctl load a@service
fleetctl load b-depends-on-a@service

but you gotta do this :

fleetctl load -no-block=false a@service 
fleetctl load b-depends-on-a@service

or this way :

fleetctl load a@service b-depends-on-a@service

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
0