Closed slaskawi closed 7 years ago
The role_binding is looking for a role named "role_ref_name": "caching-service",
, but doesn't find it. The role_binding name from #119 is name: infinispan-app-view
. Try changing that to name: caching-service
and see if it works. Reopen the issue if the problem persists and we'll try and figure it out.
@rthallisey I'm not sure if I understand...
In the example above, I'm using role_ref_name: "view"
. Why the system figured out that I'm trying use "role_ref_name": "caching-service"
?
So just to give you an idea what I'm trying to achieve. The working object from OpenShift looks like this:
apiVersion: v1
groupNames: null
kind: RoleBinding
metadata:
creationTimestamp: 2017-09-25T12:54:02Z
labels:
template: jdg-caching-service
# Name... Think about "infinispan-app" as an {{ application_name }} from the example in the description.
name: infinispan-app-view
namespace: myproject
resourceVersion: "1900"
selfLink: /oapi/v1/namespaces/myproject/rolebindings/infinispan-app-view
uid: 9b1a46ef-a1f0-11e7-96c4-54ee751d46e3
# Role Binding REF - it points to view
roleRef:
name: view
subjects:
- kind: ServiceAccount
name: infinispan-app
namespace: myproject
userNames:
- system:serviceaccount:myproject:infinispan-app
This looks like another module bug "role_ref_name": "caching-service",
. The template set roleRef: view
and the resource wasn't created with that name. @fabianvf can you also look that this bug in the module
@rthallisey @fabianvf Hey guys, can we either reopen this issue (and https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/issues/119) or create another one somewhere else? This is actually a big deal for me since it blocks clustering functionality in Infinispan so I would like to make sure it won't slip between our fingers.
@slaskawi copied to openshift/openshift-restclient-python#92
I'm trying to create a Role Binding object linked to my Service Account. Here's an example from my template.
When I try to create the following objects:
I get the following error:
This might be connected to https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/issues/119 but I'm not sure.