oVirt 3.4.3-1 的glusterfs volume管理接口可能有点问题, 不能直接通过oVirt engine来添加glusterfs volume.
目前建议手工管理glusterfs volume, 然后直接在Storage中新建glusterfs 的 domain.
on 172.16.3.150 and 172.16.3.40 exec # yum install glusterfs{,-server,-fuse,-geo-replication}
on 172.16.3.150 and 172.16.3.40 exec # chkconfig glusterd on
on 172.16.3.150 and 172.16.3.40 exec # glusterd
on 172.16.3.150 and 172.16.3.40 exec # mkdir -p /data02/gfs2
on 172.16.3.150 exec # gluster peer probe 172.16.3.40
然后使用ovirt-engine管理平台添加volume.
报错 :
错误日志如下 :
[root@176 ovirt-engine]# cd /var/log/ovirt-engine
[root@176 ovirt-engine]# less engine.log
2014-08-06 11:55:17,956 ERROR [org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeCommand] (ajp--127.0.0.1-8702-6) [dfc3063] Command org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeCommand throw Vdc Bll exception. With error message VdcBLLException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: org.apache.xmlrpc.XmlRpcException: <type 'exceptions.Exception'>:method "glusterVolumeCreate" is not supported (Failed with error VDS_NETWORK_ERROR and code 5022)
2014-08-06 11:55:17,960 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp--127.0.0.1-8702-6) [dfc3063] Correlation ID: dfc3063, Job ID: 66227433-dffd-49ed-a30b-03254eda5ca8, Call Stack: null, Custom Event ID: -1, Message: Creation of Gluster Volume gfs2 failed.
2014-08-06 11:55:17,963 INFO [org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeCommand] (ajp--127.0.0.1-8702-6) [dfc3063] Lock freed to object EngineLock [exclusiveLocks= key: 00000001-0001-0001-0001-00000000015d value: GLUSTER
, sharedLocks= ]
2014-08-06 11:55:21,967 INFO [org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand] (DefaultQuartzScheduler_Worker-47) [db14d82] START, GlusterVolumesListVDSCommand(HostName = 150, HostId = 44379bb8-e87b-4e00-a18e-5df43922da82), log id: 69aacb0a
2014-08-06 11:55:21,974 ERROR [org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand] (DefaultQuartzScheduler_Worker-47) [db14d82] Command GlusterVolumesListVDSCommand(HostName = 150, HostId = 44379bb8-e87b-4e00-a18e-5df43922da82) execution failed. Exception: VDSNetworkException: org.apache.xmlrpc.XmlRpcException: <type 'exceptions.Exception'>:method "glusterVolumesList" is not supported
2014-08-06 11:55:21,975 INFO [org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand] (DefaultQuartzScheduler_Worker-47) [db14d82] FINISH, GlusterVolumesListVDSCommand, log id: 69aacb0a
2014-08-06 11:55:21,976 ERROR [org.ovirt.engine.core.bll.gluster.GlusterSyncJob] (DefaultQuartzScheduler_Worker-47) [db14d82] Error while refreshing Gluster lightweight data of cluster Default!: org.ovirt.engine.core.common.errors.VdcBLLException: VdcBLLException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: org.apache.xmlrpc.XmlRpcException: <type 'exceptions.Exception'>:method "glusterVolumesList" is not supported (Failed with error VDS_NETWORK_ERROR and code 5022)
at org.ovirt.engine.core.bll.VdsHandler.handleVdsResult(VdsHandler.java:116) [bll.jar:]
at org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.RunVdsCommand(VDSBrokerFrontendImpl.java:33) [bll.jar:]
at org.ovirt.engine.core.bll.gluster.GlusterJob.runVdsCommand(GlusterJob.java:65) [bll.jar:]
at org.ovirt.engine.core.bll.gluster.GlusterSyncJob.fetchVolumes(GlusterSyncJob.java:406) [bll.jar:]
at org.ovirt.engine.core.bll.gluster.GlusterSyncJob.fetchVolumes(GlusterSyncJob.java:392) [bll.jar:]
at org.ovirt.engine.core.bll.gluster.GlusterSyncJob.refreshVolumeData(GlusterSyncJob.java:363) [bll.jar:]
at org.ovirt.engine.core.bll.gluster.GlusterSyncJob.refreshClusterData(GlusterSyncJob.java:107) [bll.jar:]
at org.ovirt.engine.core.bll.gluster.GlusterSyncJob.refreshLightWeightData(GlusterSyncJob.java:86) [bll.jar:]
at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) [:1.7.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_65]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]
at org.ovirt.engine.core.utils.timer.JobWrapper.execute(JobWrapper.java:60) [scheduler.jar:]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz.jar:]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz.jar:]
时间: 2024-11-02 13:46:48