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

Cobbler: Replace SSH with XML-RPC API calls #261

Merged
merged 7 commits into from
Aug 28, 2024

Conversation

SchoolGuy
Copy link
Collaborator

@SchoolGuy SchoolGuy commented Aug 4, 2024

Fixes #255

This PR aims to switch from SSH-based command execution for Cobbler to a more robust XML-RPC command execution.

Due to dependency updates in openSUSE Tumbleweed, this PR also adds support for Django 5.0 and later.

Advantages:

  • Easier session cleanup
  • Better testing
  • Better error handling
  • Easier to understand
  • Easier setup (no messing with SSH keys)
  • Hopefully: Better performance since no SSH sessions need to be opened

Open points:

@SchoolGuy SchoolGuy force-pushed the feature/switch-to-xmlrpc branch from 6661712 to b13d5ad Compare August 5, 2024 16:14
@SchoolGuy
Copy link
Collaborator Author

During fixing the unit tests an issue appeared. If the Cobbler Daemon is started in the foreground it listens on localhost to port 25151 for XML-RPC requests. This however doesn't include the HTTP API and furthermore ignores requests that are not done via localhost. Since in the test container, no nginx/apache is started the requests from Orthos are not being answered.

@SchoolGuy
Copy link
Collaborator Author

Now the errors are coming from Django 5 in openSUSE Tumbleweed.

@SchoolGuy SchoolGuy force-pushed the feature/switch-to-xmlrpc branch from e00b117 to 6d8ff7d Compare August 21, 2024 10:46
@SchoolGuy SchoolGuy marked this pull request as ready for review August 21, 2024 10:52
@SchoolGuy SchoolGuy requested a review from a team August 21, 2024 10:53
@SchoolGuy
Copy link
Collaborator Author

The PR is now in a reviewable state. All above mentioned issues have been taken care of.

Copy link
Contributor

@ByteOtter ByteOtter left a comment

Choose a reason for hiding this comment

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

lgtm 👍🏼

@SchoolGuy
Copy link
Collaborator Author

Since @ByteOtter will be part of the Orthos 2 reviewer team in the future I will count his review as a full one. His application to join the GitHub Team is already in progress.

@SchoolGuy SchoolGuy merged commit ee1f5cc into master Aug 28, 2024
12 checks passed
@SchoolGuy SchoolGuy deleted the feature/switch-to-xmlrpc branch August 28, 2024 11:45
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

Successfully merging this pull request may close these issues.

Switch Cobbler utils to XML-RPC API
2 participants