Skip to content

Conversation

@justinc1
Copy link
Collaborator

Use ansible-core 2.15 for tests. Docker image for CI jobs was rebuilt and pushed to quay.io.

@justinc1 justinc1 requested a review from anazobec May 19, 2023 07:34
@justinc1
Copy link
Collaborator Author

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:

# on docker host
cd .../hypercore
docker run -it -w /work-dir/ansible_collections/scale_computing/hypercore -v $PWD:/work-dir/ansible_collections/scale_computing/hypercore quay.io/justinc1_github/scale_ci_integ:4 bash

# on docker container
git config --global --add safe.directory /work-dir/ansible_collections/scale_computing/hypercore
ansible-test units --local --python 3.10

The integration tests do pass, the code does work (v1.2.0 we just released is safe for users).

Copy link
Collaborator

@anazobec anazobec left a 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.

@justinc1 justinc1 force-pushed the test-with-ansible-core-2.15 branch 6 times, most recently from 9714b44 to 92fefda Compare June 7, 2023 07:35
justinc1 added 7 commits June 7, 2023 09:43
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>
@justinc1 justinc1 force-pushed the test-with-ansible-core-2.15 branch from 92fefda to b6d644a Compare June 7, 2023 07:43
@justinc1 justinc1 merged commit 61df3ab into main Jun 7, 2023
@justinc1 justinc1 deleted the test-with-ansible-core-2.15 branch June 7, 2023 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants