[Engine-devel] Error: could not create ovirtsdk API object
Itamar Heim
iheim at redhat.com
Sun Apr 28 13:27:55 UTC 2013
On 04/28/2013 10:37 AM, 李强 wrote:
>
> HI:All
>
> I build source and rpm
> -Uvh ovirt-engine-setup-plugin-allinone-3.3.0-0.2.master.20130427145036.fc18.noarch.rpm
>
> But I engine-setup have ERROR.
> Error: could not create ovirtsdk API object
>
> OS:F18 mini install.
>
>
> ===================================
> [root at localhost ~]# engine-setup
> Welcome to oVirt Engine setup utility
>
> WARNING: oVirt Engine setup has already been run on this host.
> To remove all configuration and reset oVirt Engine please run
> engine-cleanup.
> Please be advised that executing engine-setup without cleanup is not
> supported.
> Would you like to proceed? (yes|no): yes
>
> In order to proceed the installer must stop the ovirt-engine service
> Would you like to stop the ovirt-engine service? (yes|no): yes
> oVirt Engine uses httpd to proxy requests to the application server.
> It looks like the httpd installed locally is being actively used.
> The installer can override current configuration .
> Alternatively you can use JBoss directly (on ports higher than 1024)
> Do you wish to override current httpd configuration and restart the
> service? ['yes'| 'no'] [yes] :
> HTTP Port [80] :
> HTTPS Port [443] :
> Setup can configure server default page to launch oVirt Engine. Do you
> wish to do so? ['yes'| 'no'] [yes] :
> Host fully qualified domain name. Note: this name should be fully
> resolvable [localhost] : engine.startn.com <http://engine.startn.com>
> Enter a password for an internal oVirt Engine administrator user
> (admin at internal) :
> Warning: Weak Password.
> Confirm password :
> Organization Name for the Certificate [localhost] :
> The engine can be configured to present the UI in three different
> application modes. virt [Manage virtualization only], gluster [Manage
> gluster storage only], and both [Manage virtualization as well as
> gluster storage] ['virt'| 'gluster'| 'both'] [both] :
> The default storage type you will be using ['NFS'| 'FC'| 'ISCSI'|
> 'POSIXFS'] [NFS] :
> Enter DB type for installation ['remote'| 'local'] [local] :
> Enter a password for a local oVirt Engine DB admin user (engine) :
> Warning: Weak Password.
> Confirm password :
> Local ISO domain path [/var/lib/exports/iso_2013_04_28_15_18_22] :
> Firewall ports need to be opened.
> The installer can configure firewall automatically overriding the
> current configuration. The old configuration will be backed up.
> Alternately you can configure the firewall later using an example file
> selecting None.
> Which firewall manager do you wish to use? ['None'| 'Firewalld'|
> 'iptables']: Firewalld
> Configure VDSM on this host? ['yes'| 'no'] [yes] : yes
> Local storage domain path [/var/lib/images_2013_04_28_15_18_22] :
> Confirm root password :
>
> oVirt Engine will be installed using the following configuration:
> =================================================================
> override-httpd-config: yes
> http-port: 80
> https-port: 443
> override-httpd-root: yes
> host-fqdn: engine.startn.com <http://engine.startn.com>
> auth-pass: ********
> org-name: localhost
> application-mode: both
> default-dc-type: NFS
> db-remote-install: local
> db-local-pass: ********
> nfs-mp: /var/lib/exports/iso_2013_04_28_15_18_22
> firewall-manager: Firewalld
> config-allinone: yes
> storage-path: /var/lib/images_2013_04_28_15_18_22
> superuser-pass: ********
> Proceed with the configuration listed above? (yes|no): yes
>
> Installing:
> AIO: Validating CPU Compatibility... [ DONE ]
> AIO: Adding firewall rules... [ DONE ]
> Configuring oVirt Engine... [ DONE ]
> Configuring JVM... [ DONE ]
> Creating CA... [ DONE ]
> Updating ovirt-engine service... [ DONE ]
> Setting Database Configuration... [ DONE ]
> Setting Database Security... [ DONE ]
> Upgrading Database Schema... [ DONE ]
> Editing oVirt Engine Configuration... [ DONE ]
> Editing Postgresql Configuration... [ DONE ]
> Configuring the Default ISO Domain... [ DONE ]
> Configuring Firewall... [ DONE ]
> Starting ovirt-engine Service... [ DONE ]
> Configuring HTTPD... [ DONE ]
> AIO: Creating storage directory... [ DONE ]
> AIO: Adding Local Datacenter and cluster... [ ERROR ]
> Error: could not create ovirtsdk API object
> Please check log file
> /var/log/ovirt-engine/engine-setup_2013_04_28_15_18_21.log for more
> information
>
> =LOG==========================================
> FragmentPath=/usr/lib/systemd/system/firewalld.service
> UnitFileState=enabled
> InactiveExitTimestamp=Sun 2013-04-28 15:16:26 CST
> InactiveExitTimestampMonotonic=2057927058
> ActiveEnterTimestamp=Sun 2013-04-28 15:16:26 CST
> ActiveEnterTimestampMonotonic=2058029155
> ActiveExitTimestamp=Sun 2013-04-28 15:16:26 CST
> ActiveExitTimestampMonotonic=2057262228
> InactiveEnterTimestamp=Sun 2013-04-28 15:16:26 CST
> InactiveEnterTimestampMonotonic=2057889979
> "/var/log/ovirt-engine/engine-setup_2013_04_28_15_18_21.log" 2023L, 122617C
> 2013-04-28 15:19:34::DEBUG::engine-setup::2069::root::
> db-remote-install: local
> 2013-04-28 15:19:34::DEBUG::engine-setup::2069::root:: db-host: localhost
> 2013-04-28 15:19:34::DEBUG::engine-setup::2069::root:: db-local-pass:
> ********
> 2013-04-28 15:19:34::DEBUG::engine-setup::2069::root:: nfs-mp:
> /var/lib/exports/iso_2013_04_28_15_18_22
> 2013-04-28 15:19:34::DEBUG::engine-setup::2069::root:: iso-domain-name:
> ISO_DOMAIN
> 2013-04-28 15:19:34::DEBUG::engine-setup::2069::root:: config-nfs: yes
> 2013-04-28 15:19:34::DEBUG::engine-setup::2069::root:: firewall-manager:
> Firewalld
> 2013-04-28 15:19:34::DEBUG::engine-setup::2069::root:: config-allinone: yes
> 2013-04-28 15:19:34::DEBUG::engine-setup::2069::root:: storage-path:
> /var/lib/images_2013_04_28_15_18_22
> 2013-04-28 15:19:34::DEBUG::engine-setup::2069::root:: superuser-pass:
> ********
> 2013-04-28 15:19:34::ERROR::engine-setup::2504::root:: Traceback (most
> recent call last):
> File "/usr/bin/engine-setup", line 2498, in <module>
> main(confFile)
> File "/usr/bin/engine-setup", line 2265, in main
> runSequences()
> File "/usr/bin/engine-setup", line 2184, in runSequences
> controller.runAllSequences()
> File "/usr/share/ovirt-engine/scripts/setup_controller.py", line 54,
> in runAllSequences
> sequence.run()
> File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 154,
> in run
> step.run()
> File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 60,
> in run
> function()
> File "/usr/share/ovirt-engine/scripts/plugins/all_in_one_100.py",
> line 252, in initAPI
> raise Exception(ERROR_CREATE_API_OBJECT)
> Exception: Error: could not create ovirtsdk API object
>
Bug 947753 - [AIO] 'Error: could not create ovirtsdk API object' during
installation?
>
> ============================================
> [root at localhost ~]# rpm -qa | grep ovirt
> ovirt-engine-sdk-3.3.0.1-1.20130427.gitfc5985e.fc18.noarch
> ovirt-engine-backend-3.3.0-0.2.master.20130427145036.fc18.noarch
> ovirt-engine-setup-plugin-allinone-3.3.0-0.2.master.20130427145036.fc18.noarch
> ovirt-host-deploy-1.0.1-1.fc18.noarch
> ovirt-engine-setup-3.3.0-0.2.master.20130427145036.fc18.noarch
> ovirt-engine-cli-3.2.0.11-1.fc18.noarch
> ovirt-iso-uploader-3.3.0-0.0.master.20130318.gitec3e5e7.fc18.noarch
> ovirt-engine-restapi-3.3.0-0.2.master.20130427145036.fc18.noarch
> ovirt-engine-webadmin-portal-3.3.0-0.2.master.20130427145036.fc18.noarch
> ovirt-host-deploy-offline-1.0.1-1.fc18.noarch
> ovirt-image-uploader-3.3.0-0.0.master.20130423.git8dde3cc.fc18.noarch
> ovirt-engine-dbscripts-3.3.0-0.2.master.20130427145036.fc18.noarch
> ovirt-engine-userportal-3.3.0-0.2.master.20130427145036.fc18.noarch
> ovirt-release-fedora-5-3.1.noarch
> ovirt-host-deploy-java-1.0.1-1.fc18.noarch
> ovirt-engine-tools-3.3.0-0.2.master.20130427145036.fc18.noarch
> ovirt-log-collector-3.3.0-0.0.master.20130421.git1c4542d.fc18.noarch
> ovirt-engine-3.3.0-0.2.master.20130427145036.fc18.noarch
>
> [root at localhost ~]# rpm -qa | grep vdsm
> vdsm-python-4.10.3-10.fc18.x86_64
> vdsm-xmlrpc-4.10.3-10.fc18.noarch
> vdsm-4.10.3-10.fc18.x86_64
> vdsm-cli-4.10.3-10.fc18.noarch
> vdsm-bootstrap-4.10.3-10.fc18.noarch
>
> [root at localhost ~]# cat /etc/hosts
> 10.0.10.181 engine.startn.com <http://engine.startn.com>
>
> [root at localhost ~]# ifconfig
> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 192.168.11.4 netmask 255.255.255.0 broadcast 192.168.11.255
> inet6 fe80::20c:29ff:feed:4f64 prefixlen 64 scopeid 0x20<link>
> ether 00:0c:29:ed:4f:64 txqueuelen 1000 (Ethernet)
> RX packets 22780 bytes 31526531 (30.0 MiB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 7612 bytes 547095 (534.2 KiB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 10.0.10.181 netmask 255.255.255.0 broadcast 10.0.10.255
> inet6 fe80::20c:29ff:feed:4f6e prefixlen 64 scopeid 0x20<link>
> ether 00:0c:29:ed:4f:6e txqueuelen 1000 (Ethernet)
> RX packets 45792 bytes 58908887 (56.1 MiB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 11143 bytes 2063171 (1.9 MiB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
> inet 127.0.0.1 netmask 255.0.0.0
> inet6 ::1 prefixlen 128 scopeid 0x10<host>
> loop txqueuelen 0 (Local Loopback)
> RX packets 180949 bytes 62786059 (59.8 MiB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 180949 bytes 62786059 (59.8 MiB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
> inet 192.168.122.1 netmask 255.255.255.0 broadcast
> 192.168.122.255
> ether 16:aa:69:7c:1e:3e txqueuelen 0 (Ethernet)
> RX packets 0 bytes 0 (0.0 B)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 0 bytes 0 (0.0 B)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> [root at localhost ~]# dig -x 10.0.10.181
>
> ; <<>> DiG 9.9.2-rl.028.23-P2-RedHat-9.9.2-10.P2.fc18 <<>> -x 10.0.10.181
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21966
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
>
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 4096
> ;; QUESTION SECTION:
> ;181.10.0.10.in-addr.arpa. IN PTR
>
> ;; ANSWER SECTION:
> 181.10.0.10.in-addr.arpa. 1200 IN PTR engine.startn.com
> <http://engine.startn.com>.
>
> ;; AUTHORITY SECTION:
> 10.0.10.in-addr.arpa. 1200 IN NS engine.startn.com
> <http://engine.startn.com>.
>
> ;; ADDITIONAL SECTION:
> engine.startn.com <http://engine.startn.com>. 86400 IN A
> 10.0.10.181
>
> ;; Query time: 0 msec
> ;; SERVER: 10.0.10.181#53(10.0.10.181)
> ;; WHEN: Sun Apr 28 15:36:34 2013
> ;; MSG SIZE rcvd: 114
>
> [root at localhost ~]# dig engine.startn.com <http://engine.startn.com>
>
> ; <<>> DiG 9.9.2-rl.028.23-P2-RedHat-9.9.2-10.P2.fc18 <<>>
> engine.startn.com <http://engine.startn.com>
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36210
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
>
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 4096
> ;; QUESTION SECTION:
> ;engine.startn.com <http://engine.startn.com>. IN A
>
> ;; ANSWER SECTION:
> engine.startn.com <http://engine.startn.com>. 86400 IN A
> 10.0.10.181
>
> ;; AUTHORITY SECTION:
> startn.com <http://startn.com>. 86400 IN NS
> engine.startn.com <http://engine.startn.com>.
>
> ;; Query time: 0 msec
> ;; SERVER: 10.0.10.181#53(10.0.10.181)
> ;; WHEN: Sun Apr 28 15:36:40 2013
> ;; MSG SIZE rcvd: 76
> =============================================
>
> ---
> 有问题请通知我,谢谢,
> 李强
>
> ------------------------------------------------------------------------------
>
>
> + 太初有道,道与神同在,道就是神。(约翰福音1:1) +
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Engine-devel mailing list
> Engine-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
>
More information about the Devel
mailing list