Comments (19)
...aaaaand I screwed up. The docs for the environment variable stuff landed before the actual feature :) Use --tunnel
for now.
from fleet.
Well everything else works. I can list-units, list-machines, start, stop, etc. with any problem.
from fleet.
And passing --tunnel
also fails, but with a slightly different error...
$ fleetctl --tunnel 127.0.0.1:2222 ssh --unit hello.service
2014/02/20 20:52:43 Unable to establish SSH connection: ssh: unable to open direct tcpip connection: open failed
from fleet.
Is Vagrant binding etcd to your laptop's localhost port 4001?
from fleet.
And are you confident Vagrant is using port 2222 for that SSH tunnel? Maybe share the output of
vagrant ssh-config
from fleet.
Is Vagrant binding etcd to your laptop's localhost port 4001?
yup
from fleet.
$ vagrant ssh-config
Host default
HostName 127.0.0.1
User core
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/joelmoss/.vagrant.d/insecure_private_key
IdentitiesOnly yes
LogLevel FATAL
list-units
works...
$ fleetctl list-units
UNIT LOAD ACTIVE SUB DESC MACHINE
hello.service loaded active running - fb3d1c42...
from fleet.
For the fleetctl list-units
(and other working commands), fleetctl
is just talking to etcd bound to localhost port 4001.
For the commands that do not work (status, journal, etc), fleetctl
wants to SSH to the machine hosting a given unit. Your machine is not publishing an IP address, so it is probably trying to ssh to localhost port 22, which is refusing connections.
from fleet.
I'm going to go poke at this on my box real quick.
from fleet.
@joelmoss What's the output of fleetctl list-machines
?
from fleet.
$ fleetctl list-machines
MACHINE IP METADATA
fb3d1c42... - -
from fleet.
One more... cat /etc/os-release
from fleet.
So the reason your machine isn't publishing an IP is because fleet just looks for the first ipv4 address on the eth0 interface, which vagrant does not have.
from fleet.
core@localhost ~ $ cat /etc/os-release
NAME=CoreOS
ID=coreos
VERSION=231.0.0
VERSION_ID=231.0.0
BUILD_ID=
PRETTY_NAME="CoreOS 231.0.0 (Official Build) dev-channel amd64-generic test"
ANSI_COLOR="1;32"
HOME_URL="http://www.coreos.com/"
from fleet.
Thank you, sir. I'll get back to you in a minute.
from fleet.
Using my Vagrant private IP also fails...
$ fleetctl --tunnel 172.12.8.150 ssh --unit hello.service
2014/02/20 21:03:55 Unable to establish SSH connection: ssh: unable to open direct tcpip connection: open failed
from fleet.
@joelmoss #152 will enable us to fix this problem on vagrant
from fleet.
We can use that code with fleet.conf:
public_interface="lo"
...but we really need the stock coreos vagrant box to ship with it
from fleet.
I actually have a better solution in #155. It uses netlink to determine which local interface is likely to have a routable IP bound to it. When using it with Vagrant, you end up with the IP on the private vagrant network, but that's ok:
% fleetctl --tunnel 127.0.0.1:2222 list-units
UNIT LOAD ACTIVE SUB DESC MACHINE
hello.service loaded active running - d66f8269.../10.0.2.15
% fleetctl --tunnel 127.0.0.1:2222 status hello.service
hello.service - Hello World
Loaded: loaded (/run/systemd/system/hello.service; enabled-runtime)
Active: active (running) since Thu 2014-02-20 14:06:43 UTC; 1min 18s ago
Main PID: 4092 (bash)
CGroup: /system.slice/hello.service
├─4092 /bin/bash -c while true; do echo "Hello, world"; sleep 1; done
└─4198 sleep 1
Feb 20 14:07:52 localhost bash[4092]: Hello, world
Feb 20 14:07:53 localhost bash[4092]: Hello, world
Feb 20 14:07:54 localhost bash[4092]: Hello, world
Feb 20 14:07:55 localhost bash[4092]: Hello, world
Feb 20 14:07:56 localhost bash[4092]: Hello, world
Feb 20 14:07:57 localhost bash[4092]: Hello, world
Feb 20 14:07:58 localhost bash[4092]: Hello, world
Feb 20 14:07:59 localhost bash[4092]: Hello, world
Feb 20 14:08:00 localhost bash[4092]: Hello, world
Feb 20 14:08:01 localhost bash[4092]: Hello, world
from fleet.
Related Issues (20)
- Random failure to submit units when etcd endpoint not specified HOT 1
- Official rkt images HOT 4
- Change logic of grpc client without calling ClientConn.State()
- Introduce cAPI.UnitState() for a single unit
- fleetctl status needs SSH_AUTH_SOCK HOT 2
- Warning if (duplicate) unit is already in systemd HOT 2
- Error creating units: error retrieving Unit([email protected]) from Registry: Get http://domain-sock/fleet/v1/units/appname-16%401.service?alt=json: EOF HOT 1
- Running units on part of the cluster stopped and started after master disconnect HOT 4
- Issue with --replace HOT 1
- systemd: turn off force flag when calling LinkUnitFiles()
- After reboots, timers sometimes broken due to missing service files HOT 1
- functional: TestNodeShutdown fails with CoreOS 1185
- container: create a fleet docker container HOT 3
- engine: TestScheduleMachineOf fails with gRPC turned on
- fleet: server monitor fails to shutdown process HOT 1
- Want to get resource usage of each running unit in the coreos, use the golang code , how to obtain, what API ~ HOT 1
- Do Fleet component have debug tool?I am Worried about this?Hope to get any answer。 HOT 1
- CoreOs cluster restarted all containers due to fleet or etcd errors HOT 1
- Handle hashed host names in known_hosts
- Here $SSHTIMEOUT not display proper value HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fleet.