generated from crossplane/provider-template
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Grant Error) update failed: Error 1410: You are not allowed to create a user with GRANT #127
Labels
bug
Something isn't working
Comments
alereca
changed the title
Grant
(Grant Error) update failed: Error 1410: You are not allowed to create a user with GRANT
Feb 6, 2023
alereca
changed the title
(Grant Error) update failed: Error 1410: You are not allowed to create a user with GRANT
(Grant Error) update failed: Error 1410: You are not allowed to create a user with GRANT; sqlprovider changes requested host to '%'
Feb 6, 2023
alereca
changed the title
(Grant Error) update failed: Error 1410: You are not allowed to create a user with GRANT; sqlprovider changes requested host to '%'
(Grant Error) update failed: Error 1410: You are not allowed to create a user with GRANT
Feb 6, 2023
2 tasks
Will this be covered in #136? |
I'll try to review #136 soon, them circle back to this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
When creating or updating a grant sql provider always try to grant it for
<selected-username>
@%
, instead of<selected-username>
@<selected-host>
. Which results in anError 1410: You are not allowed to create a user with GRANT
, as<selected-username>
@%
does not existsThis bug seems to be caused by a variable resignation (username) in https://github.com/crossplane-contrib/provider-sql/blob/master/pkg/controller/mysql/grant/reconciler.go#L272,
Update
methodThen in
createGrantQuery
functionHow can we reproduce it?
Create a user with host: localhost (mind the annotation
crossplane.io/external-name: user-sample@localhost
)Then create a grant for that user
What environment did it happen in?
crossplane-1.9.1
crossplane/provider-sql:v0.6.0
I would like to work in a pr
The text was updated successfully, but these errors were encountered: