Skip to content

Cannot use openshift cli in v0.2.1 #848

Closed

Description

@goldmann

Running version tagged v0.2.1:

$ openshift version
openshift version 0.1, build e19dde7
kubernetes v0.8.0-dev

This set up was created using vagrant with these env variables set:

$ export OPENSHIFT_DEV_CLUSTER=1
$ export OPENSHIFT_NUM_MINIONS=2
$ export OPENSHIFT_SDN=ovs-simple
$ vagrant up

I cannot interact using openshift command:

$ openshift cli get pods
F0203 15:10:55.519669   15102 get.go:151] Get https://localhost:8443/api/v1beta1/pods?namespace=default: dial tcp [::1]:8443: connection refused

Activity

  1. goldmann commented on Feb 3, 2015

    @goldmann
    ContributorAuthor

    As a note - the openshift cli get pods command was executed on master.

    @mfojtik: we talked about this
    @rajatchopra: I tried the fix for #712

  2. added
    kind/bug
    on Feb 3, 2015
  3. added this to the 0.3.0 (beta1) milestone on Feb 3, 2015
  4. goldmann commented on Feb 3, 2015

    @goldmann
    ContributorAuthor

    @mrunalp I'll check this early in the morning and get back to you.

  5. mrunalp commented on Feb 4, 2015

    @mrunalp
    Member

    @goldmann Thanks. I am working on a fix for the cli ports/certs issue and will update this issue when I have a PR.

  6. goldmann commented on Feb 4, 2015

    @goldmann
    ContributorAuthor

    @mrunalp With --server=http://localhost:8080 it works.

    Side note; when I tried to use -s http://localhost:8080 - it does not work, I get this:

    $ openshift cli -s http://localhost:8080 get pods
    OpenShift Client
    
    The OpenShift client exposes commands for managing your applications, as well as lower level
    tools to interact with each component of your system.
    
    At the present time, the CLI wraps many of the upstream Kubernetes commands and works generically
    on all resources.  Some commands you can try:
    
        $ cli get pods
    
    Note: This is an alpha release of OpenShift and will change significantly.  See
        https://github.com/openshift/origin for the latest information on OpenShift.
    
    Usage: 
      openshift cli [flags]
      openshift cli [command]
    
    Aliases:
      cli, kubectl
    
    Available Commands: 
      get [(-o|--output=)json|yaml|...] <resource> [<id>]       Display one or many resources
      describe <resource> <id>                                  Show details of a specific resource
      create -f filename                                        Create a resource by filename or stdin
      update -f filename                                        Update a resource by filename or stdin
      delete ([-f filename] | (<resource> [(<id> | -l <label>)] Delete a resource by filename, stdin or resource and id
      namespace [<namespace>]                                   Set and view the current Kubernetes namespace
      log [-f] <pod> [<container>]                              Print the logs for a container in a pod.
      proxy                                                     Run a proxy to the Kubernetes API server
      apply -f filename                                         Perform bulk create operation on set of resources
      process -f filename                                       Process template into config
      build-logs <build>                                        Show container logs from the build container
      start-build (<buildConfig>|--from-build=<build>)          Starts a new build from existing build or buildConfig
      cancel-build <build>                                      Cancel a pending or running build.
    
     Available Flags:
          --alsologtostderr=false: log to standard error as well as files
          --api-version="": The API version to use when talking to the server
      -a, --auth-path="": Path to the auth info file. If missing, prompt the user. Only used if using https.
          --certificate-authority="": Path to a cert. file for the certificate authority.
          --client-certificate="": Path to a client key file for TLS.
          --client-key="": Path to a client key file for TLS.
          --cluster="": The name of the kubeconfig cluster to use
          --context="": The name of the kubeconfig context to use
      -h, --help=false: help for cli
          --insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
          --kubeconfig="": Path to the kubeconfig file to use for CLI requests.
          --log_backtrace_at=:0: when logging hits line file:N, emit a stack trace
          --log_dir=: If non-empty, write log files in this directory
          --log_flush_frequency=5s: Maximum number of seconds between log flushes
          --loglevel=0: Set the level of log output (0-5)
          --logtostderr=true: log to standard error instead of files
          --match-server-version=false: Require server version to match client version
      -n, --namespace="": If present, the namespace scope for this CLI request.
          --ns-path="/home/vagrant/.kubernetes_ns": Path to the namespace info file that holds the namespace context to use for CLI requests.
      -s, --server="": The address of the Kubernetes API server
          --stderrthreshold=2: logs at or above this threshold go to stderr
          --token="": Bearer token for authentication to the API server.
          --user="": The name of the kubeconfig user to use
          --v=0: log level for V logs
          --validate=false: If true, use a schema to validate the input before sending it
          --vmodule=: comma-separated list of pattern=N settings for file-filtered logging
    
    Additional help topics: 
      openshift start   Launch OpenShift
      openshift kube    DEPRECATED, use 'cli' instead
      openshift cli     Client tools for OpenShift
      openshift version Display version
      openshift help    Help about any command
    
    Use "openshift help [command]" for more information about that command.
    
  7. mrunalp commented on Feb 4, 2015

    @mrunalp
    Member

    Testing the fix right now. Expect to send a PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions