Project

General

Profile

Actions

Bug #14775

closed

virsh/libvirt migration doesn't update DNS/DHCP module provider from *_virsh

Added by Dominic Cleal over 8 years ago. Updated over 6 years ago.

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

Description

The migrate_virsh_to_libvirt_config migration doesn't update the :use_provider setting in the main DNS/DHCP module configuration files to the new provider names.

e.g. dhcp.yml:

---
:enabled: true
:use_provider: dhcp_virsh
:server: 127.0.0.1

This was unchanged when running the config file migrations. This results in errors on startup after an update:

E, [2016-04-22T13:08:28.996380 #992] ERROR -- : Couldn't enable plugin dns: Unable to find dependency 'dns_virsh' of 'dns'.
D, [2016-04-22T13:08:28.996414 #992] DEBUG -- : ["/home/dcleal/code/foreman/smart-proxy/lib/proxy/plugin.rb:122:in `block in validate_prerequisites_enabled!'", "/home/dcleal/code/foreman/smart-proxy/lib/proxy/plugin.rb:120:in `each'", "/home/dcleal/code/foreman/smart-pro
xy/lib/proxy/plugin.rb:120:in `validate_prerequisites_enabled!'", "/home/dcleal/code/foreman/smart-proxy/lib/proxy/plugin.rb:131:in `validate!'", "/home/dcleal/code/foreman/smart-proxy/lib/proxy/plugin.rb:150:in `configure_plugin'", "/home/dcleal/code/foreman/smart-proxy
/lib/proxy/plugin_initializer.rb:31:in `block in configure_plugins'", "/home/dcleal/code/foreman/smart-proxy/lib/proxy/plugin_initializer.rb:29:in `each'", "/home/dcleal/code/foreman/smart-proxy/lib/proxy/plugin_initializer.rb:29:in `configure_plugins'", "/home/dcleal/co
de/foreman/smart-proxy/lib/proxy/plugin_initializer.rb:5:in `initialize_plugins'", "/home/dcleal/code/foreman/smart-proxy/lib/launcher.rb:114:in `configure_plugins'", "/home/dcleal/code/foreman/smart-proxy/lib/launcher.rb:124:in `launch'", "bin/smart-proxy:6:in `<main>'" 
]
E, [2016-04-22T13:08:28.996725 #992] ERROR -- : Couldn't enable plugin dhcp: Unable to find dependency 'dhcp_virsh' of 'dhcp'.
D, [2016-04-22T13:08:28.996762 #992] DEBUG -- : ["/home/dcleal/code/foreman/smart-proxy/lib/proxy/plugin.rb:122:in `block in validate_prerequisites_enabled!'", "/home/dcleal/code/foreman/smart-proxy/lib/proxy/plugin.rb:120:in `each'", "/home/dcleal/code/foreman/smart-pro
xy/lib/proxy/plugin.rb:120:in `validate_prerequisites_enabled!'", "/home/dcleal/code/foreman/smart-proxy/lib/proxy/plugin.rb:131:in `validate!'", "/home/dcleal/code/foreman/smart-proxy/lib/proxy/plugin.rb:150:in `configure_plugin'", "/home/dcleal/code/foreman/smart-proxy
/lib/proxy/plugin_initializer.rb:31:in `block in configure_plugins'", "/home/dcleal/code/foreman/smart-proxy/lib/proxy/plugin_initializer.rb:29:in `each'", "/home/dcleal/code/foreman/smart-proxy/lib/proxy/plugin_initializer.rb:29:in `configure_plugins'", "/home/dcleal/co
de/foreman/smart-proxy/lib/proxy/plugin_initializer.rb:5:in `initialize_plugins'", "/home/dcleal/code/foreman/smart-proxy/lib/launcher.rb:114:in `configure_plugins'", "/home/dcleal/code/foreman/smart-proxy/lib/launcher.rb:124:in `launch'", "bin/smart-proxy:6:in `<main>'" 
]

Related issues 1 (0 open1 closed)

Related to Smart Proxy - Feature #13761: Refactor virsh providers into libvirt with ruby-bindingsClosedLukas Zapletal02/17/2016Actions
Actions

Also available in: Atom PDF