Project

General

Profile

Actions

Bug #24911

closed

ActiveRecord::RecordInvalid: Unable to access Red Hat Subscription and Red Hat Repositories page on Satellite 6.4.0 Snap 21.0

Added by Walden Raines over 5 years ago. Updated over 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Web UI
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1627779

++ This bug was initially created as a clone of Bug #1626693 ++

Description of problem:

Unable to access Red Hat Subscription and Red Hat Repositories page on Satellite 6.4.0 Snap 21.0

Warning while uploading the manifest, but manifest is uploaded.

ActiveRecord::RecordInvalid

Validation failed: Domains expecting domains used by hosts or inherited (check mismatches report)., ApplicationRecord|Capsules expecting capsules used by hosts or inherited (check mismatches report).

---
- "/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/validations.rb:78:in
`raise_validation_error'"
- "/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/validations.rb:50:in
`save!'"
- "/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/attribute_methods/dirty.rb:43:in
`save!'"
- "/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/transactions.rb:313:in
`block in save!'"
- "/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/transactions.rb:384:in
`block in with_transaction_returning_status'"
- "/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb:233:in
`transaction'"
- "/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/transactions.rb:210:in
`transaction'"
- "/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/transactions.rb:381:in
`with_transaction_returning_status'"
- "/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/transactions.rb:313:in
`save!'"
- "/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/suppressor.rb:46:in
`save!'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/lib/katello/lazy_accessor.rb:87:in
`save!'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.13.4/app/models/foreman_tasks/concerns/action_triggering.rb:31:in
`block in save!'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.13.4/app/models/foreman_tasks/concerns/action_triggering.rb:114:in
`dynflow_task_wrap'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.13.4/app/models/foreman_tasks/concerns/action_triggering.rb:31:in
`save!'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.13.4/app/models/foreman_tasks/concerns/action_triggering.rb:48:in
`block in update!'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.13.4/app/models/foreman_tasks/concerns/action_triggering.rb:127:in
`dynflow_task_wrap'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.13.4/app/models/foreman_tasks/concerns/action_triggering.rb:48:in
`update!'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/lib/actions/katello/organization/manifest_import.rb:47:in
`finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/action.rb:560:in
`block (2 levels) in execute_finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware.rb:18:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/lib/actions/middleware/propagate_candlepin_errors.rb:13:in
`block in finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/lib/actions/middleware/propagate_candlepin_errors.rb:19:in
`propagate_candlepin_errors'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/lib/actions/middleware/propagate_candlepin_errors.rb:13:in
`finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware/stack.rb:22:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware.rb:18:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/lib/actions/middleware/remote_action.rb:20:in
`block in finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/lib/actions/middleware/remote_action.rb:40:in
`block in as_remote_user'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/models/katello/concerns/user_extensions.rb:21:in
`cp_config'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/lib/actions/middleware/remote_action.rb:27:in
`as_cp_user'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/lib/actions/middleware/remote_action.rb:39:in
`as_remote_user'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/lib/actions/middleware/remote_action.rb:20:in
`finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware/stack.rb:22:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware.rb:18:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.13.4/app/lib/actions/middleware/rails_executor_wrap.rb:20:in
`block in finalize'"
- "/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.6/lib/active_support/execution_wrapper.rb:85:in
`wrap'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.13.4/app/lib/actions/middleware/rails_executor_wrap.rb:19:in
`finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware/stack.rb:22:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware.rb:18:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/action/progress.rb:30:in
`with_progress_calculation'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/action/progress.rb:22:in
`finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware/stack.rb:22:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware.rb:18:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/lib/actions/middleware/keep_locale.rb:15:in
`block in finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/lib/actions/middleware/keep_locale.rb:22:in
`with_locale'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/app/lib/actions/middleware/keep_locale.rb:15:in
`finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware/stack.rb:22:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/middleware.rb:18:in
`pass'"

--- Additional comment from Nikhil Kathole on 2018-09-07 21:07:55 EDT ---

I see console error on accessing red hat subscription and repository page.

vendor-70b5b7c3a807c58812ff.js:1 Uncaught TypeError: Cannot read property 'call' of undefined
at a (vendor-70b5b7c3a807c58812ff.js:1)
at Object.node_modules/react-bootstrap/lib/Button.js (katello-86f72411dbeac44c6bb9.js:25)
at a (vendor-70b5b7c3a807c58812ff.js:1)
at Object.node_modules/react-bootstrap-tooltip-button/lib/TooltipButton.js (katello-86f72411dbeac44c6bb9.js:25)
at a (vendor-70b5b7c3a807c58812ff.js:1)
at Object.../../../../../BUILDROOT/tfm-rubygem-katello-3.7.0.25-1.el7sat.noarch/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/webpack/scenes/Subscriptions/SubscriptionsPage.js (katello-86f72411dbeac44c6bb9.js:1)
at a (vendor-70b5b7c3a807c58812ff.js:1)
at Object.../../../../../BUILDROOT/tfm-rubygem-katello-3.7.0.25-1.el7sat.noarch/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/webpack/scenes/Subscriptions/index.js (katello-86f72411dbeac44c6bb9.js:1)
at a (vendor-70b5b7c3a807c58812ff.js:1)
at Object.../../../../../BUILDROOT/tfm-rubygem-katello-3.7.0.25-1.el7sat.noarch/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/webpack/containers/Application/config.js (katello-86f72411dbeac44c6bb9.js:1)
a vendor-70b5b7c3a807c58812ff.js:1
node_modules/react-bootstrap/lib/Button.js
katello-86f72411dbeac44c6bb9.js:25
a vendor-70b5b7c3a807c58812ff.js:1
node_modules/react-bootstrap-tooltip-button/lib/TooltipButton.js
katello-86f72411dbeac44c6bb9.js:25
a vendor-70b5b7c3a807c58812ff.js:1
../../../../../BUILDROOT/tfm-rubygem-katello-3.7.0.25-1.el7sat.noarch/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/webpack/scenes/Subscriptions/SubscriptionsPage.js
katello-86f72411dbeac44c6bb9.js:1
a vendor-70b5b7c3a807c58812ff.js:1
../../../../../BUILDROOT/tfm-rubygem-katello-3.7.0.25-1.el7sat.noarch/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/webpack/scenes/Subscriptions/index.js
katello-86f72411dbeac44c6bb9.js:1
a vendor-70b5b7c3a807c58812ff.js:1
../../../../../BUILDROOT/tfm-rubygem-katello-3.7.0.25-1.el7sat.noarch/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/webpack/containers/Application/config.js
katello-86f72411dbeac44c6bb9.js:1
a vendor-70b5b7c3a807c58812ff.js:1
../../../../../BUILDROOT/tfm-rubygem-katello-3.7.0.25-1.el7sat.noarch/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/webpack/containers/Application/Routes.js
katello-86f72411dbeac44c6bb9.js:1
a vendor-70b5b7c3a807c58812ff.js:1
../../../../../BUILDROOT/tfm-rubygem-katello-3.7.0.25-1.el7sat.noarch/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/webpack/containers/Application/index.js
katello-86f72411dbeac44c6bb9.js:1
a vendor-70b5b7c3a807c58812ff.js:1
../../../../../BUILDROOT/tfm-rubygem-katello-3.7.0.25-1.el7sat.noarch/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.25/webpack/index.js
katello-86f72411dbeac44c6bb9.js:1
a vendor-70b5b7c3a807c58812ff.js:1
window.webpackJsonp
vendor-70b5b7c3a807c58812ff.js:1
(anonymous) @ katello-86f72411dbeac44c6bb9.js:1
bundle-8980a0d98c0729faf425.js:1 Uncaught Error: Component not found: katello among BookmarkContainer, DonutChart, StatisticsChartsList, PowerStatus, NotificationContainer, ToastNotifications, StorageContainer, PasswordStrength, BreadcrumbBar
at Object.markup (bundle-8980a0d98c0729faf425.js:1)
at Object.t.mount (bundle-8980a0d98c0729faf425.js:1)
at subscriptions:408

--- Additional comment from RHEL Product and Program Management on 2018-09-07 21:11:45 EDT ---

This bug report has Keywords: Regression or TestBlocker.

Since no regressions or test blockers are allowed between releases,
it is also being identified as a blocker for this release.

Please resolve ASAP.

--- Additional comment from RHEL Product and Program Management on 2018-09-07 21:15:00 EDT ---

Since this issue was entered in Red Hat Bugzilla, the pm_ack has been
set to + automatically for the next planned release

--- Additional comment from Evgeni Golov on 2018-09-10 04:27:43 EDT ---

I can reproduce the JS error.

It seems to be related to the fix we made in BZ #1611561 - Styling improvements for PasswordStrength.

Reverting Foreman to 1.18.0.22 (the version before the above BZ), makes the subscription page render fine again.

@Ondřej Pražák, can you please have a look, as I think it was your change in the BZ.

--- Additional comment from Evgeni Golov on 2018-09-10 04:29:03 EDT ---

FWIW, I can not reproduce the ActiveRecord::RecordInvalid warning by uploading a manifest to a snap21 satellite with the downgraded foreman via the WebUI.

--- Additional comment from Evgeni Golov on 2018-09-10 06:01:14 EDT ---

okay, or you install a katello that I built today, then it also works with the newer foreman. seems to be another instance of "we need to rebuild plugins with webpack every time we change foreman"

--- Additional comment from Brad Buckingham on 2018-09-10 09:21:37 EDT ---

Evgeni,

If this is solved by rebuild of katello, should we move this on to post/modified?

--- Additional comment from Evgeni Golov on 2018-09-10 09:59:28 EDT ---

(In reply to Brad Buckingham from comment #7)

If this is solved by rebuild of katello, should we move this on to
post/modified?

Yes and no ;-)

@Varatharaja what did you exactly do to get that Ruby backtrace? I could not reproduce the issue, and I wonder what I might be missing.

@Brad the JS error reported by Nikhil is "fixed" by a rebuild, but in reality, it's only painting over the issue as it will happen again, every time we change the JS stuff in Foreman and do not rebuild Katello/Ansible/REX/<whatever>. We need a stable solution for that. But probably that warrants an own BZ.

Actions #1

Updated by Jonathon Turel over 5 years ago

  • Subject changed from ActiveRecord::RecordInvalid: Unable to access Red Hat Subscription and Red Hat Repositories page on Satellite 6.4.0 Snap 21.0 to ActiveRecord::RecordInvalid: Unable to access Red Hat Subscription and Red Hat Repositories page on Satellite 6.4.0 Snap 21.0
  • Target version set to 931
  • Triaged changed from No to Yes
  • Found in Releases Katello 3.7.0 added
Actions #2

Updated by Jonathon Turel over 5 years ago

  • Status changed from New to Duplicate
  • Target version deleted (931)
Actions

Also available in: Atom PDF