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

HUAWEI CE: community.network.ce_link_status is broken #461

Open
MVKozlov opened this issue Sep 2, 2022 · 2 comments
Open

HUAWEI CE: community.network.ce_link_status is broken #461

MVKozlov opened this issue Sep 2, 2022 · 2 comments

Comments

@MVKozlov
Copy link

MVKozlov commented Sep 2, 2022

SUMMARY

Can't get it to work :)

ISSUE TYPE
  • Bug Report
COMPONENT NAME

community.network.ce_link_status

ANSIBLE VERSION
ansible [core 2.13.3]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/usr/share/ansible', '/etc/ansible/library']
  ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
  ansible collection location = /etc/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0]
  jinja version = 3.1.2
  libyaml = True
COLLECTION VERSION
# /usr/local/lib/python3.8/dist-packages/ansible_collections
Collection        Version
----------------- -------
community.network 4.0.1
CONFIGURATION
ANSIBLE_NOCOWS(/etc/ansible/ansible.cfg) = True
COLLECTIONS_PATHS(/etc/ansible/ansible.cfg) = ['/etc/ansible/collections']
DEFAULT_FORKS(/etc/ansible/ansible.cfg) = 50
DEFAULT_MODULE_PATH(/etc/ansible/ansible.cfg) = ['/usr/share/ansible', '/etc/ansible/library']
DEFAULT_STDOUT_CALLBACK(/etc/ansible/ansible.cfg) = yaml
DISPLAY_SKIPPED_HOSTS(/etc/ansible/ansible.cfg) = True
INTERPRETER_PYTHON(/etc/ansible/ansible.cfg) = /usr/bin/python3
PERSISTENT_CONNECT_TIMEOUT(/etc/ansible/ansible.cfg) = 60
OS / ENVIRONMENT

Ubuntu 20.04.4 LTS

STEPS TO REPRODUCE
---
#variant 1
- hosts: huawei
  connection: local
  gather_facts: no
  vars:
    ansible_network_os: community.network.ce
    cli:
      host: "{{ inventory_hostname }}"
      port: 22
      username: "{{ ansible_user }}"
      password: "{{ ansible_password }}"
      transport: cli

  tasks:
    - name: Get all interfaces link status information
      community.network.ce_link_status:
        interface: all
        provider: "{{ cli }}"


#variant 2
- hosts: huawei
  connection: ansible.netcommon.network_cli
  gather_facts: no
  vars:
    ansible_network_os: community.network.ce
  tasks:
    - name: Get all interfaces link status information
      community.network.ce_link_status:
        interface: all
EXPECTED RESULTS

successfull connection

ACTUAL RESULTS
#variant 1
 msg: connection local support for this module has been removed use either 'network_cli' or 'ansible.netcommon.network_cli' connection


#variant 2
 msg: Connection type 'ansible.netcommon.network_cli' is not valid for 'community.network.ce_link_status' module.

at the same time module community.network.ce_command works with connection: ansible.netcommon.network_cli

@patriciomartinns
Copy link

I have the same problem!

@Andersson007
Copy link
Contributor

hello, thanks for reporting the issue folks

cc @QijunPan @TommyLike @edisonxiang @freesky-edward @hwDCN @niuzhenguo @xuxiaowei0512 @yanzhangi @zengchen1024 @zhongjun2 you are mentioned as maintainers for ce_ stuff in BOTMETA.yml, could you please take a look?

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

No branches or pull requests

3 participants