-
Notifications
You must be signed in to change notification settings - Fork 898
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
[WIP] Delete DatabaseBackup/FileDepot/LogFile #21360
Conversation
ef83ee7
to
b77bc62
Compare
cc @jrafanie ✂️ 🔥 🗑️ |
Well... mostly. A single file is needed as the appliance_console uses this method to check the current database connection. This code could be moved into the console itself, but since it was released recently, this allows that code to still function until a new version not requiring it can be released.
b77bc62
to
8535e53
Compare
Checked commits NickLaMuro/manageiq@b493938~...8535e53 with ruby 2.6.3, rubocop 1.13.0, haml-lint 0.35.0, and yamllint app/models/miq_schedule.rb
lib/tasks/evm_dba.rake
|
um Anything in particular for us to do to help you un-WIP this? |
I probably should double check that the stuff in And I doubt it will #justWork™ since I did have to combine it a bit. Aside from that, though, I don't know that I left in much that needed to be converted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be argued that gc is a user script or is out of scope for our project all together.
So even if you introduced bugs with gc
, I think we can live with it.
This looks nice. Very big delete.
LGTM
EvmDatabaseOps.gc(opts) | ||
args = {} | ||
opts = opts.delete_if { |_, v| v == false } | ||
options = (options[:aggressive] ? GC_AGGRESSIVE_DEFAULTS : GC_DEFAULTS).merge(opts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these constants present or from a require? I can't see them but maybe I just haven't looked hard enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope! Probably forgot them, good catch!
This is awesome! I do realize this is WIP, but wanted to get a checklist started on the stuff left to do from what I can see (you might have more) One question - has log management been removed from the UI as well? This PR drops log management backend, so I wasn't sure.
|
@Fryguy A few of these are things I might have considered at one point, but definitely forgot most of them, and the rest I didn't even consider. Nice list!
I have a PR for this over in ManageIQ/manageiq-gems-pending#523
I would have to look, but that is a good point! Most likely we can. Will look at the other questions and answer as well, but figured I would ones out of the way that I knew off the top of my head. |
Uh... just kidding... this isn't a |
Can we just drop stdlib? 😂 |
DANG IT LJ! Why do you have to be right about this!
Hmm.... don't seem to see this being the case however. Maybe you were just thinking about the mounting libraries in general? |
Welp, closing this in favor of #21384 as that at least gets us some progress... We can always re-open this with the |
😭
Yeah, that's it. |
I should flesh this out for those potentially looking back at this in the future (or if we re-open this PR in the future):
ManageIQ/manageiq-smartstate#160 So that was actually taken care of. This would still have allowed this entire PR to move forward, since the However, as LJ mentioned, the PXE functionality needs the entirety of the |
of note, #21377 lists that we may have some big changes in PXE. |
That's an interesting point on PXE. If it's the IPMI portion of PXE, that's on the chopping block. @NickLaMuro do you have more details about what in PXE is using FileDepot? |
@Fryguy Pretty much all of And then things like So unless you are axing a large part of the |
😢 One day. |
Part of the #21100 effort.
This will most likely be split up into more digestible commits, but just getting some test runs going to see what breaks.
Checklist
ManageIQ/manageiq-schema
DatabaseBackup
,FileDepot
,LogFile
tablesFileDepot
- Remove associatedhas_many
schedules, authsMiqServer
- Remove associatedlog_files
,log_file_depot_id
columnsMiqSchedule
-file_depot_id
columnZone
-log_file_depot_id
columnFileDepotMixin
(e.g.PxeServer
)Settings.log.collection
fromsettings.yml
/log/collection
settings_changes
Settings.task.active_task_time
be dropped?FileDepotContent
section?Vmdb::Util.get_evm_log_for_date
,get_log_start_end_times
,zip_logs
, andcompressed_log_patterns
MiqException::MiqDatabaseBackupInsufficientSpace
miq_event
forevm_server_db_backup_low_space
from the yamlLinks