Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request Error following instructions #121

Closed
peterlamar opened this issue Sep 22, 2014 · 5 comments
Closed

Request Error following instructions #121

peterlamar opened this issue Sep 22, 2014 · 5 comments

Comments

@peterlamar
Copy link
Contributor

I call this:

_output/go/bin/openshift kube create pods -c examples/hello-openshift/hello-pod.json

And I get this:

F0922 04:27:20.702622 02999 kubecfg.go:349] Got request error: Post http://localhost:8080/api/v1beta1/pods?labels=: dial tcp [::1]:8080: connection refused

Did I miss a step?

@VojtechVitek
Copy link
Contributor

Did you start the all-in-one server first?

_output/go/bin/openshift start &

@peterlamar
Copy link
Contributor Author

Indeed, this error is suspicious

[vagrant@openshiftdev vagrant]$ _output/go/bin/openshift start &
[1] 3217
[vagrant@openshiftdev vagrant]$ I0922 15:05:34.086013 03217 master.go:318] Started etcd at http://127.0.0.1:4001
[etcd] Sep 22 15:05:34.621 INFO | Peer URLs in log: / openshift.local (http://127.0.0.1:7001)
[etcd] Sep 22 15:05:34.624 INFO | etcd server [name openshift.local, listen on 127.0.0.1:4001, advertised url http://127.0.0.1:4001]
[etcd] Sep 22 15:05:34.625 INFO | peer server [name openshift.local, listen on :7001, advertised url http://127.0.0.1:7001]
[etcd] Sep 22 15:05:34.625 INFO | openshift.local starting in peer mode
[etcd] Sep 22 15:05:34.626 INFO | openshift.local: state changed from 'initialized' to 'follower'.
[etcd] Sep 22 15:05:34.885 INFO | openshift.local: state changed from 'follower' to 'candidate'.
[etcd] Sep 22 15:05:34.886 INFO | openshift.local: state changed from 'candidate' to 'leader'.
[etcd] Sep 22 15:05:34.886 INFO | openshift.local: leader changed from '' to 'openshift.local'.
I0922 15:05:34.930502 03217 master.go:235] Started Kubernetes API at http://127.0.0.1:8080/api/v1beta1
I0922 15:05:34.931230 03217 master.go:236] Started OpenShift API at http://127.0.0.1:8080/osapi/v1beta1
I0922 15:05:34.931280 03217 master.go:255] Connecting to Docker at unix:///var/run/docker.sock
E0922 15:05:34.931309 03217 endpoints_controller.go:51] Failed to list services: Get http://127.0.0.1:8080/api/v1beta1/services?labels=: dial tcp 127.0.0.1:8080: connection refused
I0922 15:05:34.934211 03217 etcd.go:58] Watching etcd for /registry/hosts/127.0.0.1/kubelet

@VojtechVitek
Copy link
Contributor

Seems to me like a firewall issue. Are you sure the port 8080 is bounded correctly and you can access http://127.0.0.1:8080?

@VojtechVitek
Copy link
Contributor

@cephaslr Can you confirm you hit a firewall issue?

@peterlamar
Copy link
Contributor Author

I am not sure what the issue was. I had a firewall but it didn't fix it when I turned it off. Its my work machine so it is likely there are some weird ports that are closed. Thanks for giving me advice, i'll close.

pmorie pushed a commit to pmorie/origin that referenced this issue Nov 5, 2014
deads2k pushed a commit to deads2k/origin that referenced this issue May 17, 2016
danwinship pushed a commit to danwinship/origin that referenced this issue Jun 24, 2016
Fix veth lookup for kernels with interface suffixes
jpeeler pushed a commit to jpeeler/origin that referenced this issue Feb 1, 2018
* Add script to initialize system before CI build

The init_build.sh script updates versions of dependencies,
such as go language or Helm, when running on Jenkins build worker.
This allows a commit to upgrade version of dependencies and even
though the Jenkins worker image may have a different version of
the dependency preinstalled, the dependency will be upgraded to
match the version required by the commit being processed.

* Install glide in CI build if needed

If glide is not installed in the CI worker image, or if a different
version is installed than a version required by the commit being
processed by CI, install correct/matching version of Glide.

* Ask installed dependencies for versions

Rather than relying on a handshake with the Jenkins
image builder to inject the versions into version files.

* Move init_build to hack/jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants