| Summary: | [ovirt] [vdsm] Fedora-based host installation fails in case vdsm.conf is empty as tsDir default value is /var/run and not /etc/vdsm/ | ||
|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | Haim <hateya> |
| Component: | vdsm | Assignee: | Douglas Schilling Landgraf <dougsland> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | yeylon <yeylon> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | abaron, acathrow, bazulay, iheim, mgoldboi, srevivo, yeylon, ykaul |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-06-19 16:51:49 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
git commit bb22c7dab4baf5356a3934755e615698d508f8e3 should resolve this issue. |
Description of problem: Fedora host installation fails in case vdsm.conf contains no config or miss trust_store_path; the problem is in vds_bootstrap.py; def setCertificates(self, subject, random_num, orgName='Red Hat, Inc.'): """ Makes sure that vdsmd has its Certificate in place NOTE: setCertificates must be created AFTER rpms are installed, so that vdsm.conf already exists. """ config = ConfigParser.ConfigParser() config.read(VDSM_CONF) try: tsDir = config.get('vars', 'trust_store_path') except: tsDir = '/var/vdsm/ts it enters the tries, fail, except catch the exception, but set wrong default which suits rhel5.x and not fedora. Sun, 18 Dec 2011 09:02:41 DEBUG <BSTRAP component='SET_SYSTEM_TIME' status='OK' message='setSystemTime ended successfully'/> Sun, 18 Dec 2011 09:02:41 DEBUG ### print in line 1187 /var/vdsm/ts Sun, 18 Dec 2011 09:02:41 ERROR Traceback (most recent call last): File "/tmp/vds_bootstrap_8fe1dc8b-3b3d-4f90-bfd8-5e9b5b6970ea.py", line 924, in main orgName, systime, usevdcrepo, firewallRulesFile) File "/tmp/vds_bootstrap_8fe1dc8b-3b3d-4f90-bfd8-5e9b5b6970ea.py", line 871, in VdsValidation oDeploy.setCertificates(subject, random_num, orgName) File "/tmp/vds_bootstrap_8fe1dc8b-3b3d-4f90-bfd8-5e9b5b6970ea.py", line 804, in setCertificates deployUtil.createCSR(orgName, subject, random_num, tsDir, vdsmKey, dhKey) File "/tmp/deployUtil.py", line 1187, in createCSR os.mkdir(tsDir + "/keys") OSError: [Errno 2] No such file or directory: '/var/vdsm/ts/keys' git log: 82969b3b5ca2f9487ea56485fafd843b21d4f447