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

Unable to perform vmkernel operation #822

Closed
Akasurde opened this issue Aug 20, 2017 · 3 comments
Closed

Unable to perform vmkernel operation #822

Akasurde opened this issue Aug 20, 2017 · 3 comments

Comments

@Akasurde
Copy link
Contributor

Adding new vmkernel raises following error

HostNetworkSystem:hostnetworksystem-85 does not implement: UpdateNetworkConfig
@anfernee
Copy link
Contributor

@Akasurde can you clarify what command did you run, and what version of vcsim did you use? Thanks.

@Akasurde
Copy link
Contributor Author

Akasurde commented Sep 30, 2017

@anfernee Thanks for response.

I am facing this issue while using vcsim with Ansible VMware module vmware_vmkernel.

vmware_vmkernel.py internally uses an API

host_network_config_result = host_network_system.UpdateNetworkConfig(config, "modify")

I think this function is not implemented in vcsim, so Ansible module fails.

You can use following Ansible playbook to reproduce this error against latest govcsim code.

---
- name: Port group
  hosts: localhost
  vars:
    - vcsim: 0.0.0.0
  tasks:
    - name: add vmkernel
      vmware_vmkernel:
        validate_certs: False
        hostname: "{{ vcsim }}"
        username: user
        password: pass
        vswitch_name: vswitch_0001
        portgroup_name: pg_0001
        vlan_id: 1
        ip_address: 192.168.10.1
        subnet_mask: 255.255.255.0
        enable_mgmt: True
      register: host_system_result_0001

@dougm
Copy link
Member

dougm commented Oct 5, 2017

The method was added in #855

We may need to update more of the fields within, @Akasurde re-open if that is the case.

@dougm dougm closed this as completed Oct 5, 2017
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