<div> Juan,<br><br>Thanks for your answer. Can you provide more details on how I can fix this problem? I think engine-setup is built from the ovirt engine workspace and It should call the new interface properly. I am confused why engine-setup--->inst_add_iso_storage_domai---->insertstorage_domain_static was not updated based on the new interface losing one parameter. Is that a bug in the workspace introduced by the commit? </div>
<br>
<div id="origbody">
<div style="background: #f2f2f2;">----- 原始邮件 -----<br>发件人:Juan Hernandez <jhernand@redhat.com><br>收件人:Juan Hernandez <jhernand@redhat.com><br>抄送人:engine-devel@ovirt.org<br>主题:Re: [Engine-devel] function insertstorage_domain_static(uuid, ...) does not exist<br>日期:2013年03月07日 20点00分<br></div>
<br>On 03/07/2013 12:43 PM, Barak Azulay wrote:<br>> Shu,<br>><br>> A few notes.<br>><br>> 1 - you are tring to create iso domain on /<br>> 'select ('ab22b419-6381-4f0a-8b46-aa72c81edbb5', 'ISO_DOMAIN', 'ead292ee-14dd-40f9-b06b-f2250f7594a9', 'localhost.localdomain:/ISO', 0, 0)'<br>> 2 - your host name is localhost.localdomain<br>><br>> But those doesn't look like the real problem here.<br>><br>> I assume you are running it on F18 ?<br>><br>> Can we get the full installation log?<br>><br>> Thanks<br>> Barak<br>Commit 5ca1ec0337d921f1057321da2688ad2a014b8ffb added a parameter to the <br>stored procedure, but engine-setup calls inst_add_iso_storage_domain <br>(in inst_sp.sql) which in turn calls insertstorage_domain_static, and <br>that call hasn't been updated.<br>><br>><br>><br>><br>><br>><br>><br>> ----- Original Message -----<br>>> From: "Shu Ming" <shuming@linux.vnet.ibm.com><br>>> To: engine-devel@ovirt.org, "Doron Fediuck" <dfediuck@redhat.com><br>>> Sent: Thursday, March 7, 2013 7:39:29 AM<br>>> Subject: Re: [Engine-devel] function insertstorage_domain_static(uuid, ...) does not exist<br>>><br>>><br>>><br>>> Doron,<br>>><br>>> Do you get any idea about it?<br>>><br>>> startup_002@sina.cn :<br>>><br>>><br>>><br>>> Hi,<br>>><br>>> I built the oVirt engine RPM packages from the latest oVirt engine<br>>> source code and setup a yum installation server with these packages.<br>>> I can successfully install the RPM packages on my oVirt engine test<br>>> server. But when the "engine-setup" command was used to setup the<br>>> engine sever, the following errors were encountered from<br>>> engine-setup log. It seems that inst_add_iso_storage_domain was not<br>>> created properly for psql. Any clue to this problem?<br>>><br>>> 2013-03-05 20:02:19::DEBUG::nfsutils::192::root:: Generating unique<br>>> uuid<br>>> 2013-03-05 20:02:19::DEBUG::common_utils::501::root:: running sql<br>>> query 'select inst_add_iso_storage_domain<br>>> ('ab22b419-6381-4f0a-8b46-aa72c81edbb5', 'ISO_DOMAIN',<br>>> 'ead292ee-14dd-40f9-b06b-f2250f7594a9',<br>>> 'localhost.localdomain:/ISO', 0, 0)' on db server: 'localhost'.<br>>> 2013-03-05 20:02:19::DEBUG::common_utils::454::root:: Executing<br>>> command --> '/usr/bin/psql -h localhost -p 5432 -U engine -d engine<br>>> -c select inst_add_iso_storage_domain<br>>> ('ab22b419-6381-4f0a-8b46-aa72c81edbb5', 'ISO_DOMAIN',<br>>> 'ead292ee-14dd-40f9-b06b-f2250f7594a9',<br>>> 'localhost.localdomain:/ISO', 0, 0)' in working directory '/root'<br>>> 2013-03-05 20:02:19::DEBUG::common_utils::492::root:: output =<br>>> 2013-03-05 20:02:19::DEBUG::common_utils::493::root:: stderr = ERROR:<br>>> NUM:42883, DETAILS:function insertstorage_domain_static(uuid,<br>>> character varying, character varying, integer, integer, unknown,<br>>> integer) does not exist<br>>><br>>> 2013-03-05 20:02:19::DEBUG::common_utils::494::root:: retcode = 1<br>>> 2013-03-05 20:02:19::ERROR::engine-setup::1809::root:: Traceback<br>>> (most recent call last):<br>>> File "/bin/engine-setup", line 1804, in _configNfsShare<br>>> _addIsoDomaintoDB(controller.CONF["sd_uuid"],<br>>> controller.CONF["ISO_DOMAIN_NAME"])<br>>> File "/bin/engine-setup", line 1860, in _addIsoDomaintoDB<br>>> utils.execRemoteSqlCommand(getDbUser(), getDbHostName(), getDbPort(),<br>>> basedefs.DB_NAME, sqlQuery, True,<br>>> output_messages.ERR_FAILED_INSERT_ISO_DOMAIN%(basedefs.DB_NAME))<br>>> File "/usr/share/ovirt-engine/scripts/common_utils.py", line 510, in<br>>> execRemoteSqlCommand<br>>> return execCmd(cmdList=cmd, failOnError=failOnError, msg=errMsg,<br>>> envDict=getPgEnv())<br>>> File "/usr/share/ovirt-engine/scripts/common_utils.py", line 497, in<br>>> execCmd<br>>> raise Exception(msg)<br>>> Exception: Failed inserting ISO domain into engine db<br>>><br>>> 2013-03-05 20:02:19::DEBUG::setup_sequences::62::root:: Traceback<br>>> (most recent call last):<br>>> File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 60,<br>>> in run<br>>> function()<br>>> File "/bin/engine-setup", line 1810, in _configNfsShare<br>>> raise Exception(output_messages.ERR_FAILED_CFG_NFS_SHARE)<br>>> Exception: Failed to configure NFS share on this host<br>>><br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1992::root:: *** The<br>>> following params were used as user input:<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root::<br>>> override-httpd-config: yes<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root:: http-port: 80<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root:: https-port:<br>>> 443<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root::<br>>> random-passwords: no<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root:: mac-range:<br>>> 00:1A:4A:A8:01:00-00:1A:4A:A8:01:FF<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root:: host-fqdn:<br>>> localhost.localdomain<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root:: auth-pass:<br>>> ********<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root:: org-name:<br>>> localdomain<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root::<br>>> application-mode: virt<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root::<br>>> default-dc-type: NFS<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root::<br>>> db-remote-install: local<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root:: db-host:<br>>> localhost<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root:: db-local-pass:<br>>> ********<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root:: nfs-mp: /ISO<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root::<br>>> iso-domain-name: ISO_DOMAIN<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root:: config-nfs:<br>>> yes<br>>> 2013-03-05 20:02:19::DEBUG::engine-setup::1997::root::<br>>> firewall-manager: iptables<br>>> 2013-03-05 20:02:19::ERROR::engine-setup::2413::root:: Traceback<br>>> (most recent call last):<br>>> File "/bin/engine-setup", line 2407, in <module><br>>> main(confFile)<br>>> File "/bin/engine-setup", line 2190, in main<br>>><br>>><br>>> _______________________________________________<br>>> Engine-devel mailing list Engine-devel@ovirt.org<br>>> http://lists.ovirt.org/mailman/listinfo/engine-devel<br>>><br>>> --<br>>> ---<br>>> 舒明 Shu Ming<br>>> Open Virtualization Engineerning; CSTL, IBM Corp.<br>>> Tel: 86-10-82451626 Tieline: 9051626 E-mail: shuming@cn.ibm.com or<br>>> shuming@linux.vnet.ibm.com Address: 3/F Ring Building, ZhongGuanCun<br>>> Software Park, Haidian District, Beijing 100193, PRC<br>>> _______________________________________________<br>>> Engine-devel mailing list<br>>> Engine-devel@ovirt.org<br>>> http://lists.ovirt.org/mailman/listinfo/engine-devel<br>>><br>> _______________________________________________<br>> Engine-devel mailing list<br>> Engine-devel@ovirt.org<br>> http://lists.ovirt.org/mailman/listinfo/engine-devel<br>><br>-- <br>Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta <br>3ºD, 28016 Madrid, Spain<br>Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.<br>_______________________________________________<br>Engine-devel mailing list<br>Engine-devel@ovirt.org<br>http://lists.ovirt.org/mailman/listinfo/engine-devel<br></div>