Skip to content

qa/tasks/cephfs/mount: use 'ip route' instead 'route'#62259

Merged
vshankar merged 2 commits intoceph:mainfrom
kshtsk:wip-no-route
Apr 15, 2025
Merged

qa/tasks/cephfs/mount: use 'ip route' instead 'route'#62259
vshankar merged 2 commits intoceph:mainfrom
kshtsk:wip-no-route

Conversation

@kshtsk
Copy link
Contributor

@kshtsk kshtsk commented Mar 12, 2025

Instead of satisfying another dependency like 'net-tools' in order to use 'route' command, just use 'ip route' to find out which is the default gateway.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

Kyr Shatskyy added 2 commits March 11, 2025 17:14
Some linux host may not have 'route' installed. So, maybe,
prefer 'ip r' to find out which default gateway is configured.

Addresses error if there is no net-tools installed on ubuntu
remote hosts:
  route: command not found

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
Create function for getting default gateway in order to
reduce code duplication.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
@github-actions github-actions bot added cephfs Ceph File System tests labels Mar 12, 2025
Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vshankar
Copy link
Contributor

vshankar commented Apr 7, 2025

This PR is under test in https://tracker.ceph.com/issues/70819.

@kshtsk
Copy link
Contributor Author

kshtsk commented Apr 7, 2025

@vshankar thanks

Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vshankar vshankar merged commit dfa104e into ceph:main Apr 15, 2025
12 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants