Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] replace-on-update rollback failed. #165

Open
Ali-aqrabawi opened this issue Aug 3, 2024 · 1 comment
Open

[BUG] replace-on-update rollback failed. #165

Ali-aqrabawi opened this issue Aug 3, 2024 · 1 comment

Comments

@Ali-aqrabawi
Copy link
Contributor

if the update failed in startcmd where replace-on-update is used, the rollback fail, and the item get's deleted:

(+) change request received:
<tc-filters xmlns="urn:okda:iproute2:tc:filter" xmlns:yang="urn:ietf:params:xml:ns:yang:1" yang:operation="none">
  <shared-block-filter yang:operation="none">
    <block>1000</block>
    <netns>1</netns>
    <rule yang:operation="none">
      <pref>10</pref>
      <flower yang:operation="none">
        <match yang:operation="none">
          <skip_sw yang:operation="create">true</skip_sw>
        </match>
      </flower>
    </rule>
  </shared-block-filter>
</tc-filters>
ip_sr_config_change_cb_apply: executing command: tc filter del block 1000 pref 10 
ip_sr_config_change_cb_apply: executing command: tc filter replace block 1000 pref 10 protocol ip handle 0x1 flower skip_sw dst_ip 192.168.1.1/32 action drop 
RTNETLINK answers: Operation not supported
We have an error talking to the kernel
ip_sr_config_change_cb_apply: iproute2 command failed, cmd = tc filter replace block 1000 pref 10 protocol ip handle 0x1 flower skip_sw dst_ip 192.168.1.1/32 action drop 
ip_sr_config_change_cb_apply: executing rollback cmd: tc filter del block 1000 pref 10 
RTNETLINK answers: No such file or directory
We have an error talking to the kernel

@Ali-aqrabawi
Copy link
Contributor Author

another example:

(+) change request received:
<tc-filters xmlns="urn:okda:iproute2:tc:filter" xmlns:yang="urn:ietf:params:xml:ns:yang:1" yang:operation="none">
  <shared-block-filter yang:operation="none">
    <block>1000</block>
    <netns>1</netns>
    <rule yang:operation="none">
      <pref>10</pref>
      <flower yang:operation="none">
        <match yang:operation="none">
          <skip_sw yang:operation="create">true</skip_sw>
        </match>
      </flower>
    </rule>
  </shared-block-filter>
</tc-filters>
ip_sr_config_change_cb_apply: executing command: tc filter del block 1000 pref 10 
ip_sr_config_change_cb_apply: executing command: tc filter add block 1000 pref 10 protocol ip handle 0x1 flower skip_sw dst_ip 192.168.1.1/32 action drop 
RTNETLINK answers: Operation not supported
We have an error talking to the kernel
ip_sr_config_change_cb_apply: iproute2 command failed, cmd = tc filter add block 1000 pref 10 protocol ip handle 0x1 flower skip_sw dst_ip 192.168.1.1/32 action drop 
ip_sr_config_change_cb_apply: executing rollback cmd: tc filter del block 1000 pref 10 
RTNETLINK answers: No such file or directory
We have an error talking to the kernel
[ERR] User callback failed

@Ali-aqrabawi Ali-aqrabawi reopened this Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant