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
# /usr/lib/python3.9/vendor-packages/ansible_collections
Collection Version
----------------- -------
community.general 6.5.0
CONFIGURATION
CONFIG_FILE() = None
OS / ENVIRONMENT
illumos
STEPS TO REPRODUCE
It's legal to create a flow without properties priority or maxbw. In my case it was just to maintain order of udp packages to a certain port.
For the task both properties are optional, priority is set to 'medium' in this case, maxbw is unset.
On first run the task creates the flow without the properties, that's ok.
But on second run the task first determines if flow needs update, which is set to true, because the flowadm show-flowprop returns '?' for maxbw, which is not equal to the required maxbw (''). Then the task tries to run an flowadm set-prop, but add not props. The resulting cmd fails.
The task should handle the '?' properly and moreover the update should do a flowadm reset-prop if maxbw changes from a value to none in the task.
Run this twice:
- name: Add flow control to i40e0 for udp port 5409community.network.flowadm:
link: "i40e0"flow: "flow-0"transport: udplocal_port: 5409state: present
EXPECTED RESULTS
ok on second run
ACTUAL RESULTS
fail on second run
2024-04-25 17:24:19,670 p=5518 u=name n=ansible | failed: [host] (item={'link': 'i40e0', 'flow': 'flow-0'}) => {"ansible_loop_var": "item", "changed": false, "item": {"flow": "flow-0", "link": "i40e0"}, "msg": "Error while updating flow: \"/sbin/flowadm: flow property must be specified\n\"", "name": "flow-0", "rc": 1, "stderr": "/sbin/flowadm: flow property must be specified\n", "stderr_lines": ["/sbin/flowadm: flow property must be specified"]}```
The text was updated successfully, but these errors were encountered:
@danowar2k i don't know, this stuff was moved here from ansible/ansible. Anyway, removed you from the file #599. If you recall you should be there, please let me know, i'll revert the PR, thanks
SUMMARY
community.network.flowadm without maxbw fails on second run
ISSUE TYPE
COMPONENT NAME
community.network.flowadm
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
illumos
STEPS TO REPRODUCE
It's legal to create a flow without properties priority or maxbw. In my case it was just to maintain order of udp packages to a certain port.
For the task both properties are optional, priority is set to 'medium' in this case, maxbw is unset.
On first run the task creates the flow without the properties, that's ok.
But on second run the task first determines if flow needs update, which is set to true, because the flowadm show-flowprop returns '?' for maxbw, which is not equal to the required maxbw (''). Then the task tries to run an flowadm set-prop, but add not props. The resulting cmd fails.
The task should handle the '?' properly and moreover the update should do a flowadm reset-prop if maxbw changes from a value to none in the task.
Run this twice:
EXPECTED RESULTS
ok on second run
ACTUAL RESULTS
fail on second run
The text was updated successfully, but these errors were encountered: