Bug #14982
closedhost description migration goes throuh unfaked-host validations
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1333774
Description of problem:
foreman-installer --upgrade (from 6.2.0 Beta to GA10) failed.
foreman-installer/katello.log (attached) is showing the following
StandardError: An error has occurred, this and all later migrations canceled:
Validation failed: Build mode cannot be enabled for an unmanaged host/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/validations.rb:57:in `save!'
- My satellite contains multiple hosts with one of them being unmanaged.
after marking it 'managed' using UI, the installer proceeds (and fails on different error reported in: BZ#1333769)
Version-Release number of selected component (if applicable):
6.2.0 GA10
Steps to Reproduce:
1. yum upgrade
2. foreman-installer --upgrade
Actual results:
Validation failed: Build mode cannot be enabled for an unmanaged host/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/validations.rb:57:in `save!'
Expected results:
upgrade works
Additional info: