Advertisement
panzon

Untitled

Aug 31st, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.68 KB | None | 0 0
  1. oc logs build/cakephp-example-1 -n other-project
  2. Error from server: Timeout: timed out waiting for build cakephp-example-1 to start after 10s
  3. [root@ip-172-31-42-197 ec2-user]# oc get bc
  4. [root@ip-172-31-42-197 ec2-user]# oc new-project forth-project
  5. Now using project "forth-project" on server "https://ip-172-31-40-129.us-west-2.compute.internal:8443".
  6.  
  7. You can add applications to this project with the 'new-app' command. For example, try:
  8.  
  9. $ oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-hello-world.git
  10.  
  11. to build a new hello-world application in Ruby.
  12. [root@ip-172-31-42-197 ec2-user]# oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-hello-world.git
  13. --> Found Docker image bffbe0b (7 days old) from Docker Hub for "centos/ruby-22-centos7"
  14.  
  15. Ruby 2.2
  16. --------
  17. Platform for building and running Ruby 2.2 applications
  18.  
  19. Tags: builder, ruby, ruby22
  20.  
  21. * An image stream will be created as "ruby-22-centos7:latest" that will track the source image
  22. * A source build using source code from https://github.com/openshift/ruby-hello-world.git will be created
  23. * The resulting image will be pushed to image stream "ruby-hello-world:latest"
  24. * Every time "ruby-22-centos7:latest" changes a new build will be triggered
  25. * This image will be deployed in deployment config "ruby-hello-world"
  26. * Port 8080/tcp will be load balanced by service "ruby-hello-world"
  27. * Other containers can access this service through the hostname "ruby-hello-world"
  28.  
  29. --> Creating resources with label app=ruby-hello-world ...
  30. imagestream "ruby-22-centos7" created
  31. imagestream "ruby-hello-world" created
  32. buildconfig "ruby-hello-world" created
  33. deploymentconfig "ruby-hello-world" created
  34. service "ruby-hello-world" created
  35. --> Success
  36. Build scheduled, use 'oc logs -f bc/ruby-hello-world' to track its progress.
  37. Run 'oc status' to view your app.
  38. [root@ip-172-31-42-197 ec2-user]# oc logs -f bc/ruby-hello-world
  39. Error from server: Timeout: timed out waiting for build ruby-hello-world-1 to start after 10s
  40. [root@ip-172-31-42-197 ec2-user]# oc desribe build ruby-hello-world-1
  41. Error: unknown command "desribe" for "oc"
  42.  
  43. Did you mean this?
  44. describe
  45.  
  46. Run 'oc --help' for usage.
  47. [root@ip-172-31-42-197 ec2-user]# oc describe build ruby-hello-world-1
  48. Name: ruby-hello-world-1
  49. Created: 6 minutes ago
  50. Labels: app=ruby-hello-world
  51. buildconfig=ruby-hello-world
  52. openshift.io/build-config.name=ruby-hello-world
  53. Annotations: openshift.io/build-config.name=ruby-hello-world
  54. openshift.io/build.number=1
  55. openshift.io/build.pod-name=ruby-hello-world-1-build
  56.  
  57. Status: Pending
  58. Duration: waiting for 6m6s
  59. Build Config: ruby-hello-world
  60. Build Pod: ruby-hello-world-1-build
  61.  
  62. Strategy: Source
  63. URL: https://github.com/openshift/ruby-hello-world.git
  64. From Image: DockerImage centos/ruby-22-centos7@sha256:a217f6e1a7f84d31a2eaa1722aaf5247884c26246e2b0812850630ee0c8f17aa
  65. Output to: ImageStreamTag ruby-hello-world:latest
  66. Push Secret: builder-dockercfg-lfjuw
  67.  
  68. Events:
  69. FirstSeen LastSeen Count From SubobjectPath Type Reason Message
  70. --------- -------- ----- ---- ------------- -------- ------ -------
  71. 6m 6m 1 {default-scheduler } Normal Scheduled Successfully assigned ruby-hello-world-1-build to ip-172-31-36-127.us-west-2.compute.internal
  72.  
  73.  
  74. [root@ip-172-31-42-197 ec2-user]# oc events ruby-hello-world-1
  75. Error: unknown command "events" for "oc"
  76. Run 'oc --help' for usage.
  77. [root@ip-172-31-42-197 ec2-user]# oc get events --namespace=forth-project
  78. FIRSTSEEN LASTSEEN COUNT NAME KIND SUBOBJECT TYPE REASON SOURCE MESSAGE
  79. 8m 8m 1 ruby-hello-world-1-build Pod Normal Scheduled {default-scheduler } Successfully assigned ruby-hello-world-1-build to ip-172-31-36-127.us-west-2.compute.internal
  80. [root@ip-172-31-42-197 ec2-user]# "oc start-build
  81. > ^C
  82. [root@ip-172-31-42-197 ec2-user]# oc start-build
  83. error: Must pass a name of a build config or specify build name with '--from-build' flag
  84. See 'oc start-build -h' for help and examples.
  85. [root@ip-172-31-42-197 ec2-user]# oc start-build ruby-hello-world-1-build
  86. Error from server: buildconfigs "ruby-hello-world-1-build" not found
  87. [root@ip-172-31-42-197 ec2-user]# oc start-build bv/ruby-hello-world-1-build
  88. the server doesn't have a resource type "bv"
  89. [root@ip-172-31-42-197 ec2-user]# oc start-build bc/ruby-hello-world-1-build
  90. Error from server: buildconfigs "ruby-hello-world-1-build" not found
  91. [root@ip-172-31-42-197 ec2-user]# oc start-build ruby-hello-world
  92. ruby-hello-world-2
  93. [root@ip-172-31-42-197 ec2-user]# oc logs ruby-hello-world-2
  94. Error from server: pods "ruby-hello-world-2" not found
  95. [root@ip-172-31-42-197 ec2-user]# oc logs ruby-hello-world
  96. Error from server: pods "ruby-hello-world" not found
  97. [root@ip-172-31-42-197 ec2-user]# oc logs ruby-hello-world-2
  98. Error from server: pods "ruby-hello-world-2" not found
  99. [root@ip-172-31-42-197 ec2-user]# oc get pods
  100. NAME READY STATUS RESTARTS AGE
  101. ruby-hello-world-1-build 0/1 Pending 0 18m
  102. ruby-hello-world-2-build 0/1 Pending 0 41s
  103. [root@ip-172-31-42-197 ec2-user]# oc logs ruby-hello-world-1-build
  104. Error from server: the server could not find the requested resource ( pods/log ruby-hello-world-1-build)
  105. [root@ip-172-31-42-197 ec2-user]# oc logs ruby-hello-world-2-build
  106. Error from server: the server could not find the requested resource ( pods/log ruby-hello-world-2-build)
  107. [root@ip-172-31-42-197 ec2-user]# oc logs build/ruby-hello-world-1
  108. Error from server: Timeout: timed out waiting for build ruby-hello-world-1 to start after 10s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement