Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NTP configuration #15

Closed
ibenrodriguez opened this issue Mar 7, 2015 · 1 comment
Closed

NTP configuration #15

ibenrodriguez opened this issue Mar 7, 2015 · 1 comment

Comments

@ibenrodriguez
Copy link

NTP service needs to be configured AND started as part of any setup.

Right now we're getting an error as follows:

2015-03-06 15:33:27,535 [salt.loaded.int.module.cmdmod][ERROR ] Command ['service', 'ntp', 'status'] failed with return code: 3
2015-03-06 15:33:27,535 [salt.loaded.int.module.cmdmod][ERROR ] output: * NTP server is not running

@ionutbalutoiu
Copy link
Contributor

2015-03-13 10:23:29,509 [salt.loaded.int.module.cmdmod][INFO    ] Executing command ['service', 'ntp', 'status'] in directory '/root'
2015-03-13 10:23:29,539 [salt.loaded.int.module.cmdmod][ERROR   ] Command ['service', 'ntp', 'status'] failed with return code: 3
2015-03-13 10:23:29,539 [salt.loaded.int.module.cmdmod][ERROR   ] output:  * NTP server is not running
2015-03-13 10:23:29,540 [salt.loaded.int.module.cmdmod][INFO    ] Executing command ['service', 'ntp', 'start'] in directory '/root'
2015-03-13 10:23:29,571 [salt.loaded.int.module.cmdmod][DEBUG   ] output:  * Starting NTP server ntpd
2015-03-13 10:23:29,578 [salt.state       ][INFO    ] Service ntp is already enabled, and is running
2015-03-13 10:23:29,578 [salt.state       ][INFO    ] Completed state [ntp] at time 10:23:29.578196

Just tested this. This is not an issue and NTP is configured properly. Above there is a part from minion's log when the ntp state is executed.

The error comes up when it does the ntp service.running checking (see here).

It checks if the service it's already running and if not, it will be started, thus bringing it to the running state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants