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

libvirt virNetworkGetDHCPLeases error on 18.03 #11

Open
nh2 opened this issue Jun 27, 2018 · 3 comments
Open

libvirt virNetworkGetDHCPLeases error on 18.03 #11

nh2 opened this issue Jun 27, 2018 · 3 comments

Comments

@nh2
Copy link

nh2 commented Jun 27, 2018

With up upgrade to nixpkgs release-18.03, I started seeing this in about 50% of my libvirt nixops deployments:

node-3..> uploading key ‘mykey’...
libvirt: Network Driver error : invalid network pointer in virNetworkGetDHCPLeases
node-1..> error: Traceback (most recent call last):
  File "/nix/store/p80ilh2vvk82h4cvysca3s31v2ak2rms-python2.7-nixops-1.6pre0_abcdef/lib/python2.7/site-packages/nixops/deployment.py", line 715, in worker
    m.send_keys()
  File "/nix/store/p80ilh2vvk82h4cvysca3s31v2ak2rms-python2.7-nixops-1.6pre0_abcdef/lib/python2.7/site-packages/nixops/backends/__init__.py", line 281, in send_keys
    self.upload_file(tmp, tmp_outfile)
  File "/nix/store/p80ilh2vvk82h4cvysca3s31v2ak2rms-python2.7-nixops-1.6pre0_abcdef/lib/python2.7/site-packages/nixops/backends/__init__.py", line 431, in upload_file
    cmdline += [source, "root@" + self.get_ssh_name() + ":" + target]
  File "/nix/store/p80ilh2vvk82h4cvysca3s31v2ak2rms-python2.7-nixops-1.6pre0_abcdef/lib/python2.7/site-packages/nixops/backends/libvirtd.py", line 267, in get_ssh_name
    self.private_ipv4 = self._parse_ip()
  File "/nix/store/p80ilh2vvk82h4cvysca3s31v2ak2rms-python2.7-nixops-1.6pre0_abcdef/lib/python2.7/site-packages/nixops/backends/libvirtd.py", line 226, in _parse_ip
    ifaces = self.dom.interfaceAddresses(libvirt.VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_LEASE, 0)
  File "/nix/store/jzjp87fbh4k2kdf5vky3gyddipq6d74f-python2.7-libvirt-3.10.0/lib/python2.7/site-packages/libvirt.py", line 1347, in interfaceAddresses
    if ret is None: raise libvirtError ('virDomainInterfaceAddresses() failed', dom=self)
libvirtError: invalid network pointer in virNetworkGetDHCPLeases

Not sure what that is; googling invalid network pointer in virNetworkGetDHCPLeases yields 0 results.

@nh2
Copy link
Author

nh2 commented Jul 1, 2018

I've tried a luckshot upgrading from libvirt 3.10.0 -> 4.4 but it didn't fix it.

@teto
Copy link
Contributor

teto commented Jul 3, 2018

You could try this PR NixOS/nixops#922. I had to modify a few things to make it more reliable

@nh2
Copy link
Author

nh2 commented Dec 7, 2018

If I remember correctly, I tried this a couple months ago but it didn't fix it for me.

@grahamc grahamc transferred this issue from NixOS/nixops Apr 20, 2020
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