The cfnetworking.vxlan-policy-agent logs on a Diego Cell or Isolation Segment reporterrors similar to the following during its regular poll-cycle:
cfnetworking.vxlan-policy-agent.poll-cycle: 1 error occurred:
* clean-up-asg-chains-matching: deleting chain asg-xxxxxxxxxxxxxxxxxxxx from table filter:
delete old chain: iptables call: running [/sbin/iptables -t filter -X asg-xxxxxxxxxxxxxxxxxxxx --wait]:
exit status 4: iptables v1.8.7 (nf_tables): CHAIN_USER_DEL failed (Device or resource busy)
This error is typically caused by a race condition in the cleanup of Application Security Group (ASG) chains.
When an application container is destroyed or moved, the vxlan-policy-agent attempts to delete the corresponding iptables chain. If the iptables binary or the nf_tables kernel subsystem is currently processing a rule update or holding a lock on the filter table at the exact moment the delete command is issued, the system returns "Device or resource busy."
In the vast majority of scenarios, these errors are benign and do not require manual intervention.
vxlan-policy-agent operates on a continuous polling cycle. If a chain deletion fails due to a "busy" resource, the agent will attempt the cleanup again in the next cycle (typically every 30 seconds).asg-8612a12...) disappears in subsequent log entries.monit restart vxlan-policy-agent
Related article:
R&D is updating the error logging so that the benign errors are classified as "WARNING" level. Subscribe to this article for updates.