-
Notifications
You must be signed in to change notification settings - Fork 9
use ansible-core 2.15 for testing #239
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
Conversation
|
I expected this will just work, but CI jobs do fail - see https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/5021283389/jobs/9003506210. I can reproduce locally in docker container: The integration tests do pass, the code does work (v1.2.0 we just released is safe for users). |
anazobec
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will approve this PR, since it does seem the code does indeed still work and is safe to use.
9714b44 to
92fefda
Compare
We also need up to date ansible-lint, and our docker image C.UTF-8 lang seems to be needed. For problem, see job https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/5022602745/jobs/9006262055?pr=239 Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Add after `run_main(cluster_name, params)`
+ import q
+ q(success, result)
And in /tmp/q we get error message:
result={'msg': "argument 'username' is of type <class 'NoneType'> found in 'cluster_instance'. and we were unable to convert to str: 'None' is not a string and conversion is not allowed"
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
name is required, source is not. Ansible (2.15) does not like name=None
in unit test (but source=None is OK).
Replace None with "", then deduplicate list. There were no duplicates!
Also fix typo in
name=file_location_test
source=file_name_test
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
See https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/5023094955/jobs/9007305282?pr=239#step:4:1205 cloud_init option: seems default values was always None before ansible-core 2.15, now it is {} if type=dict. vm module disks and nics option, vm_nic module items option - actual default value in argument_spec is not changed. Commit changes only documentation, to comply with argument_spec. Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
variables in roles are not yet renamed Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
92fefda to
b6d644a
Compare
Use ansible-core 2.15 for tests. Docker image for CI jobs was rebuilt and pushed to quay.io.