Error running the config_sdn.py script with date/time/NTP option
Symptom
You run the post install configuration script
with the option to change the date and time or NTP server (python
config_sdn.py –d
) and after entering the new date and time
or NTP server information, the script will try to access the file /etc/net.conf
but
the script fails and you see a file permission denied error message.
Cause
Making changes to the date and time or NTP server
information using the GUI will change the permission of the file /etc/net.conf
.
After that, using the post install script to
change date and time or NTP server information (python config_sdn.py
–d
) will fail because the script will try to access the /etc/net.conf
file
which has had the permission changed.
Action
Once you use the controller GUI to change date and time or NTP server, continue to make any subsequent changes to date and time or NTP server using the GUI rather than the script.
Or you can reset the permissions on the /etc/ntp.conf
file
with the command: sudo chmod 644 ntp.conf
.