Advertisement
Guest User

Untitled

a guest
Apr 18th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.15 KB | None | 0 0
  1. [vagrant@centos7-adb ~]$ oc login
  2. Authentication required for https://127.0.0.1:8443 (openshift)
  3. Username: openshift-dev
  4. Password:
  5. Login successful.
  6.  
  7. Using project "sample-project".
  8. [vagrant@centos7-adb ~]$
  9. [vagrant@centos7-adb ~]$ oc new-app projectatomic/guestbookgo-atomicapp --grant-install-rights
  10. --> Installing application from "projectatomic/guestbookgo-atomicapp"
  11. * Found Docker image 8521e7c (5 days old) from Docker Hub for "projectatomic/guestbookgo-atomicapp"
  12. * Install will run in pod "guestbookgo-atomicapp-install"
  13. * The pod has access to your current session token via environment variable TOKEN_ENV_VAR.
  14. If you cancel the install, you should delete the pod or log out of your session.
  15. --> WARNING: The pod requires access to your current session token to install this image. Only
  16. grant access to images whose source you trust. The image will be able to perform any
  17. action you can take on the cluster.
  18. --> Installing ...
  19. /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
  20. InsecureRequestWarning)
  21. 1460987875 - [DEBUG] - atomicapp/utils.py - Detected environment: openshift pod
  22. 1460987875 - [INFO] - cli/main.py - Action/Mode Selected is: run
  23. 1460987875 - [DEBUG] - cli/main.py - Final parsed cmdline: run -v --dest=none --provider=openshift /application-entity
  24. 1460987875 - [DEBUG] - nulecule/main.py - 'none' destination requested. Using tmp dir
  25. 1460987875 - [DEBUG] - nulecule/main.py - NuleculeManager init app_path: /tmp/atomicapp8O8j4s
  26. 1460987875 - [DEBUG] - nulecule/main.py - NuleculeManager init image: None
  27. 1460987875 - [DEBUG] - nulecule/main.py - Request to unpack to None to /tmp/atomicapp8O8j4s
  28. 1460987875 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
  29. 1460987875 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
  30. 1460987875 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
  31. 1460987875 - [INFO] - nulecule/base.py - Pulling external application for redis-centos7-atomicapp.
  32. 1460987875 - [INFO] - nulecule/base.py - Unpacking image: projectatomic/redis-centos7-atomicapp to /tmp/atomicapp8O8j4s/external/redis-centos7-atomicapp
  33. 1460987875 - [DEBUG] - atomicapp/utils.py - Detected environment: openshift pod
  34. 1460987875 - [WARNING] - atomicapp/plugin.py - Configuration option 'provider-config' not found
  35. 1460987875 - [DEBUG] - atomicapp/utils.py - Detected environment: openshift pod
  36. 1460987875 - [DEBUG] - providers/openshift.py - kubernetes_api = https://172.30.0.1:443/api/v1/
  37. 1460987875 - [DEBUG] - providers/openshift.py - openshift_api = https://172.30.0.1:443/oapi/v1/
  38. 1460987875 - [DEBUG] - providers/openshift.py - Testing connection to OpenShift server
  39. 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']
  40. 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']
  41. 1460987875 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/pods/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
  42. 1460987875 - [INFO] - providers/openshift.py - Object projectatomic-redis-centos7-atomicapp-20f802b51335 successfully deployed.
  43. 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
  44. 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
  45. 1460987886 - [INFO] - providers/openshift.py - Successfully deleted.
  46. 1460987886 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
  47. 1460987886 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
  48. 1460987886 - [DEBUG] - atomicapp/plugin.py - Loading providers from /opt/atomicapp/atomicapp/providers
  49. 1460987886 - [DEBUG] - atomicapp/plugin.py - Found provider <class 'openshift.OpenShiftProvider'>
  50. 1460987886 - [WARNING] - atomicapp/plugin.py - Configuration option 'provider-config' not found
  51. 1460987886 - [DEBUG] - atomicapp/plugin.py - Found provider <class 'openshift.OpenShiftProvider'>
  52. 1460987886 - [WARNING] - atomicapp/plugin.py - Configuration option 'provider-config' not found
  53. 1460987886 - [DEBUG] - atomicapp/utils.py - Detected environment: openshift pod
  54. 1460987886 - [DEBUG] - providers/openshift.py - kubernetes_api = https://172.30.0.1:443/api/v1/
  55. 1460987886 - [DEBUG] - providers/openshift.py - openshift_api = https://172.30.0.1:443/oapi/v1/
  56. 1460987886 - [DEBUG] - providers/openshift.py - Testing connection to OpenShift server
  57. 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']
  58. 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']
  59. 1460987886 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/kubernetes/.guestbook-controller.json
  60. 1460987886 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/kubernetes/.guestbook-service.json
  61. 1460987886 - [DEBUG] - providers/openshift.py - Deploying to OpenShift
  62. 1460987886 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/replicationcontrollers/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
  63. 1460987886 - [INFO] - providers/openshift.py - Object guestbook successfully deployed.
  64. 1460987886 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/services/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
  65. 1460987886 - [INFO] - providers/openshift.py - Object guestbook successfully deployed.
  66. 1460987886 - [DEBUG] - atomicapp/plugin.py - Found provider <class 'openshift.OpenShiftProvider'>
  67. 1460987886 - [WARNING] - atomicapp/plugin.py - Configuration option 'provider-config' not found
  68. 1460987886 - [DEBUG] - atomicapp/plugin.py - Found provider <class 'openshift.OpenShiftProvider'>
  69. 1460987886 - [WARNING] - atomicapp/plugin.py - Configuration option 'provider-config' not found
  70. 1460987886 - [DEBUG] - atomicapp/utils.py - Detected environment: openshift pod
  71. 1460987886 - [DEBUG] - providers/openshift.py - kubernetes_api = https://172.30.0.1:443/api/v1/
  72. 1460987886 - [DEBUG] - providers/openshift.py - openshift_api = https://172.30.0.1:443/oapi/v1/
  73. 1460987886 - [DEBUG] - providers/openshift.py - Testing connection to OpenShift server
  74. 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']
  75. 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']
  76. 1460987886 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/kubernetes/.redis-master-controller.json
  77. 1460987886 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/kubernetes/.redis-master-service.json
  78. 1460987886 - [DEBUG] - providers/openshift.py - Deploying to OpenShift
  79. 1460987886 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/replicationcontrollers/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
  80. 1460987886 - [INFO] - providers/openshift.py - Object redis-master successfully deployed.
  81. 1460987886 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/services/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
  82. 1460987886 - [INFO] - providers/openshift.py - Object redis-master successfully deployed.
  83. 1460987886 - [DEBUG] - atomicapp/plugin.py - Found provider <class 'openshift.OpenShiftProvider'>
  84. 1460987886 - [WARNING] - atomicapp/plugin.py - Configuration option 'provider-config' not found
  85. 1460987887 - [DEBUG] - atomicapp/utils.py - Detected environment: openshift pod
  86. 1460987887 - [DEBUG] - providers/openshift.py - kubernetes_api = https://172.30.0.1:443/api/v1/
  87. 1460987887 - [DEBUG] - providers/openshift.py - openshift_api = https://172.30.0.1:443/oapi/v1/
  88. 1460987887 - [DEBUG] - providers/openshift.py - Testing connection to OpenShift server
  89. 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']
  90. 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']
  91. 1460987887 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/kubernetes/.redis-slave-controller.json
  92. 1460987887 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/kubernetes/.redis-slave-service.json
  93. 1460987887 - [DEBUG] - providers/openshift.py - Deploying to OpenShift
  94. 1460987887 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/replicationcontrollers/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
  95. 1460987887 - [INFO] - providers/openshift.py - Object redis-slave successfully deployed.
  96. 1460987887 - [DEBUG] - providers/openshift.py - url: https://172.30.0.1:443/api/v1/namespaces/sample-project/services/?access_token=EI6TQqHjdKqYrU2eaBnTMIpvHfIxMmu9jLVvZbOszec
  97. 1460987887 - [INFO] - providers/openshift.py - Object redis-slave successfully deployed.
  98. 1460987887 - [DEBUG] - nulecule/main.py - Writing answers to file.
  99. 1460987887 - [DEBUG] - nulecule/main.py - FILE: /tmp/atomicapp8O8j4s/answers.conf.gen
  100. 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'}}
  101. 1460987887 - [DEBUG] - atomicapp/utils.py - Recursively removing directory: /tmp/atomicapp8O8j4s
  102. --> Success
  103. [vagrant@centos7-adb ~]$
  104. [vagrant@centos7-adb ~]$ oc get pods
  105. NAME READY STATUS RESTARTS AGE
  106. guestbook-0w0c4 1/1 Running 0 59s
  107. guestbook-esclu 1/1 Running 0 59s
  108. guestbook-inq97 1/1 Running 0 59s
  109. redis-master-61bxb 1/1 Running 0 59s
  110. redis-slave-7mpia 1/1 Running 0 58s
  111. [vagrant@centos7-adb ~]$
  112. [vagrant@centos7-adb ~]$
  113. [vagrant@centos7-adb ~]$ oc get svc/guestbook
  114. NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE
  115. guestbook 172.30.246.99 3000/TCP app=guestbook 1m
  116. [vagrant@centos7-adb ~]$
  117. [vagrant@centos7-adb ~]$
  118. [vagrant@centos7-adb ~]$ oc describe svc/guestbook
  119. Name: guestbook
  120. Namespace: sample-project
  121. Labels: app=guestbook
  122. Selector: app=guestbook
  123. Type: LoadBalancer
  124. IP: 172.30.246.99
  125. Port: <unnamed> 3000/TCP
  126. NodePort: <unnamed> 32068/TCP
  127. Endpoints: 172.17.0.6:3000,172.17.0.7:3000,172.17.0.9:3000
  128. Session Affinity: None
  129. No events.
  130.  
  131. [vagrant@centos7-adb ~]$
  132. [vagrant@centos7-adb ~]$ curl http://127.0.0.1:32068 | wc -l
  133. % Total % Received % Xferd Average Speed Time Time Time Current
  134. Dload Upload Total Spent Left Speed
  135. 100 926 100 926 0 0 474k 0 --:--:-- --:--:-- --:--:-- 904k
  136. 34
  137. [vagrant@centos7-adb ~]$
  138. [vagrant@centos7-adb ~]$
  139. [vagrant@centos7-adb ~]$
  140. [vagrant@centos7-adb ~]$
  141. [vagrant@centos7-adb ~]$
  142. [vagrant@centos7-adb ~]$
  143. [vagrant@centos7-adb ~]$
  144. [vagrant@centos7-adb ~]$
  145. [vagrant@centos7-adb ~]$
  146. [vagrant@centos7-adb ~]$
  147. [vagrant@centos7-adb ~]$
  148. [vagrant@centos7-adb ~]$
  149. [vagrant@centos7-adb ~]$
  150. [vagrant@centos7-adb ~]$
  151. [vagrant@centos7-adb ~]$
  152. [vagrant@centos7-adb ~]$
  153. [vagrant@centos7-adb ~]$
  154. [vagrant@centos7-adb ~]$
  155. [vagrant@centos7-adb ~]$
  156. [vagrant@centos7-adb ~]$
  157. [vagrant@centos7-adb ~]$ curl http://127.0.0.1:32068
  158. <!DOCTYPE html>
  159. <html lang="en">
  160. <head>
  161. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  162. <meta charset="utf-8">
  163. <meta content="width=device-width" name="viewport">
  164. <link href="/style.css" rel="stylesheet">
  165. <title>Guestbook</title>
  166. </head>
  167. <body>
  168. <div id="header">
  169. <h1>Guestbook</h1>
  170. </div>
  171.  
  172. <div id="guestbook-entries">
  173. <p>Waiting for database connection...</p>
  174. </div>
  175.  
  176. <div>
  177. <form id="guestbook-form">
  178. <input autocomplete="off" id="guestbook-entry-content" type="text">
  179. <a href="#" id="guestbook-submit">Submit</a>
  180. </form>
  181. </div>
  182.  
  183. <div>
  184. <p><h2 id="guestbook-host-address"></h2></p>
  185. <p><a href="/env">/env</a>
  186. <a href="/info">/info</a></p>
  187. </div>
  188. <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  189. <script src="/script.js"></script>
  190. </body>
  191. </html>
  192. [vagrant@centos7-adb ~]$
  193. [vagrant@centos7-adb ~]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement