-
Notifications
You must be signed in to change notification settings - Fork 36
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
Current version pushed to Ansible Galaxy has typo in /netapp/ontap/plugins/modules/na_ontap_s3_users.py
#190
Comments
Another note on recreation of the issue- you can install the collection directly from ansible-galaxy into a test directory and the same typo will appear. # ansible-galaxy collection install --force -p ./anstest netapp.ontap
Starting galaxy collection install process
[WARNING]: The specified collections path '/root/anstest' is not part of the configured Ansible collections paths
'/root/.ansible/collections:/usr/share/ansible/collections'. The installed collection will not be picked up in an Ansible run, unless within a playbook-
adjacent collections directory.
Process install dependency map
Starting collection install process
Downloading https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/netapp-ontap-22.8.1.tar.gz to /root/.ansible/tmp/ansible-local-93123mqb2qvxe/tmph7np_ld7/netapp-ontap-22.8.1-ju5on8hg
Installing 'netapp.ontap:22.8.1' to '/root/anstest/ansible_collections/netapp/ontap'
netapp.ontap:22.8.1 was installed successfully # head anstest/ansible_collections/netapp/ontap/plugins/modules/na_ontap_s3_users.py
git #!/usr/bin/python
# (c) 2022, NetApp, Inc
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
|
I just ran into this too when upgrading Ansible to 8.6.0 on Ubuntu 22.04, got the same result. Manually removing |
I can confirm this on multiple systems. Removing the String |
My Canary deployment system is showing this as a 'show-stopper' for our environment if I were to deploy any real systems. Typos into the wrong window are a common issue, so this is a minor error, that is showing a limitation of whatever CI process is currently in place for the repo. Just to be clear this seems to be an error that is part of the Ansible 8.6.0 release as I can not find the error within this repo or recent past releases. |
The main branch in this repo don't seams to not have the issues This leads my to assume one (or both) of the following:
Ether way a new release is appreciated :) |
Opened as an issue over at ansible-community/ppa#77 |
Ansible have published a broken package to their PPA. See ansible-collections/netapp.ontap#190. This does not install anymore. That issue is worked around by: * Using official Ubuntu package not the PPA version ansible. * Installing python library dependency: `python3-docker`. * Removing now unsupported option `single_branch`.
Thank you for your interest in Ansible. Unfortunately the maintainers of this repo do not control either the netapp.ontapp collection, nor the As I see above, there is already an issue open for the netapp.ontapp repository, but it looks like there are some requests to have a new |
Ffs, this repo is called "netapp.ontap"! What are you doing here then? And why the hell does the "Issue tracker" on the collection's page point here? The problem wasn't in the Ansible package, we just can't install it because of the issue of the ontap collection! |
I apologize, that's my mistake, I got the tabs mixed up. |
OK, while people are getting their wire's crossed there is a larger issue - where on Earth has the building of the Ansible distribution pulled in this typo? This repo does not seem to record the change to the file that is now causing the issue with the final 8.6.0 Ansible distribution. So is anyone understands the workflow that connects these 2 independent projects could they take a look around? |
https://galaxy.ansible.com/ui/repo/published/netapp/ontap/docs/ links to here for the Issue Tracker. I question why the netapp collection is included by default. So uh, does this mean this is built and pushed from a local developer machine? |
I'm guessing so. The repo doesn't contain that, but it's in the artifact pushed to galaxy. So it would seem the local repo is "dirty" and was used in that state to build the artifact from. |
Heh, since I have your attention @sivel, are there any kind of build/release standards/requirements for inclusion in default collections? If not, should there be, in light of a pushed artifact that was apparently built from a dirty tree? It does make me wonder what other things are dirty in that collection. |
When following the build process for ppa distributions I ended up at the following So people are asking the same questions, in the right place :) The build process seems to be github driven, so something went badly wrong to end up with 'git ' being added to a random file. |
@rit001 nope, the artifact on Ansible Galaxy has the |
And the tests for this collection have been failing for quite some time. https://github.com/ansible-collections/netapp.ontap/actions/workflows/main.yml If you drill down into individual test runs, it shows they've been failing on 2.15 which is used in ansible 8.6- https://github.com/ansible-community/ansible-build-data/blob/f4f81a908d6bc4f92212d62282ad49759a157f93/8/ansible-8.6.0.deps#L2 |
@lattwood unfortunately I cannot really help there. While I'm a dev for ansible-core, I have no real interaction with the packaging of the
|
I'll get a fix out for this today. |
I pushed the fix out and it on Galaxy. https://galaxy.ansible.com/ui/repo/staging/netapp/ontap/?version=22.8.2 It looks like a file was touched in pipeline release git repo. The change was never checked in to either our bitbucket or github repo. I"ll modify our internal pipeline to do a fresh git clone from now when building new releases.
|
Are you able to cause the ppa process to rebuild, or are you able to contact the people who can? |
@rit001 i'm not able to but i posted the same information in ansible-community/ppa#77 so I'm hoping someone on their side can update it to the latest which should fix the issue. |
@carchi8py Hi, thank you for this. There is talk of cutting an Ansible 8.6.1 release to pick up this fix but 22.8.2 isn't tagged in the repository. Would you be able to create that? |
@oraNod I'll have it tags in github once the change makes it thought our bitbucket pipeline (last steps is to push to githuib). Should be here with in the hour |
Since it a super minor change i'm going to manually do it here and get the tag up (give me a few minutes) |
Ok 22.8.2 release is on github |
Thanks @carchi8py |
Ansible 8.6.1 has been released. It contains the netapp.ontap 2.8.2 update that fixes this issue. |
git clean -xdf pip download -d /tmp --no-deps --no-binary=:all: ansible==8.6.0 tar zxvf /tmp/ansible-8.6.0.tar.gz --strip-components=1 --exclude=debian --exclude=ansible.egg-info sed -i 's?git #!/usr/bin/python?#!/usr/bin/python?g' ansible_collections/netapp/ontap/plugins/modules/na_ontap_s3_users.py tar zcvf ../python-ansible_8.6.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-ansible.spec ../python-ansible_8.6.0-1.spec cp python-ansible.rpmlintrc /osc/home\:alvistack/ansible-community-ansible-build-data-8.6.0/ cp ../python*-ansible*8.6.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-ansible-build-data-8.6.0/ rm -rf ../python*-ansible*8.6.0*.* ../ansible*8.6.0*.* See ansible-collections/netapp.ontap#190 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf pip download -d /tmp --no-deps --no-binary=:all: ansible==9.0.0b1 tar zxvf /tmp/ansible-9.0.0b1.tar.gz --strip-components=1 --exclude=debian --exclude=ansible.egg-info sed -i 's?git #!/usr/bin/python?#!/usr/bin/python?g' ansible_collections/netapp/ontap/plugins/modules/na_ontap_s3_users.py tar zcvf ../python-ansible_9.0.0~beta1.orig.tar.gz --exclude=.git . debuild -uc -us cp python-ansible.spec ../python-ansible_9.0.0~beta1-1.spec cp python-ansible.rpmlintrc /osc/home\:alvistack/ansible-community-ansible-build-data-9.0.0-beta1/ cp ../python*-ansible*9.0.0~beta1*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-ansible-build-data-9.0.0-beta1/ rm -rf ../python*-ansible*9.0.0~beta1*.* ../ansible*9.0.0~beta1*.* See ansible-collections/netapp.ontap#190 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
@carchi8py, firstly thanks for your help in getting this resolved. Couple of questions since ansible-community/ppa#77 is now closed:
|
On my systems (Debian-based, using the PPA), the error was gone as of today morning. |
" * This software runs in various companies/enterprises. As such, it doesn't inspire confidence when a release contains an error which isn't even in source tree (indicates lack of centralized/controlled build system). Is there a github issue (or issue tracker) that we can follow to make sure that a centralized system for deploying updates is enforced (and that developers can't push out updates from arbitrary environments)?" This was answered in
with the following statement from carchi8py "I'll modify our internal pipeline to do a fresh git clone from now when building new releases." |
This was fixed in 22.8.2 |
Summary
When installing either through the Ansible ppa package or the ansible-galaxy command, the
na_ontap_s3_users.py
file has the wordgit
before the shebang.Removing this is necessary to make an install from a package complete or to avoid errors when using this module. On my system, this file is installed, by default, to
/usr/lib/python3/dist-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_s3_users.py
.Component Name
netapp.ontap.na_ontap_s3_users
Ansible Version
ONTAP Collection Version
ONTAP Version
N/A - error happens on install of Ansible
Playbook
N/A - error happens on install of Ansible
Steps to Reproduce
On Ubuntu Jammy (22.04.3 in my case) with the Ansible official PPA enabled, attempt to install or upgrade the ansible package.
Expected Results
I expected the default collections to install alongside ansible and configure appropriately, including the netapp.ontap collection.
Actual Results
The text was updated successfully, but these errors were encountered: