Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [vagrant@centos7-adb ~]$ oc login
- Authentication required for https://127.0.0.1:8443 (openshift)
- Username: openshift-dev
- Password:
- Login successful.
- Using project "sample-project".
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$ oc new-app projectatomic/guestbookgo-atomicapp --grant-install-rights
- --> Installing application from "projectatomic/guestbookgo-atomicapp"
- * Found Docker image 8521e7c (5 days old) from Docker Hub for "projectatomic/guestbookgo-atomicapp"
- * Install will run in pod "guestbookgo-atomicapp-install"
- * The pod has access to your current session token via environment variable TOKEN_ENV_VAR.
- If you cancel the install, you should delete the pod or log out of your session.
- --> WARNING: The pod requires access to your current session token to install this image. Only
- grant access to images whose source you trust. The image will be able to perform any
- action you can take on the cluster.
- --> Installing ...
- /usr/lib/python2.7/site-packages/urllib3/connectionpool.py:769: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
- InsecureRequestWarning)
- 1460987875 - [DEBUG] - atomicapp/utils.py - Detected environment: openshift pod
- 1460987875 - [INFO] - cli/main.py - Action/Mode Selected is: run
- 1460987875 - [DEBUG] - cli/main.py - Final parsed cmdline: run -v --dest=none --provider=openshift /application-entity
- 1460987875 - [DEBUG] - nulecule/main.py - 'none' destination requested. Using tmp dir
- 1460987875 - [DEBUG] - nulecule/main.py - NuleculeManager init app_path: /tmp/atomicapp8O8j4s
- 1460987875 - [DEBUG] - nulecule/main.py - NuleculeManager init image: None
- 1460987875 - [DEBUG] - nulecule/main.py - Request to unpack to None to /tmp/atomicapp8O8j4s
- 1460987875 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
- 1460987875 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
- 1460987875 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
- 1460987875 - [INFO] - nulecule/base.py - Pulling external application for redis-centos7-atomicapp.
- 1460987875 - [INFO] - nulecule/base.py - Unpacking image: projectatomic/redis-centos7-atomicapp to /tmp/atomicapp8O8j4s/external/redis-centos7-atomicapp
- 1460987875 - [DEBUG] - atomicapp/utils.py - Detected environment: openshift pod
- 1460987875 - [WARNING] - atomicapp/plugin.py - Configuration option 'provider-config' not found
- 1460987875 - [DEBUG] - atomicapp/utils.py - Detected environment: openshift pod
- 1460987875 - [DEBUG] - providers/openshift.py - kubernetes_api = https://172.30.0.1:443/api/v1/
- 1460987875 - [DEBUG] - providers/openshift.py - openshift_api = https://172.30.0.1:443/oapi/v1/
- 1460987875 - [DEBUG] - providers/openshift.py - Testing connection to OpenShift server
- 1460987875 - [DEBUG] - providers/openshift.py - Openshift resources [u'buildconfigs', u'buildconfigs/instantiate', u'buildconfigs/instantiatebinary', u'buildconfigs/webhooks', u'builds', u'builds/clone', u'builds/details', u'builds/log', u'clusternetworks', u'clusterpolicies', u'clusterpolicybindings', u'clusterrolebindings', u'clusterroles', u'deploymentconfigrollbacks', u'deploymentconfigs', u'deploymentconfigs/log', u'deploymentconfigs/scale', u'generatedeploymentconfigs', u'groups', u'hostsubnets', u'identities', u'images', u'imagestreamimages', u'imagestreammappings', u'imagestreams', u'imagestreams/status', u'imagestreamtags', u'localresourceaccessreviews', u'localsubjectaccessreviews', u'netnamespaces', u'oauthaccesstokens', u'oauthauthorizetokens', u'oauthclientauthorizations', u'oauthclients', u'policies', u'policybindings', u'processedtemplates', u'projectrequests', u'projects', u'resourceaccessreviews', u'rolebindings', u'roles', u'routes', u'routes/status', u'subjectaccessreviews', u'templates', u'useridentitymappings', u'users']
- 1460987875 - [DEBUG] - providers/openshift.py - Kubernetes resources [u'bindings', u'componentstatuses', u'endpoints', u'events', u'limitranges', u'namespaces', u'namespaces/finalize', u'namespaces/status', u'nodes', u'nodes/status', u'persistentvolumeclaims', u'persistentvolumeclaims/status', u'persistentvolumes', u'persistentvolumes/status', u'pods', u'pods/attach', u'pods/binding', u'pods/exec', u'pods/log', u'pods/portforward', u'pods/proxy', u'pods/status', u'podtemplates', u'replicationcontrollers', u'replicationcontrollers/status', u'resourcequotas', u'resourcequotas/status', u'secrets', u'securitycontextconstraints', u'serviceaccounts', u'services']
- 1460987875 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/pods/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
- 1460987875 - [INFO] - providers/openshift.py - Object projectatomic-redis-centos7-atomicapp-20f802b51335 successfully deployed.
- 1460987886 - [DEBUG] - providers/openshift.py - url: wss://172.30.0.1:443/api/v1/namespaces/sample-project/pods/projectatomic-redis-centos7-atomicapp-20f802b51335/exec?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec&container=projectatomic-redis-centos7-atomicapp&command=tar&command=-cz&command=--directory&command=/application-entity&command=./&stdout=1&stdin=0&tty=0
- 1460987886 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/pods/projectatomic-redis-centos7-atomicapp-20f802b51335?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
- 1460987886 - [INFO] - providers/openshift.py - Successfully deleted.
- 1460987886 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
- 1460987886 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
- 1460987886 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
- 1460987886 - [DEBUG] - atomicapp/plugin.py - Found provider <class 'openshift.OpenShiftProvider'>
- 1460987886 - [WARNING] - atomicapp/plugin.py - Configuration option 'provider-config' not found
- 1460987886 - [DEBUG] - atomicapp/plugin.py - Found provider <class 'openshift.OpenShiftProvider'>
- 1460987886 - [WARNING] - atomicapp/plugin.py - Configuration option 'provider-config' not found
- 1460987886 - [DEBUG] - atomicapp/utils.py - Detected environment: openshift pod
- 1460987886 - [DEBUG] - providers/openshift.py - kubernetes_api = https://172.30.0.1:443/api/v1/
- 1460987886 - [DEBUG] - providers/openshift.py - openshift_api = https://172.30.0.1:443/oapi/v1/
- 1460987886 - [DEBUG] - providers/openshift.py - Testing connection to OpenShift server
- 1460987886 - [DEBUG] - providers/openshift.py - Openshift resources [u'buildconfigs', u'buildconfigs/instantiate', u'buildconfigs/instantiatebinary', u'buildconfigs/webhooks', u'builds', u'builds/clone', u'builds/details', u'builds/log', u'clusternetworks', u'clusterpolicies', u'clusterpolicybindings', u'clusterrolebindings', u'clusterroles', u'deploymentconfigrollbacks', u'deploymentconfigs', u'deploymentconfigs/log', u'deploymentconfigs/scale', u'generatedeploymentconfigs', u'groups', u'hostsubnets', u'identities', u'images', u'imagestreamimages', u'imagestreammappings', u'imagestreams', u'imagestreams/status', u'imagestreamtags', u'localresourceaccessreviews', u'localsubjectaccessreviews', u'netnamespaces', u'oauthaccesstokens', u'oauthauthorizetokens', u'oauthclientauthorizations', u'oauthclients', u'policies', u'policybindings', u'processedtemplates', u'projectrequests', u'projects', u'resourceaccessreviews', u'rolebindings', u'roles', u'routes', u'routes/status', u'subjectaccessreviews', u'templates', u'useridentitymappings', u'users']
- 1460987886 - [DEBUG] - providers/openshift.py - Kubernetes resources [u'bindings', u'componentstatuses', u'endpoints', u'events', u'limitranges', u'namespaces', u'namespaces/finalize', u'namespaces/status', u'nodes', u'nodes/status', u'persistentvolumeclaims', u'persistentvolumeclaims/status', u'persistentvolumes', u'persistentvolumes/status', u'pods', u'pods/attach', u'pods/binding', u'pods/exec', u'pods/log', u'pods/portforward', u'pods/proxy', u'pods/status', u'podtemplates', u'replicationcontrollers', u'replicationcontrollers/status', u'resourcequotas', u'resourcequotas/status', u'secrets', u'securitycontextconstraints', u'serviceaccounts', u'services']
- 1460987886 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/kubernetes/.guestbook-controller.json
- 1460987886 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/kubernetes/.guestbook-service.json
- 1460987886 - [DEBUG] - providers/openshift.py - Deploying to OpenShift
- 1460987886 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/replicationcontrollers/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
- 1460987886 - [INFO] - providers/openshift.py - Object guestbook successfully deployed.
- 1460987886 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/services/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
- 1460987886 - [INFO] - providers/openshift.py - Object guestbook successfully deployed.
- 1460987886 - [DEBUG] - atomicapp/plugin.py - Found provider <class 'openshift.OpenShiftProvider'>
- 1460987886 - [WARNING] - atomicapp/plugin.py - Configuration option 'provider-config' not found
- 1460987886 - [DEBUG] - atomicapp/plugin.py - Found provider <class 'openshift.OpenShiftProvider'>
- 1460987886 - [WARNING] - atomicapp/plugin.py - Configuration option 'provider-config' not found
- 1460987886 - [DEBUG] - atomicapp/utils.py - Detected environment: openshift pod
- 1460987886 - [DEBUG] - providers/openshift.py - kubernetes_api = https://172.30.0.1:443/api/v1/
- 1460987886 - [DEBUG] - providers/openshift.py - openshift_api = https://172.30.0.1:443/oapi/v1/
- 1460987886 - [DEBUG] - providers/openshift.py - Testing connection to OpenShift server
- 1460987886 - [DEBUG] - providers/openshift.py - Openshift resources [u'buildconfigs', u'buildconfigs/instantiate', u'buildconfigs/instantiatebinary', u'buildconfigs/webhooks', u'builds', u'builds/clone', u'builds/details', u'builds/log', u'clusternetworks', u'clusterpolicies', u'clusterpolicybindings', u'clusterrolebindings', u'clusterroles', u'deploymentconfigrollbacks', u'deploymentconfigs', u'deploymentconfigs/log', u'deploymentconfigs/scale', u'generatedeploymentconfigs', u'groups', u'hostsubnets', u'identities', u'images', u'imagestreamimages', u'imagestreammappings', u'imagestreams', u'imagestreams/status', u'imagestreamtags', u'localresourceaccessreviews', u'localsubjectaccessreviews', u'netnamespaces', u'oauthaccesstokens', u'oauthauthorizetokens', u'oauthclientauthorizations', u'oauthclients', u'policies', u'policybindings', u'processedtemplates', u'projectrequests', u'projects', u'resourceaccessreviews', u'rolebindings', u'roles', u'routes', u'routes/status', u'subjectaccessreviews', u'templates', u'useridentitymappings', u'users']
- 1460987886 - [DEBUG] - providers/openshift.py - Kubernetes resources [u'bindings', u'componentstatuses', u'endpoints', u'events', u'limitranges', u'namespaces', u'namespaces/finalize', u'namespaces/status', u'nodes', u'nodes/status', u'persistentvolumeclaims', u'persistentvolumeclaims/status', u'persistentvolumes', u'persistentvolumes/status', u'pods', u'pods/attach', u'pods/binding', u'pods/exec', u'pods/log', u'pods/portforward', u'pods/proxy', u'pods/status', u'podtemplates', u'replicationcontrollers', u'replicationcontrollers/status', u'resourcequotas', u'resourcequotas/status', u'secrets', u'securitycontextconstraints', u'serviceaccounts', u'services']
- 1460987886 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/kubernetes/.redis-master-controller.json
- 1460987886 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/kubernetes/.redis-master-service.json
- 1460987886 - [DEBUG] - providers/openshift.py - Deploying to OpenShift
- 1460987886 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/replicationcontrollers/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
- 1460987886 - [INFO] - providers/openshift.py - Object redis-master successfully deployed.
- 1460987886 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/services/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
- 1460987886 - [INFO] - providers/openshift.py - Object redis-master successfully deployed.
- 1460987886 - [DEBUG] - atomicapp/plugin.py - Found provider <class 'openshift.OpenShiftProvider'>
- 1460987886 - [WARNING] - atomicapp/plugin.py - Configuration option 'provider-config' not found
- 1460987887 - [DEBUG] - atomicapp/utils.py - Detected environment: openshift pod
- 1460987887 - [DEBUG] - providers/openshift.py - kubernetes_api = https://172.30.0.1:443/api/v1/
- 1460987887 - [DEBUG] - providers/openshift.py - openshift_api = https://172.30.0.1:443/oapi/v1/
- 1460987887 - [DEBUG] - providers/openshift.py - Testing connection to OpenShift server
- 1460987887 - [DEBUG] - providers/openshift.py - Openshift resources [u'buildconfigs', u'buildconfigs/instantiate', u'buildconfigs/instantiatebinary', u'buildconfigs/webhooks', u'builds', u'builds/clone', u'builds/details', u'builds/log', u'clusternetworks', u'clusterpolicies', u'clusterpolicybindings', u'clusterrolebindings', u'clusterroles', u'deploymentconfigrollbacks', u'deploymentconfigs', u'deploymentconfigs/log', u'deploymentconfigs/scale', u'generatedeploymentconfigs', u'groups', u'hostsubnets', u'identities', u'images', u'imagestreamimages', u'imagestreammappings', u'imagestreams', u'imagestreams/status', u'imagestreamtags', u'localresourceaccessreviews', u'localsubjectaccessreviews', u'netnamespaces', u'oauthaccesstokens', u'oauthauthorizetokens', u'oauthclientauthorizations', u'oauthclients', u'policies', u'policybindings', u'processedtemplates', u'projectrequests', u'projects', u'resourceaccessreviews', u'rolebindings', u'roles', u'routes', u'routes/status', u'subjectaccessreviews', u'templates', u'useridentitymappings', u'users']
- 1460987887 - [DEBUG] - providers/openshift.py - Kubernetes resources [u'bindings', u'componentstatuses', u'endpoints', u'events', u'limitranges', u'namespaces', u'namespaces/finalize', u'namespaces/status', u'nodes', u'nodes/status', u'persistentvolumeclaims', u'persistentvolumeclaims/status', u'persistentvolumes', u'persistentvolumes/status', u'pods', u'pods/attach', u'pods/binding', u'pods/exec', u'pods/log', u'pods/portforward', u'pods/proxy', u'pods/status', u'podtemplates', u'replicationcontrollers', u'replicationcontrollers/status', u'resourcequotas', u'resourcequotas/status', u'secrets', u'securitycontextconstraints', u'serviceaccounts', u'services']
- 1460987887 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/kubernetes/.redis-slave-controller.json
- 1460987887 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/kubernetes/.redis-slave-service.json
- 1460987887 - [DEBUG] - providers/openshift.py - Deploying to OpenShift
- 1460987887 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/replicationcontrollers/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
- 1460987887 - [INFO] - providers/openshift.py - Object redis-slave successfully deployed.
- 1460987887 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/services/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
- 1460987887 - [INFO] - providers/openshift.py - Object redis-slave successfully deployed.
- 1460987887 - [DEBUG] - nulecule/main.py - Writing answers to file.
- 1460987887 - [DEBUG] - nulecule/main.py - FILE: /tmp/atomicapp8O8j4s/answers.conf.gen
- 1460987887 - [DEBUG] - nulecule/main.py - ANSWERS: {u'redis-centos7-atomicapp': {u'provider': u'kubernetes'}, u'redismaster-app': {u'image': u'centos/redis', u'hostport': 6379}, u'guestbookfront-app': {u'image': u'kubernetes/guestbook:v2'}, u'redisslave-app': {u'instances': 1, u'image': u'centos/redis', u'master_hostport': 6379, u'hostport': 6379}, 'general': {'namespace': 'default', u'provider': 'openshift'}}
- 1460987887 - [DEBUG] - atomicapp/utils.py - Recursively removing directory: /tmp/atomicapp8O8j4s
- --> Success
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$ oc get pods
- NAME READY STATUS RESTARTS AGE
- guestbook-0w0c4 1/1 Running 0 59s
- guestbook-esclu 1/1 Running 0 59s
- guestbook-inq97 1/1 Running 0 59s
- redis-master-61bxb 1/1 Running 0 59s
- redis-slave-7mpia 1/1 Running 0 58s
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$ oc get svc/guestbook
- NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE
- guestbook 172.30.246.99 3000/TCP app=guestbook 1m
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$ oc describe svc/guestbook
- Name: guestbook
- Namespace: sample-project
- Labels: app=guestbook
- Selector: app=guestbook
- Type: LoadBalancer
- IP: 172.30.246.99
- Port: <unnamed> 3000/TCP
- NodePort: <unnamed> 32068/TCP
- Endpoints: 172.17.0.6:3000,172.17.0.7:3000,172.17.0.9:3000
- Session Affinity: None
- No events.
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$ curl http://127.0.0.1:32068 | wc -l
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 926 100 926 0 0 474k 0 --:--:-- --:--:-- --:--:-- 904k
- 34
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$ curl http://127.0.0.1:32068
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
- <meta charset="utf-8">
- <meta content="width=device-width" name="viewport">
- <link href="/style.css" rel="stylesheet">
- <title>Guestbook</title>
- </head>
- <body>
- <div id="header">
- <h1>Guestbook</h1>
- </div>
- <div id="guestbook-entries">
- <p>Waiting for database connection...</p>
- </div>
- <div>
- <form id="guestbook-form">
- <input autocomplete="off" id="guestbook-entry-content" type="text">
- <a href="#" id="guestbook-submit">Submit</a>
- </form>
- </div>
- <div>
- <p><h2 id="guestbook-host-address"></h2></p>
- <p><a href="/env">/env</a>
- <a href="/info">/info</a></p>
- </div>
- <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
- <script src="/script.js"></script>
- </body>
- </html>
- [vagrant@centos7-adb ~]$
- [vagrant@centos7-adb ~]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement