# mv /var/run/zypp.pid /var/run/zypp.sav
# /usr/bin/zypper remove httpd
# mv /var/run/zypp.sav /var/run/zypp.pid
(补充:这里以删除 httpd 软件为例)
# mv /var/run/zypp.pid /var/run/zypp.sav
# /usr/bin/zypper remove httpd
# mv /var/run/zypp.sav /var/run/zypp.pid
(补充:这里以删除 httpd 软件为例)
(步骤略)
# sudo su - postgres -c "psql -d foreman -c 'select label,count(label),state,result from foreman_tasks_tasks where state <> '\''stopped'\'' group by label,state,result ORDER BY label;'"
label | count | state | result
------------------------------------------------------+-------+-----------+---------
Actions::Katello::ContentView::Publish | 1 | paused | error
......
(补充:从这里可以看出运行结果是错误的任务标签是 Actions::Katello::ContentView::Publish)
# foreman-rake foreman_tasks:cleanup TASK_SEARCH='label = Actions::Katello::ContentView::Publish' STATES='paused' VERBOSE=true
(补充:这里以强制停止标签为 Actions::Katello::ContentView::Publish 的任务为例)
# hammer content-view list
----------------|---------------------------|--------------------------------------|-----------|---------------------|---------------------------------------------------------------------------------
CONTENT VIEW ID | NAME | LABEL | COMPOSITE | LAST PUBLISHED | REPOSITORY IDS
----------------|---------------------------|--------------------------------------|-----------|---------------------|---------------------------------------------------------------------------------
10 | test_CV | test_CV | false | 2022/06/23 20:20:20 | 61525, 16812, 61524, 16814, 16813, 16811, 16816, 16817, 6578, 231, 8, 9, 131,...
# hammer content-view info --id 10
(补充:这里以显示 ID 为 10 的 Content View 的信息为例)
# vim /etc/rmt.conf
将部分内容修改如下:
http_client:
verbose: false
proxy: http://eternalcenter.com:8000
proxy_auth:
proxy_user:
proxy_password:
(补充:这里以将网络代理网址设置为 http://eternalcenter.com,网络代理端口设置为 8000,不使用密码为例)
# satellite-maintain service stop
(补充:这里以备份虚拟环境下的 Red Hat Satellite 为例)
# poweroff
(步骤略)
(步骤略)
# satellite-maintain upgrade list-versions
# satellite-maintain upgrade check --target-version 6.10.z
(注意:如果是升级 Red Hat Satellite 的话就指定最新的版本,如果是给 Red Hat Satellite 打补丁的话就选择当前的版本)
(补充:这里以指定 6.10.z 版本的 Red Hat Satellite 为例)
# satellite-maintain upgrade run --target-version 6.10.z
(
注意:
1) 只有当预检测升级 Red Hat Satellite 或给 Red Hat Satellite 打补丁成功后才能接着执行此步骤
2) 如果是升级 Red Hat Satellite 的话就指定最新的版本,如果是给 Red Hat Satellite 打补丁的话就选择当前的版本
)
(补充:这里以指定 6.10.z 版本的 Red Hat Satellite 为例)
# satellite-maintain service stop
# reboot