-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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
new module: aix_devices, manage AIX devices #32290
Conversation
This module discovery, defines, removes and modifies attributes of AIX devices.
Added hid attributes that can be used to manage aliases on en interfaces.
Fixed attributes tests and doc explaining how to use attributes with comma.
Fixed grammar on module description
@AugustusKling @ColOfAbRiX @DavidWittman @EvanK @LinusU @abulimov @adejoux @agaffney @ahtik @Akasurde @azaghal @dankeder @davixx @dougluce @dsummersl @giovannisciortino @goozbach @groks @haad @hryamzik @indrajitr @jasperla @jhoekx @jsumners @jtyr @kevensen @lberruti @matze @maxamillion @mcv21 @molekuul @mpdehaan @mulby @natefoo @nibalizer @ovcharenko @pmarkham @pyykkis @risaacson @rosmo @saito-hideki @sfromm @srvg @tdtrask @tmshn @xen0l As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add |
As discussed on IRC ansible-devel channes, was include the legacy tests for further manual tests.
Added 'attributes' as a dictionary makes the configuration simple.
Fixed the shippable error from 2.5 to 2.7 ``` 2018-06-01 08:28:02 ERROR: Found 1 validate-modules issue(s) which need to be resolved: 2018-06-01 08:28:02 ERROR: lib/ansible/modules/system/aix_devices.py:0:0: E307 version_added should be 2.7. Currently 2.5 (75%) ```
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
'available' state is the AIX state used, that works same as 'present'
This comment has been minimized.
This comment has been minimized.
Makes sense keep the states names to AIX and use the Ansible 'standards' states. 'available' is 'present' 'removed' is 'absent' It makes easy to AIX sysadmins use the module, however it keep the Ansible meanings.
This comment has been minimized.
This comment has been minimized.
Looks good. I should be able to test tomorrow Sent with GitHawk |
@ramooncamacho it is ready for tests |
Nothing material
rebuild_merge |
@dagwieers and @kairoaraujo, should I just comment my tests or do I open the issues? I will start sending the comments here: Issue 1: Please change in the example page from present to available, and from absent to removed, as the options have changed. Issue 2: Trying to discover all devices, it was returned changed as true, but the new device didn't show up. I think it should be expected this command be always status changed, but I noticed an hidden error, because in AIX if an object class doesn't exist, the return code is still 0: Trying to discover all devices:
I realized the new devices didn't show up:
The module is trying to execute "cfgmgr -l all", and doing it manually, the command is trying to find a device named "all". To discover all devices I have always used cfgmgr with no option, as below:
Return code in the condition the object class is not found:
Issue 3: Trying to remove an adapter, it returns error:
I saw it's trying to execute "/usr/sbin/rmdev -l fcs0 -R ''", and doing the same at the operating system, it returns error:
If I do the same without the single quotation marks, it executes correctly:
|
@ramooncamacho Please open issues for each. Thanks for testing ! |
SUMMARY
New module for AIX.
This module discovers, defines, removes and modifies attributes of AIX devices.
ISSUE TYPE
COMPONENT NAME
lib/ansible/modules/system/aix_devices.py
ANSIBLE VERSION
ADDITIONAL INFORMATION
There is an example of playbook testing possibilities and playbook returns
Playbook running: