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

[beta4] --dry-run deems to always fail when using it with creating a router #3089

Closed
ljozsa opened this issue Jun 11, 2015 · 2 comments
Closed

Comments

@ljozsa
Copy link

ljozsa commented Jun 11, 2015

When going through the tutorial for openshift/origin I hit the following error in the 'Creating the Router' section.

[root@master ~]# osadm router --dry-run
--credentials=/etc/openshift/master/openshift-router.kubeconfig
error: router "router" does not exist (no service)

I have also tried to run the fourth command from this section (with --dry-run appended) with the same result:

[root@master ~]# osadm router --default-cert=cloudapps.router.pem
--credentials=/etc/openshift/master/openshift-router.kubeconfig
--selector='region=infra'
--images='registry.access.redhat.com/openshift3_beta/ose-${component}:${version}' --dry-run
error: router "router" does not exist (no service)

After running the aforementioned command without --dry-run, an error didn't appear.

[root@master ~]# osadm router --default-cert=cloudapps.router.pem --credentials=/etc/openshift/master/openshift-router.kubeconfig --selector='region=infra' > --images='registry.access.redhat.com/openshift3_beta/ose-${component}:${version}'
deploymentConfigs/router
services/router

When the router wasn't created the osc status command revealed:

[root@master ~]# osc status
In project default

service kubernetes (172.30.0.2:443)

service kubernetes-ro (172.30.0.1:80)

To see more information about a Service or DeploymentConfig, use 'osc describe service ' or 'osc describe dc '.
You can use 'osc get all' to see lists of each of the types described above.

osc status after creating the router (without --dry-run):

[root@master ~]# osc status
In project default

service kubernetes (172.30.0.2:443)

service kubernetes-ro (172.30.0.1:80)

service router (172.30.41.160:80)
router deploys registry.access.redhat.com/openshift3_beta/ose-haproxy-router:v0.5.2.2
#1 deployment running for 10 seconds - 1 pod

To see more information about a Service or DeploymentConfig, use 'osc describe service ' or 'osc describe dc '.
You can use 'osc get all' to see lists of each of the types described above.

@ljozsa ljozsa changed the title osadm router --dry-run throws an error in beta4 [beta4] --dry-run deems to always fail when using it with creating a router Jun 11, 2015
@sosiouxme
Copy link
Member

Same as #2783

@danmcp
Copy link

danmcp commented Jun 11, 2015

Closing as dup.

@danmcp danmcp closed this as completed Jun 11, 2015
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

3 participants