-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Add support of facts gathering WWNs on AIX OS #51704
Conversation
if you remove failed OSX (runs almost for 1h , ssh returned 255 code), shippable ended ok (green) |
+label aix |
cc @MorrisA @bcoca @flynn1973 @gforster @kairoaraujo @marvin-sinister @molekuul @wtcross Please review and test ! |
Works as expected on AIX 7.1 and 7.2 |
could probably rework a bit to remove grep filtering and use python instead , as well would not need to use unsafe_shell without grep.
|
@mator Indeed, can you fix that grep, should be quite easy loop over lines. |
The test
|
…r ports" adding support of enumerating AIX device WWN ports $ lsdev -Cc adapter -l fcs* fcs0 Defined 00-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03) fcs1 Defined 00-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03) fcs2 Available 04-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03) fcs3 Available 04-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03) $ lscfg -vpl fcs3 | grep 'Network Address' Network Address.............10000090FA551509
- fix run_command execution, passing 'use_unsafe_shell=True' since we have a pipe in it ( | grep ) if we don't set unsafe shell, it will return error on execution. - strip new line characters at the end of WWNs.
ready_for_review |
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.
LGTM
7.1 & 7.2 check out LGTM Sent with GitHawk |
bot_status |
Componentschangelogs/fragments/fibre_channel_wwn_fact_aix.yaml lib/ansible/module_utils/facts/network/fc_wwn.py Metadatawaiting_on: ansible |
SUMMARY
Add support of facts gathering WWNs on AIX OS
Extends #37043 / c65909d "Add network fact to obtain FC WWN initiator ports" for AIX support
ISSUE TYPE
COMPONENT NAME
facts module
ADDITIONAL INFORMATION
before:
after: