The missing files are part of the ovn packages
but the ovn packages are not built for fedora 26 yet

I'll check if it's feasible to add this. We would need to build fc26
packages for all the dependencies, so please give me some
time for that.


On Thu, Sep 28, 2017 at 4:45 PM, Greg Sheremeta <gshereme@redhat.com> wrote:
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:

[ ERROR ] 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,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


_______________________________________________
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel