[root@192-168-166-220 ~]# ovirt-iso-uploader -v --iso-domain=isoG upload /tmp/CentOS-7.0-1406-x86_64-Minimal.iso
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort):
DEBUG: API Vendor(ovirt.org) API Version(4.0.0)
DEBUG: id=c973f0ac-c94c-408f-b130-649eb8083970 address=192.168.166.109 path=/iso
Uploading, please wait...
DEBUG: local NFS mount point is /tmp/tmpKawOfF
DEBUG: NFS mount command (/bin/mount -t nfs -o rw,sync,soft 192.168.166.109:/iso /tmp/tmpKawOfF)
DEBUG: /bin/mount -t nfs -o rw,sync,soft 192.168.166.109:/iso /tmp/tmpKawOfF
DEBUG: _cmds(['/bin/mount', '-t', 'nfs', '-o', 'rw,sync,soft', '192.168.166.109:/iso', '/tmp/tmpKawOfF'])
DEBUG: returncode(32)
DEBUG: STDOUT()
DEBUG: STDERR(Job for rpc-statd.service failed because the control process exited with error code. See "systemctl status rpc-statd.service" and "journalctl -xe" for details.
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified
)
ERROR: Job for rpc-statd.service failed because the control process exited with error code. See "systemctl status rpc-statd.service" and "journalctl -xe" for details.
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified
DEBUG: /bin/umount -t nfs -f /tmp/tmpKawOfF
DEBUG: /bin/umount -t nfs -f /tmp/tmpKawOfF
DEBUG: _cmds(['/bin/umount', '-t', 'nfs', '-f', '/tmp/tmpKawOfF'])
DEBUG: returncode(32)
DEBUG: STDOUT()
DEBUG: STDERR(umount: /tmp/tmpKawOfF: not mounted
)
DEBUG: umount: /tmp/tmpKawOfF: not mounted
采用直接挂载方式
[root@192-168-166-220 ~]# /bin/mount -t nfs -o rw,sync,soft 192.168.166.109:/iso /tmp/tmpKawOfF
Job for rpc-statd.service failed because the control process exited with error code. See "systemctl status rpc-statd.service" and "journalctl -xe" for details.
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified
排除防火墙原因,查看rpcbind服务
[root@192-168-166-220 ~ ]# systemctl -a |grep rpcbind
rpcbind.service loaded inactive dead RPC bind service
rpcbind.socket loaded inactive dead RPCbind Server Activation Socket
rpcbind.target
服务未启动
[root@192-168-166-220 tmpzarr3J]# systemctl start rpcbind.service
[root@192-168-166-220 tmpzarr3J]# systemctl -a |grep rpcbind
rpcbind.service loaded active running RPC bind service
rpcbind.socket loaded active running RPCbind Server Activation Socket
rpcbind.target
[root@192-168-166-220 ~]# /bin/mount -t nfs -o rw,sync,soft 192.168.166.109:/iso /tmp/tmpKawOfF
nfs可以挂载成功
[root@192-168-166-220 tmp]# ovirt-iso-uploader -v --iso-domain=isoG upload /tmp/CentOS-7.0-1406-x86_64-Minimal.iso
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort):
DEBUG: API Vendor(ovirt.org) API Version(4.0.0)
DEBUG: id=c973f0ac-c94c-408f-b130-649eb8083970 address=192.168.166.109 path=/iso
Uploading, please wait...
DEBUG: local NFS mount point is /tmp/tmp6gTdwg
DEBUG: NFS mount command (/bin/mount -t nfs -o rw,sync,soft 192.168.166.109:/iso /tmp/tmp6gTdwg)
DEBUG: /bin/mount -t nfs -o rw,sync,soft 192.168.166.109:/iso /tmp/tmp6gTdwg
DEBUG: _cmds(['/bin/mount', '-t', 'nfs', '-o', 'rw,sync,soft', '192.168.166.109:/iso', '/tmp/tmp6gTdwg'])
DEBUG: returncode(0)
DEBUG: STDOUT()
DEBUG: STDERR()
INFO: Start uploading /tmp/CentOS-7.0-1406-x86_64-Minimal.iso
DEBUG: Size of /tmp/CentOS-7.0-1406-x86_64-Minimal.iso: 593494016 bytes 579584.0 1K-blocks 566.0 MB
DEBUG: Available space in /tmp/tmp6gTdwg/c973f0ac-c94c-408f-b130-649eb8083970/images/11111111-1111-1111-1111-111111111111: 146041470976 bytes 142618624.0 1K-blocks 139276.0 MB
DEBUG: euid(0) egid(0)
Uploading: [########################################] 100%
DEBUG: euid(0) egid(0)
DEBUG: Renaming /tmp/tmp6gTdwg/c973f0ac-c94c-408f-b130-649eb8083970/images/11111111-1111-1111-1111-111111111111/.CentOS-7.0-1406-x86_64-Minimal.iso to /tmp/tmp6gTdwg/c973f0ac-c94c-408f-b130-649eb8083970/images/11111111-1111-1111-1111-111111111111/CentOS-7.0-1406-x86_64-Minimal.iso
INFO: /tmp/CentOS-7.0-1406-x86_64-Minimal.iso uploaded successfully
DEBUG: /bin/umount -t nfs -f /tmp/tmp6gTdwg
DEBUG: /bin/umount -t nfs -f /tmp/tmp6gTdwg
DEBUG: _cmds(['/bin/umount', '-t', 'nfs', '-f', '/tmp/tmp6gTdwg'])
DEBUG: returncode(0)
DEBUG: STDOUT()
DEBUG: STDERR()
[root@192-168-166-220 tmp]# ovirt-iso-uploader --iso-domain=isoG upload /tmp/CentOS-6.6-x86_64-minimal.iso
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort):
Uploading, please wait...
INFO: Start uploading /tmp/CentOS-6.6-x86_64-minimal.iso
Uploading: [########################################] 100%
INFO: /tmp/CentOS-6.6-x86_64-minimal.iso uploaded successfully
[root@192-168-166-220 tmp]#
成功上传.