Bug 1791340

Summary: satellite-installer fails on Bundler::Dsl::DSLError for smart_proxy_dynflow_core.service
Product: Red Hat Satellite Reporter: Kenny Tordeurs <ktordeur>
Component: Tasks PluginAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: aruzicka, inecas, jjansky, rrajput, wtome
Target Milestone: UnspecifiedKeywords: EasyFix, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-10-28 18:00:09 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:

Description Kenny Tordeurs 2020-01-15 15:26:25 UTC
Description of problem:
satellite-installer fails with:
~~~
/Stage[main]/Foreman_proxy::Plugin::Dynflow/Service[smart_proxy_dynflow_core]/ensure: change from 'stopped' to 'running' failed: Systemd start for smart_proxy_dynflow_core failed!
journalctl log for smart_proxy_dynflow_core:
-- Logs begin at Fri 2020-01-10 10:33:26 CET, end at Wed 2020-01-15 18:21:23 CET. --
Jan 15 18:21:22 testing systemd[1]: Starting Foreman smart proxy dynflow core service...
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:508:in `rescue in eval_gemspec': Bundler::Dsl::DSLError
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:499:in `eval_gemspec'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:437:in `block in load_gemspec_uncached'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/shared_helpers.rb:65:in `chdir'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/shared_helpers.rb:65:in `block in chdir'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/ruby/monitor.rb:226:in `mon_synchronize'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/shared_helpers.rb:64:in `chdir'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:436:in `load_gemspec_uncached'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler.rb:422:in `load_gemspec'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:66:in `block in gemspec'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:66:in `map'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:66:in `gemspec'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/Gemfile.in:3:in `eval_gemfile'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:47:in `instance_eval'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:47:in `eval_gemfile'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/rh/rh-ruby25/root/usr/share/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:12:in `evaluate'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/gemfile.rb:46:in `parse'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:14:in `system_require'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/lib/smart_proxy_dynflow_core/bundler_helper.rb:23:in `require_groups'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/lib/smart_proxy_dynflow_core/launcher.rb:28:in `load_settings!'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/lib/smart_proxy_dynflow_core/launcher.rb:12:in `start'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/lib/smart_proxy_dynflow_core/launcher.rb:8:in `launch!'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/bin/smart_proxy_dynflow_core:32:in `<top (required)>'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /usr/bin/smart_proxy_dynflow_core:23:in `load'
Jan 15 18:21:23 testing smart_proxy_dynflow_core[62198]: from /usr/bin/smart_proxy_dynflow_core:23:in `<main>'
Jan 15 18:21:23 testing systemd[1]: smart_proxy_dynflow_core.service: control process exited, code=exited status=1

~~~


Version-Release number of selected component (if applicable):
satellite-6.6.1-1.el7sat.noarch

How reproducible:
Not easily

Additional info:

The following gemspec seems to be the cause:
~~~
opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.2/smart_proxy_dynflow_core.gemspec
~~~

The following line contains an accent which apparently is causing some issues:
~~~
gem.authors       = ['Ivan Nečas']
~~~

Changing the line to the following fixed the issue and made the service startup correctly:
~~~
gem.authors       = ['Ivan Necas']
~~~

Comment 7 wtome 2021-01-10 22:21:49 UTC
Experiencing the same issue with Satellite 6.8. Workaround corrects the issue by editing /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.2.6/smart_proxy_dynflow_core.gemspec

Comment 8 Adam Ruzicka 2021-01-11 09:18:14 UTC
What is your system-wide locale and encoding set to?

Comment 9 wtome 2021-01-11 14:50:22 UTC
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Comment 10 Adam Ruzicka 2021-01-11 15:05:41 UTC
Could you check output of localectl as well? Running locale gives back the locale setting in the current shell, which might differ from the environment the services are started in

Comment 11 wtome 2021-01-11 15:18:46 UTC
$ localectl
   System Locale: LANG=en_US.UTF-8
       VC Keymap: us
      X11 Layout: n/a

Comment 13 Brad Buckingham 2022-09-02 20:25:18 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 14 Brad Buckingham 2022-09-02 20:31:56 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 15 Brad Buckingham 2022-10-28 18:00:09 UTC
Thank you for your interest in Red Hat Satellite. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to contact your Red Hat Account Team. Thank you.