
<br></blockquote><blockquote type=3D"cite"> = lines.append ("[vars]\n") #Adding ts fo= r the coming scirpts.<br></blockquote><blockquote type=3D"cite"> &nbs=
logging= .debug(lines)<br></blockquote><blockquote type=3D"cite"> = fd, tmpName =3D tempfile.mk= stemp()<br></blockquote><blockquote type=3D"cite"> = f =3D os.fdopen(fd, 'w')<br></blo= ckquote><blockquote type=3D"cite"> &nbs=
</blockquote><blockquote type=3D"cite"> &nbs=
<div>Thu, 28 Jun 2012 12:25:53 DEBUG package libjpeg is not i= nstalled</div><div><br></div><div>Thu, 28 Jun 2012 12:25:53 DEBUG &n= bsp;</div><div>Thu, 28 Jun 2012 12:25:53 DEBUG <BSTRAP comp= onent=3D'VDS PACKAGES' status=3D'OK' result=3D'libjpeg' message=3D'package =
self.rc= =3D False<br></blockquote><blockquote type=3D"cite"> &nb= sp; self.status =3D 'FAIL'<br></bl= ockquote><blockquote type=3D"cite"><br></blockquote><blockquote type=3D"cit= e"> self._xmlOutput('CreateConf',= self.status, None, None, self.message)<br></blockquote><blockquote type=3D= "cite"> return self.rc<br></block= quote><blockquote type=3D"cite"><br></blockquote><blockquote type=3D"cite">= <br></blockquote><blockquote type=3D"cite">What now? Can anyone tell me why= it fails? Besides the obvious "it=B4s beta" of course:)<br></blockquote></=
--_000_054D6781E5554794B89EA8AD20EF9D80sluse_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 28 jun 2012 kl. 15.55 skrev Dan Kenigsberg: On Thu, Jun 28, 2012 at 12:32:27PM +0200, Karli Sj=F6berg wrote: Hi, I am running Fedora 17 and added the ovirt beta repository to have access t= o 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 =3D [] lines.append ("# Auto-generated by vds_bootstrap at:" + str(date= time.datetime.now()) + "\n") lines.append ("\n") lines.append ("[vars]\n") #Adding ts for the coming scirpts. lines.append ("trust_store_path =3D " + config.get('vars', 'trus= t_store_path') + "\n") lines.append ("ssl =3D " + config.get('vars', 'ssl') + "\n") lines.append ("\n") lines.append ("[addresses]\n") #Adding mgt port for the coming s= cirpts. lines.append ("management_port =3D " + config.get('addresses', '= management_port') + "\n") logging.debug("makeConfig: writing the following to " + VDSM_CON= F) logging.debug(lines) fd, tmpName =3D tempfile.mkstemp() f =3D os.fdopen(fd, 'w') f.writelines(lines) f.close() os.chmod(tmpName, 0644) shutil.move(tmpName, VDSM_CONF) else: self.message =3D 'Basic configuration found, skipping this step' logging.debug(self.message) def createConf(self): """ Generate initial configuration file for VDSM. Must run after pac= kage installation! """ self.message =3D 'Basic configuration set' self.rc =3D True self.status =3D 'OK' try: self._makeConfig() except Exception, e: logging.error('', exc_info=3DTrue) ^^^^ 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', 'libjp= eg'] Thu, 28 Jun 2012 12:25:53 DEBUG Loaded plugins: langpacks, presto, refre= sh-packagekit, versionlock Package libjpeg-turbo-1.2.0-1.fc17.x86_64 already installed and latest vers= ion 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=3D'VDS PACKAGES' statu= s=3D'OK' result=3D'libjpeg' message=3D'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 5= 94, in createConf self._makeConfig() File "/tmp/vds_bootstrap_ca67f0a5-115c-4943-a9ef-157654586da5.py", line 5= 57, in _makeConfig from config import config ImportError: No module named config Thu, 28 Jun 2012 12:25:53 DEBUG <BSTRAP component=3D'CreateConf' status= =3D'FAIL' message=3D'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=3D'RHEV_INSTALL' statu= s=3D'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 =3D 'Basic configuration failed' if isinstance(e, ImportError): self.message =3D self.message + ' to import default values' self.rc =3D False self.status =3D '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=B4s beta= " of course:) Med V=E4nliga H=E4lsningar ---------------------------------------------------------------------------= ---- Karli Sj=F6berg Swedish University of Agricultural Sciences Box 7079 (Visiting Address Kron=E5sv=E4gen 8) S-750 07 Uppsala, Sweden Phone: +46-(0)18-67 15 66 karli.sjoberg@slu.se<mailto:karli.sjoberg@adm.slu.se> --_000_054D6781E5554794B89EA8AD20EF9D80sluse_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode:= space; -webkit-line-break: after-white-space; "><br><div><div>28 jun 2012 = kl. 15.55 skrev Dan Kenigsberg:</div><br class=3D"Apple-interchange-newline= "><blockquote type=3D"cite"><div>On Thu, Jun 28, 2012 at 12:32:27PM +0200, = Karli Sj=F6berg wrote:<br><blockquote type=3D"cite">Hi,<br></blockquote><bl= ockquote type=3D"cite"><br></blockquote><blockquote type=3D"cite">I am runn= ing Fedora 17 and added the ovirt beta repository to have access to webadmi= n addition, since F17 only comes with CLI by default.<br></blockquote><bloc= kquote type=3D"cite"><br></blockquote><br><snip><br><br><blockquote t= ype=3D"cite"><br></blockquote><blockquote type=3D"cite"><br></blockquote><b= lockquote type=3D"cite">The action in question "CreateConf" looks like:<br>= </blockquote><blockquote type=3D"cite"><br></blockquote><blockquote type=3D= "cite">/usr/share/vdsm-bootstrap/vds_bootstrap.py<br></blockquote><blockquo= te type=3D"cite"><br></blockquote><blockquote type=3D"cite"> &n= bsp;def _makeConfig(self):<br></blockquote><blockquote type=3D"cite">  = ; import datetime<br></blockquote><block= quote type=3D"cite"> from config = import config<br></blockquote><blockquote type=3D"cite"><br></blockquote><b= lockquote type=3D"cite"> if not o= s.path.exists(VDSM_CONF):<br></blockquote><blockquote type=3D"cite"> = logging.debug("= makeConfig: generating conf.")<br></blockquote><blockquote type=3D"cite"> &= nbsp; lines =3D = []<br></blockquote><blockquote type=3D"cite">  = ; lines.append ("# Auto-generated by vds= _bootstrap at:" + str(datetime.datetime.now()) + "\n")<br></blockquote><blo= ckquote type=3D"cite"> &nbs= p; lines.append ("\n")<br></blockquote><blockquote type=3D"cite"= p; lines.append ("trus= t_store_path =3D " + config.get('vars', 'trust_store_path') + "\n")<br></bl= ockquote><blockquote type=3D"cite"> &nb= sp; lines.append ("ssl =3D " + config.get('vars', 's= sl') + "\n")<br></blockquote><blockquote type=3D"cite"> &= nbsp; lines.append ("\n")<br></blo= ckquote><blockquote type=3D"cite"><br></blockquote><blockquote type=3D"cite= "> lines.= append ("[addresses]\n") #Adding mgt port for the coming scirpts.<br></bloc= kquote><blockquote type=3D"cite">  = ; lines.append ("management_port =3D " + config.get(= 'addresses', 'management_port') + "\n")<br></blockquote><blockquote type=3D= "cite"><br></blockquote><blockquote type=3D"cite"> = logging.debug("makeConfig: writin= g the following to " + VDSM_CONF)<br></blockquote><blockquote type=3D"cite"= p; f.writelines(lines)<br></blockquote><blockquote t= ype=3D"cite"> &= nbsp;f.close()<br></blockquote><blockquote type=3D"cite">  = ; os.chmod(tmpName, 0644)<br= p; shutil.move(tmpName, VDSM_CONF)<br></blockq= uote><blockquote type=3D"cite"> e= lse:<br></blockquote><blockquote type=3D"cite"> &nb= sp; self.message =3D 'Basic configuratio= n found, skipping this step'<br></blockquote><blockquote type=3D"cite"> &nb= sp; logging.debu= g(self.message)<br></blockquote><blockquote type=3D"cite"><br></blockquote>= <blockquote type=3D"cite"> def createConf(self):<br></blo= ckquote><blockquote type=3D"cite"> &nbs= p;"""<br></blockquote><blockquote type=3D"cite"> &n= bsp; Generate initial configuration file= for VDSM. Must run after package installation!<br></blockquote><blockquote= type=3D"cite"> """<br></blockquo= te><blockquote type=3D"cite"> sel= f.message =3D 'Basic configuration set'<br></blockquote><blockquote type=3D= "cite"> self.rc =3D True<br></blo= ckquote><blockquote type=3D"cite"> &nbs= p;self.status =3D 'OK'<br></blockquote><blockquote type=3D"cite"><br></bloc= kquote><blockquote type=3D"cite">  = ;try:<br></blockquote><blockquote type=3D"cite"> &n= bsp; self._makeConfig()<br></blockquote>= <blockquote type=3D"cite"> except= Exception, e:<br></blockquote><blockquote type=3D"cite">  = ; logging.error('', exc_info= =3DTrue)<br></blockquote><br>^^^^ the interesting stuff is written to a log= file, sitting in your<br>/tmp or a directory below it. Which module fails = to be imported?<br></div></blockquote><div><br></div><div>/tmp/vds_bootstra= p.210442.log:</div><div><br></div><div>Thu, 28 Jun 2012 12:25:51 DEBUG &nbs= p; Installing libjpeg 0</div><div>Thu, 28 Jun 2012 12:25:51 DEBUG &nb= sp; ['/usr/bin/yum', '-y', 'install', 'libjpeg']</div><div>Thu, 28 Ju= n 2012 12:25:53 DEBUG Loaded plugins: langpacks, presto, refre= sh-packagekit, versionlock</div><div>Package libjpeg-turbo-1.2.0-1.fc17.x86= _64 already installed and latest version</div><div>Nothing to do</div><div>= <br></div><div>Thu, 28 Jun 2012 12:25:53 DEBUG </div><div>Thu,= 28 Jun 2012 12:25:53 DEBUG ['/bin/rpm', '-q', 'libjpeg']</div= libjpeg is not installed '/></div><div>Thu, 28 Jun 2012 12:25:53 ERROR &= nbsp; </div><div>Traceback (most recent call last):</div><div> = File "/tmp/vds_bootstrap_ca67f0a5-115c-4943-a9ef-157654586da5.py", line 594= , in createConf</div><div> self._makeConfig()</div><div> = File "/tmp/vds_bootstrap_ca67f0a5-115c-4943-a9ef-157654586da5.py", line 55= 7, in _makeConfig</div><div> from config import config</div><d= iv>ImportError: No module named config</div><div>Thu, 28 Jun 2012 12:25:53 = DEBUG <BSTRAP component=3D'CreateConf' status=3D'FAIL' mess= age=3D'Basic configuration failed to import default values'/></div><div>= Thu, 28 Jun 2012 12:25:53 ERROR createConf failed</div><div>Th= u, 28 Jun 2012 12:25:53 DEBUG <BSTRAP component=3D'RHEV_INS= TALL' status=3D'FAIL'/></div><div>Thu, 28 Jun 2012 12:25:53 DEBUG = **** End VDS Validation ****</div><div><br></div><blockquote type=3D= "cite"><div><br>Which version of vdsm-bootstrap do you have installed? if i= t is not a<br>4.10.something, I suggest you upgrade.<br></div></blockquote>= <div><br></div><div># rpm -qa | grep vdsm-bootstrap</div><div>vdsm-bootstra= p-4.9.3.2-0.fc17.noarch</div><div><br></div><blockquote type=3D"cite"><div>= <br><br><br><blockquote type=3D"cite"> = self.message =3D 'Basic configuration failed'= <br></blockquote><blockquote type=3D"cite"> &= nbsp; if isinstance(e, ImportError):<br></bloc= kquote><blockquote type=3D"cite">  = ; self.message =3D self.mess= age + ' to import default values'<br></blockquote><blockquote type=3D"cite"= div></blockquote></div><br><div> <div><br class=3D"Apple-interchange-newline"><br></div><div>Med V=E4nliga H= =E4lsningar<br>------------------------------------------------------------= -------------------<br>Karli Sj=F6berg<br>Swedish University of Agricultura= l Sciences<br>Box 7079 (Visiting Address Kron=E5sv=E4gen 8)<br>S-750 07 Upp= sala, Sweden<br>Phone: +46-(0)18-67 15 66</div><div><a href=3D"mailto= :karli.sjoberg@adm.slu.se">karli.sjoberg@slu.se</a></div> </div> <br></body></html>= --_000_054D6781E5554794B89EA8AD20EF9D80sluse_--