Project

General

Profile

Actions

Bug #6377

closed

Incorrect dhcp providers server virsh.rb loadSubnetData

Added by Lukas Zapletal almost 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The commit fixes dhcp server virsh.rb provider. Upon loading the
contents of the libvirt network XML and parsing for DHCP reservations a
check is performed on the kind of records that are being loaded. The
dhcp_api.rb 'delete' helper tries to load network entries of the
'reservation' kind, the helper uses modules/dhcp/dhcp/subnet.rb to
validate on that and filter out entries.

In contrary to other providers (ms, isc) the loadSubnetData method of
virsh.rb was dealing out "Proxy::DHCP::Record" for any entry it was able
to discover, but should have been instantiating
"Proxy::DHCP::Reservation" to pass the validation.

This resulted in "ERROR -- : Record
x.x.x.x/xx:xx:xx:xx:xx:xx not found" as well as leaves in the libvirt
network XML. This prevented the creation of VMs with the same addresses,
since leftover DHCP entries conflicted with the new ones.

https://github.com/theforeman/smart-proxy/pull/164


Related issues 1 (0 open1 closed)

Related to Smart Proxy - Bug #6718: Unused IP request with virsh errors with: unable to retrive virsh info: Must define a nameRejected07/22/2014Actions
Actions #1

Updated by Dominic Cleal almost 10 years ago

  • Target version set to 1.8.1
  • translation missing: en.field_release set to 18
Actions #2

Updated by Anonymous almost 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Bryan Kearney almost 10 years ago

  • Bugzilla link set to 1117835
Actions #4

Updated by Dominic Cleal almost 10 years ago

  • translation missing: en.field_release changed from 18 to 10
Actions #5

Updated by Dominic Cleal almost 10 years ago

  • Related to Bug #6718: Unused IP request with virsh errors with: unable to retrive virsh info: Must define a name added
Actions

Also available in: Atom PDF