Skip to content

METAL-1089: Enable CRB repo in RHEL9 - #1674

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift-metal3:masterfrom
elfosardo:rhel9-crb
Jul 22, 2024
Merged

METAL-1089: Enable CRB repo in RHEL9#1674
openshift-merge-bot[bot] merged 1 commit into
openshift-metal3:masterfrom
elfosardo:rhel9-crb

Conversation

@elfosardo

Copy link
Copy Markdown
Member

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.

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.
@openshift-ci
openshift-ci Bot requested review from bfournie and celebdor July 10, 2024 07:45
@elfosardo

Copy link
Copy Markdown
Member Author

/retest

1 similar comment
@elfosardo

Copy link
Copy Markdown
Member Author

/retest

@iurygregory

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 12, 2024
@iurygregory

Copy link
Copy Markdown
Contributor

/test e2e-metal-ipi-serial-ipv4

@elfosardo elfosardo changed the title Enable CRB repo in RHEL9 METAL-1089: Enable CRB repo in RHEL9 Jul 16, 2024
@elfosardo

Copy link
Copy Markdown
Member Author

/jira refresh

@elfosardo

Copy link
Copy Markdown
Member Author

/cc @derekhiggins @andfasano

@openshift-ci
openshift-ci Bot requested review from andfasano and derekhiggins July 18, 2024 07:21
@mkowalski

Copy link
Copy Markdown
Member

/approve

@openshift-ci

openshift-ci Bot commented Jul 19, 2024

Copy link
Copy Markdown

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 19, 2024
@elfosardo

Copy link
Copy Markdown
Member Author

/retest

1 similar comment
@elfosardo

Copy link
Copy Markdown
Member Author

/retest

@elfosardo

Copy link
Copy Markdown
Member Author

/override ci/prow/e2e-metal-ipi-serial-ipv4
not related

@openshift-ci

openshift-ci Bot commented Jul 22, 2024

Copy link
Copy Markdown

@elfosardo: Overrode contexts on behalf of elfosardo: ci/prow/e2e-metal-ipi-serial-ipv4

Details

In response to this:

/override ci/prow/e2e-metal-ipi-serial-ipv4
not related

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.

@openshift-merge-bot
openshift-merge-bot Bot merged commit 434b867 into openshift-metal3:master Jul 22, 2024
eduolivares added a commit to eduolivares/dev-scripts that referenced this pull request Jul 22, 2024
raukadah added a commit to raukadah/dev-scripts that referenced this pull request Jul 23, 2024
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>
raukadah added a commit to raukadah/dev-scripts that referenced this pull request Jul 23, 2024
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>
raukadah added a commit to raukadah/dev-scripts that referenced this pull request Jul 23, 2024
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>
raukadah added a commit to raukadah/dev-scripts that referenced this pull request Jul 23, 2024
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>
raukadah added a commit to raukadah/dev-scripts that referenced this pull request Jul 23, 2024
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>
cjeanner pushed a commit to openstack-k8s-operators/ci-framework that referenced this pull request Jul 23, 2024
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-merge-bot Bot pushed a commit to openstack-k8s-operators/ci-framework that referenced this pull request Jul 23, 2024
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-merge-bot Bot pushed a commit that referenced this pull request Jul 23, 2024
#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants