Can you help me to install pulp-admin on my Forman/katello server (from which repositories we can install this tool)?
I installed foreman-2.4 / Katello 4.0.0 on RHEL7
[root@formanserver ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
Here enabled repositories :
[root@formanserver ~]# yum repolist
repo id repo name status
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,592
foreman/x86_64 Foreman 2.4 633
foreman-plugins/x86_64 Foreman plugins 2.4 364
katello/x86_64 Katello 4.0 72
katello-candlepin/x86_64 Candlepin: an open source entitlement management system. 2
pulpcore/x86_64 pulpcore: Fetch, Upload, Organize, and Distribute Software Packages. 174
puppet6/x86_64 Puppet 6 Repository el 7 - x86_64 295
!rhel-7-server-optional-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Optional (RPMs) 22,473
!rhel-7-server-rpms/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 31,236
!rhel-server-rhscl-7-rpms/x86_64 Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server 13,095
repolist: 81,936
Uploading Enabled Repositories Report
First I tryed to install pulp-admin but no success
[root@formanserver ~]# yum install pulp-admin
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager, tracer_upload, versionlock
rhel-7-server-optional-rpms | 2.0 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
rhel-server-rhscl-7-rpms | 2.0 kB 00:00:00
No package pulp-admin available.
Error: Nothing to do
Uploading Enabled Repositories Report
I tryed also to install pulp-admin-client pulp-rpm-admin-extensions but no packages there:
The project you are looking for is called pulp-cli, but it is not yet considered fully stable, and does not work for all content plugins. I also donβt think there is an RPM package for it, but then again you donβt need to run it on the same machine as your pulp instance, so maybe a python package is sufficient:
If the pulp-cli does not work for you, then the only thing that currently exists is talking directly to the REST API. The various pulpcore and plugin documentations provide a lot of documentation on this.
thanks for your input, the raison why Iβm asking for pulp-admin tool because Iβm facing an issue with tasks execution on my fresh deployed foreman/katello server,
Tasks are stuck for more then 15 hours with message : (waiting for Pulp to start the task)
For example a simple βReleases paramβ update for a repository is stuck with message : Pulp3::Repository::RefreshDistribution (waiting for Pulp to start the task)
Have you checked that all your Pulp services are running properly? Either way it might be worth restarting them if things are truly stuck. (Something like systemctl restart pulp* should work). Not sure if there is a better way.
For talking directly to the Pulp REST API, I usually use the http command (which requires some python package to be installed). Alternatively one can also use curl, but I donβt know the exact command/options. With http installed there is exactly one Pulp API endpoint that works without authentication:
https --verify=no get <your_pulp_instance_fqdn>/pulp/api/v3/status/
To look at tasks you need authentication, and thus the following files from your Katello installlation:
https --verify no --cert /etc/pki/katello/certs/pulp-client.crt --cert-key /etc/pki/katello/private/pulp-client.key get <your_pulp_instance_fqdn>/pulp/api/v3/tasks/
I tryed to restart all foreman-maintain service with foreman-maintain service restart and also restart the server several time but still the same status of stuck taks.
Here output of foreman-maintain service list and foreman-maintain service status, do you see somthing that can cause this tasks stuck issue?
[root@formanserver ~] foreman-maintain service list
Running Service List
================================================================================
List applicable services:
dynflow-sidekiq@.service enabled
foreman-proxy.service enabled
foreman.service enabled
httpd.service enabled
postgresql.service enabled
pulpcore-api.service enabled
pulpcore-content.service enabled
pulpcore-resource-manager.service enabled
pulpcore-worker@.service enabled
puppetserver.service enabled
rh-redis5-redis.service enabled
tomcat.service enabled
All services listed [OK]
--------------------------------------------------------------------------------
================================================================================
[root@formanserver ~] foreman-maintain service status
Running Status Services
Get status of applicable services:
Displaying the following service(s):
rh-redis5-redis, postgresql, pulpcore-api, pulpcore-content, pulpcore-resource-manager, rh-redis5-redis, tomcat, dynflow-sidekiq@orchestrator, foreman, httpd, puppetserver, dynflow-sidekiq@worker, dynflow-sidekiq@worker-hosts-queue, foreman-proxy
| displaying rh-redis5-redis
β rh-redis5-redis.service - Redis persistent key-value database
Loaded: loaded (/usr/lib/systemd/system/rh-redis5-redis.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/rh-redis5-redis.service.d
ββlimit.conf
Active: active (running) since Mon 2021-05-10 17:32:47 UTC; 15h ago
Process: 27284 ExecStop=/opt/rh/rh-redis5/root/usr/libexec/redis-shutdown (code=exited, status=0/SUCCESS)
Main PID: 27574 (redis-server)
Tasks: 4
Memory: 6.4M
CGroup: /system.slice/rh-redis5-redis.service
ββ27574 /opt/rh/rh-redis5/root/usr/bin/redis-server 127.0.0.1:6379
May 10 17:32:47 formanserver.mydomain.com systemd[1]: Starting Redis persistent key-value database...
May 10 17:32:47 formanserver.mydomain.com systemd[1]: Started Redis persistent key-value database.
/ displaying postgresql
β rh-postgresql12-postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/rh-postgresql12-postgresql.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-05-10 17:32:47 UTC; 15h ago
Process: 27593 ExecStartPre=/opt/rh/rh-postgresql12/root/usr/libexec/postgresql-check-db-dir %N (code=exited, status=0/SUCCESS)
Main PID: 27596 (postmaster)
Tasks: 57
Memory: 231.8M
CGroup: /system.slice/rh-postgresql12-postgresql.service
ββ 5423 postgres: foreman foreman [local] idle
ββ15448 postgres: foreman foreman [local] idle
ββ15449 postgres: foreman foreman [local] idle
ββ17641 postgres: pulp pulpcore ::1(49136) idle
ββ17650 postgres: pulp pulpcore ::1(49160) idle
ββ17656 postgres: pulp pulpcore ::1(49176) idle
ββ18007 postgres: pulp pulpcore ::1(49206) idle
ββ18019 postgres: pulp pulpcore ::1(49210) idle
ββ22085 postgres: candlepin candlepin 127.0.0.1(51378) idle
ββ24356 postgres: pulp pulpcore ::1(33342) idle
ββ24357 postgres: pulp pulpcore ::1(33344) idle
ββ24379 postgres: pulp pulpcore ::1(33358) idle
ββ24444 postgres: candlepin candlepin 127.0.0.1(51476) idle
ββ24615 postgres: foreman foreman [local] idle
ββ24949 postgres: foreman foreman [local] idle
ββ25003 postgres: foreman foreman [local] idle
ββ25053 postgres: foreman foreman [local] idle
ββ26537 postgres: candlepin candlepin 127.0.0.1(51836) idle
ββ26538 postgres: candlepin candlepin 127.0.0.1(51838) idle
ββ26539 postgres: candlepin candlepin 127.0.0.1(51840) idle
ββ27596 postmaster -D /var/opt/rh/rh-postgresql12/lib/pgsql/data
ββ27604 postgres: logger
ββ27606 postgres: checkpointer
ββ27607 postgres: background writer
ββ27608 postgres: walwriter
ββ27609 postgres: autovacuum launcher
ββ27610 postgres: stats collector
ββ27611 postgres: logical replication launcher
ββ28008 postgres: foreman foreman [local] idle
ββ28013 postgres: pulp pulpcore ::1(43402) idle
ββ28017 postgres: pulp pulpcore ::1(43412) idle
ββ28028 postgres: pulp pulpcore ::1(43436) idle
ββ28030 postgres: pulp pulpcore ::1(43442) idle
ββ28036 postgres: pulp pulpcore ::1(43462) idle
ββ28071 postgres: pulp pulpcore ::1(43472) idle
ββ28095 postgres: foreman foreman [local] idle
ββ28099 postgres: foreman foreman [local] idle
ββ28101 postgres: foreman foreman [local] idle
ββ28131 postgres: foreman foreman [local] idle
ββ28132 postgres: foreman foreman [local] idle
ββ28135 postgres: foreman foreman [local] idle
ββ28139 postgres: foreman foreman [local] idle
ββ28140 postgres: foreman foreman [local] idle
ββ28190 postgres: pulp pulpcore ::1(43510) idle
ββ28236 postgres: pulp pulpcore ::1(43522) idle
ββ28241 postgres: pulp pulpcore ::1(43524) idle
ββ28260 postgres: pulp pulpcore ::1(43528) idle
ββ28488 postgres: candlepin candlepin 127.0.0.1(56028) idle
ββ28489 postgres: candlepin candlepin 127.0.0.1(56030) idle
ββ28490 postgres: candlepin candlepin 127.0.0.1(56032) idle
ββ28684 postgres: foreman foreman [local] idle
ββ28688 postgres: foreman foreman [local] idle
ββ28689 postgres: foreman foreman [local] idle
ββ28700 postgres: foreman foreman [local] idle
ββ28704 postgres: foreman foreman [local] idle
ββ28705 postgres: foreman foreman [local] idle
ββ29063 postgres: foreman foreman [local] idle
May 10 17:32:47 formanserver.mydomain.com systemd[1]: Starting PostgreSQL database server...
May 10 17:32:47 formanserver.mydomain.com sh[27596]: 2021-05-10 17:32:47 UTC LOG: starting PostgreSQL 12.5 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-37), 64-bit
May 10 17:32:47 formanserver.mydomain.com sh[27596]: 2021-05-10 17:32:47 UTC LOG: listening on IPv6 address "::1", port 5432
May 10 17:32:47 formanserver.mydomain.com sh[27596]: 2021-05-10 17:32:47 UTC LOG: listening on IPv4 address "127.0.0.1", port 5432
May 10 17:32:47 formanserver.mydomain.com sh[27596]: 2021-05-10 17:32:47 UTC LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
May 10 17:32:47 formanserver.mydomain.com sh[27596]: 2021-05-10 17:32:47 UTC LOG: listening on Unix socket "/tmp/.s.PGSQL.5432"
May 10 17:32:47 formanserver.mydomain.com sh[27596]: 2021-05-10 17:32:47 UTC LOG: redirecting log output to logging collector process
May 10 17:32:47 formanserver.mydomain.com sh[27596]: 2021-05-10 17:32:47 UTC HINT: Future log output will appear in directory "log".
May 10 17:32:47 formanserver.mydomain.com systemd[1]: Started PostgreSQL database server.
Warning: rh-postgresql12-postgresql.service changed on disk. Run 'systemctl daemon-reload' to reload units.
/ displaying pulpcore-api
β pulpcore-api.service - Pulp API Server
Loaded: loaded (/etc/systemd/system/pulpcore-api.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-05-10 17:32:48 UTC; 15h ago
Main PID: 27602 (gunicorn)
Status: "Gunicorn arbiter booted"
Tasks: 2
Memory: 104.5M
CGroup: /system.slice/pulpcore-api.service
ββ27602 /usr/bin/python3 /usr/bin/gunicorn pulpcore.app.wsgi:application -w 1 --access-logfile -
ββ27618 /usr/bin/python3 /usr/bin/gunicorn pulpcore.app.wsgi:application -w 1 --access-logfile -
May 11 08:58:10 formanserver.mydomain.com pulpcore-api[27602]: pulp [None]: django_guid:INFO: Header `Correlation-ID` was not found in the incoming request. Generated new GUID: 93a43fe4cf1c4e6fbe1670d2d0b0e4d4
May 11 08:58:10 formanserver.mydomain.com pulpcore-api[27602]: - - [11/May/2021:08:58:10 +0000] "GET /pulp/api/v3/tasks/f199bb88-b6b1-461a-b34c-d47f7540c176/ HTTP/1.1" 200 506 "-" "OpenAPI-Generator/3.9.0/ruby"
May 11 09:01:22 formanserver.mydomain.com pulpcore-api[27602]: pulp [None]: django_guid:INFO: Header `Correlation-ID` was not found in the incoming request. Generated new GUID: 6cce9216d45544ceae16d04f26ffd12c
May 11 09:01:22 formanserver.mydomain.com pulpcore-api[27602]: - - [11/May/2021:09:01:22 +0000] "GET /pulp/api/v3/tasks/f199bb88-b6b1-461a-b34c-d47f7540c176/ HTTP/1.1" 200 506 "-" "OpenAPI-Generator/3.9.0/ruby"
May 11 09:01:51 formanserver.mydomain.com pulpcore-api[27602]: pulp [None]: django_guid:INFO: Header `Correlation-ID` was not found in the incoming request. Generated new GUID: 688a6df943414ddeb8400b23bf43a8c7
May 11 09:01:51 formanserver.mydomain.com pulpcore-api[27602]: - - [11/May/2021:09:01:51 +0000] "GET /pulp/api/v3/status HTTP/1.1" 301 0 "-" "rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.5p157"
May 11 09:01:51 formanserver.mydomain.com pulpcore-api[27602]: pulp [None]: django_guid:INFO: Header `Correlation-ID` was not found in the incoming request. Generated new GUID: ac49fcaf834e4e3bbc22d39110c17616
May 11 09:01:51 formanserver.mydomain.com pulpcore-api[27602]: - - [11/May/2021:09:01:51 +0000] "GET /pulp/api/v3/status/ HTTP/1.1" 200 3165 "-" "rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.5p157"
May 11 09:04:34 formanserver.mydomain.com pulpcore-api[27602]: pulp [None]: django_guid:INFO: Header `Correlation-ID` was not found in the incoming request. Generated new GUID: 642269bb38e14fb081c38b10e4d6ab08
May 11 09:04:34 formanserver.mydomain.com pulpcore-api[27602]: - - [11/May/2021:09:04:34 +0000] "GET /pulp/api/v3/tasks/f199bb88-b6b1-461a-b34c-d47f7540c176/ HTTP/1.1" 200 506 "-" "OpenAPI-Generator/3.9.0/ruby"
/ displaying pulpcore-content
β pulpcore-content.service - Pulp Content App
Loaded: loaded (/etc/systemd/system/pulpcore-content.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-05-10 17:32:48 UTC; 15h ago
Main PID: 27603 (gunicorn)
Status: "Gunicorn arbiter booted"
Tasks: 40
Memory: 751.0M
CGroup: /system.slice/pulpcore-content.service
ββ27603 /usr/bin/python3 /usr/bin/gunicorn pulpcore.content:server --worker-class aiohttp.GunicornWebWorker -w 9 --access-logfile -
ββ27975 /usr/bin/python3 /usr/bin/gunicorn pulpcore.content:server --worker-class aiohttp.GunicornWebWorker -w 9 --access-logfile -
ββ27976 /usr/bin/python3 /usr/bin/gunicorn pulpcore.content:server --worker-class aiohttp.GunicornWebWorker -w 9 --access-logfile -
ββ27977 /usr/bin/python3 /usr/bin/gunicorn pulpcore.content:server --worker-class aiohttp.GunicornWebWorker -w 9 --access-logfile -
ββ27978 /usr/bin/python3 /usr/bin/gunicorn pulpcore.content:server --worker-class aiohttp.GunicornWebWorker -w 9 --access-logfile -
ββ27979 /usr/bin/python3 /usr/bin/gunicorn pulpcore.content:server --worker-class aiohttp.GunicornWebWorker -w 9 --access-logfile -
ββ27980 /usr/bin/python3 /usr/bin/gunicorn pulpcore.content:server --worker-class aiohttp.GunicornWebWorker -w 9 --access-logfile -
ββ27981 /usr/bin/python3 /usr/bin/gunicorn pulpcore.content:server --worker-class aiohttp.GunicornWebWorker -w 9 --access-logfile -
ββ27982 /usr/bin/python3 /usr/bin/gunicorn pulpcore.content:server --worker-class aiohttp.GunicornWebWorker -w 9 --access-logfile -
ββ27985 /usr/bin/python3 /usr/bin/gunicorn pulpcore.content:server --worker-class aiohttp.GunicornWebWorker -w 9 --access-logfile -
May 10 20:03:35 formanserver.mydomain.com pulpcore-content[27603]: [10/May/2021:20:03:35 +0000] "GET /pulp/content/My_Organisation/test/ccv-unix-ubuntu-20-04/custom/UBUNTU-20-04/UBUNTU_20_04_security/dists/default/Release.gpg HTTP/1.1" 404 172 "-" "python-requests/2.22.0"
May 10 20:03:35 formanserver.mydomain.com pulpcore-content[27603]: [10/May/2021:20:03:35 +0000] "GET /pulp/content/My_Organisation/test/ccv-unix-ubuntu-20-04/custom/UBUNTU-20-04/UBUNTU_20_04_main/dists/default/Release.gpg HTTP/1.1" 404 172 "-" "python-requests/2.22.0"
May 11 04:59:09 formanserver.mydomain.com pulpcore-content[27603]: [11/May/2021:04:59:09 +0000] "GET /pulp/content/My_Organisation/test/ccv-unix-ubuntu-20-04/custom/UBUNTU-20-04/UBUNTU_20_04_updates/dists/default/InRelease HTTP/1.1" 404 172 "-" "python-requests/2.22.0"
May 11 04:59:09 formanserver.mydomain.com pulpcore-content[27603]: [11/May/2021:04:59:09 +0000] "GET /pulp/content/My_Organisation/test/ccv-unix-ubuntu-20-04/custom/UBUNTU-20-04/UBUNTU_20_04_security/dists/default/InRelease HTTP/1.1" 404 172 "-" "python-requests/2.22.0"
May 11 04:59:09 formanserver.mydomain.com pulpcore-content[27603]: [11/May/2021:04:59:09 +0000] "GET /pulp/content/My_Organisation/test/ccv-unix-ubuntu-20-04/custom/UBUNTU-20-04/UBUNTU_20_04_main/dists/default/InRelease HTTP/1.1" 404 172 "-" "python-requests/2.22.0"
May 11 04:59:09 formanserver.mydomain.com pulpcore-content[27603]: [11/May/2021:04:59:09 +0000] "GET /pulp/content/My_Organisation/test/ccv-unix-ubuntu-20-04/custom/UBUNTU-20-04/UBUNTU_20_04_updates/dists/default/Release HTTP/1.1" 200 2191 "-" "python-requests/2.22.0"
May 11 04:59:09 formanserver.mydomain.com pulpcore-content[27603]: [11/May/2021:04:59:09 +0000] "GET /pulp/content/My_Organisation/test/ccv-unix-ubuntu-20-04/custom/UBUNTU-20-04/UBUNTU_20_04_security/dists/default/Release HTTP/1.1" 200 2192 "-" "python-requests/2.22.0"
May 11 04:59:09 formanserver.mydomain.com pulpcore-content[27603]: [11/May/2021:04:59:09 +0000] "GET /pulp/content/My_Organisation/test/ccv-unix-ubuntu-20-04/custom/UBUNTU-20-04/UBUNTU_20_04_updates/dists/default/Release.gpg HTTP/1.1" 404 172 "-" "python-requests/2.22.0"
May 11 04:59:09 formanserver.mydomain.com pulpcore-content[27603]: [11/May/2021:04:59:09 +0000] "GET /pulp/content/My_Organisation/test/ccv-unix-ubuntu-20-04/custom/UBUNTU-20-04/UBUNTU_20_04_security/dists/default/Release.gpg HTTP/1.1" 404 172 "-" "python-requests/2.22.0"
May 11 04:59:09 formanserver.mydomain.com pulpcore-content[27603]: [11/May/2021:04:59:09 +0000] "GET /pulp/content/My_Organisation/test/ccv-unix-ubuntu-20-04/custom/UBUNTU-20-04/UBUNTU_20_04_main/dists/default/Release.gpg HTTP/1.1" 404 172 "-" "python-requests/2.22.0"
/ displaying pulpcore-resource-manager
β pulpcore-resource-manager.service - Pulp Resource Manager
Loaded: loaded (/etc/systemd/system/pulpcore-resource-manager.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-05-10 17:32:47 UTC; 15h ago
Main PID: 27601 (rq)
Tasks: 2
Memory: 82.4M
CGroup: /system.slice/pulpcore-resource-manager.service
ββ27601 /usr/bin/python3 /usr/bin/rq worker -w pulpcore.tasking.worker.PulpWorker -n resource-manager -c pulpcore.rqconfig --disable-job-desc-logging
May 11 05:46:11 formanserver.mydomain.com pulpcore-resource-manager[27601]: pulp [None]: rq.worker:INFO: Cleaning registries for queue: resource-manager
May 11 06:06:14 formanserver.mydomain.com pulpcore-resource-manager[27601]: pulp [None]: rq.worker:INFO: Cleaning registries for queue: resource-manager
May 11 06:26:17 formanserver.mydomain.com pulpcore-resource-manager[27601]: pulp [None]: rq.worker:INFO: Cleaning registries for queue: resource-manager
May 11 06:46:20 formanserver.mydomain.com pulpcore-resource-manager[27601]: pulp [None]: rq.worker:INFO: Cleaning registries for queue: resource-manager
May 11 07:06:24 formanserver.mydomain.com pulpcore-resource-manager[27601]: pulp [None]: rq.worker:INFO: Cleaning registries for queue: resource-manager
May 11 07:26:27 formanserver.mydomain.com pulpcore-resource-manager[27601]: pulp [None]: rq.worker:INFO: Cleaning registries for queue: resource-manager
May 11 07:46:30 formanserver.mydomain.com pulpcore-resource-manager[27601]: pulp [None]: rq.worker:INFO: Cleaning registries for queue: resource-manager
May 11 08:06:33 formanserver.mydomain.com pulpcore-resource-manager[27601]: pulp [None]: rq.worker:INFO: Cleaning registries for queue: resource-manager
May 11 08:26:36 formanserver.mydomain.com pulpcore-resource-manager[27601]: pulp [None]: rq.worker:INFO: Cleaning registries for queue: resource-manager
May 11 08:46:39 formanserver.mydomain.com pulpcore-resource-manager[27601]: pulp [None]: rq.worker:INFO: Cleaning registries for queue: resource-manager
/ displaying rh-redis5-redis
β rh-redis5-redis.service - Redis persistent key-value database
Loaded: loaded (/usr/lib/systemd/system/rh-redis5-redis.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/rh-redis5-redis.service.d
ββlimit.conf
Active: active (running) since Mon 2021-05-10 17:32:47 UTC; 15h ago
Process: 27284 ExecStop=/opt/rh/rh-redis5/root/usr/libexec/redis-shutdown (code=exited, status=0/SUCCESS)
Main PID: 27574 (redis-server)
Tasks: 4
Memory: 6.4M
CGroup: /system.slice/rh-redis5-redis.service
ββ27574 /opt/rh/rh-redis5/root/usr/bin/redis-server 127.0.0.1:6379
May 10 17:32:47 formanserver.mydomain.com systemd[1]: Starting Redis persistent key-value database...
May 10 17:32:47 formanserver.mydomain.com systemd[1]: Started Redis persistent key-value database.
/ displaying tomcat
β tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/usr/lib/systemd/system/tomcat.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-05-10 17:32:48 UTC; 15h ago
Main PID: 27623 (java)
Tasks: 78
Memory: 1.4G
CGroup: /system.slice/tomcat.service
ββ27623 /usr/lib/jvm/jre-11/bin/java -Xms1024m -Xmx4096m -Djava.security.auth.login.config=/usr/share/tomcat/conf/login.config -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start
May 10 17:33:38 formanserver.mydomain.com server[27623]: May 10, 2021 5:33:38 PM com.google.inject.internal.ProxyFactory <init>
May 10 17:33:38 formanserver.mydomain.com server[27623]: WARNING: Method [public void org.candlepin.model.ContentCurator.delete(org.candlepin.model.Persisted)] is synthetic and is being intercepted by [com.google.inject.persist.jpa.JpaLocalTxnInterceptor@5964b102]. This could indicate a bug. The method may be intercepted twice, or may not be intercepted at all.
May 10 17:33:38 formanserver.mydomain.com server[27623]: May 10, 2021 5:33:38 PM com.google.inject.internal.ProxyFactory <init>
May 10 17:33:38 formanserver.mydomain.com server[27623]: WARNING: Method [public void org.candlepin.model.EntitlementCertificateCurator.delete(org.candlepin.model.Persisted)] is synthetic and is being intercepted by [com.google.inject.persist.jpa.JpaLocalTxnInterceptor@5964b102]. This could indicate a bug. The method may be intercepted twice, or may not be intercepted at all.
May 10 17:33:56 formanserver.mydomain.com server[27623]: May 10, 2021 5:33:56 PM org.apache.catalina.startup.HostConfig deployDirectory
May 10 17:33:56 formanserver.mydomain.com server[27623]: INFO: Deployment of web application directory /var/lib/tomcat/webapps/candlepin has finished in 59,988 ms
May 10 17:33:56 formanserver.mydomain.com server[27623]: May 10, 2021 5:33:56 PM org.apache.coyote.AbstractProtocol start
May 10 17:33:56 formanserver.mydomain.com server[27623]: INFO: Starting ProtocolHandler ["http-bio-127.0.0.1-23443"]
May 10 17:33:56 formanserver.mydomain.com server[27623]: May 10, 2021 5:33:56 PM org.apache.catalina.startup.Catalina start
May 10 17:33:56 formanserver.mydomain.com server[27623]: INFO: Server startup in 60616 ms
/ displaying dynflow-sidekiq@orchestrator
β dynflow-sidekiq@orchestrator.service - Foreman jobs daemon - orchestrator on sidekiq
Loaded: loaded (/usr/lib/systemd/system/dynflow-sidekiq@.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-05-10 17:33:38 UTC; 15h ago
Docs: https://theforeman.org
Main PID: 27647 (sidekiq)
CGroup: /system.slice/system-dynflow\x2dsidekiq.slice/dynflow-sidekiq@orchestrator.service
ββ27647 sidekiq 5.2.7 [0 of 1 busy]
May 10 17:32:48 formanserver.mydomain.com systemd[1]: Starting Foreman jobs daemon - orchestrator on sidekiq...
May 10 17:32:52 formanserver.mydomain.com dynflow-sidekiq@orchestrator[27647]: 2021-05-10T17:32:52.656Z 27647 TID-2k9af INFO: GitLab reliable fetch activated!
May 10 17:32:52 formanserver.mydomain.com dynflow-sidekiq@orchestrator[27647]: 2021-05-10T17:32:52.673Z 27647 TID-g2r6n INFO: Booting Sidekiq 5.2.7 with redis options {:id=>"Sidekiq-server-PID-27647", :url=>"redis://localhost:6379/0"}
May 10 17:32:56 formanserver.mydomain.com dynflow-sidekiq@orchestrator[27647]: /usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
May 10 17:32:56 formanserver.mydomain.com dynflow-sidekiq@orchestrator[27647]: /usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
May 10 17:33:38 formanserver.mydomain.com systemd[1]: Started Foreman jobs daemon - orchestrator on sidekiq.
/ displaying foreman
β foreman.service - Foreman
Loaded: loaded (/usr/lib/systemd/system/foreman.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/foreman.service.d
ββinstaller.conf
Active: active (running) since Mon 2021-05-10 17:33:40 UTC; 15h ago
Docs: https://theforeman.org
Main PID: 27645 (ruby)
Tasks: 39
Memory: 1.3G
CGroup: /system.slice/foreman.service
ββ27645 puma 5.1.1 (unix:///run/foreman.sock) [foreman]
ββ28115 puma: cluster worker 0: 27645 [foreman]
ββ28119 puma: cluster worker 1: 27645 [foreman]
May 10 17:33:40 formanserver.mydomain.com foreman[27645]: [27645] * Master PID: 27645
May 10 17:33:40 formanserver.mydomain.com foreman[27645]: [27645] * Workers: 2
May 10 17:33:40 formanserver.mydomain.com foreman[27645]: [27645] * Restarts: (β) hot (β) phased
May 10 17:33:40 formanserver.mydomain.com foreman[27645]: [27645] * Preloading application
May 10 17:33:40 formanserver.mydomain.com foreman[27645]: [27645] * Activated unix:///run/foreman.sock
May 10 17:33:40 formanserver.mydomain.com foreman[27645]: [27645] Use Ctrl-C to stop
May 10 17:33:40 formanserver.mydomain.com foreman[27645]: [27645] - Worker 1 (PID: 28119) booted, phase: 0
May 10 17:33:40 formanserver.mydomain.com foreman[27645]: [27645] - Worker 0 (PID: 28115) booted, phase: 0
May 10 17:33:40 formanserver.mydomain.com systemd[1]: Started Foreman.
May 10 19:59:20 formanserver.mydomain.com foreman[27645]: /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.0.1/lib/foreman_tasks.rb:39: warning: constant ::TimeoutError is deprecated
/ displaying httpd
β httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-05-10 17:32:48 UTC; 15h ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 26967 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
Main PID: 27637 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
Tasks: 14
Memory: 16.7M
CGroup: /system.slice/httpd.service
ββ16144 /usr/sbin/httpd -DFOREGROUND
ββ27637 /usr/sbin/httpd -DFOREGROUND
ββ27677 /usr/sbin/httpd -DFOREGROUND
ββ27684 /usr/sbin/httpd -DFOREGROUND
ββ27685 /usr/sbin/httpd -DFOREGROUND
ββ27686 /usr/sbin/httpd -DFOREGROUND
ββ27687 /usr/sbin/httpd -DFOREGROUND
ββ27689 /usr/sbin/httpd -DFOREGROUND
ββ27690 /usr/sbin/httpd -DFOREGROUND
ββ27691 /usr/sbin/httpd -DFOREGROUND
ββ29041 /usr/sbin/httpd -DFOREGROUND
ββ29081 /usr/sbin/httpd -DFOREGROUND
ββ29082 /usr/sbin/httpd -DFOREGROUND
ββ29127 /usr/sbin/httpd -DFOREGROUND
May 10 17:32:48 formanserver.mydomain.com systemd[1]: Starting The Apache HTTP Server...
May 10 17:32:48 formanserver.mydomain.com systemd[1]: Started The Apache HTTP Server.
/ displaying puppetserver
β puppetserver.service - puppetserver Service
Loaded: loaded (/usr/lib/systemd/system/puppetserver.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-05-10 17:33:53 UTC; 15h ago
Process: 26971 ExecStop=/opt/puppetlabs/server/apps/puppetserver/bin/puppetserver stop (code=exited, status=0/SUCCESS)
Process: 27643 ExecStart=/opt/puppetlabs/server/apps/puppetserver/bin/puppetserver start (code=exited, status=0/SUCCESS)
Main PID: 27748 (java)
Tasks: 57 (limit: 4915)
Memory: 1.3G
CGroup: /system.slice/puppetserver.service
ββ27748 /usr/bin/java -Xms2G -Xmx2G -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger -XX:OnOutOfMemoryError="kill -9 %p" -XX:ErrorFile=/var/log/puppetlabs/puppetserver/puppetserver_err_pid%p.log -cp /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar:/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter.jar:/opt/puppetlabs/server/data/puppetserver/jars/* clojure.main -m puppetlabs.trapperkeeper.main --config /etc/puppetlabs/puppetserver/conf.d --bootstrap-config /etc/puppetlabs/puppetserver/services.d/,/opt/puppetlabs/server/apps/puppetserver/config/services.d/ --restart-file /opt/puppetlabs/server/data/puppetserver/restartcounter
May 10 17:32:48 formanserver.mydomain.com systemd[1]: Starting puppetserver Service...
May 10 17:33:53 formanserver.mydomain.com systemd[1]: Started puppetserver Service.
/ displaying dynflow-sidekiq@worker
β dynflow-sidekiq@worker.service - Foreman jobs daemon - worker on sidekiq
Loaded: loaded (/usr/lib/systemd/system/dynflow-sidekiq@.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-05-10 17:34:21 UTC; 15h ago
Docs: https://theforeman.org
Main PID: 28435 (sidekiq)
CGroup: /system.slice/system-dynflow\x2dsidekiq.slice/dynflow-sidekiq@worker.service
ββ28435 sidekiq 5.2.7 [0 of 5 busy]
May 10 19:45:43 formanserver.mydomain.com dynflow-sidekiq@worker[28435]: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:125:in `block in dispatch'
May 10 19:45:43 formanserver.mydomain.com dynflow-sidekiq@worker[28435]: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:48:in `with_context'
May 10 19:45:43 formanserver.mydomain.com dynflow-sidekiq@worker[28435]: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:42:in `with_job_hash_context'
May 10 19:45:43 formanserver.mydomain.com dynflow-sidekiq@worker[28435]: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:124:in `dispatch'
May 10 19:45:43 formanserver.mydomain.com dynflow-sidekiq@worker[28435]: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:163:in `process'
May 10 19:45:43 formanserver.mydomain.com dynflow-sidekiq@worker[28435]: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:83:in `process_one'
May 10 19:45:43 formanserver.mydomain.com dynflow-sidekiq@worker[28435]: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:71:in `run'
May 10 19:45:43 formanserver.mydomain.com dynflow-sidekiq@worker[28435]: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:16:in `watchdog'
May 10 19:45:43 formanserver.mydomain.com dynflow-sidekiq@worker[28435]: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:25:in `block in safe_thread'
May 10 19:45:43 formanserver.mydomain.com dynflow-sidekiq@worker[28435]: /opt/theforeman/tfm/root/usr/share/gems/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
/ displaying dynflow-sidekiq@worker-hosts-queue
β dynflow-sidekiq@worker-hosts-queue.service - Foreman jobs daemon - worker-hosts-queue on sidekiq
Loaded: loaded (/usr/lib/systemd/system/dynflow-sidekiq@.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-05-10 17:34:21 UTC; 15h ago
Docs: https://theforeman.org
Main PID: 28437 (sidekiq)
CGroup: /system.slice/system-dynflow\x2dsidekiq.slice/dynflow-sidekiq@worker-hosts-queue.service
ββ28437 sidekiq 5.2.7 [0 of 5 busy]
May 10 17:33:53 formanserver.mydomain.com systemd[1]: Starting Foreman jobs daemon - worker-hosts-queue on sidekiq...
May 10 17:33:56 formanserver.mydomain.com dynflow-sidekiq@worker-hosts-queue[28437]: 2021-05-10T17:33:56.255Z 28437 TID-7kwm5 INFO: GitLab reliable fetch activated!
May 10 17:33:56 formanserver.mydomain.com dynflow-sidekiq@worker-hosts-queue[28437]: 2021-05-10T17:33:56.259Z 28437 TID-lgsm5 INFO: Booting Sidekiq 5.2.7 with redis options {:id=>"Sidekiq-server-PID-28437", :url=>"redis://localhost:6379/0"}
May 10 17:33:59 formanserver.mydomain.com dynflow-sidekiq@worker-hosts-queue[28437]: /usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
May 10 17:33:59 formanserver.mydomain.com dynflow-sidekiq@worker-hosts-queue[28437]: /usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
May 10 17:34:21 formanserver.mydomain.com systemd[1]: Started Foreman jobs daemon - worker-hosts-queue on sidekiq.
/ displaying foreman-proxy
β foreman-proxy.service - Foreman Proxy
Loaded: loaded (/usr/lib/systemd/system/foreman-proxy.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-05-10 17:34:22 UTC; 15h ago
Main PID: 28716 (ruby)
Tasks: 4
Memory: 25.2M
CGroup: /system.slice/foreman-proxy.service
ββ28716 ruby /usr/share/foreman-proxy/bin/smart-proxy --no-daemonize
May 10 17:34:21 formanserver.mydomain.com systemd[1]: Starting Foreman Proxy...
May 10 17:34:22 formanserver.mydomain.com systemd[1]: Started Foreman Proxy.
/ All services are running [OK]
--------------------------------------------------------------------------------
My word of caution is to be mindful of any non-read options through the CLI directly in Pulp given the orchestration that Katello does. I think we need some guidance from @Justin_Sherrill and team what the strategy is for the Pulp CLI and caveats for users.
That is a very good observation. You could configure the dry-run option in the settings. So no dangerous operation can ever be performed. And if you like we can add a corresponding --no-dry-run flag to override it again. We could also implement a --confirm option.
WDYT?