
2017-09-28 16:45 GMT+02:00 Greg Sheremeta <gshereme@redhat.com>:
Hi,
After rebasing to latest master, fedora 26, I can't run engine setup on a fresh engine root and empty database if I select 'yes' for ovn setup:
Please note we are not committed to support Fedora 26 for 4.2/master
[ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory: '/usr/lib/firewalld/services/ ovn-central-firewall-service.xml
Please check README for developer install. A recent change around this: diff --git a/README.adoc b/README.adoc index 0acd371cb4..539647a8a1 100644 --- a/README.adoc +++ b/README.adoc @@ -50,6 +50,10 @@ Both packages can be installed from ovirt-master-snapshot-static repository: Please replace `@DIST@` with `fc` for Fedora or `el` for Centos/RHEL. +OVN/OVS is an optional dependency. If you want to use it, check the requirements in the +ovirt-engine.spec.in file for a list of packages. Otherwise, you should reply 'No' +when asked about it by engine-setup. + which correspond to a change in spec file: diff --git a/ovirt-engine.spec.in b/ovirt-engine.spec.in index 4e86c837c0..bdd9b17e8b 100644 --- a/ovirt-engine.spec.in +++ b/ovirt-engine.spec.in @@ -300,6 +300,14 @@ Conflicts: ipa-server # Userportal is retired Obsoletes: %{name}-userportal +# OVS/OVN stuff +Requires: pyOpenSSL +Requires: openvswitch +Requires: openvswitch-ovn-common +Requires: openvswitch-ovn-central +Requires: python-openvswitch +Requires: ovirt-provider-ovn + %description %{ovirt_product_name} is a feature-rich server virtualization management system that provides advanced capabilities for managing the Open @@ -431,6 +439,10 @@ Requires: postgresql-server >= 9.5 %endif Conflicts: %{name} < 3.6.0 +# OVS/OVN stuff, for firewalld service files +Requires: openvswitch-ovn-central +Requires: ovirt-provider-ovn + %description setup-plugin-ovirt-engine Setup and upgrade specific plugins for %{ovirt_product_name_short} So, please ensure you have installed above required packages before running engine-setup from an engine master root.
2017-09-28 10:39:19,394-0400 DEBUG otopi.plugins.ovirt_** FILTERED**_setup.ovirt_**FILTERED**_common.system.sysctl plugin.execute:926 execute-output: ('/us r/sbin/sysctl', '-n', 'kernel.shmmax') stderr:
2017-09-28 10:39:19,396-0400 DEBUG otopi.context context._executeMethod:128 Stage misc METHOD otopi.plugins.otopi.network. firewalld.Plugin._misc 2017-09-28 10:39:19,396-0400 DEBUG otopi.context context._executeMethod:135 condition False 2017-09-28 10:39:19,397-0400 DEBUG otopi.context context._executeMethod:128 Stage misc METHOD otopi.plugins.otopi.network. iptables.Plugin._store_iptables 2017-09-28 10:39:19,397-0400 DEBUG otopi.context context._executeMethod:135 condition False 2017-09-28 10:39:19,398-0400 DEBUG otopi.context context._executeMethod:128 Stage misc METHOD otopi.plugins.otopi.network. ssh.Plugin._append_key 2017-09-28 10:39:19,399-0400 DEBUG otopi.context context._executeMethod:135 condition False 2017-09-28 10:39:19,400-0400 DEBUG otopi.context context._executeMethod:128 Stage misc METHOD otopi.plugins.otopi.system. clock.Plugin._set_clock 2017-09-28 10:39:19,400-0400 DEBUG otopi.context context._executeMethod:135 condition False 2017-09-28 10:39:19,401-0400 DEBUG otopi.context context._executeMethod:128 Stage misc METHOD otopi.plugins.ovirt_** FILTERED**_setup.base.network.firewall _manager.Plugin._prepare_examples 2017-09-28 10:39:19,402-0400 DEBUG otopi.context context._executeMethod:143 method exception Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/otopi/context.py", line 133, in _executeMethod method['method']() File "/home/greg/ovirt-**FILTERED**/share/ovirt-**FILTERED**/ setup/bin/../plugins/ovirt-**FILTERED**-setup/base/network/firewall_manager.py", line 279, in _prepare_examples manager.prepare_examples() File "/home/greg/ovirt-**FILTERED**/share/ovirt-**FILTERED**/ setup/bin/../plugins/ovirt-**FILTERED**-common/base/ network/firewall_manager_firewalld.py", line 92, in prepare_examples environment=self.environment, File "/home/greg/ovirt-**FILTERED**/share/ovirt-**FILTERED**/ setup/bin/../plugins/ovirt-**FILTERED**-common/base/ network/process_firewalld_services.py", line 85, in process_firewalld_services subst=self.environment[osetupcons.NetEnv.FIREWALLD_SUBST], File "/home/greg/ovirt-**FILTERED**/usr/lib/python2.7/site- packages/ovirt_**FILTERED**/util.py", line 55, in processTemplate with open(template, 'r') as f: IOError: [Errno 2] No such file or directory: '/usr/lib/firewalld/services/ ovn-central-firewall-service.xml' 2017-09-28 10:39:19,403-0400 ERROR otopi.context context._executeMethod:152 Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory: '/usr/lib/firewalld/services/ ovn-central-firewall-service.xml' 2017-09-28 10:39:19,403-0400 DEBUG otopi.transaction transaction.abort:119 aborting 'Database Transaction'
I suspected 596c3fb https://gerrit.ovirt.org/#/c/81960/ packaging: Require OVN
Make the engine require OVN pacakges, as setup defaults to configuring it.
Make setup require the OVN packages that provide firewalld services, so that engine-setup can have their content during customization stage.
Moving to 596c3fb gives the same error. Moving to 596c3fb^1 (51d474d engine: update vdc_option values) gives a different error:
[ INFO ] Stage: Environment customization
--== PRODUCT OPTIONS ==--
Configure Engine on this host (Yes, No) [Yes]: Configure WebSocket Proxy on this host (Yes, No) [Yes]: Configure VM Console Proxy on this host (Yes, No) [Yes]:
--== PACKAGES ==--
Install and configure ovirt-provider-ovn? Please note that this will cause an immediate installation of several OVN packages that will not be rolled back in case of a failure. (Yes, No) [Yes]: [ ERROR ] Yum Cannot queue package pyOpenSSL: Error making cache directory: /var/cache/yum/x86_64/26/fedora error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64' [ INFO ] Yum Performing yum transaction rollback [ ERROR ] Failed to execute stage 'Environment customization': Error making cache directory: /var/cache/yum/x86_64/26/fedora error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64' [ INFO ] Stage: Clean up Log file is located at /home/greg/ovirt-engine/var/ log/ovirt-engine/setup/ovirt-engine-setup-20170928095323-0kzqx7.log [ INFO ] Generating answer file '/home/greg/ovirt-engine/var/ lib/ovirt-engine/setup/answers/20170928095333-setup.conf'
And there I gave up. Selecting "no" to ovn setup allows setup to succeed.
Anyone know if I need to update something, or is this a bug?
Best wishes, Greg
--
GREG SHEREMETA
SENIOR SOFTWARE ENGINEER - TEAM LEAD - RHV UX
Red Hat NA
gshereme@redhat.com IRC: gshereme <https://red.ht/sig>
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
-- SANDRO BONAZZOLA ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R&D Red Hat EMEA <https://www.redhat.com/> <https://red.ht/sig> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted> <http://www.teraplan.it/redhat-osd-2017/>