Skip to content
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

"msg": "unable to retrieve current config", #60

Open
mohit8888 opened this issue Jun 5, 2023 · 2 comments
Open

"msg": "unable to retrieve current config", #60

mohit8888 opened this issue Jun 5, 2023 · 2 comments

Comments

@mohit8888
Copy link

SUMMARY

'dellemc.os6.os6_config:" I am unable to use this module- I get the error msg- unable to retrieve current config when the file os6.py line 103 has command "show running-config" if I shrink down the contents for the command with something like this"show running-config | begin snmp" it works, but that isnt the right way

ISSUE TYPE
  • Bug Report
COMPONENT NAME

dellemc.os6.os6_config

ANSIBLE VERSION
ansible [core 2.14.3]
  config file = /Users/mbachhav/Documents/repos/rcode/ansible.cfg
  configured module search path = ['/Users/mbachhav/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ansible
  ansible collection location = /Users/mbachhav/.ansible/collections:/usr/share/ansible/collections
  executable location = /Library/Frameworks/Python.framework/Versions/3.9/bin/ansible
  python version = 3.9.0 (v3.9.0:9cf6752276, Oct  5 2020, 11:29:23) [Clang 6.0 (clang-600.0.57)] (/Library/Frameworks/Python.framework/Versions/3.9/bin/python3)
  jinja version = 3.1.2
  libyaml = True

COLLECTION VERSION
# /Users/mbachhav/.ansible/collections/ansible_collections
Collection  Version
----------- -------
dellemc.os6 1.0.7  

# /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ansible_collections
Collection  Version
----------- -------
dellemc.os6 1.0.7  
CONFIGURATION
CONFIG_FILE() = /Users/mbachhav/Documents/repos/rcode/ansible.cfg
DEFAULT_FORKS(/Users/mbachhav/Documents/repos/rcode/ansible.cfg) = 15
DEFAULT_HOST_LIST(/Users/mbachhav/Documents/repos/rcode/ansible.cfg) = ['/Users/mbachhav/Documents/repos/rcode/hosts']
DEPRECATION_WARNINGS(/Users/mbachhav/Documents/repos/rcode/ansible.cfg) = False
HOST_KEY_CHECKING(/Users/mbachhav/Documents/repos/rcode/ansible.cfg) = False
OS / ENVIRONMENT

Dell Switch OS 6.5.1.1

STEPS TO REPRODUCE
- name: get runnig config from dell 2048
  gather_facts: no
  hosts: switch1
  collections:
   - dellemc.os6
  tasks:
   - name: Change hostname
     dellemc.os6.os6_config:
      commands:
            -  hostname ANSIBLE-os6-2048
      save: True
      update: merge


EXPECTED RESULTS
ACTUAL RESULTS


The full traceback is:
  File "/Users/mbachhav/.ansible/collections/ansible_collections/dellemc/os6/plugins/module_utils/network/os6.py", line 108, in get_config
    return _DEVICE_CONFIGS[cmd]





    "msg": "unable to retrieve current config",
@awesomekyle
Copy link

awesomekyle commented Jun 24, 2023

I'm seeing the same thing, but can't seem to find a workaround. Filtering the output doesn't seem to help. I can repro with every role:

- hosts: dell-switch
  strategy: linear
  gather_facts: false
  force_handlers: true
  roles:
    - dellemc.os6.os6_aaa

@mohit8888
Copy link
Author

mohit8888 commented Jun 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants