Project

General

Profile

Actions

Bug #24942

closed

Foreman-mantain status call does not work on C locale

Added by Ivan Necas over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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):

  1. 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:

  1. ca_path: The ca_certs file contains a set of concatenated “certification authority”
Actions #1

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
Actions #2

Updated by Ivan Necas over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #3

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

Also available in: Atom PDF