Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8645

[fabric-8-maven-plugin]Cannot launch 2 times fabric8-deploy on OCP 3.2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: FIS 2.0
    • Fix Version/s: FIS 2.0
    • Component/s: FIS-Fabric8
    • Labels:
      None

      Description

      fabric8-deploy cannot be called 2 times
      I'm using "Development suite installer" and Forge quickstart. It means Openshift 3.2
      the second time it fails with this kind of error:

      [ERROR] Failed to update DeploymentConfig from openshift.yml. io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: PUT at: https://10.1.2.2:8443/oapi/v1/namespaces/test/deploymentconfigs/my-fuse-project. Message: DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=status.latestVersion, message=Invalid value: 0: latestVersion cannot be decremented, reason=FieldValueInvalid, additionalProperties={})], group=null, kind=DeploymentConfig, name=my-fuse-project, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).. DeploymentConfig(apiVersion=v1, kind=DeploymentConfig, metadata=ObjectMeta(annotations={fabric8.io/docs-url=dav:http://content-repository/sites/org.my.fuse.project/my-fuse-project/1.0.0-SNAPSHOT, fabric8.io/iconUrl=img/icons/camel.svg, fabric8.io/metrics-path=dashboard/file/camel-routes.json/?var-project=my-fuse-project&var-version=1.0.0-SNAPSHOT}, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, labels={provider=fabric8, project=my-fuse-project, version=1.0.0-SNAPSHOT, group=org.my.fuse.project}, name=my-fuse-project, namespace=null, ownerReferences=[], resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=DeploymentConfigSpec(minReadySeconds=null, paused=null, replicas=1, revisionHistoryLimit=null, selector={project=my-fuse-project, provider=fabric8, group=org.my.fuse.project}, strategy=DeploymentStrategy(annotations=null, customParams=null, labels=null, recreateParams=null, resources=null, rollingParams=RollingDeploymentStrategyParams(intervalSeconds=null, maxSurge=null, maxUnavailable=null, post=null, pre=null, timeoutSeconds=10800, updatePercent=null, updatePeriodSeconds=null, additionalProperties={}), type=Rolling, additionalProperties={}), template=PodTemplateSpec(metadata=ObjectMeta(annotations={fabric8.io/iconUrl=img/icons/camel.svg, fabric8.io/metrics-path=dashboard/file/camel-routes.json/?var-project=my-fuse-project&var-version=1.0.0-SNAPSHOT, fabric8.io/docs-url=dav:http://content-repository/sites/org.my.fuse.project/my-fuse-project/1.0.0-SNAPSHOT}, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, labels={provider=fabric8, project=my-fuse-project, version=1.0.0-SNAPSHOT, group=org.my.fuse.project}, name=null, namespace=null, ownerReferences=[], resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=PodSpec(activeDeadlineSeconds=null, containers=[Container(args=[], command=[], env=[EnvVar(name=KUBERNETES_NAMESPACE, value=null, valueFrom=EnvVarSource(configMapKeyRef=null, fieldRef=ObjectFieldSelector(apiVersion=null, fieldPath=metadata.namespace, additionalProperties={}), resourceFieldRef=null, secretKeyRef=null, additionalProperties={}), additionalProperties={}), EnvVar(name=JAVA_APP_DIR, value=/deployments, valueFrom=null, additionalProperties={})], image=my-fuse-project:latest, imagePullPolicy=Always, lifecycle=null, livenessProbe=Probe(exec=null, failureThreshold=null, httpGet=HTTPGetAction(host=null, httpHeaders=[], path=/health, port=IntOrString(IntVal=8081, Kind=null, StrVal=null, additionalProperties={}), scheme=null, additionalProperties={}), initialDelaySeconds=180, periodSeconds=null, successThreshold=null, tcpSocket=null, timeoutSeconds=null, additionalProperties={}), name=spring-boot, ports=[ContainerPort(containerPort=8080, hostIP=null, hostPort=null, name=http, protocol=TCP, additionalProperties={}), ContainerPort(containerPort=9779, hostIP=null, hostPort=null, name=prometheus, protocol=TCP, additionalProperties={}), ContainerPort(containerPort=8778, hostIP=null, hostPort=null, name=jolokia, protocol=TCP, additionalProperties={})], readinessProbe=Probe(exec=null, failureThreshold=null, httpGet=HTTPGetAction(host=null, httpHeaders=[], path=/health, port=IntOrString(IntVal=8081, Kind=null, StrVal=null, additionalProperties={}), scheme=null, additionalProperties={}), initialDelaySeconds=10, periodSeconds=null, successThreshold=null, tcpSocket=null, timeoutSeconds=null, additionalProperties={}), resources=ResourceRequirements(limits={cpu=Quantity(amount=1.0, format=null, additionalProperties={}), memory=Quantity(amount=256Mi, format=null, additionalProperties={})}, requests={cpu=Quantity(amount=0.2, format=null, additionalProperties={}), memory=Quantity(amount=256Mi, format=null, additionalProperties={})}, additionalProperties={}), securityContext=SecurityContext(capabilities=null, privileged=false, readOnlyRootFilesystem=null, runAsNonRoot=null, runAsUser=null, seLinuxOptions=null, additionalProperties={}), stdin=null, stdinOnce=null, terminationMessagePath=null, tty=null, volumeMounts=[], workingDir=null, additionalProperties={})], dnsPolicy=null, host=null, hostIPC=null, hostNetwork=null, hostPID=null, hostname=null, imagePullSecrets=[], nodeName=null, nodeSelector=null, restartPolicy=null, securityContext=null, serviceAccount=null, serviceAccountName=null, subdomain=null, terminationGracePeriodSeconds=null, volumes=[], additionalProperties={}), additionalProperties={}), test=null, triggers=[DeploymentTriggerPolicy(imageChangeParams=null, type=ConfigChange, additionalProperties={}), DeploymentTriggerPolicy(imageChangeParams=DeploymentTriggerImageChangeParams(automatic=true, containerNames=[spring-boot], from=ObjectReference(apiVersion=null, fieldPath=null, kind=ImageStreamTag, name=my-fuse-project:latest, namespace=null, resourceVersion=null, uid=null, additionalProperties={}), lastTriggeredImage=null, additionalProperties={}), type=ImageChange, additionalProperties={})], additionalProperties={}), status=null, additionalProperties={})
      io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: PUT at: https://10.1.2.2:8443/oapi/v1/namespaces/test/deploymentconfigs/my-fuse-project. Message: DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=status.latestVersion, message=Invalid value: 0: latestVersion cannot be decremented, reason=FieldValueInvalid, additionalProperties={})], group=null, kind=DeploymentConfig, name=my-fuse-project, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:314)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:267)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:236)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:229)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleReplace(OperationSupport.java:213)
      	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.handleReplace(BaseOperation.java:582)
      	at io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation$2.apply(HasMetadataOperation.java:87)
      	at io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation$2.apply(HasMetadataOperation.java:82)
      	at io.fabric8.openshift.api.model.DoneableDeploymentConfig.done(DoneableDeploymentConfig.java:27)
      	at io.fabric8.openshift.api.model.DoneableDeploymentConfig.done(DoneableDeploymentConfig.java:6)
      	at io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation.replace(HasMetadataOperation.java:94)
      	at io.fabric8.openshift.client.dsl.internal.DeploymentConfigOperationsImpl.replace(DeploymentConfigOperationsImpl.java:70)
      	at io.fabric8.openshift.client.dsl.internal.DeploymentConfigOperationsImpl.replace(DeploymentConfigOperationsImpl.java:42)
      	at io.fabric8.openshift.client.dsl.internal.DeploymentConfigOperationsImpl.replace(DeploymentConfigOperationsImpl.java:68)
      	at io.fabric8.openshift.client.dsl.internal.DeploymentConfigOperationsImpl.replace(DeploymentConfigOperationsImpl.java:42)
      	at io.fabric8.kubernetes.api.Controller.applyResource(Controller.java:878)
      	at io.fabric8.kubernetes.api.Controller.applyEntity(Controller.java:248)
      	at io.fabric8.kubernetes.api.Controller.apply(Controller.java:224)
      	at io.fabric8.maven.plugin.AbstractDeployMojo.applyEntities(AbstractDeployMojo.java:443)
      	at io.fabric8.maven.plugin.AbstractDeployMojo.executeInternal(AbstractDeployMojo.java:396)
      	at io.fabric8.maven.plugin.AbstractFabric8Mojo.execute(AbstractFabric8Mojo.java:61)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 29.566 s
      [INFO] Finished at: 2016-10-07T14:44:08+02:00
      [INFO] Final Memory: 66M/703M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.1.0.redhat-000035:deploy (default-cli) on project my-fuse-project: Failed to update DeploymentConfig from openshift.yml. io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: PUT at: https://10.1.2.2:8443/oapi/v1/namespaces/test/deploymentconfigs/my-fuse-project. Message: DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=status.latestVersion, message=Invalid value: 0: latestVersion cannot be decremented, reason=FieldValueInvalid, additionalProperties={})], group=null, kind=DeploymentConfig, name=my-fuse-project, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).. DeploymentConfig(apiVersion=v1, kind=DeploymentConfig, metadata=ObjectMeta(annotations={fabric8.io/docs-url=dav:http://content-repository/sites/org.my.fuse.project/my-fuse-project/1.0.0-SNAPSHOT, fabric8.io/iconUrl=img/icons/camel.svg, fabric8.io/metrics-path=dashboard/file/camel-routes.json/?var-project=my-fuse-project&var-version=1.0.0-SNAPSHOT}, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, labels={provider=fabric8, project=my-fuse-project, version=1.0.0-SNAPSHOT, group=org.my.fuse.project}, name=my-fuse-project, namespace=null, ownerReferences=[], resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=DeploymentConfigSpec(minReadySeconds=null, paused=null, replicas=1, revisionHistoryLimit=null, selector={project=my-fuse-project, provider=fabric8, group=org.my.fuse.project}, strategy=DeploymentStrategy(annotations=null, customParams=null, labels=null, recreateParams=null, resources=null, rollingParams=RollingDeploymentStrategyParams(intervalSeconds=null, maxSurge=null, maxUnavailable=null, post=null, pre=null, timeoutSeconds=10800, updatePercent=null, updatePeriodSeconds=null, additionalProperties={}), type=Rolling, additionalProperties={}), template=PodTemplateSpec(metadata=ObjectMeta(annotations={fabric8.io/iconUrl=img/icons/camel.svg, fabric8.io/metrics-path=dashboard/file/camel-routes.json/?var-project=my-fuse-project&var-version=1.0.0-SNAPSHOT, fabric8.io/docs-url=dav:http://content-repository/sites/org.my.fuse.project/my-fuse-project/1.0.0-SNAPSHOT}, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, labels={provider=fabric8, project=my-fuse-project, version=1.0.0-SNAPSHOT, group=org.my.fuse.project}, name=null, namespace=null, ownerReferences=[], resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=PodSpec(activeDeadlineSeconds=null, containers=[Container(args=[], command=[], env=[EnvVar(name=KUBERNETES_NAMESPACE, value=null, valueFrom=EnvVarSource(configMapKeyRef=null, fieldRef=ObjectFieldSelector(apiVersion=null, fieldPath=metadata.namespace, additionalProperties={}), resourceFieldRef=null, secretKeyRef=null, additionalProperties={}), additionalProperties={}), EnvVar(name=JAVA_APP_DIR, value=/deployments, valueFrom=null, additionalProperties={})], image=my-fuse-project:latest, imagePullPolicy=Always, lifecycle=null, livenessProbe=Probe(exec=null, failureThreshold=null, httpGet=HTTPGetAction(host=null, httpHeaders=[], path=/health, port=IntOrString(IntVal=8081, Kind=null, StrVal=null, additionalProperties={}), scheme=null, additionalProperties={}), initialDelaySeconds=180, periodSeconds=null, successThreshold=null, tcpSocket=null, timeoutSeconds=null, additionalProperties={}), name=spring-boot, ports=[ContainerPort(containerPort=8080, hostIP=null, hostPort=null, name=http, protocol=TCP, additionalProperties={}), ContainerPort(containerPort=9779, hostIP=null, hostPort=null, name=prometheus, protocol=TCP, additionalProperties={}), ContainerPort(containerPort=8778, hostIP=null, hostPort=null, name=jolokia, protocol=TCP, additionalProperties={})], readinessProbe=Probe(exec=null, failureThreshold=null, httpGet=HTTPGetAction(host=null, httpHeaders=[], path=/health, port=IntOrString(IntVal=8081, Kind=null, StrVal=null, additionalProperties={}), scheme=null, additionalProperties={}), initialDelaySeconds=10, periodSeconds=null, successThreshold=null, tcpSocket=null, timeoutSeconds=null, additionalProperties={}), resources=ResourceRequirements(limits={cpu=Quantity(amount=1.0, format=null, additionalProperties={}), memory=Quantity(amount=256Mi, format=null, additionalProperties={})}, requests={cpu=Quantity(amount=0.2, format=null, additionalProperties={}), memory=Quantity(amount=256Mi, format=null, additionalProperties={})}, additionalProperties={}), securityContext=SecurityContext(capabilities=null, privileged=false, readOnlyRootFilesystem=null, runAsNonRoot=null, runAsUser=null, seLinuxOptions=null, additionalProperties={}), stdin=null, stdinOnce=null, terminationMessagePath=null, tty=null, volumeMounts=[], workingDir=null, additionalProperties={})], dnsPolicy=null, host=null, hostIPC=null, hostNetwork=null, hostPID=null, hostname=null, imagePullSecrets=[], nodeName=null, nodeSelector=null, restartPolicy=null, securityContext=null, serviceAccount=null, serviceAccountName=null, subdomain=null, terminationGracePeriodSeconds=null, volumes=[], additionalProperties={}), additionalProperties={}), test=null, triggers=[DeploymentTriggerPolicy(imageChangeParams=null, type=ConfigChange, additionalProperties={}), DeploymentTriggerPolicy(imageChangeParams=DeploymentTriggerImageChangeParams(automatic=true, containerNames=[spring-boot], from=ObjectReference(apiVersion=null, fieldPath=null, kind=ImageStreamTag, name=my-fuse-project:latest, namespace=null, resourceVersion=null, uid=null, additionalProperties={}), lastTriggeredImage=null, additionalProperties={}), type=ImageChange, additionalProperties={})], additionalProperties={}), status=null, additionalProperties={}) -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:fabric8-maven-plugin:3.1.0.redhat-000035:deploy (default-cli) on project my-fuse-project: Failed to update DeploymentConfig from openshift.yml. io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: PUT at: https://10.1.2.2:8443/oapi/v1/namespaces/test/deploymentconfigs/my-fuse-project. Message: DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=status.latestVersion, message=Invalid value: 0: latestVersion cannot be decremented, reason=FieldValueInvalid, additionalProperties={})], group=null, kind=DeploymentConfig, name=my-fuse-project, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).. DeploymentConfig(apiVersion=v1, kind=DeploymentConfig, metadata=ObjectMeta(annotations={fabric8.io/docs-url=dav:http://content-repository/sites/org.my.fuse.project/my-fuse-project/1.0.0-SNAPSHOT, fabric8.io/iconUrl=img/icons/camel.svg, fabric8.io/metrics-path=dashboard/file/camel-routes.json/?var-project=my-fuse-project&var-version=1.0.0-SNAPSHOT}, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, labels={provider=fabric8, project=my-fuse-project, version=1.0.0-SNAPSHOT, group=org.my.fuse.project}, name=my-fuse-project, namespace=null, ownerReferences=[], resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=DeploymentConfigSpec(minReadySeconds=null, paused=null, replicas=1, revisionHistoryLimit=null, selector={project=my-fuse-project, provider=fabric8, group=org.my.fuse.project}, strategy=DeploymentStrategy(annotations=null, customParams=null, labels=null, recreateParams=null, resources=null, rollingParams=RollingDeploymentStrategyParams(intervalSeconds=null, maxSurge=null, maxUnavailable=null, post=null, pre=null, timeoutSeconds=10800, updatePercent=null, updatePeriodSeconds=null, additionalProperties={}), type=Rolling, additionalProperties={}), template=PodTemplateSpec(metadata=ObjectMeta(annotations={fabric8.io/iconUrl=img/icons/camel.svg, fabric8.io/metrics-path=dashboard/file/camel-routes.json/?var-project=my-fuse-project&var-version=1.0.0-SNAPSHOT, fabric8.io/docs-url=dav:http://content-repository/sites/org.my.fuse.project/my-fuse-project/1.0.0-SNAPSHOT}, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, labels={provider=fabric8, project=my-fuse-project, version=1.0.0-SNAPSHOT, group=org.my.fuse.project}, name=null, namespace=null, ownerReferences=[], resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=PodSpec(activeDeadlineSeconds=null, containers=[Container(args=[], command=[], env=[EnvVar(name=KUBERNETES_NAMESPACE, value=null, valueFrom=EnvVarSource(configMapKeyRef=null, fieldRef=ObjectFieldSelector(apiVersion=null, fieldPath=metadata.namespace, additionalProperties={}), resourceFieldRef=null, secretKeyRef=null, additionalProperties={}), additionalProperties={}), EnvVar(name=JAVA_APP_DIR, value=/deployments, valueFrom=null, additionalProperties={})], image=my-fuse-project:latest, imagePullPolicy=Always, lifecycle=null, livenessProbe=Probe(exec=null, failureThreshold=null, httpGet=HTTPGetAction(host=null, httpHeaders=[], path=/health, port=IntOrString(IntVal=8081, Kind=null, StrVal=null, additionalProperties={}), scheme=null, additionalProperties={}), initialDelaySeconds=180, periodSeconds=null, successThreshold=null, tcpSocket=null, timeoutSeconds=null, additionalProperties={}), name=spring-boot, ports=[ContainerPort(containerPort=8080, hostIP=null, hostPort=null, name=http, protocol=TCP, additionalProperties={}), ContainerPort(containerPort=9779, hostIP=null, hostPort=null, name=prometheus, protocol=TCP, additionalProperties={}), ContainerPort(containerPort=8778, hostIP=null, hostPort=null, name=jolokia, protocol=TCP, additionalProperties={})], readinessProbe=Probe(exec=null, failureThreshold=null, httpGet=HTTPGetAction(host=null, httpHeaders=[], path=/health, port=IntOrString(IntVal=8081, Kind=null, StrVal=null, additionalProperties={}), scheme=null, additionalProperties={}), initialDelaySeconds=10, periodSeconds=null, successThreshold=null, tcpSocket=null, timeoutSeconds=null, additionalProperties={}), resources=ResourceRequirements(limits={cpu=Quantity(amount=1.0, format=null, additionalProperties={}), memory=Quantity(amount=256Mi, format=null, additionalProperties={})}, requests={cpu=Quantity(amount=0.2, format=null, additionalProperties={}), memory=Quantity(amount=256Mi, format=null, additionalProperties={})}, additionalProperties={}), securityContext=SecurityContext(capabilities=null, privileged=false, readOnlyRootFilesystem=null, runAsNonRoot=null, runAsUser=null, seLinuxOptions=null, additionalProperties={}), stdin=null, stdinOnce=null, terminationMessagePath=null, tty=null, volumeMounts=[], workingDir=null, additionalProperties={})], dnsPolicy=null, host=null, hostIPC=null, hostNetwork=null, hostPID=null, hostname=null, imagePullSecrets=[], nodeName=null, nodeSelector=null, restartPolicy=null, securityContext=null, serviceAccount=null, serviceAccountName=null, subdomain=null, terminationGracePeriodSeconds=null, volumes=[], additionalProperties={}), additionalProperties={}), test=null, triggers=[DeploymentTriggerPolicy(imageChangeParams=null, type=ConfigChange, additionalProperties={}), DeploymentTriggerPolicy(imageChangeParams=DeploymentTriggerImageChangeParams(automatic=true, containerNames=[spring-boot], from=ObjectReference(apiVersion=null, fieldPath=null, kind=ImageStreamTag, name=my-fuse-project:latest, namespace=null, resourceVersion=null, uid=null, additionalProperties={}), lastTriggeredImage=null, additionalProperties={}), type=ImageChange, additionalProperties={})], additionalProperties={}), status=null, additionalProperties={})
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to update DeploymentConfig from openshift.yml. io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: PUT at: https://10.1.2.2:8443/oapi/v1/namespaces/test/deploymentconfigs/my-fuse-project. Message: DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=status.latestVersion, message=Invalid value: 0: latestVersion cannot be decremented, reason=FieldValueInvalid, additionalProperties={})], group=null, kind=DeploymentConfig, name=my-fuse-project, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).. DeploymentConfig(apiVersion=v1, kind=DeploymentConfig, metadata=ObjectMeta(annotations={fabric8.io/docs-url=dav:http://content-repository/sites/org.my.fuse.project/my-fuse-project/1.0.0-SNAPSHOT, fabric8.io/iconUrl=img/icons/camel.svg, fabric8.io/metrics-path=dashboard/file/camel-routes.json/?var-project=my-fuse-project&var-version=1.0.0-SNAPSHOT}, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, labels={provider=fabric8, project=my-fuse-project, version=1.0.0-SNAPSHOT, group=org.my.fuse.project}, name=my-fuse-project, namespace=null, ownerReferences=[], resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=DeploymentConfigSpec(minReadySeconds=null, paused=null, replicas=1, revisionHistoryLimit=null, selector={project=my-fuse-project, provider=fabric8, group=org.my.fuse.project}, strategy=DeploymentStrategy(annotations=null, customParams=null, labels=null, recreateParams=null, resources=null, rollingParams=RollingDeploymentStrategyParams(intervalSeconds=null, maxSurge=null, maxUnavailable=null, post=null, pre=null, timeoutSeconds=10800, updatePercent=null, updatePeriodSeconds=null, additionalProperties={}), type=Rolling, additionalProperties={}), template=PodTemplateSpec(metadata=ObjectMeta(annotations={fabric8.io/iconUrl=img/icons/camel.svg, fabric8.io/metrics-path=dashboard/file/camel-routes.json/?var-project=my-fuse-project&var-version=1.0.0-SNAPSHOT, fabric8.io/docs-url=dav:http://content-repository/sites/org.my.fuse.project/my-fuse-project/1.0.0-SNAPSHOT}, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, labels={provider=fabric8, project=my-fuse-project, version=1.0.0-SNAPSHOT, group=org.my.fuse.project}, name=null, namespace=null, ownerReferences=[], resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=PodSpec(activeDeadlineSeconds=null, containers=[Container(args=[], command=[], env=[EnvVar(name=KUBERNETES_NAMESPACE, value=null, valueFrom=EnvVarSource(configMapKeyRef=null, fieldRef=ObjectFieldSelector(apiVersion=null, fieldPath=metadata.namespace, additionalProperties={}), resourceFieldRef=null, secretKeyRef=null, additionalProperties={}), additionalProperties={}), EnvVar(name=JAVA_APP_DIR, value=/deployments, valueFrom=null, additionalProperties={})], image=my-fuse-project:latest, imagePullPolicy=Always, lifecycle=null, livenessProbe=Probe(exec=null, failureThreshold=null, httpGet=HTTPGetAction(host=null, httpHeaders=[], path=/health, port=IntOrString(IntVal=8081, Kind=null, StrVal=null, additionalProperties={}), scheme=null, additionalProperties={}), initialDelaySeconds=180, periodSeconds=null, successThreshold=null, tcpSocket=null, timeoutSeconds=null, additionalProperties={}), name=spring-boot, ports=[ContainerPort(containerPort=8080, hostIP=null, hostPort=null, name=http, protocol=TCP, additionalProperties={}), ContainerPort(containerPort=9779, hostIP=null, hostPort=null, name=prometheus, protocol=TCP, additionalProperties={}), ContainerPort(containerPort=8778, hostIP=null, hostPort=null, name=jolokia, protocol=TCP, additionalProperties={})], readinessProbe=Probe(exec=null, failureThreshold=null, httpGet=HTTPGetAction(host=null, httpHeaders=[], path=/health, port=IntOrString(IntVal=8081, Kind=null, StrVal=null, additionalProperties={}), scheme=null, additionalProperties={}), initialDelaySeconds=10, periodSeconds=null, successThreshold=null, tcpSocket=null, timeoutSeconds=null, additionalProperties={}), resources=ResourceRequirements(limits={cpu=Quantity(amount=1.0, format=null, additionalProperties={}), memory=Quantity(amount=256Mi, format=null, additionalProperties={})}, requests={cpu=Quantity(amount=0.2, format=null, additionalProperties={}), memory=Quantity(amount=256Mi, format=null, additionalProperties={})}, additionalProperties={}), securityContext=SecurityContext(capabilities=null, privileged=false, readOnlyRootFilesystem=null, runAsNonRoot=null, runAsUser=null, seLinuxOptions=null, additionalProperties={}), stdin=null, stdinOnce=null, terminationMessagePath=null, tty=null, volumeMounts=[], workingDir=null, additionalProperties={})], dnsPolicy=null, host=null, hostIPC=null, hostNetwork=null, hostPID=null, hostname=null, imagePullSecrets=[], nodeName=null, nodeSelector=null, restartPolicy=null, securityContext=null, serviceAccount=null, serviceAccountName=null, subdomain=null, terminationGracePeriodSeconds=null, volumes=[], additionalProperties={}), additionalProperties={}), test=null, triggers=[DeploymentTriggerPolicy(imageChangeParams=null, type=ConfigChange, additionalProperties={}), DeploymentTriggerPolicy(imageChangeParams=DeploymentTriggerImageChangeParams(automatic=true, containerNames=[spring-boot], from=ObjectReference(apiVersion=null, fieldPath=null, kind=ImageStreamTag, name=my-fuse-project:latest, namespace=null, resourceVersion=null, uid=null, additionalProperties={}), lastTriggeredImage=null, additionalProperties={}), type=ImageChange, additionalProperties={})], additionalProperties={}), status=null, additionalProperties={})
      	at io.fabric8.maven.plugin.AbstractDeployMojo.executeInternal(AbstractDeployMojo.java:403)
      	at io.fabric8.maven.plugin.AbstractFabric8Mojo.execute(AbstractFabric8Mojo.java:61)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
      	... 20 more
      Caused by: java.lang.RuntimeException: Failed to update DeploymentConfig from openshift.yml. io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: PUT at: https://10.1.2.2:8443/oapi/v1/namespaces/test/deploymentconfigs/my-fuse-project. Message: DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=status.latestVersion, message=Invalid value: 0: latestVersion cannot be decremented, reason=FieldValueInvalid, additionalProperties={})], group=null, kind=DeploymentConfig, name=my-fuse-project, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).. DeploymentConfig(apiVersion=v1, kind=DeploymentConfig, metadata=ObjectMeta(annotations={fabric8.io/docs-url=dav:http://content-repository/sites/org.my.fuse.project/my-fuse-project/1.0.0-SNAPSHOT, fabric8.io/iconUrl=img/icons/camel.svg, fabric8.io/metrics-path=dashboard/file/camel-routes.json/?var-project=my-fuse-project&var-version=1.0.0-SNAPSHOT}, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, labels={provider=fabric8, project=my-fuse-project, version=1.0.0-SNAPSHOT, group=org.my.fuse.project}, name=my-fuse-project, namespace=null, ownerReferences=[], resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=DeploymentConfigSpec(minReadySeconds=null, paused=null, replicas=1, revisionHistoryLimit=null, selector={project=my-fuse-project, provider=fabric8, group=org.my.fuse.project}, strategy=DeploymentStrategy(annotations=null, customParams=null, labels=null, recreateParams=null, resources=null, rollingParams=RollingDeploymentStrategyParams(intervalSeconds=null, maxSurge=null, maxUnavailable=null, post=null, pre=null, timeoutSeconds=10800, updatePercent=null, updatePeriodSeconds=null, additionalProperties={}), type=Rolling, additionalProperties={}), template=PodTemplateSpec(metadata=ObjectMeta(annotations={fabric8.io/iconUrl=img/icons/camel.svg, fabric8.io/metrics-path=dashboard/file/camel-routes.json/?var-project=my-fuse-project&var-version=1.0.0-SNAPSHOT, fabric8.io/docs-url=dav:http://content-repository/sites/org.my.fuse.project/my-fuse-project/1.0.0-SNAPSHOT}, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, labels={provider=fabric8, project=my-fuse-project, version=1.0.0-SNAPSHOT, group=org.my.fuse.project}, name=null, namespace=null, ownerReferences=[], resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=PodSpec(activeDeadlineSeconds=null, containers=[Container(args=[], command=[], env=[EnvVar(name=KUBERNETES_NAMESPACE, value=null, valueFrom=EnvVarSource(configMapKeyRef=null, fieldRef=ObjectFieldSelector(apiVersion=null, fieldPath=metadata.namespace, additionalProperties={}), resourceFieldRef=null, secretKeyRef=null, additionalProperties={}), additionalProperties={}), EnvVar(name=JAVA_APP_DIR, value=/deployments, valueFrom=null, additionalProperties={})], image=my-fuse-project:latest, imagePullPolicy=Always, lifecycle=null, livenessProbe=Probe(exec=null, failureThreshold=null, httpGet=HTTPGetAction(host=null, httpHeaders=[], path=/health, port=IntOrString(IntVal=8081, Kind=null, StrVal=null, additionalProperties={}), scheme=null, additionalProperties={}), initialDelaySeconds=180, periodSeconds=null, successThreshold=null, tcpSocket=null, timeoutSeconds=null, additionalProperties={}), name=spring-boot, ports=[ContainerPort(containerPort=8080, hostIP=null, hostPort=null, name=http, protocol=TCP, additionalProperties={}), ContainerPort(containerPort=9779, hostIP=null, hostPort=null, name=prometheus, protocol=TCP, additionalProperties={}), ContainerPort(containerPort=8778, hostIP=null, hostPort=null, name=jolokia, protocol=TCP, additionalProperties={})], readinessProbe=Probe(exec=null, failureThreshold=null, httpGet=HTTPGetAction(host=null, httpHeaders=[], path=/health, port=IntOrString(IntVal=8081, Kind=null, StrVal=null, additionalProperties={}), scheme=null, additionalProperties={}), initialDelaySeconds=10, periodSeconds=null, successThreshold=null, tcpSocket=null, timeoutSeconds=null, additionalProperties={}), resources=ResourceRequirements(limits={cpu=Quantity(amount=1.0, format=null, additionalProperties={}), memory=Quantity(amount=256Mi, format=null, additionalProperties={})}, requests={cpu=Quantity(amount=0.2, format=null, additionalProperties={}), memory=Quantity(amount=256Mi, format=null, additionalProperties={})}, additionalProperties={}), securityContext=SecurityContext(capabilities=null, privileged=false, readOnlyRootFilesystem=null, runAsNonRoot=null, runAsUser=null, seLinuxOptions=null, additionalProperties={}), stdin=null, stdinOnce=null, terminationMessagePath=null, tty=null, volumeMounts=[], workingDir=null, additionalProperties={})], dnsPolicy=null, host=null, hostIPC=null, hostNetwork=null, hostPID=null, hostname=null, imagePullSecrets=[], nodeName=null, nodeSelector=null, restartPolicy=null, securityContext=null, serviceAccount=null, serviceAccountName=null, subdomain=null, terminationGracePeriodSeconds=null, volumes=[], additionalProperties={}), additionalProperties={}), test=null, triggers=[DeploymentTriggerPolicy(imageChangeParams=null, type=ConfigChange, additionalProperties={}), DeploymentTriggerPolicy(imageChangeParams=DeploymentTriggerImageChangeParams(automatic=true, containerNames=[spring-boot], from=ObjectReference(apiVersion=null, fieldPath=null, kind=ImageStreamTag, name=my-fuse-project:latest, namespace=null, resourceVersion=null, uid=null, additionalProperties={}), lastTriggeredImage=null, additionalProperties={}), type=ImageChange, additionalProperties={})], additionalProperties={}), status=null, additionalProperties={})
      	at io.fabric8.kubernetes.api.Controller.onApplyError(Controller.java:1246)
      	at io.fabric8.kubernetes.api.Controller.applyResource(Controller.java:881)
      	at io.fabric8.kubernetes.api.Controller.applyEntity(Controller.java:248)
      	at io.fabric8.kubernetes.api.Controller.apply(Controller.java:224)
      	at io.fabric8.maven.plugin.AbstractDeployMojo.applyEntities(AbstractDeployMojo.java:443)
      	at io.fabric8.maven.plugin.AbstractDeployMojo.executeInternal(AbstractDeployMojo.java:396)
      	... 23 more
      Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: PUT at: https://10.1.2.2:8443/oapi/v1/namespaces/test/deploymentconfigs/my-fuse-project. Message: DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=status.latestVersion, message=Invalid value: 0: latestVersion cannot be decremented, reason=FieldValueInvalid, additionalProperties={})], group=null, kind=DeploymentConfig, name=my-fuse-project, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=DeploymentConfig "my-fuse-project" is invalid: status.latestVersion: Invalid value: 0: latestVersion cannot be decremented, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:314)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:267)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:236)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:229)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleReplace(OperationSupport.java:213)
      	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.handleReplace(BaseOperation.java:582)
      	at io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation$2.apply(HasMetadataOperation.java:87)
      	at io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation$2.apply(HasMetadataOperation.java:82)
      	at io.fabric8.openshift.api.model.DoneableDeploymentConfig.done(DoneableDeploymentConfig.java:27)
      	at io.fabric8.openshift.api.model.DoneableDeploymentConfig.done(DoneableDeploymentConfig.java:6)
      	at io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation.replace(HasMetadataOperation.java:94)
      	at io.fabric8.openshift.client.dsl.internal.DeploymentConfigOperationsImpl.replace(DeploymentConfigOperationsImpl.java:70)
      	at io.fabric8.openshift.client.dsl.internal.DeploymentConfigOperationsImpl.replace(DeploymentConfigOperationsImpl.java:42)
      	at io.fabric8.openshift.client.dsl.internal.DeploymentConfigOperationsImpl.replace(DeploymentConfigOperationsImpl.java:68)
      	at io.fabric8.openshift.client.dsl.internal.DeploymentConfigOperationsImpl.replace(DeploymentConfigOperationsImpl.java:42)
      	at io.fabric8.kubernetes.api.Controller.applyResource(Controller.java:878)
      	... 27 more
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  aurelien.pupier Aurélien Pupier
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: