oracle / vagrant-projects

Vagrant projects for Oracle products and other examples
Universal Permissive License v1.0
930 stars 474 forks source link

OLCNE: Errors in /var/log/messages after system initlization #421

Closed hussam-qasem closed 2 years ago

hussam-qasem commented 2 years ago

Describe the issue

  1. Numerous error logs are printed in /var/log/messages after system initialization (details below)
  2. Run the provisioning script as non-root (user Vagrant) to match the instructions laid our in the Getting Started guide.
  3. Change the ssh LogLevel to FATAL (instead of QUIET) which can mask genuine connectivity errors.

Environment (please complete the following information):

Additional information

sudo systemctl daemon-reload sudo systemctl restart kubelet


---
* On Kubernetes **Master** & **Worker** Nodes. AVC denial on iptables. Error:

audit: type=1400 avc: denied { ioctl } for comm="iptables" path="/sys/fs/cgroup" dev="tmpfs"

To fix:
```Shell
echo '(allow iptables_t cgroup_t (dir (ioctl)))' > /tmp/local_iptables.cil
sudo semodule -i /tmp/local_iptables.cil
rm -f /tmp/local_iptables.cil


I'll submit a PR shortly to add the fixes above in the fixups() function of the provisioning script.

hussam-qasem commented 2 years ago

Thank you @rafabene @scoter-oracle