Bug #6377
closedIncorrect dhcp providers server virsh.rb loadSubnetData
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.
Updated by Dominic Cleal over 10 years ago
- Target version set to 1.8.1
- Translation missing: en.field_release set to 18
Updated by Anonymous over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 1fb2109b4adf617bcd24919463d8e665edee97e4.
Updated by Dominic Cleal over 10 years ago
- Translation missing: en.field_release changed from 18 to 10
Updated by Dominic Cleal over 10 years ago
- Related to Bug #6718: Unused IP request with virsh errors with: unable to retrive virsh info: Must define a name added