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

Doron Fediuck dfediuck at redhat.com
Thu Jun 28 20:11:37 UTC 2012


Please rm /tmp/*py* in your host.
Older scripts may be interrupting.

Sent from my Android phone. Please ignore typos.

-----Original Message-----
From: =?iso-8859-1?Q?Karli_Sj=F6berg?= [Karli.Sjoberg at slu.se]
Received: Thursday, 28 Jun 2012, 21:37
To: Itamar Heim [iheim at redhat.com]; Dan Kenigsberg [danken at redhat.com]
CC: users at oVirt.org [users at ovirt.org]
Subject: Re: [Users] BSTRAP component='CreateConf' status='FAIL' message='Basic configuration failed to import default values'

________________________________________
Från: Itamar Heim [iheim at redhat.com]
Skickat: den 28 juni 2012 18:35
Till: Dan Kenigsberg
Kopia: Karli Sjöberg; users at oVirt.org
Ämne: Re: [Users] BSTRAP component='CreateConf' status='FAIL' message='Basic configuration failed to import default values'

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.


 



 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
 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
 Thu, 28 Jun 2012 12:25:53 ERROR    createConf failed
 Thu, 28 Jun 2012 12:25:53 DEBUG
 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


rpm -U http://kojipkgs.fedoraproject.org//packages/vdsm/4.10.0/3.fc17/noarch/vdsm-bootstrap-4.10.0-3.fc17.noarch.rpm

Then, after next "Re-Install"

more /tmp/vds_bootstrap.470161.log
Thu, 28 Jun 2012 19:39:45 DEBUG    **** Start VDS Validation ****
Thu, 28 Jun 2012 19:39:45 DEBUG    Entered VdsValidation(subject = '172.22.8.14', random_num = 'e27aad2f-4bb2-42f1-930e-6c7bab54fb1c', rev_num = 'None', installVirtualizationService = 'True',installGlusterService = 'False')
Thu, 28 Jun 2012 19:39:45 ERROR    checkRegistration: Error searching for VDSM package!
Traceback (most recent call last):
  File "/tmp/vds_bootstrap_e27aad2f-4bb2-42f1-930e-6c7bab54fb1c.py", line 228, in checkRegistration
    rc = bool(deployUtil.yumListPackages(VDSM_NAME))
AttributeError: 'module' object has no attribute 'yumListPackages'
Thu, 28 Jun 2012 19:39:45 ERROR    Unable to fetch vdsm package.
 Please check if host is registered to RHN, Satellite or other yum repository
Thu, 28 Jun 2012 19:39:45 DEBUG    
Thu, 28 Jun 2012 19:39:45 ERROR    checkRegistration test failed
Thu, 28 Jun 2012 19:39:45 DEBUG    
Thu, 28 Jun 2012 19:39:45 DEBUG    **** End VDS Validation ****
_______________________________________________
Users mailing list
Users at ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Sent from my Android phone. Please ignore typos.


More information about the Users mailing list