[jbosstools-issues] [JBoss JIRA] (JBIDE-20764) Create Server Adapter for OpenShift 3 applications

Andre Dietisheim (JIRA) issues at jboss.org
Fri Nov 6 17:54:00 EST 2015


    [ https://issues.jboss.org/browse/JBIDE-20764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126605#comment-13126605 ] 

Andre Dietisheim commented on JBIDE-20764:
------------------------------------------

To get the pod that we want to rsync to we do the following in cli:

1. first we make sure we have a token and login: oc login https://console.engint.openshift.com --token=XXXXXXXXXXXXXXXXXXXXXXXXXXX
{code}
The server uses a certificate signed by an unknown authority.
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n): y

Logged into "https://console.engint.openshift.com:443" as "adietish at redhat.com" using the token provided.

Using project "projectinius".
{code}

2. possibly change project:
oc project projectinius
{code}
Now using project "projectinius" on server "https://console.engint.openshift.com:443".
{code}

3. check the routes: oc get routes

{code}
NAME                  HOST/PORT                                                        PATH      SERVICE           LABELS                                                 TLS TERMINATION
cakephp-example       cakephp-example-projectinius.e8ca.engint.openshiftapps.com                 cakephp-example   template=cakephp-example                   
{code}

4. select the route that has a label matching your project and inspect the route it points to: oc get service cakephp-example

{code}
NAME              CLUSTER_IP     EXTERNAL_IP   PORT(S)    SELECTOR               AGE
cakephp-example   172.30.89.31   <none>        8080/TCP   name=cakephp-example   11d
{code}

5. now list all pods: oc get pods

{code}
NAME                        READY     STATUS       RESTARTS   AGE
cakephp-example-1-build     0/1       ExitCode:0   0          11d
cakephp-example-1-s5zas     1/1       Running      0          11d
database-1-dye9u            1/1       Running      0          4d
frontend-1-kh7or            1/1       Running      0          4d
frontend-1-uomov            1/1       Running      0          4d
jws-app-mongodb-1-1u818     1/1       Running      0          24d
ruby-sample-build-1-build   0/1       ExitCode:0   0          4d
{code}


6. and get the pod that's running and has the name of the selector given in the service: oc describe pod cakephp-example-1-s5zas 

{code}
Name:				cakephp-example-1-s5zas
Namespace:			projectinius
Image(s):			172.30.114.95:5000/projectinius/cakephp-example at sha256:48a9484b7201dc0907f878f0729ecc19f4f0fdbc7d3039e94831018d8e1c8256
Node:				172.31.30.93/172.31.30.93
Start Time:			Mon, 26 Oct 2015 12:57:09 +0100
Labels:				deployment=cakephp-example-1,deploymentconfig=cakephp-example,name=cakephp-example
Status:				Running
Reason:				
Message:			
IP:				10.1.2.227
Replication Controllers:	cakephp-example-1 (1/1 replicas created)
Containers:
  cakephp-example:
    Container ID:	docker://c6393e95bb355d00c035979d83878a9b7fd8c874e60bd6e348f15bd62540acb7
    Image:		172.30.114.95:5000/projectinius/cakephp-example at sha256:48a9484b7201dc0907f878f0729ecc19f4f0fdbc7d3039e94831018d8e1c8256
    Image ID:		docker://942a84b2442b0015b2dc9306babe27ab64d9fdeeca4b6d47e1a7ef0d17469a62
    QoS Tier:
      cpu:		BestEffort
      memory:		BestEffort
    State:		Running
      Started:		Mon, 26 Oct 2015 12:57:18 +0100
    Ready:		True
    Restart Count:	0
    Environment Variables:
      DATABASE_SERVICE_NAME:		
      DATABASE_ENGINE:			
      DATABASE_NAME:			
      DATABASE_USER:			
      DATABASE_PASSWORD:		
      CAKEPHP_SECRET_TOKEN:		DIa6oXTE_agggLvTLXE7eY2_BuqHyvAGUczX2qOCwemifdWpjv
      CAKEPHP_SECURITY_SALT:		CLgLW0l3l1FF5mrMYhVeVQFwqVHvP8XwKHIX62ET
      CAKEPHP_SECURITY_CIPHER_SEED:	456286488827616744478266655265
Conditions:
  Type		Status
  Ready 	True 
Volumes:
  default-token-nzvis:
    Type:	Secret (a secret that should populate this volume)
    SecretName:	default-token-nzvis
No events.
{code}



> Create Server Adapter for OpenShift 3 applications
> --------------------------------------------------
>
>                 Key: JBIDE-20764
>                 URL: https://issues.jboss.org/browse/JBIDE-20764
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: openshift
>    Affects Versions: 4.3.0.CR1
>            Reporter: Fred Bricon
>            Assignee: Andre Dietisheim
>            Priority: Critical
>              Labels: new_and_noteworthy, openshift_v3
>             Fix For: 4.3.1.Beta1
>
>         Attachments: server adapter wizard.bmml, server adapter wizard.png
>
>
> get the actions available on OpenShift 3 resources in openshift explorer so you don't necessarily have to jump between the various views to work with openshift apps. This matches an existing feature in OpenShift 2. Upon project creation, a "Create server adapter" checkbox should be displayed.
> Server status= matching deployment pod status
> Possible menus:
> - Start/Stop
> - Show Web Console
> - Port Forwarding
> - Stream logs
> [~maxandersen] can you think of anything else?



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list