Bug #6529
closedCan't delete example NCF technique
Description
I just tried to delete the "motd" technique, but got the following error message:
An Error occured! Unknown internal error during technique deletion
Details: Cause: [Errno 2] No such file or directory: '/var/rudder/configuration-repository/ncf/50_techniques/motd' Traceback (most recent call last): File "/usr/share/ncf/api/ncf_api_flask_app/views.py", line 148, in delete_technique ncf.delete_technique(bundle_name,path) File "/usr/share/ncf/tools/ncf.py", line 534, in delete_technique shutil.rmtree(filename) File "/usr/lib64/python2.6/shutil.py", line 204, in rmtree onerror(os.listdir, path, sys.exc_info()) File "/usr/lib64/python2.6/shutil.py", line 202, in rmtree names = os.listdir(path) OSError: [Errno 2] No such file or directory: '/var/rudder/configuration-repository/ncf/50_techniques/motd'
File isn't there:
ls: cannot access /var/rudder/configuration-repository/ncf/50_techniques/motd: No such file or directory
as far as I get it this is a race?
This one is still there:
/var/rudder/ncf/common/50_techniques/motd
Any ideas?
I hope it's one of the easy problems for once :)
Versions # rpm -aq | grep -e ncf -e rudder
rudder-reports-2.11.7.release-1.SLES.11
rudder-agent-2.11.7.release-1.SLES.11
rudder-jetty-2.11.7.release-1.SLES.11
rudder-techniques-2.11.7.release-1.SLES.11
rudder-webapp-2.11.7.release-1.SLES.11
rudder-server-root-2.11.7.release-1.SLES.11
ncf-0.201503241748-1.SLES.11
rudder-inventory-ldap-2.11.7.release-1.SLES.11
rudder-inventory-endpoint-2.11.7.release-1.SLES.11
rudder-plugin-external-node-information-2.11.4-1
ncf-api-virtualenv-2.11.9.release-1.SLES.11
Oh, yes now that you think about the ncf version - rudder version mismatch...
Yes only ncf was updated due to being update-hungover :)