You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
icx_config doesn't appear to backup the config as documented. Running a task to backup the config should save the file and return a variable saying where and what the file was. Instead it saves nothing and returns the running config as a string inside a variable named backup
According to documentation, it should save the backup file into the root of the playbook or role directory. It also should return 'backup_path' as a variable to show where it had saved the backup.
ACTUAL RESULTS
As far as I can tell, it's not saving the backup file anywhere. It also doesn't return a backup path, but instead returns the entire config from the switch as a string in a variable named 'backup'.
[WARNING]: packaging Python module unavailable; unable to validate collection
Ansible version requirements
PLAY [switch] ******************************************************************
TASK [Gathering Facts] *********************************************************
ok: [it.switch.hbac]
TASK [Save Ruckus config] ******************************************************
ok: [it.switch.hbac]
PLAY RECAP *********************************************************************
it.switch.hbac : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
The text was updated successfully, but these errors were encountered:
I'm having the exact same issue as @sjwk using icx_config. The backup operation claims to run successfully, but the backup file is never created and the entire running config text is returned in a variable called "backup".
Browsing the Ansible codebase, it looks like the following ActionModule is supposed to save the backup variable to disk and create the backup_path variable: network.py
I'd guess either this ActionModule isn't being invoked, or the icx_config module is failing the conditions at line 98:
if (
config_module
and self._task.args.get("backup")
and not result.get("failed")
):
self._handle_backup_option(result, task_vars)
SUMMARY
icx_config doesn't appear to backup the config as documented. Running a task to backup the config should save the file and return a variable saying where and what the file was. Instead it saves nothing and returns the running config as a string inside a variable named backup
ISSUE TYPE
COMPONENT NAME
icx_config
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 18.04
Ruckus ICX 7150 running v08.0.95bcT211
STEPS TO REPRODUCE
Run the below playbook against a Ruckus ICX switch
EXPECTED RESULTS
According to documentation, it should save the backup file into the root of the playbook or role directory. It also should return 'backup_path' as a variable to show where it had saved the backup.
ACTUAL RESULTS
As far as I can tell, it's not saving the backup file anywhere. It also doesn't return a backup path, but instead returns the entire config from the switch as a string in a variable named 'backup'.
The text was updated successfully, but these errors were encountered: