On Jun 28, 2012, at 16:12 , Karli Sjöberg wrote:
28 jun 2012 kl. 15.55 skrev Dan Kenigsberg:
> On Thu, Jun 28, 2012 at 12:32:27PM +0200, Karli Sjöberg wrote:
>> Hi,
>>
>> I am running Fedora 17 and added the ovirt beta repository to have access to
webadmin addition, since F17 only comes with CLI by default.
>>
>
> <snip>
>
>>
>>
>> The action in question "CreateConf" looks like:
>>
>> /usr/share/vdsm-bootstrap/vds_bootstrap.py
>>
>> def _makeConfig(self):
>> import datetime
>> from config import config
>>
>> if not os.path.exists(VDSM_CONF):
>> logging.debug("makeConfig: generating conf.")
>> lines = []
>> lines.append ("# Auto-generated by vds_bootstrap at:" +
str(datetime.datetime.now()) + "\n")
>> lines.append ("\n")
>>
>> lines.append ("[vars]\n") #Adding ts for the coming
scirpts.
>> lines.append ("trust_store_path = " +
config.get('vars', 'trust_store_path') + "\n")
>> lines.append ("ssl = " + config.get('vars',
'ssl') + "\n")
>> lines.append ("\n")
>>
>> lines.append ("[addresses]\n") #Adding mgt port for the
coming scirpts.
>> lines.append ("management_port = " +
config.get('addresses', 'management_port') + "\n")
>>
>> logging.debug("makeConfig: writing the following to " +
VDSM_CONF)
>> logging.debug(lines)
>> fd, tmpName = tempfile.mkstemp()
>> f = os.fdopen(fd, 'w')
>> f.writelines(lines)
>> f.close()
>> os.chmod(tmpName, 0644)
>> shutil.move(tmpName, VDSM_CONF)
>> else:
>> self.message = 'Basic configuration found, skipping this
step'
>> logging.debug(self.message)
>>
>> def createConf(self):
>> """
>> Generate initial configuration file for VDSM. Must run after package
installation!
>> """
>> self.message = 'Basic configuration set'
>> self.rc = True
>> self.status = 'OK'
>>
>> try:
>> self._makeConfig()
>> except Exception, e:
>> logging.error('', exc_info=True)
>
> ^^^^ the interesting stuff is written to a log file, sitting in your
> /tmp or a directory below it. Which module fails to be imported?
/tmp/vds_bootstrap.210442.log:
Thu, 28 Jun 2012 12:25:51 DEBUG Installing libjpeg 0
Thu, 28 Jun 2012 12:25:51 DEBUG ['/usr/bin/yum', '-y',
'install', 'libjpeg']
Thu, 28 Jun 2012 12:25:53 DEBUG Loaded plugins: langpacks, presto, refresh-packagekit,
versionlock
Package libjpeg-turbo-1.2.0-1.fc17.x86_64 already installed and latest version
Nothing to do
Thu, 28 Jun 2012 12:25:53 DEBUG
Thu, 28 Jun 2012 12:25:53 DEBUG ['/bin/rpm', '-q', 'libjpeg']
Thu, 28 Jun 2012 12:25:53 DEBUG package libjpeg is not installed
yeah - exactly.
A thing to be fixed in oVirt, please go ahead and open a bug:). I guess for now you can
change the library name in vds_bootstrap.py to libjpeg-turbo and it should work. It
provides the same library at the end so it should not matter later
Thu, 28 Jun 2012 12:25:53 DEBUG
Thu, 28 Jun 2012 12:25:53 DEBUG <BSTRAP component='VDS PACKAGES'
status='OK' result='libjpeg' message='package libjpeg is not installed
'/>
Thu, 28 Jun 2012 12:25:53 ERROR
Traceback (most recent call last):
File "/tmp/vds_bootstrap_ca67f0a5-115c-4943-a9ef-157654586da5.py", line 594,
in createConf
self._makeConfig()
File "/tmp/vds_bootstrap_ca67f0a5-115c-4943-a9ef-157654586da5.py", line 557,
in _makeConfig
from config import config
ImportError: No module named config
Thu, 28 Jun 2012 12:25:53 DEBUG <BSTRAP component='CreateConf'
status='FAIL' message='Basic configuration failed to import default
values'/>
Thu, 28 Jun 2012 12:25:53 ERROR createConf failed
Thu, 28 Jun 2012 12:25:53 DEBUG <BSTRAP component='RHEV_INSTALL'
status='FAIL'/>
Thu, 28 Jun 2012 12:25:53 DEBUG **** End VDS Validation ****
>
> Which version of vdsm-bootstrap do you have installed? if it is not a
> 4.10.something, I suggest you upgrade.
# rpm -qa | grep vdsm-bootstrap
vdsm-bootstrap-4.9.3.2-0.fc17.noarch
>
>
>
>> self.message = 'Basic configuration failed'
>> if isinstance(e, ImportError):
>> self.message = self.message + ' to import default values'
>> self.rc = False
>> self.status = 'FAIL'
>>
>> self._xmlOutput('CreateConf', self.status, None, None,
self.message)
>> return self.rc
>>
>>
>> What now? Can anyone tell me why it fails? Besides the obvious "it´s
beta" of course:)
Med Vänliga Hälsningar
-------------------------------------------------------------------------------
Karli Sjöberg
Swedish University of Agricultural Sciences
Box 7079 (Visiting Address Kronåsvägen 8)
S-750 07 Uppsala, Sweden
Phone: +46-(0)18-67 15 66
karli.sjoberg(a)slu.se
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users