https://bugzilla.redhat.com/show_bug.cgi?id=1243827



--- Comment #3 from Marius Vollmer <[email protected]> ---
> That's your problem

I think this is a pretty clean installation from scratch.  All config files
should be as they were in the rpms:

  laptop# virt-builder fedora-22 ...
  laptop# ssh root@vm
  vm# dnf install etc kubernetes
  vm# systemctl start etcd kubernetes

Would you say that the above should work?  Is there a mistake somewhere?  (Can
I not start etcd and kubernetes in parallel, for example?  That would also be a
bug, I'd say.)

> Is etcd started?

Yes.

# systemctl status etcd
● etcd.service - Etcd Server
   Loaded: loaded (/usr/lib/systemd/system/etcd.service; disabled; vendor
preset: disabled)
   Active: active (running) since Thu 2015-07-16 14:44:37 EDT; 14min ago
 Main PID: 838 (etcd)
   CGroup: /system.slice/etcd.service
           └─838 /usr/bin/etcd

> What's the config file?

Straight from the rpm:

# cat /etc/etcd/etcd.conf 
# [member]
ETCD_NAME=default
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
#ETCD_SNAPSHOT_COUNTER="10000"
#ETCD_HEARTBEAT_INTERVAL="100"
#ETCD_ELECTION_TIMEOUT="1000"
#ETCD_LISTEN_PEER_URLS="http://localhost:2380";
ETCD_LISTEN_CLIENT_URLS="http://localhost:2379";
#ETCD_MAX_SNAPSHOTS="5"
#ETCD_MAX_WALS="5"
#ETCD_CORS=""
#
#[cluster]
#ETCD_INITIAL_ADVERTISE_PEER_URLS="http://localhost:2380";
# if you use different ETCD_NAME (e.g. test), set ETCD_INITIAL_CLUSTER value
for this name, i.e. "test=http://...";
#ETCD_INITIAL_CLUSTER="default=http://localhost:2380";
#ETCD_INITIAL_CLUSTER_STATE="new"
#ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster"
ETCD_ADVERTISE_CLIENT_URLS="http://localhost:2379";
#ETCD_DISCOVERY=""
#ETCD_DISCOVERY_SRV=""
#ETCD_DISCOVERY_FALLBACK="proxy"
#ETCD_DISCOVERY_PROXY=""
#
#[proxy]
#ETCD_PROXY="off"
#
#[security]
#ETCD_CERT_FILE=""
#ETCD_KEY_FILE=""
#ETCD_CLIENT_CERT_AUTH="false"
#ETCD_TRUSTED_CA_FILE=""
#ETCD_PEER_CERT_FILE=""
#ETCD_PEER_KEY_FILE=""
#ETCD_PEER_CLIENT_CERT_AUTH="false"
#ETCD_PEER_TRUSTED_CA_FILE=""
#
#[logging]
#ETCD_DEBUG="false"
# examples for -log-package-levels etcdserver=WARNING,security=DEBUG
#ETCD_LOG_PACKAGE_LEVELS=""

> Is it listening on 4001? 

No.  (Not my fault, I like to add. :-)

# netstat -nap | grep LISTEN | grep etcd
tcp        0      0 127.0.0.1:7001          0.0.0.0:*               LISTEN     
838/etcd            
tcp        0      0 127.0.0.1:2379          0.0.0.0:*               LISTEN     
838/etcd            
tcp        0      0 127.0.0.1:2380          0.0.0.0:*               LISTEN     
838/etcd            

I have changed /etc/kubernetes/apiserver like so:

# cat /etc/kubernetes/apiserver 
###
# kubernetes system config
#
# The following values are used to configure the kube-apiserver
#

# The address on the local server to listen to.
KUBE_API_ADDRESS="--address=127.0.0.1"

# The port on the local server to listen on.
# KUBE_API_PORT="--port=8080"

# Port minions listen on
# KUBELET_PORT="--kubelet_port=10250"

# Comma separated list of nodes in the etcd cluster
KUBE_ETCD_SERVERS="--etcd_servers=http://127.0.0.1:7001";

# Address range to use for services
KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16"

# default admission control policies
KUBE_ADMISSION_CONTROL="--admission_control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota"

# Add your own!
KUBE_API_ARGS=""

But it still wont start:

# systemctl stop kube-apiserver
# systemctl start kube-apiserver
Job for kube-apiserver.service failed. See "systemctl status
kube-apiserver.service" and "journalctl -xe" for details.

Jul 16 15:02:42 m10 systemd[1]: Starting Kubernetes API Server...
Jul 16 15:02:42 m10 kube-apiserver[1973]: I0716 15:02:42.917749    1973
plugins.go:69] No cloud provider specified.
Jul 16 15:02:42 m10 kube-apiserver[1973]: I0716 15:02:42.918818    1973
master.go:255] Node port range unspecified. Defaulting to 30000-32767.
Jul 16 15:02:42 m10 kube-apiserver[1973]: I0716 15:02:42.919527    1973
master.go:277] Will report 10.111.111.10 as public IP address.
Jul 16 15:02:42 m10 kube-apiserver[1973]: E0716 15:02:42.944255    1973
reflector.go:136] Failed to list *api.ResourceQuota: Get
http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:42 m10 kube-apiserver[1973]: E0716 15:02:42.944753    1973
reflector.go:136] Failed to list *api.Secret: Get
http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token:
dial tcp 127.0.0.1:8080: connection refused
Jul 16 15:02:42 m10 kube-apiserver[1973]: E0716 15:02:42.945096    1973
reflector.go:136] Failed to list *api.ServiceAccount: Get
http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:42 m10 kube-apiserver[1973]: E0716 15:02:42.945432    1973
reflector.go:136] Failed to list *api.LimitRange: Get
http://127.0.0.1:8080/api/v1/limitranges: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:42 m10 kube-apiserver[1973]: E0716 15:02:42.945729    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:42 m10 kube-apiserver[1973]: E0716 15:02:42.946022    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:42 m10 kube-apiserver[1973]: [restful] 2015/07/16 15:02:42
log.go:30: [restful/swagger] listing is available at
https://10.111.111.10:6443/swaggerapi/
Jul 16 15:02:42 m10 kube-apiserver[1973]: [restful] 2015/07/16 15:02:42
log.go:30: [restful/swagger] https://10.111.111.10:6443/swaggerui/ is mapped to
folder /swagger-ui/
Jul 16 15:02:43 m10 kube-apiserver[1973]: E0716 15:02:43.947116    1973
reflector.go:136] Failed to list *api.LimitRange: Get
http://127.0.0.1:8080/api/v1/limitranges: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:43 m10 kube-apiserver[1973]: E0716 15:02:43.948160    1973
reflector.go:136] Failed to list *api.ServiceAccount: Get
http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:43 m10 kube-apiserver[1973]: E0716 15:02:43.948239    1973
reflector.go:136] Failed to list *api.Secret: Get
http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token:
dial tcp 127.0.0.1:8080: connection refused
Jul 16 15:02:43 m10 kube-apiserver[1973]: E0716 15:02:43.948309    1973
reflector.go:136] Failed to list *api.ResourceQuota: Get
http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:43 m10 kube-apiserver[1973]: E0716 15:02:43.948927    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:43 m10 kube-apiserver[1973]: E0716 15:02:43.951738    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:44 m10 kube-apiserver[1973]: E0716 15:02:44.950203    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:44 m10 kube-apiserver[1973]: E0716 15:02:44.950362    1973
reflector.go:136] Failed to list *api.ResourceQuota: Get
http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:44 m10 kube-apiserver[1973]: E0716 15:02:44.950420    1973
reflector.go:136] Failed to list *api.Secret: Get
http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token:
dial tcp 127.0.0.1:8080: connection refused
Jul 16 15:02:44 m10 kube-apiserver[1973]: E0716 15:02:44.950463    1973
reflector.go:136] Failed to list *api.ServiceAccount: Get
http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:44 m10 kube-apiserver[1973]: E0716 15:02:44.952653    1973
reflector.go:136] Failed to list *api.LimitRange: Get
http://127.0.0.1:8080/api/v1/limitranges: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:44 m10 kube-apiserver[1973]: E0716 15:02:44.953070    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:45 m10 kube-apiserver[1973]: E0716 15:02:45.952716    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:45 m10 kube-apiserver[1973]: E0716 15:02:45.952869    1973
reflector.go:136] Failed to list *api.ResourceQuota: Get
http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:45 m10 kube-apiserver[1973]: E0716 15:02:45.952961    1973
reflector.go:136] Failed to list *api.Secret: Get
http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token:
dial tcp 127.0.0.1:8080: connection refused
Jul 16 15:02:45 m10 kube-apiserver[1973]: E0716 15:02:45.953052    1973
reflector.go:136] Failed to list *api.ServiceAccount: Get
http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:45 m10 kube-apiserver[1973]: E0716 15:02:45.957695    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:45 m10 kube-apiserver[1973]: E0716 15:02:45.957950    1973
reflector.go:136] Failed to list *api.LimitRange: Get
http://127.0.0.1:8080/api/v1/limitranges: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:46 m10 kube-apiserver[1973]: E0716 15:02:46.954428    1973
reflector.go:136] Failed to list *api.Secret: Get
http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token:
dial tcp 127.0.0.1:8080: connection refused
Jul 16 15:02:46 m10 kube-apiserver[1973]: E0716 15:02:46.954573    1973
reflector.go:136] Failed to list *api.ResourceQuota: Get
http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:46 m10 kube-apiserver[1973]: E0716 15:02:46.954628    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:46 m10 kube-apiserver[1973]: E0716 15:02:46.955242    1973
reflector.go:136] Failed to list *api.ServiceAccount: Get
http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:46 m10 kube-apiserver[1973]: E0716 15:02:46.958425    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:46 m10 kube-apiserver[1973]: E0716 15:02:46.958874    1973
reflector.go:136] Failed to list *api.LimitRange: Get
http://127.0.0.1:8080/api/v1/limitranges: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:47 m10 kube-apiserver[1973]: E0716 15:02:47.956603    1973
reflector.go:136] Failed to list *api.Secret: Get
http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token:
dial tcp 127.0.0.1:8080: connection refused
Jul 16 15:02:47 m10 kube-apiserver[1973]: E0716 15:02:47.956771    1973
reflector.go:136] Failed to list *api.ResourceQuota: Get
http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:47 m10 kube-apiserver[1973]: E0716 15:02:47.956899    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:47 m10 kube-apiserver[1973]: E0716 15:02:47.957304    1973
reflector.go:136] Failed to list *api.ServiceAccount: Get
http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:47 m10 kube-apiserver[1973]: E0716 15:02:47.959400    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:48 m10 kube-apiserver[1973]: E0716 15:02:48.119700    1973
reflector.go:136] Failed to list *api.LimitRange: Get
http://127.0.0.1:8080/api/v1/limitranges: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:48 m10 kube-apiserver[1973]: E0716 15:02:48.958556    1973
reflector.go:136] Failed to list *api.Secret: Get
http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token:
dial tcp 127.0.0.1:8080: connection refused
Jul 16 15:02:48 m10 kube-apiserver[1973]: E0716 15:02:48.958683    1973
reflector.go:136] Failed to list *api.ResourceQuota: Get
http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:48 m10 kube-apiserver[1973]: E0716 15:02:48.959340    1973
reflector.go:136] Failed to list *api.ServiceAccount: Get
http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:48 m10 kube-apiserver[1973]: E0716 15:02:48.959425    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:49 m10 kube-apiserver[1973]: E0716 15:02:49.120059    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:49 m10 kube-apiserver[1973]: E0716 15:02:49.319649    1973
reflector.go:136] Failed to list *api.LimitRange: Get
http://127.0.0.1:8080/api/v1/limitranges: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:49 m10 kube-apiserver[1973]: E0716 15:02:49.959225    1973
reflector.go:136] Failed to list *api.ResourceQuota: Get
http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:49 m10 kube-apiserver[1973]: E0716 15:02:49.959316    1973
reflector.go:136] Failed to list *api.Secret: Get
http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token:
dial tcp 127.0.0.1:8080: connection refused
Jul 16 15:02:49 m10 kube-apiserver[1973]: E0716 15:02:49.959610    1973
reflector.go:136] Failed to list *api.ServiceAccount: Get
http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:50 m10 kube-apiserver[1973]: E0716 15:02:50.119119    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:50 m10 kube-apiserver[1973]: E0716 15:02:50.319533    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:50 m10 kube-apiserver[1973]: E0716 15:02:50.519949    1973
reflector.go:136] Failed to list *api.LimitRange: Get
http://127.0.0.1:8080/api/v1/limitranges: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:50 m10 kube-apiserver[1973]: E0716 15:02:50.960561    1973
reflector.go:136] Failed to list *api.Secret: Get
http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token:
dial tcp 127.0.0.1:8080: connection refused
Jul 16 15:02:50 m10 kube-apiserver[1973]: E0716 15:02:50.960653    1973
reflector.go:136] Failed to list *api.ResourceQuota: Get
http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:51 m10 kube-apiserver[1973]: E0716 15:02:51.119699    1973
reflector.go:136] Failed to list *api.ServiceAccount: Get
http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:51 m10 kube-apiserver[1973]: E0716 15:02:51.319603    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:51 m10 kube-apiserver[1973]: E0716 15:02:51.519547    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:51 m10 kube-apiserver[1973]: E0716 15:02:51.719747    1973
reflector.go:136] Failed to list *api.LimitRange: Get
http://127.0.0.1:8080/api/v1/limitranges: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:51 m10 kube-apiserver[1973]: E0716 15:02:51.961011    1973
reflector.go:136] Failed to list *api.Secret: Get
http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token:
dial tcp 127.0.0.1:8080: connection refused
Jul 16 15:02:52 m10 kube-apiserver[1973]: E0716 15:02:52.119100    1973
reflector.go:136] Failed to list *api.ResourceQuota: Get
http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:52 m10 kube-apiserver[1973]: E0716 15:02:52.319688    1973
reflector.go:136] Failed to list *api.ServiceAccount: Get
http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080:
connection refused
Jul 16 15:02:52 m10 kube-apiserver[1973]: E0716 15:02:52.521075    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:52 m10 kube-apiserver[1973]: E0716 15:02:52.720212    1973
reflector.go:136] Failed to list *api.Namespace: Get
http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:52 m10 kube-apiserver[1973]: E0716 15:02:52.919382    1973
reflector.go:136] Failed to list *api.LimitRange: Get
http://127.0.0.1:8080/api/v1/limitranges: dial tcp 127.0.0.1:8080: connection
refused
Jul 16 15:02:53 m10 systemd[1]: kube-apiserver.service: main process exited,
code=exited, status=255/n/a
Jul 16 15:02:53 m10 systemd[1]: Failed to start Kubernetes API Server.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to