Bug 1212744 - The project admin can not create endpoints of external service
Summary: The project admin can not create endpoints of external service
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: David Eads
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-17 09:19 UTC by zhou ying
Modified: 2015-07-07 23:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-07 23:45:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description zhou ying 2015-04-17 09:19:52 UTC
Description of problem:
When user as project admin can not create  endpoints of external service.

Version-Release number of selected component (if applicable):
openshift v0.4.3.2-65-gceb2b12
kubernetes v0.14.1-582-gb12d75d
osc v0.4.3-168-g120e84a


How reproducible:
always


Steps to Reproduce:
1.Create a project:
openshift ex new-project zhouy --display-name="OpenShift 3 Sample" --description="This is an example project to demonstrate OpenShift v3" --admin=zhouy
2.Use the user login,and use the project:
osc login -u zhouy -p pass
osc project zhouy
3. Create an external service:
osc create -f  external-service.json
{
    "kind": "Config",
    "apiVersion": "v1beta1",
    "metadata": {
        "creationTimestamp": null
    },
    "items": [
        {
            "kind": "Service",
            "id": "external-database",
            "creationTimestamp": null,
            "apiVersion": "v1beta3",
            "protocol": "TCP",
            "sessionAffinity": "None",
            "metadata":{
            "name":"example-mysql-service"
            },
            "spec":{
            "ports":[{"port":36971 }]  }
        },
        {
            "kind": "Endpoints",
            "apiVersion": "v1beta3",
            "metadata": {
            "name": "example-mysql-service"
            },
            "endpoints": [
                {"ip": "10.14.6.112",
                   "port":36971}
            ]
        }
    ]
}


Actual results:
Prompt:Error: "/api/v1beta1/endpoints?namespace=zhouy" is forbidden because zhouy cannot create on endpoints in zhouy

Expected results:
The external service and endpoints create successfully, no error occur.

Additional info:
When account as 'cluster-admin' can create service and endpoints successfully.

Comment 1 David Eads 2015-04-20 20:10:07 UTC
See https://github.com/openshift/origin/pull/1819

Comment 2 zhou ying 2015-04-21 09:47:13 UTC
Confirmed , working now.
openshift v0.4.3-255-gc4eb472
kubernetes v0.14.1-582-gb12d75d


Note You need to log in before you can comment on or make changes to this bug.