5.5. 从 Red Hat Satellite Capsule Server 上删除生命周期环境
在有些情况下,可能需要从 Red Hat Satellite Capsule Server 中删除生命周期环境。例如:
- 生命周期环境不再和主机系统关联时
- 错误地将生命周期环境添加到 Satellite Capsule Server 时
从 Satellite Capsule Server 中删除生命周期环境:
- 以 root 的身份登录 Satellite Server CLI。
- 从列表中选项 Red Hat Satellite Capsule Server,并记录其
id
:hammer capsule list
# hammer capsule list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用以下命令可以查看 Satellite Capsule Server 的详情:hammer capsule info --id capsule_id_number
# hammer capsule info --id capsule_id_number
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 检查 Red Hat Capsule Server 中的生命周期环境,并记录
environment id
:hammer capsule content lifecycle-environments --id capsule_id_number
hammer capsule content lifecycle-environments --id capsule_id_number
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 从 Satellite Capsule Server 中删除生命周期环境:
hammer capsule content remove-lifecycle-environment --id capsule_id_number --environment-id environment_id
# hammer capsule content remove-lifecycle-environment --id capsule_id_number --environment-id environment_id
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 其中:--id
是 Satellite Capsule Server 的 ID。--environment-id
是生命周期环境的 ID。
重复以上步骤从 Capsule Server 上删除相应的生命周期环境。 - 从 Satellite Server 的环境中将内容同步到 Satellite Capsule Server:
hammer capsule content available-lifecycle-environments --id capsule_id_number
# hammer capsule content available-lifecycle-environments --id capsule_id_number
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
结果:
将所选环境从 Satellite Capsule Server 中删除。
14370%2C+Installation+Guide-6.0-131-10-2014+12%3A29%3A02Red+Hat+Satellite+6Docs+Install+Guide提交 bug 报告