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.getEvents() fails #361

Closed
mocenas opened this issue May 25, 2020 · 7 comments · Fixed by #363
Closed

Openshift.getEvents() fails #361

mocenas opened this issue May 25, 2020 · 7 comments · Fixed by #363

Comments

@mocenas
Copy link
Contributor

mocenas commented May 25, 2020

Update to fabric 4.10.1 in PR360 seems to break getting events from OCP.
Code openShift.getEvents() ends with:
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://api.perf2.xpaas:8443/apis/events.k8s.io/v1beta1/namespaces/mocenas/events. Message: events.events.k8s.io is forbidden: User "xpaasqe" cannot list events.events.k8s.io in the namespace "mocenas": no RBAC policy matched. Received status: Status(apiVersion=v1, code=403, details=StatusDetails(causes=[], group=events.k8s.io, kind=events, name=null, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=events.events.k8s.io is forbidden: User "xpaasqe" cannot list events.events.k8s.io in the namespace "mocenas": no RBAC policy matched, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Forbidden, status=Failure, additionalProperties={}).
Tested against OCP 3.11 and 4.4.4

@mocenas
Copy link
Contributor Author

mocenas commented May 25, 2020

FYI @Crumby @mnovak1

@simkam
Copy link
Contributor

simkam commented May 26, 2020

isn't it fabric8io/kubernetes-client#2205? It should be fixed in 4.10.2

@mocenas
Copy link
Contributor Author

mocenas commented May 26, 2020

@simkam Seems it can be it. With the update to 4.10.1 also all openshift event references were changed from:
io.fabric8.kubernetes.api.model.Event
to
io.fabric8.kubernetes.api.model.events.Event

@mnovak1
Copy link
Contributor

mnovak1 commented May 26, 2020

Ok, what about to revert 4.10.1-> 4.7.1 and wait for the new version? fyi @Crumby

@Crumby
Copy link
Contributor

Crumby commented May 27, 2020

@mocenas Version change is only commit since 0.16 release. You can use that one till f8 10.1.2 is out. We can revert if more is coming into the code and new version still isn't out. Optionally try downgrade to 4.9.2...

@mocenas
Copy link
Contributor Author

mocenas commented May 27, 2020

@Crumby I don't have problem in our production testSuite, we are on 0.16. I encountered this during MR 359 - this problem entirely broke the MR.

@istraka
Copy link
Contributor

istraka commented Jun 2, 2020

@Crumby 4.9.2 does not change event API. I will submit downgrade PR. Once 4.10.2 is released, we can jump on it.

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

Successfully merging a pull request may close this issue.

5 participants