Dunno if this is documented elsewhere, this is what I came up with.
The problem is that a complete DB dump has their User
s I don't (and shouldn't) know password to.
Plus some things [weasel words — I don't really know!] are encrypted by secret token I don't (and shouldn't) have.
But I want to login into UI to play with the system, and try to reproduce their problems.
- apply above patch
- start
rails server
— this resets secret token to a new secret token - in
rails console
:
g = MiqGroup.in_my_region.find_by(description: "EvmGroup-super_administrator")
u = User.create!(name: "TMP", userid: "admin", password: "smartvm", current_group: g, miq_groups: [g])
- open http://localhost:3000, login as admin/smartvm 🎉
Now before starting any workers, it's prudent to deleting/disabling any existing providers, so my ManageIQ doesn't try to connect to their systems. On Gaprindashvili it's possible to mark provider paused; before that, this might work:
Authentication.pluck(:resource_type, :resource_id, :authtype, :status)
Endpoint.pluck(:resource_type, :resource_id, :role)
Authentication.where(resource_type: "ExtManagementSystem").each { |a| a.authtype = "#{a.authtype}_DISABLED"; a.status = "DISABLED"; a.save! }
Endpoint.all.each { |e| e.role = "#{e.role}_DISABLED"; e.save! }
Also running with network offline might make sense (to avoid things like Policy sending people emails etc...)