createrepo failed with OSError: [Errno 26] Text file busy: '/repo/rhel-s390x-server-5/getPackage/repodata/locktest'

Solution Unverified - Updated -

Issue

When createrepo is executed on Netapp CIFS share, it failed with the following error.

# createrepo -v -C --update /repo/rhel-s390x-server-5/getPackage
Traceback (most recent call last):
  File "/usr/share/createrepo/genpkgmetadata.py", line 291, in <module>
    main(sys.argv[1:])
  File "/usr/share/createrepo/genpkgmetadata.py", line 254, in main
    callback=MDCallBack())
  File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 176, in __init__
    self._test_setup_dirs()
  File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 233, in _test_setup_dirs
    os.unlink(direc + '/locktest')
OSError: [Errno 26] Text file busy: '/repo/rhel-s390x-server-5/getPackage/repodata/locktest'

Environment

Red Hat Enterprise Linux 6
Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.