Skip to content

when trying to build sample-app, error about imagerepository occurs #1619

Closed

Description

@thoraxe
Apr 06 17:20:32 ose3-master.example.com openshift[5886]: I0406 17:20:32.365619    5886 controller.go:42] Handling build ruby-sample-build-1
Apr 06 17:20:32 ose3-master.example.com openshift[5886]: E0406 17:20:32.366458    5886 factory.go:30] Build failed with error integrated/ruby-sample-build-1: &errors.errorString{s:"the referenced output image repository integrated/origin-ruby-sample does not exist"}

This just repeats ad-infinitum.

I have created a template like so:

osc create -f https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json -n openshift

And then I am trying to create an instance of this template. When starting the build, the error above occurs.

Note, this may also somehow be related to #1615

Activity

  1. soltysh commented on Apr 7, 2015

    @soltysh
    Contributor

    This creates just the template object itself and not the objects from that template. I just did that:

    $ osc create -f application-template-stibuild.json -n openshift
    templates/ruby-helloworld-sample
    

    You should have a look at sample-app step 15, which first of all processes the template (osc process part) and only after creates (osc create) the objects, see below output:

    $ osc process -f application-template-stibuild.json | osc create -f -
    services/frontend
    routes/route-edge
    imageStreams/origin-ruby-sample
    imageStreams/ruby-20-centos7
    buildConfigs/ruby-sample-build
    deploymentConfigs/frontend
    services/database
    deploymentConfigs/database
    
    
  2. thoraxe commented on Apr 7, 2015

    @thoraxe
    ContributorAuthor

    Clicking the "create" button in the web console should be the same thing as "osc process -f template | osc create -f -".

    Otherwise, what is the purpose of "osc create -f template"?

    CLI and the WebUI "experience" are different.

    But it appears that something more sinister is going on on the back-end when using the WebUI to create an instance of a template.

    I think you are talking about something different than the bug references.

  3. soltysh commented on Apr 7, 2015

    @soltysh
    Contributor

    On Tue, Apr 7, 2015 at 3:57 PM Erik M Jacobs [email protected]
    wrote:

    Clicking the "create" button in the web console should be the same thing
    as "osc process -f template | osc create -f -".

    Otherwise, what is the purpose of "osc create -f template"?

    This creates the template object, the same way you create other objects. To
    create objects from that template you need to process the template which in
    result gives you a Config, which under the hood is a list of objects to be
    created.

    CLI and the WebUI "experience" are different.

    But it appears that something more sinister is going on on the back-end
    when using the WebUI to create an instance of a template.

    I think you are talking about something different than the bug references.

    —
    Reply to this email directly or view it on GitHub
    #1619 (comment).

  4. thoraxe commented on Apr 7, 2015

    @thoraxe
    ContributorAuthor

    The issue this bug describes is that, after creating a template, when it is instantiated from the web UI and then the build is started, the error in the first comment is found -- the build will never complete.

  5. thoraxe commented on Apr 7, 2015

    @thoraxe
    ContributorAuthor

    Still happening with latest puddle:

    osc v0.4.2.4
    kubernetes v0.13.1-dev-641-gf057a25
    
  6. added
    kind/bug
    on Apr 7, 2015
  7. smarterclayton commented on Apr 8, 2015

    @smarterclayton
    Contributor

    The error you're seeing may be due to a change in how image streams were created. @ncdc

  8. ncdc commented on Apr 8, 2015

    @ncdc
    Contributor

    Working on a fix now.

  9. ncdc commented on Apr 8, 2015

    @ncdc
    Contributor

    I believe this is also fixed by #1638

  10. danmcp commented on May 11, 2015

    @danmcp

    Any remaining issues here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/clikind/bugpriority/P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions