Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenShift error when creating build configuration #22

Closed
syndesis-bot opened this issue Nov 14, 2017 · 8 comments
Closed

OpenShift error when creating build configuration #22

syndesis-bot opened this issue Nov 14, 2017 · 8 comments

Comments

@syndesis-bot
Copy link
Collaborator

@rhuss 2017-10-23 bug, TP2
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://openshift.default.svc/apis/build.openshift.io/v1/namespaces/proj7630/builds?labelSelector=openshift.io/build-config.name%3Dtwsf&fieldSelector=status%3DRunning. Message: No field label conversion function found for version: build.openshift.io/v1. Received status: Status(apiVersion=v1, code=400, details=null, kind=Status, message=No field label conversion function found for version: build.openshift.io/v1, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=BadRequest, status=Failure, additionalProperties={}).
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:470) ~[kubernetes-client-2.6.0-000015.fuse-000002.jar!/:na]
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:409) ~[kubernetes-client-2.6.0-000015.fuse-000002.jar!/:na]
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:379) ~[kubernetes-client-2.6.0-000015.fuse-000002.jar!/:na]

the corresponding code looks like

    @Override
    public boolean isBuildStarted(String name) {
        String sName = Names.sanitize(name);
        return !openShiftClient.builds()
                               .withLabel("openshift.io/build-config.name", sName)
                               .withField("status", "Running")
                               .list().getItems().isEmpty();
    }

and has not changed since 6 weeks.

@iocanel any ideas what this could be ?

@syndesis-bot
Copy link
Collaborator Author

@iocanel 2017-10-23

@rhuss: I haven't seen that before. With a quick search I found:

openshift/jenkins-sync-plugin#173 and some other related issues.

Where do u get this?

@syndesis-bot
Copy link
Collaborator Author

@rhuss 2017-10-23

I get this when I create when checking for a running build for the integration runtime on our ignite cluster (3.6.) with the images used from the pipeline builds. I never have seen this before, too. I'm a bit afraid that this is because our upstream images use a very old kubernetes-client (2.2.13), whereas the pipeline builds have 2.6.0. For 2.2.13 I never have seen this issue.

@syndesis-bot
Copy link
Collaborator Author

@rhuss 2017-10-24

@iocanel do know what the difference between 2.2.13 and 2.6.0 of kubernetes-client is ? For 2.2.13 the code above still works fine, so there must be some difference within the client.

@syndesis-bot
Copy link
Collaborator Author

@iocanel 2017-10-24

@rhuss: I think that in the 2.6.0 the major difference is control for the api groups.

@syndesis-bot
Copy link
Collaborator Author

@iocanel 2017-10-24

I would give it a shot with the latest 2.5.x and see if we can live with it.

@syndesis-bot
Copy link
Collaborator Author

@rhuss 2017-10-24

If I understood @cunningt correctly, the goal is to align FIS, which seems to have bumped up to 2.6 already. But maybe its worth for them also to downgrade to 2.5 ?

2.5.9 is the latest, right ? Let me try this with the upstream version ...

@syndesis-bot
Copy link
Collaborator Author

@rhuss 2017-10-24

2.5.9 does not work either ...

@syndesis-bot
Copy link
Collaborator Author

@rhuss 2017-10-24

2.4.1 works ...

@rhuss rhuss closed this as completed Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants