ovirt向ISO存儲域上傳ISO鏡像文件故障處理

[ [email protected] ~]# 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 [email protected] 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

採用直接掛載方式
[ [email protected] ~]# /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服務
[ [email protected] ~ ]# systemctl -a |grep rpcbind
  rpcbind.service                                                                                  loaded    inactive dead      RPC bind service
  rpcbind.socket                                                                                   loaded    inactive dead      RPCbind Server Activation Socket
  rpcbind.target                                                                 
服務未啓動
[ [email protected] tmpzarr3J]# systemctl start rpcbind.service
[ [email protected] tmpzarr3J]# systemctl -a |grep rpcbind
  rpcbind.service                                                                                  loaded    active   running   RPC bind service
  rpcbind.socket                                                                                   loaded    active   running   RPCbind Server Activation Socket
  rpcbind.target                                       
[ [email protected] ~]# /bin/mount -t nfs -o rw,sync,soft 192.168.166.109:/iso /tmp/tmpKawOfF
nfs可以掛載成功
[ [email protected] 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 [email protected] 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()

[ [email protected] tmp]# ovirt-iso-uploader --iso-domain=isoG upload /tmp/CentOS-6.6-x86_64-minimal.iso
Please provide the REST API password for the [email protected] 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
[ [email protected] tmp]#
成功上傳.