dkm6
May 14, 2021, 8:38pm
#1
Problem:
While adding new repository in Katello , while click on save, getting following error
A smart proxy seems to have been refreshed without pulpcore being running. You may want to
Not sure You may want to what !!!. all service for pulpcore is running
Expected outcome:
It should save repo
Foreman and Proxy versions:
Foreman -2.2.3
Proxy 2.2.3
Foreman and Proxy plugin versions:
dynflow_core-0.2.6
pulp-2.1.0
Distribution and version:
Other relevant data:
/opt/theforeman/tfm/root/usr/share/gems/gems/puma-4.3.3/lib/puma/server.rb:682:in handle_request' | /opt/theforeman/tfm/root/usr/share/gems/gems/puma-4.3.3/lib/puma/server.rb:472:in
process_clientâ
| /opt/theforeman/tfm/root/usr/share/gems/gems/puma-4.3.3/lib/puma/server.rb:328:in block in run' | /opt/theforeman/tfm/root/usr/share/gems/gems/puma-4.3.3/lib/puma/thread_pool.rb:134:in
block in spawn_threadâ
| [ concurrent-ruby ]
2021-05-14T20:30:14 [I|bac|] Task {label: Actions::Katello::Repository::CreateRoot, id: 26bcbb16-e434-4a8e-9c27-18e969fdff55, execution_plan_id: 6c67bc78-5ec5-4666-bbcd-6eee9f48b184} state changed: stopped result: error
2021-05-14T20:30:14 [I|bac|] Task {label: Actions::Katello::Repository::CreateRoot, id: 26bcbb16-e434-4a8e-9c27-18e969fdff55, execution_plan_id: 6c67bc78-5ec5-4666-bbcd-6eee9f48b184} state changed: stopped result: error
2021-05-14T20:30:14 [E|app|] Katello::Errors::PulpcoreMissingCapabilities: A smart proxy seems to have been refreshed without pulpcore being running. You may want to
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/models/katello/concerns/smart_proxy_extensions.rb:185:in fix_pulp3_capabilities' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/lib/actions/katello/pulp_selector.rb:6:in
plan_pulp_actionâ
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/lib/actions/katello/repository/create.rb:24:in block in plan' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/execution_plan.rb:384:in
switch_flowâ
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:422:in sequence' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/lib/actions/katello/repository/create.rb:23:in
planâ
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:514:in block (3 levels) in execute_plan' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in
pass
Seems that error message is quite incomplete!
The original author is out today, so I wasnât able to ask what he meant. But you can try a couple things:
restart pulpcore services on the smart proxy: sudo systemctl restart pulpcore*
if that doesnât work, try rerunning foreman-installer
Let us know if that helps.
dkm6
May 17, 2021, 5:51pm
#3
Tried both, but same issue. Tried foreman-installer didt solve the issue.
Tried fresh install of Katello 4.0 with DB on different node. In the doc it says create only 2 databes , foreman and candlepin, did not say anything about pulpcore. Tried the installation specifying the db details as mentioned in doc, It fails for pulpcore, also tried creating the pulpcore db before running installer, Pulpcore db migrate fails. The documentation is not clear. Is pulcore created in local db or remote ?
Create two databases and dedicated roles, one for Foreman and one for Candlepin:
CREATE USER âforemanâ WITH PASSWORD âForeman_Password â; CREATE USER âcandlepinâ WITH PASSWORD âCandlepin_Password â; CREATE DATABASE foreman OWNER foreman; CREATE DATABASE candlepin OWNER candlepin;
foreman-installer --scenario katello
âforeman-db-host postgres.example.com
âforeman-db-password Foreman_Password
âforeman-db-database foreman
âkatello-candlepin-db-host postgres.example.com
âkatello-candlepin-db-name candlepin
âkatello-candlepin-db-password Candlepin_Password
âkatello-candlepin-manage-db false
âforeman-proxy-content-pulpcore-manage-postgresql false
âforeman-proxy-content-pulpcore-postgresql-host postgres.example.com
âforeman-proxy-content-pulpcore-postgresql-db-name pulpcore
âforeman-proxy-content-pulpcore-postgresql-password Pulpcore_Password
Error
valuate the resource (1593 of 1704)
2021-05-17 01:04:18 [DEBUG ] [configure] Execpulpcore-manager migrate --noinput : Executing check âpulpcore-manager migrate --plan | grep âNo planned migration operationsââ
2021-05-17 01:04:18 [DEBUG ] [configure] Executing with uid=pulp: âpulpcore-manager migrate --plan | grep âNo planned migration operationsââ
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: Traceback (most recent call last):
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: File â/usr/bin/pulpcore-managerâ, line 11, in
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: load_entry_point(âpulpcore==3.9.1â, âconsole_scriptsâ, âpulpcore-managerâ)()
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: File â/usr/lib/python3.6/site-packages/pulpcore/app/manage.pyâ, line 11, in manage
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: execute_from_command_line(sys.argv)
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: File â/usr/lib/python3.6/site-packages/django/core/management/init .pyâ, line 381, in execute_from_command_line
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: utility.execute()
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Data
Can you share the link to the doc youâre following? Are you trying to configure Katello to use external databases?
dkm6
May 17, 2021, 6:24pm
#7
and 4.9.4. Configuring Satellite to use External Databases
dkm6
May 17, 2021, 6:32pm
#8
Yes, trying to use external databases:
1, Created foreman, candleoin databases and tried, it didnt create pulpcore in external db or local postgres
so tried creating pulpcore db in external DB and tried installer, it failed with above error, with puplcore migrate
Not getting a clean install
Also, is Puppet server mandatory, if we disbale puppet-server false , is it ok ?
What is the state of your external postgres DB? Did you check the output of foreman-maintain service status --only postgresql
?
dkm6
May 18, 2021, 1:38pm
#10
Same issue, so trying same node install, it is also failing with pulpcore
âŚthere is another thread on thisâŚ
Its so complicated install process, even simple installation not gng thru,
dkm6
May 18, 2021, 7:02pm
#11
Installation wenty thru fine, but not getting UI
isplaying the following service(s): [FAIL]
undefined method `enabled?â for RemoteDB(postgresql:foreman [10]):ForemanMaintain::Utils::Service::RemoteDB
Scenario [Status Services] failed.
The following steps ended up in failing state:
[service-status]
Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist=âservice-statusâ
Can you confirm that the external DB is running and the credentials you supplied to the installer are correct?
dkm6
May 18, 2021, 7:13pm
#13
yes, its running and installer created all the schema objects in all 3 databases
dkm6
May 18, 2021, 7:21pm
#14
Got the issue, it was ipables
dkm6
May 18, 2021, 7:25pm
#15
Both one node and with external DB installation went thru fine.
Summarizing the fix:
mount /tmp nonexec
set umask 0022
Run installer from /tmp or /
This regarding external db conf, and is not mentioned in Doc, In Doc it says to create two databases candlepin and foreman, but didnât mention about pulpcore. Created pulpcore
2 Likes
We probably need to make those instructions clear re: external databases. As you point out, it can be confusing. Thank you for letting us know.
2 Likes
gvde
May 21, 2021, 5:12am
#18
It doesnât help if you post the same issue again in various threads.
It also doesnât help if you post a known problem which has already been posted a few hours ago by someone else.
Spreading the same issue on various topics just creates chaos because in the end noone knows anything anymore what the problem is, what you have tried, what you have changed, ⌠because thatâs all spread on multiple topics.
Please: one issue, one topic. Fix one problem at a time. Donât start something new in an existing topic. The qpid-proton problem obviously has nothing to due with the title of this topicâŚ
And this doesnât help other people having similar issues if various problems and solutions are mixed in a single topicâŚ
Katello installs for 4.0 and 4.1 are broken due to qpid-proton update in EPEL on EL7
1 Like