Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1481611
Summary: | Mongo does not work on secondary (BE?) arches | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Vít Ondruch <vondruch> |
Component: | rubygem-moped | Assignee: | Vít Ondruch <vondruch> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | admiller, chris, dan, fabian.deutsch, fpercoco, hannsj_uhl, hhorak, i, jal233, johan.o.hedin, jpacner, mskalick, strobert, tdawson, trepik |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rubygem-moped-1.5.3-5.fc25 rubygem-moped-1.5.3-5.fc26 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-27 06:22:45 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: | |||
Bug Depends On: | |||
Bug Blocks: | 467765, 1071880, 1457953 |
Description
Vít Ondruch
2017-08-15 07:57:39 UTC
hmm, it fails on ppc64le as well, so doesn't look as big endian (only) problem ... (In reply to Dan Horák from comment #1) > hmm, it fails on ppc64le as well, so doesn't look as big endian (only) > problem ... That is different error ... But it does *not* fail on ARM, which is BE, isn't it? (In reply to Vít Ondruch from comment #3) > But it does *not* fail on ARM, which is BE, isn't it? nope, only s390x and ppc64 are big endians now in Fedora If someone could distil the failure down to a simple test case, I'd be happy to take a look at the redis server code and diagnose further. Those failed build messages are a bit too opaque for me to decipher. [ideally, a redis-cli command (or series thereof) that can reproduce the issue - would help greatly to resolving this] Mea culpa. I am really sorry, I made mistake. The issue is not with Redis, but with Mongo. Going to reassign ... Trying this locally, I can simulate the issue when MongoDB server is not running: ~~~ $ ruby -r moped -e "s = ::Moped::Session.new(['127.0.0.1:27017'], database: 'test'); s.use :moped; p s[:users].find.one" W, [2017-08-16T14:18:16.559826 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:16.811022 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:17.062197 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:17.313449 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:17.566640 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:17.819639 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:18.071277 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:18.322270 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:18.575943 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:18.828969 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:19.079826 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:19.331822 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:19.583756 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:19.835952 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:20.088706 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:20.341233 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:20.593571 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:20.846111 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:21.098913 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:21.351574 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:270:in `with_secondary': Could not connect to any secondary or primary nodes for replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]> (Moped::Errors::ConnectionFailure) from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/session/context.rb:104:in `with_node' from /usr/share/gems/gems/moped-1.5.3/lib/moped/session/context.rb:43:in `query' from /usr/share/gems/gems/moped-1.5.3/lib/moped/query.rb:115:in `first' from -e:1:in `<main>' ~~~ but as soon as the server is running, I got correct meaningful result: ~~~ $ mongod --dbpath=. --logpath ./mongod.log --fork about to fork child process, waiting until server is ready for connections. forked process: 71 child process started successfully, parent exiting $ ruby -r moped -e "s = ::Moped::Session.new(['127.0.0.1:27017'], database: 'test'); s.use :moped; p s[:users].find.one" nil ~~~ But this does not work on Koji. Just out of fun, I tried mongo CLI: ~~~ $ echo "db.adminCommand('listDatabases')" | mongo MongoDB shell version v3.4.6 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.4.6 { "databases" : [ { "name" : "admin", "sizeOnDisk" : 12288, "empty" : false }, { "name" : "local", "sizeOnDisk" : 8192, "empty" : false } ], "totalSize" : 20480, "ok" : 1 } bye ~~~ This seems to work just fine locally as well as on Koji. So this suggest some networking issues ... Actually, there are reports that moped has some issues on BE systems: https://github.com/mongoid/moped/issues/390 The patch seems to help. rubygem-moped-1.5.3-5.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f972093bcb rubygem-moped-1.5.3-5.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-81cdd8b6dd rubygem-moped-1.5.3-5.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-81cdd8b6dd rubygem-moped-1.5.3-5.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f972093bcb rubygem-moped-1.5.3-5.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. rubygem-moped-1.5.3-5.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. |