Project

General

Profile

Bug #15767

Publishing contentview and foreman upgrade issue

Added by Andrei Gorev almost 6 years ago. Updated almost 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Content Views
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

I can not add repos via webUI with error:

| /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
2016-07-21 11:01:03 [app] [I] Completed 500 Internal Server Error in 440ms (Views: 0.7ms | ActiveRecord: 113.8ms)
2016-07-21 11:01:03 [app] [I] Started PUT "/katello/api/v2/content_views/8?organization_id=3" for 10.9.242.49 at 2016-07-21 11:01:03 +0200
2016-07-21 11:01:04 [app] [I] Processing by Katello::Api::V2::ContentViewsController#update as JSON

When I am add repos via hammer I am got "The repository has been associated"
After that I run `foreman-installer --scenario katello --upgrade` and got Katello upgrade completed!
Then I am publish contentview and run again `foreman-installer --scenario katello --upgrade`.
It can not be finished with errors after update_puppet_repository_distributors stage. With messages:

/usr/share/ruby/erb.rb:849:in `eval': (erb):2: syntax error, unexpected keyword_for, expecting ')' (SyntaxError)
... undefined method `redhat?' for #<Katello::ContentViewPuppet...
... ^
(erb):3: unknown regexp options - rh
(erb):3: syntax error, unexpected '/', expecting :: or '[' or '.'
/opt/rh/sclo-ror42/root/usr/share/gem...

...
...
(erb):84: syntax error, unexpected ':', expecting ')'
Tasks: TOP => katello:upgrades:3.0:...
^
(erb):88: unterminated string meets end of file
(erb):88: syntax error, unexpected end-of-input, expecting ')'
', :bad) ).to_s); _erbout.force_encoding(ENCODING)
^
from /usr/share/ruby/erb.rb:849:in `result'
from /usr/share/gems/gems/highline-1.6.21/lib/highline.rb:719:in `format_statement'
from /usr/share/gems/gems/highline-1.6.21/lib/highline.rb:617:in `say'
from /usr/share/katello-installer-base/hooks/boot/01-helpers.rb:19:in `log_and_say'
from /usr/share/katello-installer-base/hooks/boot/01-helpers.rb:38:in `block in execute'
from /usr/share/katello-installer-base/hooks/boot/01-helpers.rb:31:in `each'
from /usr/share/katello-installer-base/hooks/boot/01-helpers.rb:31:in `execute'
from /usr/share/katello-installer-base/hooks/post/30-upgrade.rb:48:in `update_puppet_repository_distributors'
from /usr/share/katello-installer-base/hooks/post/30-upgrade.rb:71:in `upgrade_step'
from /usr/share/katello-installer-base/hooks/post/30-upgrade.rb:94:in `block (4 levels) in load'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/hooking.rb:34:in `instance_eval'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/hooking.rb:34:in `block (4 levels) in load'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/hook_context.rb:13:in `instance_exec'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/hook_context.rb:13:in `execute'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/hooking.rb:51:in `block in execute'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/hooking.rb:49:in `each'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/hooking.rb:49:in `execute'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/kafo_configure.rb:425:in `block in run_installation'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/exit_handler.rb:26:in `call'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/exit_handler.rb:26:in `exit'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/kafo_configure.rb:154:in `exit'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/kafo_configure.rb:424:in `run_installation'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/kafo_configure.rb:141:in `execute'
from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
from /usr/share/gems/gems/kafo-0.9.1/lib/kafo/kafo_configure.rb:148:in `run'
from /usr/sbin/foreman-installer:8:in `<main>'
[root@katello log]

foreman-debug-Af79V.tar.xz foreman-debug-Af79V.tar.xz 1.57 MB Andrei Gorev, 07/21/2016 08:00 AM

History

#1 Updated by Justin Sherrill over 5 years ago

  • Legacy Backlogs Release (now unused) deleted (162)

#2 Updated by Justin Sherrill over 5 years ago

  • Status changed from New to Need more information

Can you try this again? We believe this PR has fixed it https://github.com/Katello/katello/pull/6268

This fix is in 3.1 and nightly.

#3 Updated by Justin Sherrill over 5 years ago

  • Legacy Backlogs Release (now unused) set to 166

#4 Updated by Eric Helms over 5 years ago

  • Status changed from Need more information to Rejected

Please re-open if you find further issues.

Also available in: Atom PDF