Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1338

CRUD Booster error: no match for "postgresql-ephemeral"

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 2017.6.1
    • None
    • None
    • 2017-Jun-A
    • Hide
      1. Deploy https://github.com/openshiftio/launchpad-templates/blob/master/openshift/launchpad-template.yaml into your local minishift
      2. Choose Set up Continuous Delivery
      3. Choose CRUD
      4. Choose WildFly Swarm
      5. Use any project name and deploy it
      6. Watch the jenkins build log
      Show
      Deploy https://github.com/openshiftio/launchpad-templates/blob/master/openshift/launchpad-template.yaml into your local minishift Choose Set up Continuous Delivery Choose CRUD Choose WildFly Swarm Use any project name and deploy it Watch the jenkins build log

    Description

      When launching a WFSwarm CRUD using launch.openshift.io running in Minishift, I get the following output and the build fails:

      OpenShift Build crud-wfswarm/crud-wfswarm-1 from https://github.com/gastaldi/crud-wfswarm.git
      Checking out git https://github.com/gastaldi/crud-wfswarm.git to read Jenkinsfile
      Cloning the remote Git repository
      Cloning repository https://github.com/gastaldi/crud-wfswarm.git
       > git init /var/lib/jenkins/jobs/crud-wfswarm-crud-wfswarm/workspace@script # timeout=10
      Fetching upstream changes from https://github.com/gastaldi/crud-wfswarm.git
       > git --version # timeout=10
       > git fetch --tags --progress https://github.com/gastaldi/crud-wfswarm.git +refs/heads/*:refs/remotes/origin/*
       > git config remote.origin.url https://github.com/gastaldi/crud-wfswarm.git # timeout=10
       > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
       > git config remote.origin.url https://github.com/gastaldi/crud-wfswarm.git # timeout=10
      Fetching upstream changes from https://github.com/gastaldi/crud-wfswarm.git
       > git fetch --tags --progress https://github.com/gastaldi/crud-wfswarm.git +refs/heads/*:refs/remotes/origin/*
       > git rev-parse origin/master^{commit} # timeout=10
      Checking out Revision da3bb19b4f7923971cd7996552dad57ee5367919 (origin/master)
       > git config core.sparsecheckout # timeout=10
       > git checkout -f da3bb19b4f7923971cd7996552dad57ee5367919
      First time build. Skipping changelog.
      [Pipeline] node
      Still waiting to schedule task
      Jenkins doesn’t have label launchpad-maven
      Running on launchpad-maven-8c1274628a5 in /tmp/workspace/crud-wfswarm-crud-wfswarm
      [Pipeline] {
      [Pipeline] checkout
      Cloning the remote Git repository
      Cloning repository https://github.com/gastaldi/crud-wfswarm.git
       > git init /tmp/workspace/crud-wfswarm-crud-wfswarm # timeout=10
      Fetching upstream changes from https://github.com/gastaldi/crud-wfswarm.git
       > git --version # timeout=10
       > git fetch --tags --progress https://github.com/gastaldi/crud-wfswarm.git +refs/heads/*:refs/remotes/origin/*
       > git config remote.origin.url https://github.com/gastaldi/crud-wfswarm.git # timeout=10
       > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
       > git config remote.origin.url https://github.com/gastaldi/crud-wfswarm.git # timeout=10
      Fetching upstream changes from https://github.com/gastaldi/crud-wfswarm.git
       > git fetch --tags --progress https://github.com/gastaldi/crud-wfswarm.git +refs/heads/*:refs/remotes/origin/*
       > git rev-parse origin/master^{commit} # timeout=10
      Checking out Revision da3bb19b4f7923971cd7996552dad57ee5367919 (origin/master)
       > git config core.sparsecheckout # timeout=10
       > git checkout -f da3bb19b4f7923971cd7996552dad57ee5367919
      [Pipeline] stage
      [Pipeline] { (Provision Database)
      [Pipeline] sh
      [crud-wfswarm-crud-wfswarm] Running shell script
      + grep my-database
      + oc get service my-database
      No resources found.
      Error from server: services "my-database" not found
      + oc new-app -p POSTGRESQL_USER=luke -p POSTGRESQL_PASSWORD=secret -p POSTGRESQL_DATABASE=my_data -p DATABASE_SERVICE_NAME=my-database --name=my-database --template=postgresql-ephemeral
      error: no match for "postgresql-ephemeral"
      
      The 'oc new-app' command will match arguments to the following types:
      
        1. Images tagged into image streams in the current project or the 'openshift' project
           - if you don't specify a tag, we'll add ':latest'
        2. Images in the Docker Hub, on remote registries, or on the local Docker engine
        3. Templates in the current project or the 'openshift' project
        4. Git repository URLs or local paths that point to Git repositories
      
      --allow-missing-images can be used to point to an image that does not exist yet.
      
      See 'oc new-app -h' for examples.
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      ERROR: script returned exit code 1
      Finished: FAILURE
      

      Comparing to vert.x, a different command is issued:

      + oc new-app -e POSTGRESQL_USER=luke -ePOSTGRESQL_PASSWORD=secret -ePOSTGRESQL_DATABASE=my_data openshift/postgresql-92-centos7 --name=my-database
      --> Found Docker image 859f546 (5 months old) from Docker Hub for "openshift/postgresql-92-centos7"
      
          PostgreSQL 9.2 
          -------------- 
          PostgreSQL is an advanced Object-Relational database management system
      
          Tags: database, postgresql, postgresql92
      
          * An image stream will be created as "my-database:latest" that will track this image
          * This image will be deployed in deployment config "my-database"
          * Port 5432/tcp will be load balanced by service "my-database"
            * Other containers can access this service through the hostname "my-database"
          * This image declares volumes and will default to use non-persistent, host-local storage.
            You can add persistent volumes later by running 'volume dc/my-database --add ...'
      
      --> Creating resources ...
          imagestream "my-database" created
          deploymentconfig "my-database" created
          service "my-database" created
      --> Success
          Run 'oc status' to view your app.
      

      Attachments

        Activity

          People

            rhn-support-hbraun Heiko Braun
            rhn-support-ggastald George Gastaldi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: