Unable to deploy using Fabric8 workflow 2.2.0.redhat-079

Solution Verified - Updated -

Issue

Deploying using the Fabric8 workflow with FIS v1.0 it failed with the following error (imagestreams "cdi-camel-jetty-example" already exists):

mvn clean install docker:build docker:push fabric8:clean fabric8:json fabric8:apply -Dfabric8.recreate=true -Dfabric8.useDeploymentConfig=true -Ddocker.registry=registry.openshift -Ddocker.username=$(oc whoami) -Ddocker.password=$(oc whoami -t) -Dfabric8.dockerUser=$(oc project -q)/ -Ddocker.from=registry.access.redhat.com/jboss-fuse-6/fis-java-openshift
....
[ERROR] Failed to execute goal
io.fabric8:fabric8-maven-plugin:2.2.0.redhat-079:apply (default-cli) on project cdi-camel-jetty-example: Failed to create BuildConfig from kubernetes.json. io.fabric8.kubernetes.client.KubernetesClientException:
Failure executing: POST at: https://t-openshift:8443/oapi/v1/namespaces/test-cxf/imagestreams. 
Message: imagestreams "cdi-camel-jetty-example" already exists. Received status: Status(apiVersion=v1, code=409, details=StatusDetails(causes=[], kind=imagestreams, name=cdi-camel-jetty-example, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=imagestreams "cdi-camel-jetty-example" already exists, metadata=ListMeta(resourceVersion=null, selfLink=null,
additionalProperties={}), reason=AlreadyExists, status=Failure, additionalProperties={}). -> [Help 1]
[ERROR]

Environment

  • OpenShift Container Platform
    • 3.3.0
  • fabric8-maven-plugin
    • 2.2.0.redhat-079

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In