METAL-1089: Enable CRB repo in RHEL9 - #1674
Conversation
Starting from RHEL9 some packages (e.g. libvirt-devel) have been moved to the CRB repo, which is not enabled by default. Add the proper command to enable it on RHEL9, noting that a valid subscription is needed for that.
|
/retest |
1 similar comment
|
/retest |
|
/lgtm |
|
/test e2e-metal-ipi-serial-ipv4 |
|
/jira refresh |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mkowalski The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
1 similar comment
|
/retest |
|
/override ci/prow/e2e-metal-ipi-serial-ipv4 |
|
@elfosardo: Overrode contexts on behalf of elfosardo: ci/prow/e2e-metal-ipi-serial-ipv4 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This reverts commit 434b867.
openshift-metal3#1674 enables CRB repos on RHEL using subscription-manager. RHEL system might not be subscribed to subscription-manager. Then dev-scripts installation will fail. In order to fix it. We can use subscription-manager identity command to check the system status. If a system is subscribed to subscription manager, then exit status will be 0 else 1. Below is the example for the same: A system is subscribed with subscription-manager: ``` [zuul@ospci-baremetal-01 ~]$ sudo subscription-manager identity system identity: xxx name: xxx org name: xxx org ID: xxx [zuul@ospci-baremetal-01 ~]$ echo $? 0 ``` A system with no subscrition: ``` [root@ospci-baremetal-02 ~]# subscription-manager identity This system is not yet registered. Try 'subscription-manager register --help' for more information. [root@ospci-baremetal-02 ~]# echo $? 1 ``` Signed-off-by: Chandan Kumar <raukadah@gmail.com>
openshift-metal3#1674 enables CRB repos on RHEL using subscription-manager. RHEL system might not be subscribed to subscription-manager. Then dev-scripts installation will fail. In order to fix it. We can use subscription-manager identity command to check the system status. If a system is subscribed to subscription manager, then exit status will be 0 else 1. Below is the example for the same: A system is subscribed with subscription-manager: ``` [zuul@ospci-baremetal-01 ~]$ sudo subscription-manager identity system identity: xxx name: xxx org name: xxx org ID: xxx [zuul@ospci-baremetal-01 ~]$ echo $? 0 ``` A system with no subscrition: ``` [root@ospci-baremetal-02 ~]# subscription-manager identity This system is not yet registered. Try 'subscription-manager register --help' for more information. [root@ospci-baremetal-02 ~]# echo $? 1 ``` Signed-off-by: Chandan Kumar <raukadah@gmail.com>
openshift-metal3#1674 enables CRB repos on RHEL using subscription-manager. RHEL system might not be subscribed to subscription-manager. The system might be using custom repos to install libvirt-devel package. Then dev-scripts installation will fail. In order to fix it. We can use subscription-manager identity command to check the system status. If a system is subscribed to subscription manager, then exit status will be 0 else 1. It will help us to use both the system. Below is the example for the same: A system is subscribed with subscription-manager: ``` [zuul@ospci-baremetal-01 ~]$ sudo subscription-manager identity system identity: xxx name: xxx org name: xxx org ID: xxx [zuul@ospci-baremetal-01 ~]$ echo $? 0 ``` A system with no subscrition: ``` [root@ospci-baremetal-02 ~]# subscription-manager identity This system is not yet registered. Try 'subscription-manager register --help' for more information. [root@ospci-baremetal-02 ~]# echo $? 1 ``` Signed-off-by: Chandan Kumar <raukadah@gmail.com>
openshift-metal3#1674 enables CRB repos on RHEL using subscription-manager. RHEL system might not be subscribed to subscription-manager. The system might be using custom repos to install libvirt-devel package. Then dev-scripts installation will fail. In order to fix it. We can use subscription-manager identity command to check the system status. If a system is subscribed to subscription manager, then exit status will be 0 else 1. It will help us to use both the system. Below is the example for the same: A system is subscribed with subscription-manager: ``` [zuul@ospci-baremetal-01 ~]$ sudo subscription-manager identity system identity: xxx name: xxx org name: xxx org ID: xxx [zuul@ospci-baremetal-01 ~]$ echo $? 0 ``` A system with no subscrition: ``` [root@ospci-baremetal-02 ~]# subscription-manager identity This system is not yet registered. Try 'subscription-manager register --help' for more information. [root@ospci-baremetal-02 ~]# echo $? 1 ``` Signed-off-by: Chandan Kumar <raukadah@gmail.com>
openshift-metal3#1674 enables CRB repos on RHEL using subscription-manager. RHEL system might not be subscribed to subscription-manager. The system might be using custom repos to install libvirt-devel package. Then dev-scripts installation will fail. In order to fix it. We can use subscription-manager identity command to check the system status. If a system is subscribed to subscription manager, then exit status will be 0 else 1. It will help us to use both the system. Below is the example for the same: A system is subscribed with subscription-manager: ``` [zuul@ospci-baremetal-01 ~]$ sudo subscription-manager identity system identity: xxx name: xxx org name: xxx org ID: xxx [zuul@ospci-baremetal-01 ~]$ echo $? 0 ``` A system with no subscrition: ``` [root@ospci-baremetal-02 ~]# subscription-manager identity This system is not yet registered. Try 'subscription-manager register --help' for more information. [root@ospci-baremetal-02 ~]# echo $? 1 ``` Signed-off-by: Chandan Kumar <raukadah@gmail.com>
openshift-metal3/dev-scripts#1674 enables CRB repos on RHEL using subscription-manager to devscript. It breaks downstream baremetal job. In downstream, we add custom crb repos. The systems are not subscribed to subscription manager. It is blocking the pipelines. openshift-metal3/dev-scripts#1681 runs subscription-manager command when system is subscribed. Since it is not merged yet. Let's copy the patch in devscripts role to unblock it. Signed-off-by: Chandan Kumar <raukadah@gmail.com>
openshift-metal3/dev-scripts#1674 enables CRB repos on RHEL using subscription-manager to devscript. It breaks downstream baremetal job. In downstream, we add custom crb repos. The systems are not subscribed to subscription manager. It is blocking the pipelines. openshift-metal3/dev-scripts#1681 runs subscription-manager command when system is subscribed. Since it is not merged yet. Let's copy the patch in devscripts role to unblock it. Signed-off-by: Chandan Kumar <raukadah@gmail.com>
#1674 enables CRB repos on RHEL using subscription-manager. RHEL system might not be subscribed to subscription-manager. The system might be using custom repos to install libvirt-devel package. Then dev-scripts installation will fail. In order to fix it. We can use subscription-manager identity command to check the system status. If a system is subscribed to subscription manager, then exit status will be 0 else 1. It will help us to use both the system. Below is the example for the same: A system is subscribed with subscription-manager: ``` [zuul@ospci-baremetal-01 ~]$ sudo subscription-manager identity system identity: xxx name: xxx org name: xxx org ID: xxx [zuul@ospci-baremetal-01 ~]$ echo $? 0 ``` A system with no subscrition: ``` [root@ospci-baremetal-02 ~]# subscription-manager identity This system is not yet registered. Try 'subscription-manager register --help' for more information. [root@ospci-baremetal-02 ~]# echo $? 1 ``` Signed-off-by: Chandan Kumar <raukadah@gmail.com>
Starting from RHEL9 some packages (e.g. libvirt-devel) have been moved to the CRB repo, which is not enabled by default. Add the proper command to enable it on RHEL9, noting that a valid subscription is needed for that.