8000 Remove built-in configuration management by SchoolGuy · Pull Request #3537 · cobbler/cobbler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove built-in configuration management #3537

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

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

SchoolGuy
Copy link
Member
@SchoolGuy SchoolGuy commented Jan 1, 2024

Linked Items

Fixes #3536

Description

This PR removed the configuration management item types: Package, File and Mgmtclass. Since the HTTP API endpoint /svc/op/puppet requires these item types it was removed as well.

Merging this PR means that the next version is going to be 4.0.0 and not 3.4.0, switching that will be done in another PR. This PR is big enough already.

This PR was created to simplify the work on #3440.

Behaviour changes

Old: Cobbler had basic configuration management that was able to provision simple things through Koan.

New: Code for the configuration management is removed.

Category

This is related to a:

  • Bugfix
  • Feature
  • Packaging
  • Docs
  • Code Quality
  • Refactoring
  • Miscellaneous

Tests

  • Unit-Tests were created
  • System-Tests were created
  • Code is already covered by Unit-Tests
  • Code is already covered by System-Tests
  • No tests required

@SchoolGuy SchoolGuy added this to the v3.4.0 milestone Jan 1, 2024
@github-actions github-actions bot added API tests documentation Improvements or additions to documentation labels Jan 1, 2024
@SchoolGuy SchoolGuy force-pushed the feature/remove-config-management branch from 95d15af to 57dbc5a Compare January 2, 2024 09:47
Copy link
codacy-production bot commented Jan 2, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.39% (target: -1.00%) 66.67% (target: 70.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (077c419) 16203 10753 66.36%
Head commit (477d417) 15525 (-678) 10242 (-511) 65.97% (-0.39%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#3537) 6 4 66.67%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

You may notice some variations in coverage metrics with the latest Coverage engine update. For more details, visit the documentation

@SchoolGuy SchoolGuy force-pushed the feature/remove-config-management branch 2 times, most recently from 898d3c4 to d1b7b1c Compare January 2, 2024 21:41
@SchoolGuy 8000 SchoolGuy force-pushed the feature/remove-config-management branch from d1b7b1c to 0efffbc Compare January 21, 2024 15:35
@SchoolGuy SchoolGuy marked this pull request as ready for review January 21, 2024 15:35
@SchoolGuy SchoolGuy requested a review from a team January 21, 2024 15:35
@SchoolGuy
Copy link
Member Author

I would very much like to ask that we ignore pyright on this PR since all non-CLI changes are related to tests. Those are indeed valid and important but much of it is not fixable (external library) or not a reasonable effort (cli.py will go away after we have introduced templates) or is unrelated to the changes in this pull request.

Copy link
Contributor
@agraul agraul left a comment

Choose a reason for hiding this comment

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

Generally I like removing code we don't need/want anymore 👍

A project-wide search shows there are still a number of mgmtclass/package/file references that should be delete as well. I left comments for some of them on some files, there were a few more (e.g. in Makefile).

@SchoolGuy SchoolGuy force-pushed the feature/remove-config-management branch from 0efffbc to bf8f29c Compare January 24, 2024 18:37
@SchoolGuy
Copy link
Member Author

@agraul I believe I have addressed all your desired changes for now. My own search doesn't yield any more leftovers. As such I think another review round is appropriate.

Copy link
Contributor
@agraul agraul left a comment

Choose a reason for hiding this comment

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

I still see references to mgmtclasses (didn't search for the others):

Makefile:172:	-rm /var/lib/cobbler/cobbler_collections/mgmtclasses/*
cobbler/services.py:364:        :param what: May be "systems", "profiles", "distros", "images", "repos", "mgmtclasses", "packages",
cobbler/services.py:381:        elif what == "mgmtclasses":
cobbler/services.py:382:            listing = self.remote.get_mgmtclasses()  # type: ignore
system-tests/tests/svc-list:13:# TODO add more systems, profiles and distros, images, repos, mgmtclasses, packages, files, menus
docs/user-guide/http-api.rst:412:``systems, profiles, distros, images, repos, mgmtclasses, packages, files, menus``
cobbler/settings/migrations/V3_0_0.py:323:        "mgmtclasses.d",

The old migration shoud be fine, I don't know about the Makefile, user docs, and services.py

@SchoolGuy SchoolGuy force-pushed the feature/remove-config-management branch from bf8f29c to 477d417 Compare January 26, 2024 13:53
@SchoolGuy
Copy link
Member Author

@agraul The Makefile should be fine as it is for ereasing old content, I will leave that for now. The rest was indeed an oversight by me. Should be better now.

@SchoolGuy SchoolGuy requested a review from agraul January 26, 2024 13:55
Copy link
Contributor
@agraul agraul left a comment

Choose a reason for hiding this comment

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

I didn't look very deep but I couldn't see any references anymore.

@SchoolGuy SchoolGuy merged commit 69889af into main Jan 26, 2024
@SchoolGuy SchoolGuy deleted the feature/remove-config-management branch January 26, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API documentation Improvements or additions to documentation tests
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Remove basic configuration management
2 participants
0