Skip to content

Conversation

@Fryguy
Copy link
Member

@Fryguy Fryguy commented Oct 31, 2025

In containerized deployments we can't support log collection, because we can't mount the log depot. In appliance deployments, we're trying to get away from the application UI having anything to do with the system it's running on to avoid the need to elevate permissions. As such, this commit removes log collection from backend. The UI will be done separately.

Instead, on appliances, users can manually mount an NFS server (or really any server type - even more than our UI supports), and then use the /var/www/miq/vmdb/tools/collect_logs tool. If the user needs scheduling, they can schedule a cron on the appliance to run the tool.

Depends on:

@jrafanie Please review.

Follow up:

  • Drop FileDepot#miq_schedules ?
  • Schema changes
    • Drop log_files table
    • Drop log_file_depot_id from miq_servers and zones.
    • Drop schema support_case from file_depot
    • Data migration to drop the product features
    • Data migration to drop the settings

@Fryguy Fryguy force-pushed the drop_log_collection branch 3 times, most recently from 0789366 to 15ba91c Compare November 1, 2025 00:13
@Fryguy Fryguy changed the title Drop Log Collection Backend [WIP] Drop Log Collection Backend Nov 1, 2025
@Fryguy Fryguy added the wip label Nov 1, 2025
@Fryguy Fryguy force-pushed the drop_log_collection branch from 15ba91c to c0ffe2e Compare November 1, 2025 00:29
In containerized deployments we can't support log collection, because we
can't mount the log depot. In appliance deployments, we're trying to get
away from the application UI having anything to do with the system it's
running on to avoid the need to elevate permissions. As such, this
commit removes log collection from backend. The UI will be done
separately.

Instead, on appliances, users can manually mount an NFS server (or
really any server type - even more than our UI supports), and then use
the /var/www/miq/vmdb/tools/collect_logs tool. If the user needs
scheduling, they can schedule a cron on the appliance to run the tool.
@Fryguy Fryguy force-pushed the drop_log_collection branch from c0ffe2e to 4f2df52 Compare November 1, 2025 01:21
@Fryguy Fryguy changed the title [WIP] Drop Log Collection Backend Drop Log Collection Backend Nov 4, 2025
@Fryguy Fryguy removed the wip label Nov 4, 2025
@Fryguy
Copy link
Member Author

Fryguy commented Nov 4, 2025

@jrafanie For now, I'm going to leave the FileDepot -> miq_schedules. I think they can go away, but I'll feel more comfortable deleting them in a followup PR.

@miq-bot cross-repo-test /all

miq-bot pushed a commit to ManageIQ/manageiq-cross_repo-tests that referenced this pull request Nov 4, 2025
@Fryguy
Copy link
Member Author

Fryguy commented Nov 4, 2025

cross-repo is 🟢

gem "rest-client", "~>2.1.0", :require => false
gem "ruby_parser", :require => false # Required for i18n string extraction, and DescentdantLoader (via prism)
gem "ruby-progressbar", "~>1.7.0", :require => false
gem "rubyzip", "~>2.0.0", :require => false
Copy link
Member

Choose a reason for hiding this comment

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

yay 2 dependencies 👋

- GUID
- VERSION
:ping_depot: true
:ping_depot_timeout: 20
Copy link
Member

Choose a reason for hiding this comment

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

will the migration handle the removal of these sections in addition to the product features?

Copy link
Member Author

Choose a reason for hiding this comment

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

good call - I'll add that too

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated the OP to remind me to include that.

Copy link
Member

@jrafanie jrafanie left a comment

Choose a reason for hiding this comment

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

✂️ 🔥 ✂️ 🔥 ✂️ 🔥

🍰 🍪 👏 🙇 😍 🎉

Amazing. So much 🔴🔴🔴.

@jrafanie
Copy link
Member

jrafanie commented Nov 4, 2025

Merging. The migration to drop existing setting changes (with the settings removed here) and roles using the removed product features can be done as a followup. I don't think this will break anything to merge. 💣

@jrafanie jrafanie merged commit 1288a73 into ManageIQ:master Nov 4, 2025
9 checks passed
@Fryguy Fryguy deleted the drop_log_collection branch November 4, 2025 22:44
Fryguy added a commit to Fryguy/manageiq that referenced this pull request Nov 4, 2025
Follow up to ManageIQ#23647. This drops the FileDepot#miq_schedules linkage, and
also drops FileDepotFtp and FileDepotFtpAnonymous, since the only user
of FileDepot stuff, PxeServer, doesn't support Ftp. By extension this
also drops the net-ftp gem.
@Fryguy Fryguy mentioned this pull request Nov 4, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants