@@ -17,7 +17,6 @@ import (
1717 configapilatest "github.com/openshift/origin/pkg/cmd/server/apis/config/latest"
1818 "github.com/openshift/origin/pkg/oc/bootstrap/docker/dockerhelper"
1919 "github.com/openshift/origin/pkg/oc/bootstrap/docker/errors"
20- "github.com/openshift/origin/pkg/oc/bootstrap/docker/exec"
2120 "github.com/openshift/origin/pkg/oc/bootstrap/docker/openshift"
2221 "github.com/openshift/origin/pkg/oc/cli/util/clientcmd"
2322)
@@ -112,39 +111,6 @@ func (c *ClientStatusConfig) Status(f *clientcmd.Factory, out io.Writer) error {
112111
113112 fmt .Fprint (out , status (container , masterConfig ))
114113
115- notReady := 0
116-
117- eh := exec .NewExecHelper (dockerClient , openshift .ContainerName )
118-
119- stdout , _ , _ := eh .Command ("oc" , "get" , "dc" , "docker-registry" , "-n" , "default" , "-o" , "template" , "--template" , "{{.status.availableReplicas}}" ).Output ()
120- if stdout != "1" {
121- fmt .Fprintln (out , "Notice: Docker registry is not yet ready" )
122- notReady ++
123- }
124-
125- stdout , _ , _ = eh .Command ("oc" , "get" , "dc" , "router" , "-n" , "default" , "-o" , "template" , "--template" , "{{.status.availableReplicas}}" ).Output ()
126- if stdout != "1" {
127- fmt .Fprintln (out , "Notice: Router is not yet ready" )
128- notReady ++
129- }
130-
131- stdout , _ , _ = eh .Command ("oc" , "get" , "job" , "persistent-volume-setup" , "-n" , "default" , "-o" , "template" , "--template" , "{{.status.succeeded}}" ).Output ()
132- if stdout != "1" {
133- fmt .Fprintln (out , "Notice: Persistent volumes are not yet ready" )
134- notReady ++
135- }
136-
137- stdout , _ , _ = eh .Command ("oc" , "get" , "is" , "-n" , "openshift" , "-o" , "template" , "--template" , `{{range .items}}{{if not .status.tags}}notready{{end}}{{end}}` ).Output ()
138- if len (stdout ) > 0 {
139- fmt .Fprintln (out , "Notice: Imagestreams are not yet ready" )
140- notReady ++
141- }
142-
143- if notReady > 0 {
144- fmt .Fprintf (out , "\n Notice: %d OpenShift component(s) are not yet ready (see above)\n " , notReady )
145- return fmt .Errorf ("" )
146- }
147-
148114 return nil
149115}
150116
0 commit comments