Why upgrade of RHEV 3.3 to 3.4 failed with error : No such file or directory: '/usr/share/ovirt-engine/conf/sysprep/sysprep.2k3' ?
Environment
- Red Hat Enterprise Virtualization 3.3 to 3.4 upgrade.
Issue
- After executing
engine-setupI receive an error :
[ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory: '/usr/share/ovirt-engine/conf/sysprep/sysprep.2k3'
Resolution
- Create a symlink as bellow in RHEVM 3.3:
#ln -sf /etc/ovirt-engine/sysprep /etc/ovirt-engine/gsysprep
Root Cause
- This is a bug BZ#1066884, where actual file location path and values stored in DB mismatch which leads to error in upgrade procedure.
- Upgrade tries to copy files from
/etc/ovirt-engine/sysprepto/usr/share/ovirt-engine/conf/sysprep, but DB values contained are erroneous as sysprep is recorded as gsysprep and fails to copy from path/etc/ovirt-engine/gsysprepand hence fails to find sysprep files in/usr/share/ovirt-engine/conf/sysprep.
Diagnostic Steps
- During
engine-setupfor upgrade, similar error logs are seen as bellow:
[ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory: '/usr/share/ovirt-engine/conf/sysprep/sysprep.2k3'
- DB values for
vdc_options:
engine=> SELECT * from vdc_options where option_name ilike '%SysPrep%Path';
option_id | option_name | option_value | version
-----------+------------------------+--------------------------------------------------+-----
377 | SysPrepXPPath | /etc/ovirt-engine/gsysprep/sysprep.xp | general
366 | SysPrep2K3Path | /etc/ovirt-engine/gsysprep/sysprep.2k3 | general
367 | SysPrep2K8Path | /etc/ovirt-engine/gsysprep/sysprep.2k8x86 | general
369 | SysPrep2K8x64Path | /etc/ovirt-engine/gsysprep/sysprep.2k8 | general
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
