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.

TODO:

  • Drop LogFile?
  • Drop FileDepot#miq_schedules ?
  • Drop schema log_file_depot_id from miq_servers and zones.
  • Drop schema for log_file_id from miq_task
  • Drop schema support_case from file_depot
  • Data migration to drop the roles?

@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
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