-
Notifications
You must be signed in to change notification settings - Fork 90
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
Possible recurrence of issue #151 following latest release of community.mysql? #546
Comments
I can confirm this, having the same issue after upgrading from 3.6.0 to 3.7.0.
|
Just found out that the problem occurs only on our CentOS 7 machine:
Maybe it has something to do with Python 2. @paulh-rtr Which versions are you using? |
@alexgit2k Thanks for looking into the issue. The environment on which we encountered this issue is Github Actions, which is a CI/CD provided by Github, not unlike Jenkins. I don't have much if any control over that environment, but looks like it is pulling the following:
Looks like there is a comprehensive list at https://github.com/actions/runner-images/blob/releases/ubuntu22/20230426/images/linux/Ubuntu2204-Readme.md Could well be Python 2; there is a note stating that it will be removed from the image on May 15. I'd be more than happy to report back if that effectively fixes the issue. In the meantime, am using the workaround you suggested. |
We're hitting the same error. It started suddenly on May 8 UTC (no issues on May 7 or before). Managed clients: RHEL/CentOS 7, Python 2.7.5, MySQL-python 1.2.5 I can work around it by removing
|
Here it worked till last Thursday (4th) and it did not worked again on Monday (8th) unless we forced 3.6.0. And 3.7.0 was released last Friday (5th). |
I stand corrected. It turns out AWX was re-pulling requirements and overriding what was in our execution environment (very unintuitive behavior!). So 3.7.0 is the problem after all. It seems it just took a few days from the tagged release here to make its way into Galaxy and down to our server before we saw problems. |
Hi everyone, thanks for the issue report and the discussion! @Jorge-Rodriguez i think this thing was introduced by #177, would you like to take a look? Is it what we expected? |
@paulh-rtr Can you provide the full call of |
@betanummeric Here is our configuration:
With
|
@Jorge-Rodriguez fyi, we're working on solving this, no worries |
Hey everyone! I've just released @betanummeric 's patch in 3.7.1 https://galaxy.ansible.com/community/mysql. It's already available on Galaxy for manual installation and it'll go to the next minor release of Ansible 7 tomorrow. |
Same error with 3.7.1: I checked to make sure that 3.7.1 was used:
I am using MySQL-Python version 1.2.5. The problem is that the version-check is not valid: community.mysql/plugins/module_utils/mysql.py Lines 157 to 158 in bff05ce
Must be replaced by: if mysql_driver.version_info[0] < 2 or (mysql_driver.version_info[0] == 2 and mysql_driver.version_info[1] < 1): It worked after applying this. |
@alexgit2k Sorry, we will fix that. |
@alexgit2k , released 3.7.2, could you please try it? thanks! |
@Andersson007 Tried again with 3.7.1 where it failed and then with 3.7.2 which works now. Thank you very much! |
@alexgit2k great, thanks for testing and confirming! |
SUMMARY
A Github Action which we run on a weekly basis, and which calls an Ansible playbook which in turn calls community.mysql, is failing since this weekend on all calls to community.mysql
Nothing has changed in the codebase; this was confirmed as working last weekend, and so I presume the issue is with the most recent release 3.7.0. Running the playbook by hand, in a different environment with an earlier version of community.mysql, works.
For example see below (with some details redacted):
This produces an error like the following:
Note: The error message would seem to be the same as in this issue: #151.
ISSUE TYPE
COMPONENT NAME
mysql_user, mysql_query, possibly others
ANSIBLE VERSION
COLLECTION VERSION
OS / ENVIRONMENT
Github Action environment as described below:
STEPS TO REPRODUCE
Some example code blocks which are failing:
EXPECTED RESULTS
Call to community.mysql.mysql_user, mysql_query etc. completes as requested
ACTUAL RESULTS
Actual results for the 2 examples as above:
The text was updated successfully, but these errors were encountered: