Skip to content
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

awx.awx collection 14.0.0 build with wrong version number #7870

Closed
kenchrcum opened this issue Aug 11, 2020 · 9 comments
Closed

awx.awx collection 14.0.0 build with wrong version number #7870

kenchrcum opened this issue Aug 11, 2020 · 9 comments
Assignees
Labels
component:awx_collection issues related to the collection for controlling AWX type:bug

Comments

@kenchrcum
Copy link

ISSUE TYPE
  • Bug Report
SUMMARY

awx.awx collection version 14.0.0 was built with version 0.0.1-devel so every time connecting to an AWX instance we get the warning [WARNING]: You are running collection version 0.0.1-devel connecting to tower version 14.0.0

ENVIRONMENT
  • AWX version: 14.0.0
  • AWX install method: docker on linux
  • Ansible version: 2.9.11
STEPS TO REPRODUCE

Freshly install awx.awx collection version 14.0.0 from ansible-galaxy.
ansible-galaxy collection install awx.awx:14.0.0 --force

EXPECTED RESULTS

There should be no warning working with an AWX installation at version 14.0.0

ACTUAL RESULTS

[WARNING]: You are running collection version 0.0.1-devel

ADDITIONAL INFORMATION

From awx.awx collection README: 0.0.1-devel is the version you should see if installing from source, which is intended for development and expected to be unstable.
Collection was installed via ansible-galaxy:

$ ansible-galaxy collection install awx.awx:14.0.0 --force
Process install dependency map
Starting collection install process
Installing 'awx.awx:14.0.0' to '/home/user/.ansible/collections/ansible_collections/awx/awx'

@AlanCoding AlanCoding added component:awx_collection issues related to the collection for controlling AWX state:needs_devel labels Aug 11, 2020
@ryanpetrello
Copy link
Contributor

@AlanCoding @beeankha @squidboylan you all have any idea what's up here?

@kdelee
Copy link
Member

kdelee commented Aug 18, 2020

did make build_collection and then installed, it is now correctly versioned. Thanks!

$ ansible-galaxy collection install awx_collection_build/awx-awx-14.0.0.tar.gz 
Process install dependency map
Starting collection install process
Installing 'awx.awx:14.0.0' to '/home/elijah/.ansible/collections/ansible_collections/awx/awx'

@kdelee kdelee closed this as completed Aug 18, 2020
@kdelee kdelee self-assigned this Aug 18, 2020
@AlanCoding
Copy link
Member

That's good, but I think this is still waiting for 14.1.0 to go out the door until it's fixed in the released version.

https://github.com/ansible/awx/blob/devel/CHANGELOG.md

That's still marked as TBD, but when it does happen, we should still be sure to have a look at what it produces.

@kdelee
Copy link
Member

kdelee commented Aug 18, 2020

oops yeah you are right the released version still not doing the right thing, will re-open til what we get from ansible galaxy reports right version

 ansible-galaxy collection install awx.awx
Process install dependency map
Starting collection install process
Installing 'awx.awx:14.0.0' to '/home/elijah/.ansible/collections/ansible_collections/awx/awx'
 elijah  (e) py36venv  ~  sfw  ansible  ansible-playbook -i localhost foo2.yml 
[WARNING]: Unable to parse /home/elijah/sfw/ansible/localhost as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [localhost] ********************************************************************************************************************************************
TASK [tower_meta] *******************************************************************************************************************************************
ok: [localhost]
TASK [Show details about the collection] ********************************************************************************************************************
ok: [localhost] => 
  result:
    changed: false
    failed: false
    name: awx
    namespace: awx
    prefix: awx.awx
    version: 0.0.1-devel
PLAY RECAP **************************************************************************************************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

@kdelee
Copy link
Member

kdelee commented Aug 18, 2020

can't verify til next release gets pushed to ansible galaxy

@ryanpetrello
Copy link
Contributor

ryanpetrello commented Aug 25, 2020

I think this is done, @kdelee @AlanCoding:

~ ansible-galaxy collection install awx.awx
Process install dependency map
Starting collection install process
Installing 'awx.awx:14.1.0' to '/home/ryanpetrello/.ansible/collections/ansible_collections/awx/awx'
~ ack 14.1.0 ~/.ansible/collections/ansible_collections/awx/awx
/home/ryanpetrello/.ansible/collections/ansible_collections/awx/awx/plugins/module_utils/tower_api.py
17:    _COLLECTION_VERSION = "14.1.0"

/home/ryanpetrello/.ansible/collections/ansible_collections/awx/awx/MANIFEST.json
23:  "version": "14.1.0",

@kenchrcum
Copy link
Author

No warnings on 14.1.0. Thank you all for working on this!

@ashleyghooper
Copy link

This seems to be happening again for 21.0.0:

Installing 'awx.awx:21.0.0' to '/root/.ansible/collections/ansible_collections/awx/awx'
$ ansible-playbook config.yml -e awx_env=${ENV}
PLAY [Configure AWX] ***********************************************************
TASK [Configure AWX LDAP settings] *********************************************
[WARNING]: You are running collection version 0.0.1-devel but connecting to AWX
version 19.5.0
changed: [localhost]

Switching to 19.4.0 fixed it.

@AlanCoding
Copy link
Member

We have a new issue for that #12060

This issue was for the first time we broke it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:awx_collection issues related to the collection for controlling AWX type:bug
Projects
None yet
Development

No branches or pull requests

6 participants