Bug #33540
Run 'subscription-manager clean' when force=true
Description
Description of problem:
Registration of CentOS 8 & RHEL 8 hosts that are already subscribed to another instance (or to cloud) fails with following error:
```
Unregistering from: satellite.example.com
Unable to verify server's identity: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:897)
```
Version-Release number of selected component (if applicable):
6.10
- CentOS 8 and RHEL 8 only that are already subscribed somewhere else
Steps to Reproduce:
1. Try to register already subscribed CentOS 8 / RHEL 8 machine
Actual results:
Registration fails with error:
```
Unregistering from: satellite.example.com
Unable to verify server's identity: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:897)
```
Expected results:
Machine successfully registered.
Additional info:
Registration template should run `subscription-manager clean` command when `--force` parameter is `true`
Associated revisions
History
#1
Updated by Leos Stejskal 11 months ago
- Assignee set to Leos Stejskal
- Category set to Host registration
- Description updated (diff)
- Subject changed from b"Run 'subscription-manager clean' when force=true" to Run 'subscription-manager clean' when force=true
#2
Updated by The Foreman Bot 11 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8789 added
#3
Updated by The Foreman Bot 11 months ago
- Fixed in Releases 3.1.0 added
#4
Updated by Anonymous 11 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|7d12d02ec8be014284e5eeb102736d14f03f8c1d.
Fixes #33540 - Run 'subscription-manager clean' when force=true