Comments (33)
I'll get a fix out for this today.
from netapp.ontap.
Ok 22.8.2 release is on github
from netapp.ontap.
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!
from netapp.ontap.
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
from netapp.ontap.
Thank you for your interest in Ansible. Unfortunately the maintainers of this repo do not control either the netapp.ontapp collection, nor the ansible
package. This repository is specifically for the ansible-core
package.
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 ansible
package released. You will need to consult the maintainers of the ansible
package at https://github.com/ansible-community/ansible-build-data or through the community communication mechanisms listed at https://docs.ansible.com/ansible/latest/community/communication.html
from netapp.ontap.
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?
from netapp.ontap.
@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 ansible
package. There were sanity tests that ran during the process of creating the ansible
package, but I have no current knowledge of whether that is still done. It would have been caught by ansible-test
, at minimum by the validate-modules
or the import
tests:
ERROR: plugins/modules/na_ontap_s3_users.py:0:0: import-error: Exception attempting to import module for argument_spec introspection, 'from __future__ imports must occur at the beginning of the file (na_ontap_s3_users.py, line 7)'
ERROR: plugins/modules/na_ontap_s3_users.py:7:0: traceback: SyntaxError: from __future__ imports must occur at the beginning of the file
from netapp.ontap.
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.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: ansible_collections/netapp/ontap/plugins/modules/na_ontap_s3_users.py
Untracked files:
(use "git add <file>..." to include in what will be committed)
ansible_collections/netapp/ontap/netapp-ontap-21.10.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.11.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.12.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.13.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.13.1.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.14.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.14.1.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.15.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.15.1.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.16.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.17.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.17.1.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.17.2.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.17.3.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.18.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.18.1.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.19.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.19.1.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.20.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.22.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.23.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.24.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.24.1.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.6.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.6.1.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.7.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.8.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.8.1.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-21.9.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-22.0.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-22.0.1.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-22.1.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-22.2.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-22.3.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-22.4.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-22.4.1.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-22.5.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-22.6.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-22.7.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-22.8.0.tar.gz
ansible_collections/netapp/ontap/netapp-ontap-22.8.1.tar.gz
no changes added to commit (use "git add" and/or "git commit -a")
from netapp.ontap.
Ansible 8.6.1 has been released. It contains the netapp.ontap 2.8.2 update that fixes this issue.
from netapp.ontap.
" * 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
https://github.com/ansible-collections/netapp.ontap/issues/190
with the following statement from carchi8py
"I'll modify our internal pipeline to do a fresh git clone from now when building new releases."
from netapp.ontap.
I just ran into this too when upgrading Ansible to 8.6.0 on Ubuntu 22.04, got the same result. Manually removing git
before the shebang of /usr/lib/python3/dist-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_s3_users.py
has solved the issue.
from netapp.ontap.
I can confirm this on multiple systems. Removing the String git
in the first line resolves the issue (at least for me).
from netapp.ontap.
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.
from netapp.ontap.
The main branch in this repo don't seams to not have the issues
https://github.com/ansible-collections/netapp.ontap/blob/main/plugins/modules/na_ontap_s3_users.py
This leads my to assume one (or both) of the following:
- The person that did the push typed "git" in the local files from his/hers computer.
- The issue is in bitbucket where this code is copied from
(I assume so by the latest git comments: "Sync bitbucket and GitHub" by @carchi8py )
Ether way a new release is appreciated :)
from netapp.ontap.
Opened as an issue over at ansible-community/ppa#77
from netapp.ontap.
I apologize, that's my mistake, I got the tabs mixed up.
from netapp.ontap.
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?
from netapp.ontap.
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.
from netapp.ontap.
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.
from netapp.ontap.
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.
from netapp.ontap.
@rit001 nope, the artifact on Ansible Galaxy has the git
addition as well.
from netapp.ontap.
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
from netapp.ontap.
Well, here's one thing to be relieved over. This is the only file that was impacted.
from netapp.ontap.
I'm going to fix this directly in Github. As i don't see this in our internal version.
Should have the fix out on galaxy in a few minutes
from netapp.ontap.
Are you able to cause the ppa process to rebuild, or are you able to contact the people who can?
from netapp.ontap.
@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.
from netapp.ontap.
I pushed the fix out and it on Galaxy.
https://galaxy.ansible.com/ui/repo/staging/netapp/ontap/?version=22.8.2
@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?
from netapp.ontap.
@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
from netapp.ontap.
Since it a super minor change i'm going to manually do it here and get the tag up (give me a few minutes)
from netapp.ontap.
Thanks @carchi8py
from netapp.ontap.
@carchi8py, firstly thanks for your help in getting this resolved.
Couple of questions since ansible-community/ppa#77 is now closed:
- when will the apt repos get populated w/ 8.6.1? to get unblocked immediately, this is what we're still using (for apt), which works either when running on host, VM or containers:
apt-get update && apt-get install -y ansible \
|| ( \
# If the installation fails, apply the workaround:
# Comment out the first line of the na_ontap_s3_users.py script
# Failed to install Ansible, try workaround based on
# https://github.com/ansible-community/ppa/issues/77#issuecomment-1802847056
sed -i -e '1s/^[^#]*//' /usr/lib/python3/dist-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_s3_users.py && \
# Then try to fix any broken dependencies
apt-get install -y --fix-broken \
)
- 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)?
from netapp.ontap.
- when will the apt repos get populated w/ 8.6.1?
On my systems (Debian-based, using the PPA), the error was gone as of today morning.
from netapp.ontap.
This was fixed in 22.8.2
from netapp.ontap.
Related Issues (20)
- na_ontap_s3_service module or na_ontap_svm module needs to return access key and secret key HOT 3
- "owning_resource" in na_ontap_rest_info HOT 2
- na_ontap_interface feature_flags not working HOT 2
- It is not possible to set the audit file rotation to a schedule HOT 6
- Error in na_ontap_nfs HOT 2
- SVM Provisioning with 'workgroup' requires ZAPI instead of REST HOT 1
- Missing Modules After Install netapp.ontap Collection HOT 1
- na_ontap_cifs_server - support for multichannel and max-connections HOT 2
- na_ontap_cifs - add support for offline_files property HOT 4
- deleting qtrees with many files has no success. HOT 4
- Autonomous Ransomware Protection change status HOT 1
- Trying to break the snapmirror throws error if primary cluster is not available HOT 3
- Add snapshot locking to na_ontap_volume & na_ontap_snapshot_policy HOT 1
- Installing multiple intermediate certificates in na_ontap_security_certificates
- Add support for activity_tracking HOT 1
- Snapmirror-Resync fails on different Ontap-versions HOT 1
- na_ontap_broadcast_domain doesnt correctly modifying a broadcast domain's ports using REST HOT 2
- na_ontap_dns cluster vs. vserver usage HOT 9
- `na_ontap_snapshot_policy` is not idempotent HOT 6
- netapp.ontap.na_ontap_svm aggr-list when using rest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netapp.ontap.