Bug 1467337
Summary: | Upgrade [6.2 -> 6.3]: Failed Upgrade Step: migrate_foreman | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sanket Jagtap <sjagtap> | ||||||||
Component: | Upgrades | Assignee: | Eric Helms <ehelms> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Sachin Ghai <sghai> | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | high | ||||||||||
Version: | 6.3.0 | CC: | bbuckingham, ehelms, inecas, mbacovsk, sghai, sjagtap | ||||||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||||||
Target Release: | Unused | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | foreman-1.15.2 | Doc Type: | If docs needed, set a value | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2018-02-21 16:54:37 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Sanket Jagtap
2017-07-03 12:37:32 UTC
Created attachment 1293884 [details]
foreman-debug
Build: Satellite 6.3 snap 7 Upgraded from 6.2.10 -> satellite 6.3 snap7 [qe-sat6-upgrade-rhel7.satqe.lab.eng.rdu2.redhat.com] out: [qe-sat6-upgrade-rhel7.satqe.lab.eng.rdu2.redhat.com] out: == 20170208215148 AddDockerRepoName: migrating ================================ [qe-sat6-upgrade-rhel7.satqe.lab.eng.rdu2.redhat.com] out: -- add_column(:katello_repositories, :container_repository_name, :string) [qe-sat6-upgrade-rhel7.satqe.lab.eng.rdu2.redhat.com] out: -> 0.0007s [qe-sat6-upgrade-rhel7.satqe.lab.eng.rdu2.redhat.com] out: foreman-rake db:migrate failed! Check the output for error! [qe-sat6-upgrade-rhel7.satqe.lab.eng.rdu2.redhat.com] out: foreman-rake -- config -k use_pulp_oauth -v false >/dev/null finished successfully! [qe-sat6-upgrade-rhel7.satqe.lab.eng.rdu2.redhat.com] out: Upgrade step migrate_foreman failed. Check logs for more information. This still fails , with same error. I can see the related fix in the file, but this is still reproducible Upstream bug assigned to ehelms Created attachment 1308624 [details]
foreman-debug
Created attachment 1308642 [details]
logs from console
If you see the attached log from comment8, here are the errors: [SAT_SERVER] out: == 20161102194100 CreateContentViewDockerFilterRules: migrating =============== [SAT_SERVER] out: -- create_table(:katello_content_view_docker_filter_rules) [SAT_SERVER] out: -> 0.0103s [SAT_SERVER] out: -- add_foreign_key(:katello_content_view_docker_filter_rules, :katello_content_view_filters, {:name=>"katello_content_view_docker_filter_rules_filter_fk", :column=>"content_view_filter_id"})rake aborted! [SAT_SERVER] out: StandardError: An error has occurred, this and all later migrations canceled: [SAT_SERVER] out: [SAT_SERVER] out: Could not find the inverse association for content_view_version (:repositories in Katello::ContentViewVersion)/opt/rh/rh-ror42/root/usr/share/gems/gems/activerecord-4.2.6/lib/active_record/reflection.rb:184:in `check_validity_of_inverse!' [SAT_SERVER] out: /opt/rh/rh-ror42/root/usr/share/gems/gems/activerecord-4.2.6/lib/active_record/reflection.rb:355:in `check_validity!' [SAT_SERVER] out: /opt/rh/rh-ror42/root/usr/share/gems/gems/activerecord-4.2.6/lib/active_record/associations/association.rb:25:in `initialize' [SAT_SERVER] out: /opt/rh/rh-ror42/root/usr/share/gems/gems/activerecord-4.2.6/lib/active_record/associations.rb:162:in `new' [SAT_SERVER] out: /opt/rh/rh-ror42/root/usr/share/gems/gems/activerecord-4.2.6/lib/active_record/associations.rb:162:in `association' [SAT_SERVER] out: /opt/rh/rh-ror42/root/usr/share/gems/gems/activerecord-4.2.6/lib/active_record/associations/builder/association.rb:115:in `content_view_version' [SAT_SERVER] out: /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.2/app/models/katello/repository.rb:190:in `content_view' [SAT_SERVER] out: /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.2/app/models/katello/repository.rb:178:in `set_container_repository_name' I see similar issue w/ sat6.3 snap14. : Upgrade Step: migrate_foreman... [qe-upgrade] out: foreman-rake -- config -k use_pulp_oauth -v true >/dev/null failed! Check the output for error! [qe-upgrade] out: API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache. [qe-upgrade] out: == 20151210143537 AddTypeToMailNotification: migrating ======================== [qe-upgrade] out: -- add_column(:mail_notifications, :type, :string, {:limit=>255}) [qe-upgrade]out: The reported issue is fixed w/ Sat 6.3 snap16. upgrade was completed successfully. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> >
> > For information on the advisory, and where to find the updated files, follow the link below.
> >
> > If the solution does not work for you, open a new bug report.
> >
> > https://access.redhat.com/errata/RHSA-2018:0336
|