You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As in the description the charm is silently failing in the logs as it does not care about installing Ubuntu Security Guide package (usg)
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: Sleeping for 314s to randomize the cis-audit start time
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: Run cis-audit: ['/usr/sbin/usg', 'audit']
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: Traceback (most recent call last):
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: File "/usr/local/lib/nagios/plugins/cron_cis_audit.py", line 216, in <module>
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: main()
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: File "/usr/local/lib/nagios/plugins/cron_cis_audit.py", line 210, in main
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: run_audit(profile)
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: File "/usr/local/lib/nagios/plugins/cron_cis_audit.py", line 128, in run_audit
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: subprocess.run(
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: File "/usr/lib/python3.10/subprocess.py", line 503, in run
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: with Popen(*popenargs, **kwargs) as process:
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: self._execute_child(args, executable, preexec_fn, close_fds,
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: raise child_exception_type(errno_num, err_msg, err_filename)
Dec 11 12:15:15 compute-std-22 cron_cis_audit[1070983]: FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/usg'
That would require two additional steps:
sudo pro enable usg
sudo apt install usg
While the first can be realized by ubuntu-advantage charm option (services)
The other should would be nice to be handled by the charm
Also there could be realized by relation of the charm to ubuntu-advantage charm and setting appriopriate repo usg to be implicitly enabled.
The text was updated successfully, but these errors were encountered:
As in the description the charm is silently failing in the logs as it does not care about installing Ubuntu Security Guide package (usg)
That would require two additional steps:
sudo pro enable usg
sudo apt install usg
While the first can be realized by ubuntu-advantage charm option (services)
The other should would be nice to be handled by the charm
Also there could be realized by relation of the charm to ubuntu-advantage charm and setting appriopriate repo
usg
to be implicitly enabled.The text was updated successfully, but these errors were encountered: