| Summary: | [dev-preview-stg] Should not allow user to create service which points to the pod ip or service ip | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Meng Bo <bmeng> |
| Component: | Networking | Assignee: | Ben Bennett <bbennett> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Meng Bo <bmeng> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.x | CC: | aos-bugs, danw, zhaliu |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-10-04 13:06:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Meng Bo
2016-09-27 09:23:22 UTC
This doesn't feel like a bug to me. You ought to be able to make a headless service and then assign whatever endpoints you want to it. Now... the SDN isolation may not allow you to talk to the remote endpoints, but that's the user's problem. (If you could bypass the isolation by doing this, then that's a real bug). No, It is a new change in 3.3. Related PR: https://github.com/openshift/origin/pull/9383 cc danw Oh, the feature is working as expected, but maybe the acceptance criteria in Trello didn't get all the details; you can create such endpoints if you are logged in as a cluster admin user, but if you create an unprivileged account, it won't work:
danw@w541:origin (master)> oc login -u foo -p foo
Login successful.
...
danw@w541:origin (master)> oc new-project foo
Now using project "foo" on server "https://172.17.0.2:8443".
...
danw@w541:origin (master)> oc create -f test-service.json
service "test-service" created
danw@w541:origin (master)> oc create -f test-endpoint.json
Error from server: error when creating "test-endpoint.json": endpoints "test-service" is forbidden: endpoint address 10.129.0.2 is not allowed
@danw This feature is working well in the OCP env. But the bug is reported against the dev-preview-stg env. I am not sure what is the difference between the setup of the two. But I can use a normal user to create service with points to the IP in service CIDR or pod CIDR. I don't know what happened on dev-preview-stg env. But the issue cannot be reproduced after the latest upgrade to 3.3.0.33. [root@fedora23 v3]# oc create -f external_service_to_external_pod.json service "selector-less-service" created Error from server: endpoints "selector-less-service" is forbidden: endpoint address 10.1.8.20 is not allowed I will close this bug. |