Skip to content

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

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

vshankar merged 2 commits into
ceph:mainfrom
kshtsk:wip-no-route

Conversation

@kshtsk

@kshtsk kshtsk commented Mar 12, 2025 •

Copy link
Copy Markdown
Contributor

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 <[email protected]>
Create function for getting default gateway in order to
reduce code duplication.

Signed-off-by: Kyr Shatskyy <[email protected]>
@github-actions github-actions Bot added cephfs Ceph File System tests labels Mar 12, 2025

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@vshankar

vshankar commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

@kshtsk

kshtsk commented Apr 7, 2025

Copy link
Copy Markdown
Contributor Author

@vshankar thanks

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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