calicoctl node checksystem

This section describes the calicoctl node checksystem command.

Read the calicoctl Overview for a full list of calicoctl commands.

Displaying the help text for ‘calicoctl node checksystem’ command

Run calicoctl node checksystem --help to display the following help menu for the command.

  1. Usage:
  2. calicoctl node checksystem [--kernel-config=<kernel-config>]
  3. Options:
  4. -h --help Show this screen.
  5. -f --kernel-config=<kernel-config> Override the Kernel config file location.
  6. Expected format is plain text.
  7. default search locations:
  8. "/usr/src/linux/.config",
  9. "/boot/config-kernelVersion,
  10. "/usr/src/linux-kernelVersion/.config",
  11. "/usr/src/linux-headers-kernelVersion/.config",
  12. "/lib/modules/kernelVersion/build/.config"
  13. Description:
  14. Check the compatibility of this compute host to run a Calico node instance.

Procedure

These are the steps that calicoctl takes in order to pinpoint what modules are available in your system.

  1. calicoctl checks the kernel version.
  2. By executing lsmod it tries to find out what modules are enabled.
  3. Modules without a match in step 2 will be checked against /lib/modules/<YOUR_KERNEL_VERSION>/modules.dep file.
  4. Modules without a match in step 2 & 3 will be checked against /lib/modules/<YOUR_KERNEL_VERSION>/modules.builtin file.
  5. Modules without a match in previous steps will be tested against kernelconfig file /usr/src/linux/.config.
  6. Any remaining module will be tested against loaded iptables modules in /proc/net/ip_tables_matches.

Examples

  1. calicoctl node checksystem

An example response follows.

  1. xt_conntrack OK
  2. xt_u32 OK
  3. WARNING: Unable to detect the xt_set module. Load with `modprobe xt_set`
  4. WARNING: Unable to detect the ipip module. Load with `modprobe ipip`

It is possible to override the kernel-config file using --kernel-config argument. In this case calicoctl will try to resolve the modules against the provided file and skip the default locations.

  1. calicoctl node checksystem --kernel-config /root/MYKERNELFILE