Bug 1673039 - 500 Error upon first login: RuntimeError: Circular dependency detected while autoloading constant ConversionHost
Summary: 500 Error upon first login: RuntimeError: Circular dependency detected while ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.10.1
Assignee: Joe Rafaniello
QA Contact: Tasos Papaioannou
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On: 1671458
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-06 14:26 UTC by Satoe Imaishi
Modified: 2020-10-23 14:30 UTC (History)
4 users (show)

Fixed In Version: 5.10.1.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1671458
Environment:
Last Closed: 2019-03-06 09:50:42 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0453 0 None None None 2019-03-06 09:50:47 UTC

Comment 2 Satoe Imaishi 2019-02-06 14:29:10 UTC
Backported to Hammer branch:

commit b96fac3780976f91b26f286f14cfc308660b0632
Author: Jason Frey <fryguy9>
Date:   Tue Feb 5 15:33:17 2019 -0500

    Merge pull request #550 from jrafanie/ensure_one_autoloader_thread
    
    One semaphore to exclusively load them all
    
    (cherry picked from commit e75c9e08e7ccfe9dbd5c2b687303b6d981d4fd03)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1673039

Comment 3 Tasos Papaioannou 2019-02-12 16:02:26 UTC
Verified on 5.10.1.0.

No errors while running reproducer script:

# cat test.rb 
require_relative 'config/environment'

threads = []
4.times do
  threads << Thread.new { Api::Environment.time_attributes }
end
threads.collect(&:join)

# cp test.rb /var/www/miq/vmdb/
# vmdb
# for x in `seq 1 10`; do bundle exec ruby test.rb; done
** CFME 5.10.1.0, codename: Hammer
** CFME 5.10.1.0, codename: Hammer
** CFME 5.10.1.0, codename: Hammer
** CFME 5.10.1.0, codename: Hammer
** CFME 5.10.1.0, codename: Hammer
** CFME 5.10.1.0, codename: Hammer
** CFME 5.10.1.0, codename: Hammer
** CFME 5.10.1.0, codename: Hammer
** CFME 5.10.1.0, codename: Hammer
** CFME 5.10.1.0, codename: Hammer
#

Comment 4 CFME Bot 2019-02-13 01:50:34 UTC
New commit detected on ManageIQ/manageiq-api/hammer:

https://github.com/ManageIQ/manageiq-api/commit/b96fac3780976f91b26f286f14cfc308660b0632
commit b96fac3780976f91b26f286f14cfc308660b0632
Author:     Jason Frey <fryguy9>
AuthorDate: Tue Feb  5 15:33:17 2019 -0500
Commit:     Jason Frey <fryguy9>
CommitDate: Tue Feb  5 15:33:17 2019 -0500

    Merge pull request #550 from jrafanie/ensure_one_autoloader_thread

    One semaphore to exclusively load them all

    (cherry picked from commit e75c9e08e7ccfe9dbd5c2b687303b6d981d4fd03)

    https://bugzilla.redhat.com/show_bug.cgi?id=1673039

 lib/api/environment.rb | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

Comment 6 errata-xmlrpc 2019-03-06 09:50:42 UTC
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/RHBA-2019:0453


Note You need to log in before you can comment on or make changes to this bug.