Closed hidekazuna closed 5 years ago
/kind bug
What steps did you take and what happened: [A clear and concise description of what the bug is.]
I tried to create cluster:
./clusterctl create cluster -v 8 --bootstrap-type kind --provider openstack -c examples/openstack/out/cluster.yaml -m examples/openstack/out/machines.yaml -p examples/openstack/out/provider-components.yaml
The following Error log was reported in the Cluster API Controller Pod.
python) ubuntu@k8s:~$ kubectl logs clusterapi-controllers-5bcd9865f-zsn76 -n openstack-provider-system 2019/06/10 07:48:13 Starting the Cmd. E0610 07:48:31.360359 1 event.go:203] Server rejected event '&v1.Event{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"openstack-master-v5j66.15a6c6ce84a0f3ee", GenerateName:"", Namespace:"default", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, InvolvedObject:v1.ObjectReference{Kind:"Machine", Namespace:"default", Name:"openstack-master-v5j66", UID:"074e97f1-8b54-11e9-9bd1-0242ac110002", APIVersion:"cluster.k8s.io/v1alpha1", ResourceVersion:"548", FieldPath:""}, Reason:"CreatedInstance", Message:"Created new instance with id: 4aed01fd-908f-4ff8-9886-e965301514e9", Source:v1.EventSource{Component:"openstack-controller", Host:""}, FirstTimestamp:v1.Time{Time:time.Time{wall:0xbf37a0b3cd2e9dee, ext:18911449587, loc:(*time.Location)(0x22a4dc0)}}, LastTimestamp:v1.Time{Time:time.Time{wall:0xbf37a0b3cd2e9dee, ext:18911449587, loc:(*time.Location)(0x22a4dc0)}}, Count:1, Type:"Normal", EventTime:v1.MicroTime{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, Series:(*v1.EventSeries)(nil), Action:"", Related:(*v1.ObjectReference)(nil), ReportingController:"", ReportingInstance:""}': 'events is forbidden: User "system:serviceaccount:openstack-provider-system:default" cannot create resource "events" in API group "" in the namespace "default"' (will not retry!)
What did you expect to happen:
Error is not reported.
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
/etc/os-release
/assign @hidekazuna
/kind bug
What steps did you take and what happened: [A clear and concise description of what the bug is.]
I tried to create cluster:
The following Error log was reported in the Cluster API Controller Pod.
What did you expect to happen:
Error is not reported.
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
):/etc/os-release
):