ovirt-engine-sdk-python rule enginewindows支持吗

ovirt-engine
时间: 19:32:41
&&&& 阅读:227
&&&& 评论:
&&&& 收藏:0
标签:wget&http://resources.ovirt.org/pub/yum-repo/ovirt-release36.rpmovirt-3.6-dependencies.repo[ovirt-3.6-epel]name=Extra Packages for Enterprise Linux 7 - $basearch#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearchmirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearchfailovermethod=priorityenabled=1includepkgs=epel-release,python-uinput,puppet,python-lockfile,python-cpopen,python-ordereddict,python-pthreading,python-inotify,python-argparse,novnc,python-ply,python-kitchen,python-daemon,python-websockify,livecd-tools,spice-html5,mom,python-IPy,python-ioprocess,ioprocess,safelease,python-paramiko,python-crypto,python-cheetah,python-ecdsa,python-markdown,rubygem-rgen,ovirt-guest-agent*,userspace-rcu,protobuf-javagpgcheck=0gpgkey=https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7[ovirt-3.6-glusterfs-epel]name=GlusterFS is a clustered file-system capable of scaling to several petabytes.baseurl=http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/epel-$releasever/$basearch/enabled=1skip_if_unavailable=1gpgcheck=0gpgkey=https://download.gluster.org/pub/gluster/glusterfs/LATEST/pub.key[ovirt-3.6-glusterfs-noarch-epel]name=GlusterFS is a clustered file-system capable of scaling to several petabytes.baseurl=http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/epel-$releasever/noarchenabled=1skip_if_unavailable=1gpgcheck=0gpgkey=https://download.gluster.org/pub/gluster/glusterfs/LATEST/pub.key[ovirt-3.6-patternfly1-noarch-epel]name=Copr repo for patternfly1 owned by patternflybaseurl=http://copr-be.cloud.fedoraproject.org/results/patternfly/patternfly1/epel-7-$basearch/enabled=1skip_if_unavailable=1gpgcheck=0[virtio-win-stable]name=virtio-win builds roughly matching what was shipped in latest RHELbaseurl=http://fedorapeople.org/groups/virt/virtio-win/repo/stableenabled=1skip_if_unavailable=1gpgcheck=0[root@ovirt-manager yum.repos.d]#&[root@ovirt-manager yum.repos.d]# cat ovirt-3.6-dependencies.repo&[ovirt-3.6-epel]name=Extra Packages for Enterprise Linux 7 - $basearch#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearchmirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearchfailovermethod=priorityenabled=1includepkgs=epel-release,python-uinput,puppet,python-lockfile,python-cpopen,python-ordereddict,python-pthreading,python-inotify,python-argparse,novnc,python-ply,python-kitchen,python-daemon,python-websockify,livecd-tools,spice-html5,mom,python-IPy,python-ioprocess,ioprocess,safelease,python-paramiko,python-crypto,python-cheetah,python-ecdsa,python-markdown,rubygem-rgen,ovirt-guest-agent*,userspace-rcu,protobuf-javagpgcheck=0gpgkey=https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7[ovirt-3.6-glusterfs-epel]name=GlusterFS is a clustered file-system capable of scaling to several petabytes.baseurl=http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/epel-$releasever/$basearch/enabled=1skip_if_unavailable=1gpgcheck=0gpgkey=https://download.gluster.org/pub/gluster/glusterfs/LATEST/pub.key[ovirt-3.6-glusterfs-noarch-epel]name=GlusterFS is a clustered file-system capable of scaling to several petabytes.baseurl=http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/epel-$releasever/noarchenabled=1skip_if_unavailable=1gpgcheck=0gpgkey=https://download.gluster.org/pub/gluster/glusterfs/LATEST/pub.key[ovirt-3.6-patternfly1-noarch-epel]name=Copr repo for patternfly1 owned by patternflybaseurl=http://copr-be.cloud.fedoraproject.org/results/patternfly/patternfly1/epel-7-$basearch/enabled=1skip_if_unavailable=1gpgcheck=0[virtio-win-stable]name=virtio-win builds roughly matching what was shipped in latest RHELbaseurl=http://fedorapeople.org/groups/virt/virtio-win/repo/stableenabled=1skip_if_unavailable=1gpgcheck=0ovirt-3.6.repo[ovirt-3.6]name=Latest oVirt 3.6 Release#baseurl=http://resources.ovirt.org/pub/ovirt-3.6/rpm/el$releasever/mirrorlist=http://resources.ovirt.org/pub/yum-repo/mirrorlist-ovirt-3.6-el$releaseverenabled=1skip_if_unavailable=1gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-ovirt-3.6Ovirt&install&guidePre&install&environment&checkOvirt&versions:&3.6System&versions&:&CentOS&Linux&release&7.2.1511&(Core)Kernel&versions&:3.10.0-327.4.4.el7.x86_64Memory:4GDownload&interlinkage:&http://plain.resources.ovirt.org/pub/yum-repo/ovirt-release36.rpmStart&install:Yum&update&-y&&&&yum&install&ovirt-engine&-y[root@ovirt-manager&~]#&engine-setup&[&INFO&&]&Stage:&Initializing[&INFO&&]&Stage:&Environment&setup&&&&&&&&&&Configuration&files:&[‘/etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf‘,&‘/etc/ovirt-engine-setup.conf.d/10-packaging.conf‘]&&&&&&&&&&Log&file:&/var/log/ovirt-engine/setup/ovirt-engine-setup-53-7mkxod.log&&&&&&&&&&Version:&otopi-1.4.0&(otopi-1.4.0-1.el7.centos)[&INFO&&]&Stage:&Environment&packages&setup[&INFO&&]&Yum&Downloading:&ovirt-3.6-epel/x86_64/metalink&(0%)[&INFO&&]&Stage:&Programs&detection[&INFO&&]&Stage:&Environment&setup[&INFO&&]&Stage:&Environment&customization&&&&&&&&&&&&&&&&&&&--==&PRODUCT&OPTIONS&==--&&&&&&&&&&&&&&&&&&&Configure&Engine&on&this&host&(Yes,&No)&[Yes]:&&&&&&&&&&&Configure&VM&Console&Proxy&on&this&host&(Yes,&No)&[Yes]:&&&&&&&&&&&Configure&WebSocket&Proxy&on&this&host&(Yes,&No)&[Yes]:&&&&&&&&&&&&&&&&&&&&--==&PACKAGES&==--&&&&&&&&&[&INFO&&]&Checking&for&product&updates...[&INFO&&]&No&product&updates&found&&&&&&&&&&&&&&&&&&&--==&ALL&IN&ONE&CONFIGURATION&==--&&&&&&&&&&&&&&&&&&&&&&&&&&&&--==&NETWORK&CONFIGURATION&==--&&&&&&&&&&&&&&&&&&&Host&fully&qualified&DNS&name&of&this&server&[ovirt-]:&&&&&&&&&&&Setup&can&automatically&configure&the&firewall&on&this&system.&&&&&&&&&&Note:&automatic&configuration&of&the&firewall&may&overwrite&current&settings.&&&&&&&&&&Do&you&want&Setup&to&configure&the&firewall?&(Yes,&No)&[Yes]:&[&INFO&&]&firewalld&will&be&configured&as&firewall&manager.&&&&&&&&&&&&&&&&&&&--==&DATABASE&CONFIGURATION&==--&&&&&&&&&&&&&&&&&&&Where&is&the&Engine&database&located?&(Local,&Remote)&[Local]:&&&&&&&&&&&Setup&can&configure&the&local&postgresql&server&automatically&for&the&engine&to&run.&This&may&conflict&with&existing&applications.&&&&&&&&&&Would&you&like&Setup&to&automatically&configure&postgresql&and&create&Engine&database,&or&prefer&to&perform&that&manually?&(Automatic,&Manual)&[Automatic]:&&&&&&&&&&&&&&&&&&&&--==&OVIRT&ENGINE&CONFIGURATION&==--&&&&&&&&&&&&&&&&&&&Application&mode&(Virt,&Gluster,&Both)&[Both]:&&&&&&&&&&&Engine&admin&password:&admin.123&&&&&&&&&&Confirm&engine&admin&password:&admin.123[WARNING]&Password&is&weak:&it&is&based&on&a&dictionary&word&&&&&&&&&&Use&weak&password?&(Yes,&No)&[No]:&Yes&&&&&&&&&&&&&&&&&&&--==&STORAGE&CONFIGURATION&==--&&&&&&&&&&&&&&&&&&&Default&SAN&wipe&after&delete&(Yes,&No)&[No]:&&&&&&&&&&&&&&&&&&&&--==&PKI&CONFIGURATION&==--&&&&&&&&&&&&&&&&&&&Organization&name&for&certificate&[]:&&&&&&&&&&&&&&&&&&&&--==&APACHE&CONFIGURATION&==--&&&&&&&&&&&&&&&&&&&Setup&can&configure&apache&to&use&SSL&using&a&certificate&issued&from&the&internal&CA.&&&&&&&&&&Do&you&wish&Setup&to&configure&that,&or&prefer&to&perform&that&manually?&(Automatic,&Manual)&[Automatic]:&&&&&&&&&&&Setup&can&configure&the&default&page&of&the&web&server&to&present&the&application&home&page.&This&may&conflict&with&existing&applications.&&&&&&&&&&Do&you&wish&to&set&the&application&as&the&default&page&of&the&web&server?&(Yes,&No)&[Yes]:&&&&&&&&&&&&&&&&&&&&--==&SYSTEM&CONFIGURATION&==--&&&&&&&&&&&&&&&&&&&Configure&an&NFS&share&on&this&server&to&be&used&as&an&ISO&Domain?&(Yes,&No)&[Yes]:&&&&&&&&&&&Local&ISO&domain&path&[/var/lib/exports/iso]:&&&&&&&&&&&&&&&&&&&&Please&provide&the&ACL&for&the&Local&ISO&domain.&&&&&&&&&&See&the&exports(5)&manpage&for&the&format.&&&&&&&&&&Examples:&&&&&&&&&&-&To&allow&access&for&host1,&host2&and&host3,&input:&host1(rw)&host2(rw)&host3(rw)&&&&&&&&&&-&To&allow&access&to&the&entire&Internet,&input:&*(rw)&&&&&&&&&&&&&&&&&&&For&more&information,&see:&http://www.ovirt.org/Troubleshooting_NFS_Storage_Issues&&&&&&&&&&&&&&&&&&&Local&ISO&domain&ACL:&*(rw)&&&&&&&&&&Local&ISO&domain&name&[ISO_DOMAIN]:&ovirtiso&&&&&&&&&&&&&&&&&&&--==&MISC&CONFIGURATION&==--&&&&&&&&&&&&&&&&&&&&&&&&&&&&--==&END&OF&CONFIGURATION&==--&&&&&&&&&[&INFO&&]&Stage:&Setup&validation[WARNING]&Cannot&validate&host&name&settings,&reason:&resolved&host&does&not&match&any&of&the&local&addresses[WARNING]&Less&than&16384MB&of&memory&is&available&&&&&&&&&&&&&&&&&&&--==&CONFIGURATION&PREVIEW&==--&&&&&&&&&&&&&&&&&&&Application&mode&&&&&&&&&&&&&&&&&&&&&&&&:&both&&&&&&&&&&Default&SAN&wipe&after&delete&&&&&&&&&&&:&False&&&&&&&&&&Firewall&manager&&&&&&&&&&&&&&&&&&&&&&&&:&firewalld&&&&&&&&&&Update&Firewall&&&&&&&&&&&&&&&&&&&&&&&&&:&True&&&&&&&&&&Host&FQDN&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&:&ovirt-&&&&&&&&&&Engine&database&secured&connection&&&&&&:&False&&&&&&&&&&Engine&database&host&&&&&&&&&&&&&&&&&&&&:&localhost&&&&&&&&&&Engine&database&user&name&&&&&&&&&&&&&&&:&engine&&&&&&&&&&Engine&database&name&&&&&&&&&&&&&&&&&&&&:&engine&&&&&&&&&&Engine&database&port&&&&&&&&&&&&&&&&&&&&:&5432&&&&&&&&&&Engine&database&host&name&validation&&&&:&False&&&&&&&&&&Engine&installation&&&&&&&&&&&&&&&&&&&&&:&True&&&&&&&&&&NFS&setup&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&:&True&&&&&&&&&&PKI&organization&&&&&&&&&&&&&&&&&&&&&&&&:&&&&&&&&&&&NFS&export&ACL&&&&&&&&&&&&&&&&&&&&&&&&&&:&*(rw)&&&&&&&&&&NFS&mount&point&&&&&&&&&&&&&&&&&&&&&&&&&:&/var/lib/exports/iso&&&&&&&&&&Configure&local&Engine&database&&&&&&&&&:&True&&&&&&&&&&Set&application&as&default&page&&&&&&&&&:&True&&&&&&&&&&Configure&Apache&SSL&&&&&&&&&&&&&&&&&&&&:&True&&&&&&&&&&Configure&VMConsole&Proxy&&&&&&&&&&&&&&&:&True&&&&&&&&&&Engine&Host&FQDN&&&&&&&&&&&&&&&&&&&&&&&&:&ovirt-&&&&&&&&&&Configure&WebSocket&Proxy&&&&&&&&&&&&&&&:&True&&&&&&&&&&&&&&&&&&&Please&confirm&installation&settings&(OK,&Cancel)&[OK]:&[&INFO&&]&Stage:&Transaction&setup[&INFO&&]&Stopping&engine&service[&INFO&&]&Stopping&ovirt-fence-kdump-listener&service[&INFO&&]&Stopping&websocket-proxy&service[&INFO&&]&Stage:&Misc&configuration[&INFO&&]&Stage:&Package&installation[&INFO&&]&Stage:&Misc&configuration[&INFO&&]&Initializing&PostgreSQL[&INFO&&]&Creating&PostgreSQL&‘engine‘&database[&INFO&&]&Configuring&PostgreSQL[&INFO&&]&Creating/refreshing&Engine&database&schema[&INFO&&]&Creating/refreshing&Engine&‘internal‘&domain&database&schema[&INFO&&]&Upgrading&CA[&INFO&&]&Creating&CA[&INFO&&]&Setting&up&ovirt-vmconsole&proxy&helper&PKI&artifacts[&INFO&&]&Setting&up&ovirt-vmconsole&SSH&PKI&artifacts[&INFO&&]&Configuring&WebSocket&Proxy[&INFO&&]&Generating&post&install&configuration&file&‘/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf‘[&INFO&&]&Stage:&Transaction&commit[&INFO&&]&Stage:&Closing&up[&INFO&&]&Restarting&nfs&services&&&&&&&&&&&&&&&&&&&--==&SUMMARY&==--&&&&&&&&&[WARNING]&Less&than&16384MB&of&memory&is&available&&&&&&&&&&SSH&fingerprint:&6d:9f:0c:65:13:0c:ee:9c:2e:d0:62:52:81:22:76:f7&&&&&&&&&&Internal&CA&95:26:D0:C0:8F:53:47:90:C1:E9:A2:11:30:6D:42:70:6D:1C:C6:51&&&&&&&&&&Note!&If&you&want&to&gather&statistical&information&you&can&install&Reports&and/or&DWH:&&&&&&&&&&&&&&http://www.ovirt.org/Ovirt_DWH&&&&&&&&&&&&&&http://www.ovirt.org/Ovirt_Reports&&&&&&&&&&Web&access&is&enabled&at:&&&&&&&&&&&&&&http://ovirt-:80/ovirt-engine&&&&&&&&&&&&&&https://ovirt-:443/ovirt-engine&&&&&&&&&&Please&use&the&user&‘admin@internal‘&and&password&specified&in&order&to&login&&&&&&&&&&&&&&&&&&&--==&END&OF&SUMMARY&==--&&&&&&&&&[&INFO&&]&Starting&engine&service[&INFO&&]&Restarting&httpd[&INFO&&]&Restarting&ovirt-vmconsole&proxy&service[&INFO&&]&Stage:&Clean&up&&&&&&&&&&Log&file&is&located&at&/var/log/ovirt-engine/setup/ovirt-engine-setup-53-7mkxod.log[&INFO&&]&Generating&answer&file&‘/var/lib/ovirt-engine/setup/answers/25-setup.conf‘[&INFO&&]&Stage:&Pre-termination[&INFO&&]&Stage:&Termination[&INFO&&]&Execution&of&setup&completed&successfully&Node-install&650) this.width=650;" width="554" height="412" src="/e/u261/themes/default/images/spacer.gif" style="background:url(&/e/u261/lang/zh-cn/images/localimage.png&) no-border:1px solid #" alt="spacer.gif" />&按tab键,删除quiet(否则将无法正常安装)最后回车650) this.width=650;" width="554" height="220" src="/e/u261/themes/default/images/spacer.gif" style="background:url(&/e/u261/lang/zh-cn/images/localimage.png&) no-border:1px solid #" alt="spacer.gif" />&&650) this.width=650;" width="554" height="348" src="/e/u261/themes/default/images/spacer.gif" style="background:url(&/e/u261/lang/zh-cn/images/localimage.png&) no-border:1px solid #" alt="spacer.gif" />&650) this.width=650;" width="554" height="309" src="/e/u261/themes/default/images/spacer.gif" style="background:url(&/e/u261/lang/zh-cn/images/localimage.png&) no-border:1px solid #" alt="spacer.gif" />&650) this.width=650;" width="554" height="312" src="/e/u261/themes/default/images/spacer.gif" style="background:url(&/e/u261/lang/zh-cn/images/localimage.png&) no-border:1px solid #" alt="spacer.gif" />&&650) this.width=650;" width="554" height="312" src="/e/u261/themes/default/images/spacer.gif" style="background:url(&/e/u261/lang/zh-cn/images/localimage.png&) no-border:1px solid #" alt="spacer.gif" />&&650) this.width=650;" width="478" height="399" src="/e/u261/themes/default/images/spacer.gif" style="background:url(&/e/u261/lang/zh-cn/images/localimage.png&) no-border:1px solid #" alt="spacer.gif" />&&650) this.width=650;" width="554" height="312" src="/e/u261/themes/default/images/spacer.gif" style="background:url(&/e/u261/lang/zh-cn/images/localimage.png&) no-border:1px solid #" alt="spacer.gif" />&&650) this.width=650;" width="554" height="260" src="/e/u261/themes/default/images/spacer.gif" style="background:url(&/e/u261/lang/zh-cn/images/localimage.png&) no-border:1px solid #" alt="spacer.gif" />&&650) this.width=650;" width="554" height="69" src="/e/u261/themes/default/images/spacer.gif" style="background:url(&/e/u261/lang/zh-cn/images/localimage.png&) no-border:1px solid #" alt="spacer.gif" />&密码:redhat&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&本文出自 “” 博客,转载请与作者联系!标签:原文:http://silencezone./1237
教程昨日排行
&&国之画&&&& &&&&&&
&& &&&&&&&&&&&&&&
鲁ICP备号-4
打开技术之扣,分享程序人生!ovirt-engine安装
1、更新系统
原来是centos4.5
#yum update
升级后到6.7版本。
[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.
1、更新系统
原来是centos4.5
#yum update
升级后到6.7版本。
[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.7 (Final)
2、新建用户
#adduser liuxiaoyan
#passwd liuxiaoyan
3、安装snapshot库(root用户)
[root@localhost ~]# yum -y install http://resources.ovirt.org/releases/ovirt-release/ovirt-release35.rpm
4、安装图形显示包(root用户)
[root@localhost ~]# yum -y install mailcap
5、安装第三方包(3rd party packages)(root用户)
[root@localhost ~]# yum install openssl m2crypto python-psycopg2 python-cheetah python-daemon libxml2-python unzip
应该是如果不成功再安装下面安装办法装。--nogpgcheck代表不检查签名。
# yum install python-daemon (--nogpgcheck)
6、安装jdk(root用户)
[root@localhost ~]# yum install -y java-1.7.0-openjdk-devel
7、安装git
[root@localhost ~]# yum install -y git
8、安装ovirt包
[root@localhost ~]# yum install wget
[root@localhost ~]# yum install ovirt-host-deploy
安装时遇到一个问题:
[root@localhost ~]# yum install -y ovirt-host-deploy
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* ovirt-3.5-epel: mirror01.idc.hinet.net
* ovirt-3.5-jpackage-6.0-generic: ftp.heanet.ie
* ovirt-3.5-pre: resources.ovirt.org
* updates:
Resolving Dependencies
--& Running transaction check
---& Package ovirt-host-deploy.noarch 0:1.3.2-1.el6 will be installed
--& Processing Dependency: otopi for package: ovirt-host-deploy-1.3.2-1.el6.noarch
--& Finished Dependency Resolution
Error: Package: ovirt-host-deploy-1.3.2-1.el6.noarch (ovirt-3.5-pre)
Requires: otopi
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
所以用--skip-broken跳过该问题。
[root@localhost ~]# yum install -y ovirt-host-deploy --skip-broken
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* ovirt-3.5-epel: mirror01.idc.hinet.net
* ovirt-3.5-jpackage-6.0-generic: ftp.heanet.ie
* ovirt-3.5-pre: resources.ovirt.org
* updates:
Resolving Dependencies
--& Running transaction check
---& Package ovirt-host-deploy.noarch 0:1.3.2-1.el6 will be installed
--& Processing Dependency: otopi for package: ovirt-host-deploy-1.3.2-1.el6.noarch
Packages skipped because of dependency problems:
ovirt-host-deploy-1.3.2-1.el6.noarch from ovirt-3.5-pre
跳过了这个问题。
[root@localhost ~]# yum install http://resources.ovirt.org/releases/ovirt-release/ovirt-release35-snapshot.rpm
9、安装maven (liuxiaoyan用户)
在https://maven.apache.org/download.cgi目录下载apache-maven-3.3.3-bin.tar.gz。
然后解压。
[liuxiaoyan@localhost ~]$ tar -xvf apache-maven-3.3.3-bin.tar.gz
[liuxiaoyan@localhost ~]$ export PATH=$HOME/apache-maven-3.3.3/bin:$PATH
[liuxiaoyan@localhost ~]$ mvn -version
Apache Maven 3.3.3 (4ec3e0dfe41d4a06; T07:57:37-04:00)
Maven home: /home/liuxiaoyan/apache-maven-3.3.3
Java version: 1.7.0_85, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-358.el6.x86_64", arch: "amd64", family: "unix"
Maven 自定义配置
[liuxiaoyan@localhost ~]$ mkdir ~/.m2
[liuxiaoyan@localhost ~]$ cat & ~/.m2/settings.xml &&"EOT"
&settings xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd"&
&!--**************************** PROFILES ****************************--&
&activeProfiles&
&activeProfile&oVirtEnvSettings&/activeProfile&
&/activeProfiles&
&profiles&
&id&oVirtEnvSettings&/id&
&properties&
&jbossHome&${env.JBOSS_HOME}&/jbossHome&
&JAVA_HOME&${env.JAVA_HOME}&/JAVA_HOME&
&/properties&
&/profile&
&/profiles&
&/settings&
10、安装jboss(root用户)
[root@localhost ~]# yum install jboss-as
下载非常慢,可到http://resources01.phx.ovirt.org/releases/stable/rpm/EL/6/x86_64/
然后安装:
[root@localhost ~]# ls
anaconda-ks.cfg
install.log
install.log.syslog
jboss-as-7.1.1-11.el6.x86_64.rpm
[root@localhost ~]# rpm -ivh jboss-as-7.1.1-11.el6.x86_64.rpm
Preparing...
########################################### [100%]
1:jboss-as
########################################### [100%]
[root@localhost ~]# /usr/share/jboss-as/bin/standalone.sh
设置环境变量
[root@localhost ~]# export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
[root@localhost ~]# export JBOSS_HOME=/usr/share/jboss-as
[root@localhost ~]# export PATH=$HOME/apache-maven-3.2.1/bin:$PATH
11、安装PostgreSQL DB (root用户)
[root@localhost ~]# yum install –y postgresql-server
初始化数据库
[root@localhost ~]# service postgresql initdb
Initializing database:
[root@localhost ~]# /etc/init.d/postgresql restart
Stopping postgresql service:
Starting postgresql service:
修改数据库连接
[root@localhost ~]# vi /var/lib/pgsql/data/pg_hba.conf
CIDR-ADDRESS
# "local" is for Unix domain socket connections only
# IPv4 local connections:
127.0.0.1/32
# IPv6 local connections:
做如下修改:【ps:如果后期有问题,可将ident,password,password都修改为trust】
CIDR-ADDRESS
# "local" is for Unix domain socket connections only
# IPv4 local connections:
127.0.0.1/32
# IPv6 local connections:
重启:# /etc/init.d/postgresql restart
如果重启失败解决方案可参考:
创建数据库
[root@localhost data]# su - postgres -c "psql -d template1 -c \"create user engine password 'engine';\""
CREATE ROLE
[root@localhost data]# su - postgres -c "psql -d template1 -c \"create database engine owner engine template template0 encoding 'UTF8' lc_collate 'en_US.UTF-8' lc_ctype 'en_US.UTF-8';\""
CREATE DATABASE
12、下载ovirt engine代码
$ git clone https:///oVirt/ovirt-engine.git
13、编译(必须在ovirt-engine目录下)
make install-dev PREFIX="$HOME/ovirt-engine"
$ $HOME/ovirt-engine/bin/engine-setup
15、启动服务
$HOME/ovirt-engine/share/ovirt-engine/services/ovirt-engine/ovirt-engine.py start
1、编译过程排错
编译报错如下
Building locales requires more than 10240 available file descriptors, currently 1024
Refer to README.developer for further instructions
解决办法:
查看README.developer中
$ vi README.developer
有如下一段话;
Build locales requires at least 10240 file descriptors, create the
following file, replace &user& with user that is used for building,
and logout/login:
/etc/security/limits.d/10-nofile.conf
&user& hard nofile 10240
#&user& soft nofile 10240
# optional, to apply automatically
If soft limit was not set, before building, apply new limit using:
$ ulimit -n 10240
POSTGRESQL ACCESSIBILITY
普通用户执行ulimit –n 10240会报错:-bash: ulimit: open files: cannot modify limit: Operation not permitted
所以使用Root su到普通用户再执行ulimit -n 10240,这会使得仅仅在某个会话中生效,在该会话中编译通过。
如果还是不能解决问题参考README.developer中的提示。
make[2]: mvn: Command not found
make[2]: *** [maven] Error 127
解决办法:
[liuxiaoyan@localhost ~]$ export PATH=$HOME/apache-maven-3.3.3/bin:$PATH
再执行mvn -version能显示版本信息即oK。
编译过程中下载maven-ear-plugin-2.8.pom包一个下载不下来,然后就再次尝试下载。。。编译过不去,信息如下
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-ear-plugin/2.8/maven-ear-plugin-2.8.pom
Aug 31, :09 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request to {}-&http://repo1.maven.org:80: Connection timed out
Aug 31, :09 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request to {}-&http://repo1.maven.org:80
Aug 31, :14 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request to {}-&http://repo1.maven.org:80: Connection timed out
Aug 31, :14 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request to {}-&http://repo1.maven.org:80
下载好安装在目录:
.m2/repository/org/apache/maven/plugins/maven-ear-plugin/2.8/maven-ear-plugin-2.8.pom中,所以可以拷贝一份扔进去。
现在下载了一部分时目录是这样的:
[liuxiaoyan@localhost 2.8]$ ls
maven-ear-plugin-2.8.pom.part
maven-ear-plugin-2.8.pom.part.lock
拷贝这些文件:
[liuxiaoyan@localhost 2.8]$ ls
maven-ear-plugin-2.8.jar
maven-ear-plugin-2.8.jar.sha1
maven-ear-plugin-2.8.pom
maven-ear-plugin-2.8.pom.sha1
_remote.repositories
重新编译OK。
2、SetUP过程排错
[liuxiaoyan@localhost bin]$ ./engine-setup
./engine-setup: line 81: /usr/sbin/otopi: No such file or directory
解决方法:
拷贝一个otopi文件即可(长久考虑,有可能是因为没装otopi这个包,安装即可)。
[liuxiaoyan@localhost bin]$ ./engine-setup
/usr/bin/python: No module named otopi
解决方法:
[root@localhost ~]# yum -y install otopi
[liuxiaoyan@localhost bin]$ ./engine-setup
***L:ERROR Internal error: No module named psycopg2
解决方法:
[root@localhost ~]# yum -y install python-psycopg2
[ ERROR ] Host name is not valid: Command 'dig' is required but missing
Host fully qualified DNS name of this server [localhost.localdomain]: 10.1.101.51
[ ERROR ] Host name is not valid: 10.1.101.51 is an IP address and not a FQDN. A FQDN is needed to be able to generate certificates correctly.
Host fully qualified DNS name of this server [localhost.localdomain]:
解决方法:
在/etc/hosts中绑定IP和名字,如下:
10.1.101.119 engine //这里的engine是hostname
[ ERROR ] Host name is not valid: Command 'dig' is required but missing
Host fully qualified DNS name of this server [engine]: engine
解决办法:
# yum -y install bind-utils
[ ERROR ] Cannot connect to Engine database: Cannot connect to database: could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432? could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
解决办法:
Root用户执行:
[root@engine ~]# /etc/init.d/postgresql restart
Stopping postgresql service:
Starting postgresql service:
[ ERROR ] Cannot connect to Engine database: Cannot connect to database: FATAL:
password authentication failed for user "engine" FATAL:
password authentication failed for user "engine"
解决方法:
/var/lib/pgsql/data/pg_hba.conf
中的密码为trust即可。
在编译目录ovirt-engine/etc/ovirt-engine/engine.conf.d中有一个README
vi /home/liuxiaoyan/ovirt-engine/share/ovirt-engine/services/ovirt-engine/ovirt-engine.conf
可能是相关配置文件。
3、start过程排错
……/ovirt-engine.py start访问报错:
解决办法:
Root用户关闭防火墙即可。
[root@engine ~]# /etc/init.d/iptables stop
iptables: Setting chains to policy ACCEPT: filter
iptables: Flushing firewall rules:
iptables: Unloading modules:
界面样式错乱
解决方法:
有些rpm包没有安装。
最主要的是一个patternfly1的包没有装。
通过# yum -y install patternfly1安装即可。
如果不行将所有未安装的包都安装一遍,具体参考项目目录下的README.developer。
安装pyflakes-0.4.0-2.el6.noarch
从下面地址下载pyflakes-0.4.0-2.el6.noarch
http://cbs.centos.org/koji/buildinfo?buildID=753
[liuxiaoyan@engine ovirt-engine]$ $HOME/ovirt-engine/share/ovirt-engine/services/ovirt-engine/ovirt-engine.py start
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ovirt-engine[22588] ERROR run:532 Error: process terminated with status code -6
解决办法:
有进程在用8080端口,kill掉即可。
使用ps –a或者netstat命令。
解决办法:
root用户执行:/usr/share/jboss-as/bin/standalone.sh启动jboss服务即可。
登录时用户名密码验证失败,删掉数据库,重新建一遍
解决办法:
删除数据库engine然后重新创建。
【如果数据库正在被使用就无法删除,此时在root用户下用命令:ps aux|grep engine然后kill掉】
su - postgres -c "psql -d template1 -c \"d\""
su - postgres -c "psql -d template1 -c \"create database engine owner engine template template0 encoding 'UTF8' lc_collate 'en_US.UTF-8' lc_ctype 'en_US.UTF-8';\""
如果出现服务器的连接不上的情况,可能是端口被占用了。
解决办法:
找到8080端口,kill掉进程,然后重新start即可。
本文作者,因知识本身在变化,作者也在不断学习成长,文章内容也不定时更新,为避免误导读者,方便追根溯源,请诸位转载注明出处:有问题欢迎与我讨论,共同进步。
版权声明:本文内容由互联网用户自发贡献,本社区不拥有所有权,也不承担相关法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件至: 进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容。
用云栖社区APP,舒服~
【云栖快讯】2017互联网超级工程阿里双11完美落幕,交易额突破1682亿,但阿里工程师如何玩转“超级工程”,背后黑科技又是如何?12月13-14日,12位大咖直播分享揭秘1682亿背后技术实践,马上预约&&
为您提供简单高效、处理能力可弹性伸缩的计算服务,帮助您快速构建更稳定、安全的应用,提升运维效率,降低 IT 成本...
RDS是一种稳定可靠、可弹性伸缩的在线数据库服务。支持MySQL、SQL Server、PostgreSQL、高...
社区之星年度评选,投票可抽奖
Loading...}

我要回帖

更多关于 python mongoengine 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信