Causes and remedies for the error codes of firewall objects, rules, quotas, modes and profiles.
error.firewall.validation
Text in the console
The firewall change is not valid: {issue} at {object} ({count} problems in total).
Meaning for API clients
The firewall change adds validation errors (issue is the net.validation.fw_* key of the first, object its path, count how many); the message lists them all.
Cause. The change would leave the firewall configuration with one or more validation errors, so nothing was saved. issue is the key of the first error, object the path of the object it concerns, and count the number of errors. The message of the API response lists all of them.
Remedy.
Read the full list in the response, correct every object it names, and send the change again.
Check the effect of a rule before you save it: kyvernon firewall simulate --vm <vm> --inbound --proto tcp --port 443 --peer 203.0.113.10 shows the verdict and the rule that decides.
error.firewall.builtin
Text in the console
{object} is built in and maintained by the platform; it cannot be changed or deleted.
Meaning for API clients
The firewall object is built in and maintained by the control plane (read-only).
Cause. The object is built in and maintained by the platform (its name starts with sys:). Built-in groups, services, policies and profiles are read-only.
Remedy.
Leave the built-in object as it is.
To get another behaviour, create an object of your own and use it next to the built-in one. For a profile, change the profile that a network adapter uses: kyvernon firewall vnic-profile <vm> <nic> --profile <id>.
error.firewall.reserved_name
Text in the console
Names starting with sys: are reserved for built-in firewall objects. Choose another name.
Meaning for API clients
Firewall object names starting with sys: are reserved for built-in objects.
Cause. The change would take the tenant over one of its firewall quotas: fwGroups, fwPolicies, fwRules or fwGroupMembers.
Remedy.
Delete firewall objects that are no longer used: groups, policies or rules, or members of a group.
An administrator can raise the quota: kyvernon tenants quota <tenant> --body '{"fwRules": <number>}'. Check the other values of the quota first, because the body replaces the whole quota (kyvernon tenants get <tenant>). Pass on the name of the resource from the message.
error.firewall.category_scope
Text in the console
Emergency and Infrastructure policies belong to the provider. Use Environment or Application.
Meaning for API clients
Emergency and Infrastructure policies belong to the provider.
Cause. A firewall profile cannot be deleted, because at least one network adapter uses it.
Remedy.
Give each network adapter that uses the profile another one: kyvernon firewall vnic-profile <vm> <nic> --profile <id>, or --reset to return to the default of its kind.
Delete the profile: kyvernon firewall profiles delete <id>.
error.firewall.no_vnic
Text in the console
The virtual machine has no network adapter on a host-bridge network.
why the adapter cannot be firewalled, linux_or_quarantine_bridge or port_security_off.
Cause. The network adapter cannot be firewalled, so its mode stays off. The reason argument says why. It is linux_or_quarantine_bridge when the adapter is on a Linux bridge or on a quarantine bridge, and port_security_off when port security is off on its network. The console shows the reason in your language.
Remedy.
Read the reason in the message.
For linux_or_quarantine_bridge, connect the adapter to a host-bridge network that is an Open vSwitch bridge.
For port_security_off, an administrator turns port security on for the network: kyvernon network update <id> --body-file <file>.
Switch the mode again: kyvernon firewall mode <vm> monitor.
error.firewall.not_pending
Text in the console
No firewall mode change of this virtual machine is waiting for confirmation.
Meaning for API clients
No firewall mode switch of the VM waits for confirmation.
Cause. A confirmation was sent for a firewall mode switch, but none waits for it. The time to confirm has passed and the previous mode is back, or the switch was confirmed already.
Remedy.
Check the firewall mode of the virtual machine in the console with Change mode.
When the mode is not the one you want, switch again and confirm within the time you set: kyvernon firewall mode <vm> enforce --confirm-within 10m, then kyvernon firewall mode confirm <vm>.