[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: ImageStream problems on Origin v3



Ok, your OpenShift version contains the fix I was talking about in an earlier email. And you can perform the 1st request that our importing code does.

Can you paste `oc get is -o yaml`?

Andy

On Tue, Jul 7, 2015 at 9:33 AM, Massimiliano Dessì <massimiliano dessi gmail com> wrote:
Hi Andy
these are the outputs you asked

[root oo3 ~]# oc version
oc v1.0.0-1-g6ffebda
kubernetes v0.17.1-804-g496be63


[root oo3 ~]# curl -v -H "X-Docker-Token: true" https://index.docker.io/v1/repositories/library/centos/images
* About to connect() to index.docker.io port 443 (#0)
*   Trying 54.174.141.60...
* Connected to index.docker.io (54.174.141.60) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLS_RSA_WITH_AES_128_CBC_SHA
* Server certificate:
*     subject: CN=*.docker.io,OU=Domain Control Validated - RapidSSL(R),OU=See www.rapidssl.com/resources/cps (c)15,OU=GT98568428
*     start date: mar 19 17:34:32 2015 GMT
*     expire date: apr 21 01:51:52 2018 GMT
*     common name: *.docker.io
*     issuer: CN=RapidSSL SHA256 CA - G3,O=GeoTrust Inc.,C=US
> GET /v1/repositories/library/centos/images HTTP/1.1
> User-Agent: curl/7.29.0
> Host: index.docker.io
> Accept: */*
> X-Docker-Token: true
>
< HTTP/1.1 200 OK
< Server: nginx/1.6.2
< Date: Tue, 07 Jul 2015 13:30:52 GMT
< Content-Type: application/json
< Transfer-Encoding: chunked
< Vary: Cookie
< X-Docker-Endpoints: registry-1.docker.io
< X-Frame-Options: SAMEORIGIN
< X-Docker-Token: signature=2788704d8f8a33a3355faf53aa87d8ac187344e7,repository="library/centos",access=read
< Strict-Transport-Security: max-age=31536000
<
[{"checksum": "", "id": "c852f6d61e65cddf1e8af1f6cd7db78543bfb83cdcd36845541cf6d9dfef20a0"}, {"checksum": "", "id": "7322fbe74aa5632b33a400959867c8ac4290e9c5112877a7754be70cfe5d66e9"}, {"checksum": "", "id": "fb9cc58bde0c0a8fe53e6fdd23898e45041783f2d7869d939d7364f5777fde6f"}, {"checksum": "", "id": "a005304e4e74c1541988d3d1abb170e338c1d45daee7151f8e82f8460634d329"}, {"checksum": "", "id": "c43c1996cf187f30bc8af15e7a3bc5aee1eba2a0995baaf3e4135a7a676d74b1"}, {"checksum": "", "id": "f1dade627e2541880e968459c4c3861678a8b576714f0325e16a7a04c32326c6"}, {"checksum": "", "id": "feb2761601e7a65e37e4b78a1bd688cb1e7a847045e2f98ac50abba081d79d31"}, {"checksum": "", "id": "223843a319cac73d666e66265569d4c3c2f416b8b1c2c0af4391d1541051be35"}, {"checksum": "", "id": "9069226e092e9c8d68450ca4a416bec6acf1709584e9fd70ea5fe8040bf9859e"}, {"checksum": "", "id": "8b44529354f3ca0fbe44794e2dbd0169a8ae6e2cdfa2d6df3fcd0777892ebb85"}, {"checksum": "", "id": "6941bfcbbfca7f4f48becd38f2639157042b5cf9ab8c080f1d8b6d047380ecfc"}, {"checksum": "", "id": "41459f052977938b824dd011e1f2bec2cb4d133dfc7e1aa0e90f7c5d337ca9c4"}, {"checksum": "", "id": "fd44297e2ddb050ec4fa9752b7a4e3a8439061991886e2091e7c1f007c906d75"}, {"checksum": "", "id": "f1b10cd842498c23d206ee0cbeaa9de8d2ae09ff3c7af2723a9e337a6965d639"}, {"checksum": "", "id": "b9aeeaeb5e17b5414e5caa9a6b2f99e9ccef50561bdfe137cd05956961f1cec6"}, {"checksum": "", "id": "0114405f9ff12fb7b012d0f7eb2f958c6ab8638061f67bc0a12cfc308ed31ee4"}, {"checksum": "", "id": "3d3c8202a57465ab6a24852559d21ca72a4af0243ada9a8799ccefb56f4d8a3f"}, {"checksum": "", "id": "214a4932132a05e9cc97624436a77743f368948c4776b186975d319140e8b45c"}, {"checksum": "", "id": "41054cbffecca8ca909a0c4c163eb0ddb25f50311a96de136239d3b4287b3618"}, {"checksum": "", "id": "9dbcac75201e6db43020fe68be521c83120422f0076e0ae68503047d578ceae6"}, {"checksum": "", "id": "493bab5fff45a4d97a666dd22df7b99b083a68670561cff6d6b2731a9a4ce108"}, {"checksum": "", "id": "b6718650e87e3706c52682c87ecfd7a7e1fc176c9095d73d627ca41b2584839b"}, {"checksum": "", "id": "b58de3b24eb7d7989d068d343ae0478c3f0d05091ca9df0ab34574abd1212032"}, {"checksum": "", "id": "ad3d57cba393404467867b417eebbfca65bb2b7f330ffb80a253ad9211609e1a"}, {"checksum": "", "id": "2b8d6139a5457eed471ee77bb9388782ccf8a0da128fa572b8d4bdb2f2e75f89"}, {"checksum": "", "id": "5c5681003a5085424bae9c5319d8e56bb663a9d4ec340e3a4726e3c5a4f1df4e"}, {"checksum": "", "id": "2e4a66ce2189a793776b92fb59e5938a34f5fa1f40b4112a3a0ac0a7fff8238b"}, {"checksum": "", "id": "0bc55ae673f7a3d7017ef452c2a0ecdea2a68620b67bbd08505bc93ad264c7be"}, {"checksum": "", "id": "99d42dc65aa6c57333089765e47285f03ce17094d916d5568d80a5a37bf981c6"}, {"checksum": "", "id": "861c710fef70a2a90b6dbd9cda7c006dff5388d1e292e2b1afef75a62f904e62"}, {"checksum": "", "id": "f6808a3e4d9e80a655ec625e38b869ed8a614611e4d0073aeff23be841c9fcff"}, {"checksum": "", "id": "88f9454e60ddf4ae5f23fad8247a2c53e8d3ff63b0bdac59fc17ceceab058ce6"}, {"checksum": "", "id": "6ce14bd87f1922b1fc4c87b78943bd2e548597dc58d882d11038da7c886296aa"}, {"checksum": "", "id": "77e369743e242d5b13f6426b128b1609f8aa1091b935e50b0de81c8bc3e1510d"}, {"checksum": "", "id": "74d115712dad5659a7c37e7b4bd53a9b885b3c21b56ffb5d3a6587da9d59e169"}, {"checksum": "", "id": "c84a0e79c6bef01fac457ccaa302f7a22bcaa0097edab6ef03c5217fbec04c5c"}, {"checksum": "", "id": "a30bc9f3097ea36bfd37fecf575c2c63f5ba99b618916422c13ee3f12ecbf2e8"}, {"checksum": "", "id": "dade6cb4530a852b83bc34f6f3904a10879632947c01f1ae0447ff9dbb37e12b"}, {"checksum": "", "id": "c36ca560b9bfb8e66c189c8226aaf7a6a1aece4c33b9e0c0f20953d8cdacd6cb"}, {"checksum": "", "id": "eeed74b237f9627316f074fd43ff1648b7c8be62767d671a1c98c4908eba0603"}, {"checksum": "", "id": "186bcdab8163c02041844a679b192da279e0ac0f0a0d034afeae875f8c45345b"}, {"checksum": "", "id": "bac0c97c3010cf5c8f37bd39ddfde07b114f894e2342c0594359f714f209a65e"}, {"checksum": "", "id": "510cf09a79863a3387f8929f9b2171e05bb9624c26f999fa65c833934e61fea1"}, {"checksum": "", "id": "8efe422e6104930bd0975c199faa15da985b6694513d2e873aa2da9ee402174c"}, {"checksum": "", "id": "510463a5d9751c892ffdcb22a68825a1070d32e5638014ebbc780ea167f897c5"}, {"checksum": "", "id": "7bba7709bd7eed0e6e3728374144c6bda09bccc1b70e5cc3179a6dee4e1aadd9"}, {"checksum": "", "id": "acc1b23376eccebfb2c355a3da738125d74216231ba0200c086fef971a2b5b57"}, {"checksum": "", "id": "6cc180b1c73b160229a8130ecaea4ca0a1f32b04f418dadb7a1afe9402e9708c"}, {"checksum": "", "id": "25c5298b1a36a798cb86260e43fc31b3d441cf5fc5dcb8b4e6299026feb36bdf"}, {"checksum": "", "id": "34943839435dfb2ee646b692eebb06af13823a680ace00c0adc232c437c4f90c"}, {"checksum": "", "id": "192178b11d36594f2348800345277df79507a067a4a06e3ec18b541c7ce794aa"}, {"checksum": "", "id": "70441cac1ed570d6c84b35382c9914c327e208f93a9d2e5227f6ee6c1111cb81"}, {"checksum": "", "id": "ae0c2d0bdc100993f7093400f96e9abab6ddd9a7c56b0ceba47685df5a8fe906"}, {"checksum": "", "id": "504a65221a38cb6bc24d9858643b2d8f564caf79d4ffd7839c1d2da212156340"}, {"checksum": "", "id": "68edf809afe78e6c2460fb4b339e4f4f9298b765a21a55d34c302e9d185c2bc0"}, {"checksum": "", "id": "87e5b6b3ccc119ebfe9344583fb3f77804d6e3d9a3553d916fbf807028310e8e"}, {"checksum": "", "id": "5b12ef8fd57065237a6833039acc0e7f68e363c15d8abb5cacce7143a1f7de8a"}, {"checksum": "", "id": "ac1f1b8dce209a22743b267b60f6ca525a3d56807063560f0d0388c7bed8f532"}, {"checksum": "", "id": "d5844d9020741ff87ba1358946bda2ea3565d12eeff014849246176e419177cd"}, {"checksum": "", "id": "a5fd0258f31cf4e25ebf066bd7deefe9563c002d9600640e07d87e2a3cca623d"}, {"checksum": "", "id": "d3d49dd114bd6f3befac2a79220b1c8ccda8cce3c1437694f4cfa1ef94f82523"}, {"checksum": "", "id": "595e24a43733a01a06452076c1917f2c0f34cbd4ed559cb8373afc7c9518e93a"}, {"checksum": "", "id": "76749a268d880b8570efaea2b6f821c2d68d7df1083525680f6c79953940f04a"}, {"checksum": "", "id": "ec0a1ca531c0b21449a37bc6091ee1c37877c80c4ef953d5e4108dec34d3ca6f"}, {"checksum": "", "id": "ab5ab26397b5636c79ca948693c9c43ccb5e2591661acf5401e1634aebbf5214"}, {"checksum": "", "id": "08a067f18681cf302f6118ce66b290bafadcb40df1ca95f414f19e39cdd8588d"}, {"checksum": "", "id": "0b2c58b208cf373e971db525e34f7a13b03439c037884b71b6a943cdecebea48"}, {"checksum": "", "id": "5a1ebaa356ff3d139b99cd0618ebf0addd5bec6d8c2d9c847e41ef0360d14b71"}, {"checksum": "", "id": "70214e5d0a90c12a70eb522c6fcf95ff924ab3dda42f5041b9bc2cf58a5ff0a0"}, {"checksum": "", "id": "68eb857ffb513a3809e94c26925abdff3783dc13e2a96b01d8e74688ab8e48f7"}, {"checksum": "", "id": "d22d3225b491a20b5b3a38cf95d33e5f0464d5d8c19b7e5f508f45167a5a59ad"}, {"checksum": "", "id": "b157b77b1a65e87b4f49298557677048b98fed36043153dcadc28b1295920373"}, {"checksum": "", "id": "b1bd49907d559b703c2b7c1b0d6f120b5182440f7ac5f08636625d328e96f1ef"}, {"checksum": "", "id": "511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158"}, {"checksum": "", "id": "7064731afe90d78da2c117d64a1221c826234cd7145fd330ae7e207ff5606980"}, {"checksum": "", "id": "0b443ba0395813ef287c27f5ff953121a69ab23c467ffbefcefaec3f255e0693"}, {"checksum": "", "id": "34e94e67e63a0f079d9336b3c2a52e814d138e5b3f1f614a0cfe273814ed7c0a"}, {"checksum": "", "id": "0c752394b855e8f15d2dc1fba6f10f4386ff6c0ab6fc6a253285bcfbfdd* Connection #0 to host index.docker.io left intact
214f5"}, {"checksum": "", "id": "cd934e0010d5a63c3137a6d0d6b1cdeca68a02bafd2a51554be61dfd6b6dda80"}, {"checksum": "", "id": "1a7dc42f78ba213ec1ac5cd04930011334536214ad26c8000f1eec72e302c041"}, {"checksum": "sha256:cdf3aea30e580e2dfd1148689e25cbc147b2cc5812e376b0c3f6a0f2b00c5548", "id": "539c0211cd76cdeaedbecf9f023ef774612e331137ce7ebe4ae1b61088e7edbe"}][root oo3 ~]#

Max

2015-07-07 15:04 GMT+02:00 Andy Goldstein <agoldste redhat com>:
You can run `oc version` to see the version.

OpenShift is designed to be eventually consistent and to react to events occurring asynchronously. In this case, when you run `oc new-app`, it creates several resources for you, including a DeploymentConfig with config and image change triggers. OpenShift will immediately try to create a deployment from this DeploymentConfig, and it's not able to deploy successfully because the image it depends on (centos7-wordpress:latest) hasn't been built yet.

Once you do a build, the image change trigger will see the new image, and kick off a new deployment that should be able to find the image this time.

So we need to figure out why you can't import tags... Can you successfully run this on your master?


Andy

On Tue, Jul 7, 2015 at 5:51 AM, Massimiliano Dessì <massimiliano dessi gmail com> wrote:
Hi Andy,
this master runs since 2th of July,
how can check which version of Origin installed by ansible (3.0.0-1)
to start a fresh installation with the latest origin ?


Other infos:
I've spinup other two fresh instances,
the error this time is on the build

oc new-project wordpress --display-name="Wordpress" --description='Building an arbitrary Wordpress Docker image'
Now using project "wordpress" on server "https://os3-master.dsgp.software.dell.com:8443".

$ oc new-app -l name=wordpress https://github.com/openshift/centos7-wordpress.git
imagestreams/centos
imagestreams/centos7-wordpress
buildconfigs/centos7-wordpress
deploymentconfigs/centos7-wordpress
services/centos7-wordpress
A build was created - you can run `oc start-build centos7-wordpress` to start it.
Service "centos7-wordpress" created at <redacted> with port mappings 22->22, 80->80.

but on the events page the error is

centos7-wordpress DeploymentConfig failedCreate Couldn't create initial deployment: DeploymentConfig "centos7-wordpress" is invalid: triggers[1].imageChange.tag: invalid value 'latest': no image recorded for wordpress/centos7-wordpress:latest (22 times in the last 18 minutes, 41 seconds)

Thanks

2015-07-07 11:31 GMT+02:00 Andy Goldstein <agoldste redhat com>:
How old/new is your origin code? How long has your master been running? There was a bug we fixed a couple of weeks ago where origin would stop being able to import images from the Hub after it had been running for a couple of hours. It doesn't seem like you're running into that, but it's all I can think of at the moment. 

Andy


On Tuesday, July 7, 2015, Massimiliano Dessì <massimiliano dessi gmail com> wrote:
Hi Andy,
no proxy is used, the instances are on aws,
last week the wordpress installation worked fine except the route configuration
about the factory.go in the log

Jul  6 08:29:39 oo3 openshift-node: I0706 08:29:39.388169   26938 factory.go:71] Error trying to work out if we can handle /system.slice/NetworkManager-dispatcher.service: error inspecting container: No such container: NetworkManager-dispatcher.service
Jul  6 08:29:39 oo3 openshift-node: I0706 08:29:39.388199   26938 factory.go:82] Factory "docker" was unable to handle container "/system.slice/NetworkManager-dispatcher.service"
Jul  6 08:29:39 oo3 openshift-node: I0706 08:29:39.388222   26938 factory.go:78] Using factory "raw" for container "/system.slice/NetworkManager-dispatcher.service"




Jul  6 09:07:56 oo3 openshift-master: I0706 09:07:56.670103   86270 factory.go:214] About to try and schedule pod hello-openshift
Jul  6 09:07:56 oo3 openshift-master: I0706 09:07:56.670133   86270 scheduler.go:116] Attempting to schedule: &{{ } {hello-openshift  desmax /api/v1/namespaces/desmax/pods/hello-openshift 7dd5eea6-23be-11e5-be87-06d3691dc759 108519 2015-07-06 09:07:56 +0000 UTC <nil> map[name:hello-openshift] map[openshift.io/scc:restricted]} {[{default-token-w5dzm {<nil> <nil> <nil> <nil> <nil> 0xc219673060 <nil> <nil> <nil> <nil> <nil> <nil> <nil>}}] [{hello-openshift openshift/hello-openshift:v1.0.1 [] []  [{ 36061 8080 TCP }] [] {map[cpu:{0.010 DecimalSI} memory:{16777216.000 BinarySI}] map[]} [{default-token-w5dzm true /var/run/secrets/kubernetes.io/serviceaccount}] <nil> <nil> <nil> /dev/termination-log IfNotPresent 0xc21c0eb0c0}] Always <nil> <nil> ClusterFirst map[] default  false [{default-dockercfg-y9n6x}]} {Pending []    <nil> []}}


Jul  6 09:10:20 oo3 openshift-master: I0706 09:10:20.513473   86270 factory.go:214] About to try and schedule pod hello-openshift
Jul  6 09:10:20 oo3 openshift-master: I0706 09:10:20.513495   86270 scheduler.go:116] Attempting to schedule: &{{ } {hello-openshift  desmax /api/v1/namespaces/desmax/pods/hello-openshift d392b242-23be-11e5-be87-06d3691dc759 108604 2015-07-06 09:10:20 +0000 UTC <nil> map[name:hello-openshift] map[openshift.io/scc:restricted]} {[{default-token-w5dzm {<nil> <nil> <nil> <nil> <nil> 0xc212a643d0 <nil> <nil> <nil> <nil> <nil> <nil> <nil>}}] [{hello-openshift openshift/hello-openshift:v1.0.0 [] []  [{ 36061 8080 TCP }] [] {map[cpu:{0.010 DecimalSI} memory:{16777216.000 BinarySI}] map[]} [{default-token-w5dzm true /var/run/secrets/kubernetes.io/serviceaccount}] <nil> <nil> <nil> /dev/termination-log IfNotPresent 0xc216725da0}] Always <nil> <nil> ClusterFirst map[] default  false [{default-dockercfg-y9n6x}]} {Pending []    <nil> []}}


Jul  6 09:22:56 oo3 openshift-node: I0706 09:22:56.581411   26938 factory.go:78] Using factory "docker" for container "/system.slice/docker-f0edd0460e6a85e01e800f56bfdd24b501f5f50011daa26d71837c3bb897375f.scope"

Is it possible enable the rotation of the log ?
Currently in three days the log (master plus nodes) is near to one gb.

Thanks
Max

2015-07-07 1:26 GMT+02:00 Andy Goldstein <agoldste redhat com>:
Do you need to use a proxy to get out to the internet, i.e. to pull images from docker.io?

Do you see any errors in your master's log from factory.go about problems related to the Hub, X-Docker-Token, or importing images?

On Mon, Jul 6, 2015 at 6:11 PM, Ben Parees <bparees redhat com> wrote:
Andy any theories/suggestions?

On Mon, Jul 6, 2015 at 3:59 PM, Massimiliano Dessì <massimiliano dessi gmail com> wrote:
Hi Ben,
the import-image
hanging without other console output than this

$ oc import-image centos
Waiting for the import to complete, CTRL+C to stop waiting.


instead the second command show this:

$ oc get is centos -o json
{
    "kind": "ImageStream",
    "apiVersion": "v1",
    "metadata": {
        "name": "centos",
        "namespace": "wordpress",
        "selfLink": "/osapi/v1beta3/namespaces/wordpress/imagestreams/centos",
        "uid": "1ca0f3ef-23fe-11e5-88b8-06d3691dc759",
        "resourceVersion": "118778",
        "creationTimestamp": "2015-07-06T16:43:21Z",
        "labels": {
            "name": "wordpress"
        }
    },
    "spec": {
        "dockerImageRepository": "library/centos:centos7"
    },
    "status": {
        "dockerImageRepository": "library/centos:centos7"
    }
}


Max

2015-07-06 19:42 GMT+02:00 Ben Parees <bparees redhat com>:
It looks like the centos imagestream exists, but was not imported from dockerhub successfully.

can you run "oc import-image centos"?  and also show the output of "oc get is centos -o json"



On Mon, Jul 6, 2015 at 12:48 PM, Massimiliano Dessì <massimiliano dessi gmail com> wrote:

Hi all,
on Origin 3 installed with ansible I've the following problems:

on nodes I've imported the following images

# docker pull openshift/ruby-20-centos7
latest: Pulling from docker.io/openshift/ruby-20-centos7
f1b10cd84249: Already exists
c852f6d61e65: Already exists
7322fbe74aa5: Already exists
befe95af4705: Already exists
d5de68d8a256: Already exists

In the web console I've choosed rails-postgresql-example
the postgresql start correctly but when I try to run the rails build
oc start-build rails-example -n <project>
I receive "Error from server: imageStream "ruby" not found"

Instead if i try to install wordpress with this guide:
https://github.com/openshift/training/blob/master/beta-4-setup.md#arbitrary-docker-image-builder

$ oc new-app -l name=wordpress https://github.com/openshift/centos7-wordpress.git
imagestreams/centos
imagestreams/centos7-wordpress
buildconfigs/centos7-wordpress
deploymentconfigs/centos7-wordpress
services/centos7-wordpress
A build was created - you can run `oc start-build centos7-wordpress` to start it.
Service "centos7-wordpress" created at <ip_redacted> with port mappings 22->22, 80->80.
$ oc start-build centos7-wordpress
Error from server: imageStreamTag "centos:centos7" not found

but the streams seem presents

$ oc get imageStreams
NAME                DOCKER REPO                                      TAGS      UPDATED
centos              library/centos:centos7                                    
centos7-wordpress   <ip_redacted>:5000/wordpress/centos7-wordpress  

I've missing some steps about the image streams ?

Thanks
Max


_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users




--
Ben Parees | OpenShift




--
Ben Parees | OpenShift


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]