[Users] BSTRAP component='CreateConf' status='FAIL' message='Basic configuration failed to import default values'

Itamar Heim iheim at redhat.com
Thu Jun 28 16:35:39 UTC 2012


On 06/28/2012 10:41 AM, Dan Kenigsberg wrote:
> On Thu, Jun 28, 2012 at 04:12:15PM +0200, 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
>>
>> 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
>
> That's too old to install ovirt-3.1.
> Please retry with the one on the beta repo
> http://kojipkgs.fedoraproject.org//packages/vdsm/4.10.0/3.fc17/noarch/vdsm-bootstrap-4.10.0-3.fc17.noarch.rpm


indeed.
i think the error is not about libjpeg at all, which is probably 
provided by libjpeg-turbo as yum install for it suggest.
so just a too old bootstrap file as danken suggests, causing this which 
is the actual 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



More information about the Users mailing list