Project

General

Profile

Actions

Bug #6405

open

Failure to reconnect on libvirtd restart

Added by   Zordrak almost 10 years ago. Updated about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Compute resources - libvirt
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

In Compute Resources with a valid, working libvirtd resource; if the libvirtd daemon on the remote host is restarted, all foreman operations with the resource fail:

There was an error listing VMs: Call to virConnectNumOfDefinedDomains failed: internal error client socket is closed

This remains until the foreman rails app is restarted.

Here is an equivalent bug in the OpenStack Compute (Nova) project for reference purposes:
https://bugs.launchpad.net/nova/+bug/1154473


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #14854: Libvirt connection leaksClosedLukas ZapletalActions
Actions #1

Updated by   Zordrak almost 10 years ago

All machines in use for testing: CentOS 6.5 x86_64

Actions #2

Updated by Ohad Levy almost 10 years ago

we currently rescue ::Libvirt::RetrieveError upon connection failures and try to reconnect, maybe libvirt changed their exception code.

https://github.com/theforeman/foreman/blob/develop/app/models/compute_resources/foreman/model/libvirt.rb#L148

Actions #3

Updated by Dominic Cleal over 9 years ago

  • Category changed from Compute resources to Compute resources - libvirt
Actions #4

Updated by Andy Taylor over 9 years ago

This might not be the same issue but we are experiencing this on Foreman 1.6.1, but not after a libvirt restart, it just seems to occasionally fail. Only a full restart of Foreman gets it working again.

Actions #5

Updated by Lukas Zapletal over 5 years ago

  • Related to Bug #14854: Libvirt connection leaks added
Actions

Also available in: Atom PDF