Channel removal using `Spacewalk-remove-channel` command fails with "OSError: [Errno 17] File exists: '/var/satellite/redhat/NULL/e6e'" on Red Hat Satellite.
Environment
- Red Hat Satellite 5.x
- Channel deletion using
spacewalk-remove-channel
Issue
- Channel deletion using
Spacewalk-remove-channelfails with below traceback:
[root@Satellite pub]# /usr/bin/spacewalk-remove-channel -v -c rhel-i386-es-4-extras
2014/07/08 10:58:47 +02:00 rhnSQL/driver_cx_Oracle.connect('Connecting to database', '//localhost:1521/rhnsat.world')
Deleting package metadata (570):
________________________________________
Removing: ######################################## - complete
ERROR: unhandled exception occurred: ([Errno 17] File exists: '/var/satellite/redhat/NULL/e6e').
Traceback (most recent call last):
File "/usr/bin/spacewalk-remove-channel", line 553, in ?
sys.exit(main() or 0)
File "/usr/bin/spacewalk-remove-channel", line 149, in main
skip_channels=options.skip_channels)
File "/usr/bin/spacewalk-remove-channel", line 301, in delete_channels
_delete_files(rpms_paths + srpms_paths)
File "/usr/bin/spacewalk-remove-channel", line 513, in _delete_files
unlink_package_file(path)
File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnPackage.py", line 117, in unlink_package_file
os.rmdir(dirname)
OSError: [Errno 17] File exists: '/var/satellite/redhat/NULL/e6e'
Resolution
- Move the
/var/satellitefilesystem to a supported ext3 filesystem.
Root Cause
/var/satellitefilesystem was mounted onvxfs(Veritas ) filesystem, it is not supported.- The
vxfsis shipped and supported by Veritas. Please contact the filesystem vendor for assistance with non-Red Hat tools and filesystems. Please refer Production Support Scope of Coverage for more details.
Diagnostic Steps
- From spacewalk-debug:
# cat diskinfo
Filesystem Size Used Avail Use% Mounted on
[...]
/dev/vx/dsk/rhns_dg/rhns_vol
300G 266G 33G 90% /var/satellite
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
