{"action":"created","issue":{"url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/issues/211","repository_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible","labels_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/issues/211/comments","events_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/issues/211/events","html_url":"https://github.com/kubevirt/kubevirt-ansible/issues/211","id":317948520,"node_id":"MDU6SXNzdWUzMTc5NDg1MjA=","number":211,"title":"Missing required field \"apiGroup\" and \"kind\" in io.k8s.api.rbac.v1.RoleRef","user":{"login":"qwang1","id":6252774,"node_id":"MDQ6VXNlcjYyNTI3NzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/6252774?v=4","gravatar_id":"","url":"https://api.github.com/users/qwang1","html_url":"https://github.com/qwang1","followers_url":"https://api.github.com/users/qwang1/followers","following_url":"https://api.github.com/users/qwang1/following{/other_user}","gists_url":"https://api.github.com/users/qwang1/gists{/gist_id}","starred_url":"https://api.github.com/users/qwang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qwang1/subscriptions","organizations_url":"https://api.github.com/users/qwang1/orgs","repos_url":"https://api.github.com/users/qwang1/repos","events_url":"https://api.github.com/users/qwang1/events{/privacy}","received_events_url":"https://api.github.com/users/qwang1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-26T09:31:23Z","updated_at":"2018-06-26T12:21:31Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi there,\r\n\r\nI tried to provision storage-glusterfs with external_provisioner enabled. I met this problem when kubevirt-ansible executed \"Create storage-glusterfs Resources\":\r\nerror: error validating \"/tmp/storage-glusterfs.yml\": error validating data: [ValidationError(ClusterRoleBinding.roleRef): missing required field \"apiGroup\" in io.k8s.api.rbac.v1.RoleRef, ValidationError(ClusterRoleBinding.roleRef): missing required field \"kind\" in io.k8s.api.rbac.v1.RoleRef]; if you choose to ignore these errors, turn validation off with --validate=false\r\n\r\nHere is part of ansible log:\r\n```\r\n[root@dhcp-140-90 kubevirt-ansible]# ansible-playbook --private-key /home/qwang/libra-new.pem -i inventory_glusterfs -e action=provision -e glusterfs_namespace=glusterfs -e storage_role=storage-glusterfs -e external_provisioner=true playbooks/storage.yml -v\r\n<------------------------snip------------------------->\r\nTASK [storage-glusterfs : Render storage-glusterfs deployment yaml] ***********************************************************\r\nThursday 26 April 2018  16:32:02 +0800 (0:00:00.055)       0:01:15.036 ******** \r\nchanged: [host-8-249-87.host.centralci.eng.rdu2.redhat.com] => {\r\n    \"changed\": true, \r\n    \"checksum\": \"2e38d8da8badf2f8014e20237978dfcdfcc84ca6\", \r\n    \"dest\": \"/tmp/storage-glusterfs.yml\", \r\n    \"gid\": 0, \r\n    \"group\": \"root\", \r\n    \"md5sum\": \"ef48e1e016b7b5d8134a2090a961ff00\", \r\n    \"mode\": \"0644\", \r\n    \"owner\": \"root\", \r\n    \"secontext\": \"unconfined_u:object_r:admin_home_t:s0\", \r\n    \"size\": 2653, \r\n    \"src\": \"/root/.ansible/tmp/ansible-tmp-1524731522.64-133305358774337/source\", \r\n    \"state\": \"file\", \r\n    \"uid\": 0\r\n}\r\n\r\nTASK [storage-glusterfs : Create storage-glusterfs Resources] *****************************************************************\r\nThursday 26 April 2018  16:32:53 +0800 (0:00:51.027)       0:02:06.064 ******** \r\nfatal: [host-8-249-87.host.centralci.eng.rdu2.redhat.com]: FAILED! => {\r\n    \"changed\": true, \r\n    \"cmd\": [\r\n        \"kubectl\", \r\n        \"apply\", \r\n        \"-n\", \r\n        \"glusterfs\", \r\n        \"-f\", \r\n        \"/tmp/storage-glusterfs.yml\"\r\n    ], \r\n    \"delta\": \"0:00:00.443498\", \r\n    \"end\": \"2018-04-26 04:33:17.793660\", \r\n    \"rc\": 1, \r\n    \"start\": \"2018-04-26 04:33:17.350162\"\r\n}\r\n\r\nSTDOUT:\r\n\r\nsecret \"kubevirt-heketi-secret\" created\r\nstorageclass \"kubevirt\" created\r\nclusterrole \"glusterfile-provisioner-runner\" created\r\nserviceaccount \"glusterfile-provisioner\" created\r\n\r\n\r\nSTDERR:\r\n\r\nerror: error validating \"/tmp/storage-glusterfs.yml\": error validating data: [ValidationError(ClusterRoleBinding.roleRef): missing required field \"apiGroup\" in io.k8s.api.rbac.v1.RoleRef, ValidationError(ClusterRoleBinding.roleRef): missing required field \"kind\" in io.k8s.api.rbac.v1.RoleRef]; if you choose to ignore these errors, turn validation off with --validate=false\r\n```"},"comment":{"url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/issues/comments/400287418","html_url":"https://github.com/kubevirt/kubevirt-ansible/issues/211#issuecomment-400287418","issue_url":"https://api.github.com/repos/kubevirt/kubevirt-ansible/issues/211","id":400287418,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDI4NzQxOA==","user":{"login":"nellyc","id":16609178,"node_id":"MDQ6VXNlcjE2NjA5MTc4","avatar_url":"https://avatars1.githubusercontent.com/u/16609178?v=4","gravatar_id":"","url":"https://api.github.com/users/nellyc","html_url":"https://github.com/nellyc","followers_url":"https://api.github.com/users/nellyc/followers","following_url":"https://api.github.com/users/nellyc/following{/other_user}","gists_url":"https://api.github.com/users/nellyc/gists{/gist_id}","starred_url":"https://api.github.com/users/nellyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nellyc/subscriptions","organizations_url":"https://api.github.com/users/nellyc/orgs","repos_url":"https://api.github.com/users/nellyc/repos","events_url":"https://api.github.com/users/nellyc/events{/privacy}","received_events_url":"https://api.github.com/users/nellyc/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T12:21:30Z","updated_at":"2018-06-26T12:21:30Z","author_association":"MEMBER","body":"@qwang1 is this still relevant? storageclasses were removed.\r\ncan we close it?"}}
{"actor":{"display_login":"nellyc"}}