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

Itamar Heim iheim at redhat.com
Fri Jun 29 11:16:27 UTC 2012


On 06/29/2012 07:11 AM, Karli Sjöberg wrote:
>
> 29 jun 2012 kl. 12.54 skrev Itamar Heim:
>
>> On 06/29/2012 03:27 AM, Karli Sjöberg wrote:
>>>
>>> 28 jun 2012 kl. 22.11 skrev Doron Fediuck:
>>>
>>>> Please rm /tmp/*py* in your host.
>>>> Older scripts may be interrupting.
>>>
>>> # rm -f /tmp/*py*
>>> # rm -f /tmp/*log*
>>> # rm -f /tmp/*tmp*
>>>
>>>
>>> "Re-Install"
>>>
>>>
>>> /var/log/ovirt-engine/engine.log:
>>>
>> ...
>>
>>>
>>>
>>> OK, one step forward and one step back. It seems as if the host
>>> installation went through, but after reboot, I have no contact with the
>>> web user interface. It thinks it´s active:
>>> # systemctl is-active ovirt-engine.service
>>> active
>>>
>>> But I don´t even get to the initial portal chooser-page.
>>
>> did you try to add the host the engine is running on or another physical
>> machine?
>
> The same. As I stated in the beginning, I want to be able to have the
> engine configured to execute power management for the rest of the hosts
> in the cluster, as per:
>
> Source: http://lists.ovirt.org/pipermail/users/2012-February/000361.html
> "Yes, the ovirt backend does not shut down or power up any hosts
> directly, it can work only through vdsm. Therefore you need one running
> host per datacenter to be able to manage the rest of the hosts."
>
> Adding the engine as a host in the cluster seems to be the way to
> achieve that.

1. power management is DC wide, not cluster.
2. you don't want the engine to be a host, unless you use the all-in-one 
plugin, which makes sure the node isn't rebooted while it is being added.
3. it will still won't help your problem, since it is local storage.
4. *if* you use the engine as a node (which may cause various issues), 
you need to make sure no VMs will run on it and it won't be an SPM 
(setting spm priority of 0 or -1 from the api)
5. you should probably also add the host from the api, using the 
no-reboot flag.

>
> /Karli
>
>>
>>>
>>> /Karli
>>>
>>>>
>>>> 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 <mailto:users at oVirt.org>
>>>> <mailto: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 <mailto:users at oVirt.org>
>>>> <mailto: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 <mailto:Users at ovirt.org> <mailto:Users at ovirt.org>
>>>> http://lists.ovirt.org/mailman/listinfo/users
>>>>
>>>> Sent from my Android phone. Please ignore typos.
>>>
>>>
>>>
>>> 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 at slu.se <mailto:karli.sjoberg at slu.se>
>>> <mailto:karli.sjoberg at adm.slu.se>
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at ovirt.org <mailto:Users at ovirt.org>
>>> http://lists.ovirt.org/mailman/listinfo/users
>>
>
>
>
> 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 at slu.se <mailto:karli.sjoberg at adm.slu.se>
>




More information about the Users mailing list