Actions
Bug #24942
closedForeman-mantain status call does not work on C locale
Difficulty:
Triaged:
No
Bugzilla link:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1628926
This command does not work on C locale (which is also known as simple or default locale, no translations, used for scripting as a prevention of locale issues):
- LC_ALL=C foreman-maintain service status
/usr/share/gems/gems/foreman_maintain-0.2.7/definitions/features/mongo.rb:181:in `===': invalid byte sequence in US-ASCII (ArgumentError)
from /usr/share/gems/gems/foreman_maintain-0.2.7/definitions/features/mongo.rb:181:in `block in read_db_section'
from /usr/share/gems/gems/foreman_maintain-0.2.7/definitions/features/mongo.rb:179:in `each'
from /usr/share/gems/gems/foreman_maintain-0.2.7/definitions/features/mongo.rb:179:in `read_db_section'
from /usr/share/gems/gems/foreman_maintain-0.2.7/definitions/features/mongo.rb:165:in `load_db_config'
from /usr/share/gems/gems/foreman_maintain-0.2.7/definitions/features/mongo.rb:31:in `initialize'
from /usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/detector.rb:114:in `new'
from /usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/detector.rb:114:in `detect_feature'
from /usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/detector.rb:73:in `block in ensure_features_detected'
The problem is pulp config file (/etc/pulp/server.conf) contains UTF-8 characters and this causes issues when the default encoding is US_ASCII:
- ca_path: The ca_certs file contains a set of concatenated “certification authority”
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_maintain/pull/214 added
Updated by Ivan Necas over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|fb8b11c22af4c510ac2efd838ab5877260b9d492.
Updated by Ivan Necas over 5 years ago
- Subject changed from Foreman-mantain status call does not work on C locale to Foreman-mantain status call does not work on C locale
- Fixed in Releases foreman_maintain-0.2.10 added
Actions