Hide Forgot
Description of problem: ccs gives an unhelpful error when passing a directory to '-f' Version-Release number of selected component (if applicable): ccs-0.18.7-1.fc15.i686 How reproducible: Always Steps to Reproduce: 1. Create directory 'test' 2. ccs -f test createcluster 3. Error Actual results: Traceback (most recent call last): File "/usr/sbin/ccs", line 1820, in <module> main(sys.argv[1:]) File "/usr/sbin/ccs", line 224, in main if (createcluster): create_cluster(clustername) File "/usr/sbin/ccs", line 689, in create_cluster set_cluster_conf(xml, False) File "/usr/sbin/ccs", line 1659, in set_cluster_conf f = open(filename, 'w') IOError: [Errno 21] Is a directory: 'test' Expected results: Error: '-f' requires a filename, not a directory
Replicated: [root@amoco-01 ~]# ccs -f /tmp --createcluster test Traceback (most recent call last): File "/usr/sbin/ccs", line 2144, in <module> main(sys.argv[1:]) File "/usr/sbin/ccs", line 256, in main if (createcluster): create_cluster(clustername) File "/usr/sbin/ccs", line 786, in create_cluster set_cluster_conf(xml, False) File "/usr/sbin/ccs", line 1970, in set_cluster_conf f = open(filename, 'w') IOError: [Errno 21] Is a directory: '/tmp' With Fix: [cfeist@gold ccs]$ ./ccs -i -f /tmp --createcluster test Error: Unable to write file: '/tmp', Is a directory Commit: https://github.com/feist/ccs/commit/b4b658ee8bb35a08ad9973fb08086532fb98f286
Using ricci-0.16.2-48.el6: [root@ask-04 tmp]# ccs -f /tmp/ --createcluster test Error: Unable to write file: '/tmp/', Is a directory
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: No Documentation Needed.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0898.html