You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update deploymentconfigs with ICTs if possible as soon as they are created #9018
Deployments from ImageStreams do not work and deploy from image " " instead of ImageStream. This is probably a follow up on #8937 which should be fixed now.
Version
$ oc version
oc v1.3.0-alpha.0-676-ge65adfa
kubernetes v1.3.0-alpha.1-331-g0522e63
Use web UI to instantiate this template in namespace pipelinepriject https://:8443/console/project/pipelineproject/create/fromtemplate?name=jenkins-ephemeral-next&namespace=openshift
Current Result
First deployment does not start automatically. After starting it manually it tries to deploy image " " which ends up with same errors as #8937.
Failed to pull image " ": API error (500): repository name component must match "[a-z0-9](?:-*[a-z0-9])*(?:[._][a-z0-9](?:-*[a-z0-9])*)*"
Back-off pulling image " "
(45 times in the last 11 minutes)
The deployment config is waiting for the image to be resolved in order to start (correct). Kicking it manually before the image is resolved is wrong. I created your template but couldn't see where jenkins-centos7:dev should come from. There is no image stream precreated somewhere, no build running, or should be the image be imported? @gabemontero@bparees to weigh in
FWIW, the jenkins example in our repo combined with examples/image-streams works fine - apart from the fact that if the jenkins image stream is precreated then it will take until the next image change controller relist for the image to be resolved in the dc template.
@Kargakis sorry, this was me having a bad day. I did forget to import ImageStream jenkins-centos7:dev which I had when trying this on ADB before.
3.0. oc create -n openshift -f https://raw.githubusercontent.com/tnozicka/adb-utils/add-os-jenkins-template/services/openshift/templates/image-streams-centos7.json
But on the other hand the behaviour was wrong. What I would expect is:
Never to deploy from image " "
When deploying manually say that the ImageStream and which one is missing (instead of deploying from image " ")
It might be nice to know in web console that the deployment is waiting for something. Currently it says No events to show.
When deploying manually say that the ImageStream and which one is missing (instead of deploying from image " ")
@deads2k we have a warning for this in oc status but we filter out cross-namespace links so we don't show it (common case: images come from the openshift namespace, deployments in other projects). I am not sure we have an issue about tracking cross-namespace links but I found #7033.
It might be nice to know in web console that the deployment is waiting for something. Currently it says No events to show.
Ultimately we can't know that. But, we do need to do the following things:
Summarize controller failures on the status of the resource (i.e. RCs
that are completely unable to match scale should be writing something to
status that conveys why, not just events, same for D, same for DC, same for
DS, etc)
Provide better APIs for "checking" pod specs - like @deads2k's PSP SAR
Summarize controller failures on the status of the resource (i.e. RCs that are completely unable to match scale should be writing something to status that conveys why, not just events, same for D, same for DC, same for DS, etc)
Talked in person with @tnozicka and it seems that his main problem is #9018 (comment). It seems that a big part of the create from template flow is like this: there are precreated images and when we process and create from a template, the deployment config will need to wait for the image controller to sync before it can start a new deployment. This will be fixed by having the image controller look for create events in a deploymentconfig cache, see if that dc points to an existing stream, and enqueue that stream instead of waiting for the resync interval.
@mfojtik sadly the openshift latest images on Docker Hub are more than a month old, so I don't suppose they reflect master. I will look into building them from master manually and try it out.
@mfojtik we still need /instantiate for this to be fixed. (or we could switch the image change controller to use the shared deploment config cache and an index from DC to IS)
@mfojtik There is still a pause (about 30s, but this is probably related to the 2 min sync interval) before first deployment and after deploying it manually in that time it will deploy from image " " and after few seconds it gets canceled.
Activity
0xmichalis commentedon May 25, 2016
The deployment config is waiting for the image to be resolved in order to start (correct). Kicking it manually before the image is resolved is wrong. I created your template but couldn't see where jenkins-centos7:dev should come from. There is no image stream precreated somewhere, no build running, or should be the image be imported? @gabemontero @bparees to weigh in
0xmichalis commentedon May 25, 2016
FWIW, the jenkins example in our repo combined with examples/image-streams works fine - apart from the fact that if the jenkins image stream is precreated then it will take until the next image change controller relist for the image to be resolved in the dc template.
tnozicka commentedon May 25, 2016
@Kargakis sorry, this was me having a bad day. I did forget to import ImageStream jenkins-centos7:dev which I had when trying this on ADB before.
3.0.
oc create -n openshift -f https://raw.githubusercontent.com/tnozicka/adb-utils/add-os-jenkins-template/services/openshift/templates/image-streams-centos7.jsonBut on the other hand the behaviour was wrong. What I would expect is:
" "" ")0xmichalis commentedon May 25, 2016
@smarterclayton @ironcladlou do we want to stop users from deploying things we may know that won't deploy?
@deads2k we have a warning for this in
oc statusbut we filter out cross-namespace links so we don't show it (common case: images come from the openshift namespace, deployments in other projects). I am not sure we have an issue about tracking cross-namespace links but I found #7033.cc: @spadgett @fabianofranz
We do this in oc status currently
[-]Deployments from ImageStreams do not work again[/-][+]Enhance deployment UX[/+]smarterclayton commentedon May 25, 2016
Ultimately we can't know that. But, we do need to do the following things:
that are completely unable to match scale should be writing something to
status that conveys why, not just events, same for D, same for DC, same for
DS, etc)
On Wed, May 25, 2016 at 7:55 AM, Michail Kargakis [email protected]
wrote:
0xmichalis commentedon May 25, 2016
Sounds like Conditions
0xmichalis commentedon May 26, 2016
Talked in person with @tnozicka and it seems that his main problem is #9018 (comment). It seems that a big part of the create from template flow is like this: there are precreated images and when we process and create from a template, the deployment config will need to wait for the image controller to sync before it can start a new deployment. This will be fixed by having the image controller look for create events in a deploymentconfig cache, see if that dc points to an existing stream, and enqueue that stream instead of waiting for the resync interval.
0xmichalis commentedon May 26, 2016
Opened #9041 for the console part
[-]Enhance deployment UX[/-][+]Update deploymentconfigs with ICTs if possible as soon as they are created[/+]1 remaining item
Switch from ImageStream to image because:
mfojtik commentedon Jul 29, 2016
@tnozicka the caches have been merged, can you please try to reproduce with master version?
Switch from ImageStream to image because:
tnozicka commentedon Aug 2, 2016
@mfojtik sadly the openshift
latestimages on Docker Hub are more than a month old, so I don't suppose they reflect master. I will look into building them from master manually and try it out.0xmichalis commentedon Aug 3, 2016
@mfojtik we still need /instantiate for this to be fixed. (or we could switch the image change controller to use the shared deploment config cache and an index from DC to IS)
mfojtik commentedon Aug 3, 2016
@Kargakis I will prefer instantiate
tnozicka commentedon Aug 3, 2016
@mfojtik There is still a pause (about 30s, but this is probably related to the 2 min sync interval) before first deployment and after deploying it manually in that time it will deploy from image " " and after few seconds it gets canceled.
Most probably related to @Kargakis #9018 (comment). I will wait with further testing.
0xmichalis commentedon Aug 3, 2016
me too - is the code freeze on? I won't get to this earlier than 15/8
On Wed, Aug 3, 2016 at 12:01 PM, Michal Fojtik [email protected]
wrote:
mfojtik commentedon Aug 3, 2016
@Kargakis not yet
0xmichalis commentedon Aug 3, 2016
P2 since it's punted for 1.3.1