Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the redhat service #758

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -218,20 +218,13 @@ The resources in the `ConfigMap` contain cell-specific configurations.
ifeval::["{build}" == "downstream"]
. Create a secret for the subscription manager:
+
[source,yaml]
----
$ oc apply -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
name: subscription-manager
data:
username: <base64_encoded_username>
password: <base64_encoded_password>
EOF
$ oc create secret generic subscription-manager \
--from-literal rhc_auth='{"login": {"username": "<subscription_manager_username>", "password": "<subscription_manager_password>"}}'
----
+
* Replace `<base64_encoded_username>` and `<base64_encoded_password>` with strings that are base64-encoded.
* Replace `<subscription_manager_username>` with the applicable user name.
* Replace `<subscription_manager_password>` with the applicable password.

. Create a secret for the Red Hat registry:
+
Expand Down Expand Up @@ -259,6 +252,9 @@ spec:
- ctlplane
preProvisioned: true
services:
ifeval::["{build}" == "downstream"]
- redhat
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about tests, shall we add it?
please submit follow up

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should update downstream CI to use this service

endif::[]
- bootstrap
- download-cache
- configure-network
Expand Down Expand Up @@ -301,13 +297,23 @@ spec:
ansibleUser: root
ifeval::["{build}" == "downstream"]
ansibleVarsFrom:
- prefix: subscription_manager_
secretRef:
- secretRef:
name: subscription-manager
- secretRef:
name: redhat-registry
endif::[]
ansibleVars:
ifeval::["{build}" == "downstream"]
rhc_release: 9.2
rhc_repositories:
- {name: "*", state: disabled}
- {name: "rhel-9-for-x86_64-baseos-eus-rpms", state: enabled}
- {name: "rhel-9-for-x86_64-appstream-eus-rpms", state: enabled}
- {name: "rhel-9-for-x86_64-highavailability-eus-rpms", state: enabled}
- {name: "openstack-17.1-for-rhel-9-x86_64-rpms", state: enabled}
- {name: "fast-datapath-for-rhel-9-x86_64-rpms", state: enabled}
- {name: "openstack-dev-preview-for-rhel-9-x86_64-rpms", state: enabled}
endif::[]
edpm_bootstrap_release_version_package: []
# edpm_network_config
# Default nic config template for a EDPM node
Expand Down Expand Up @@ -394,10 +400,6 @@ ifeval::["{build}" != "downstream"]
endif::[]
ifeval::["{build}" == "downstream"]
edpm_bootstrap_command: |
subscription-manager register --username {{ subscription_manager_username }} --password {{ subscription_manager_password }}
subscription-manager release --set=9.2
subscription-manager repos --disable=*
subscription-manager repos --enable=rhel-9-for-x86_64-baseos-eus-rpms --enable=rhel-9-for-x86_64-appstream-eus-rpms --enable=rhel-9-for-x86_64-highavailability-eus-rpms --enable=openstack-17.1-for-rhel-9-x86_64-rpms --enable=fast-datapath-for-rhel-9-x86_64-rpms --enable=openstack-dev-preview-for-rhel-9-x86_64-rpms
# FIXME: perform dnf upgrade for other packages in EDPM ansible
# here we only ensuring that decontainerized libvirt can start
dnf -y upgrade openstack-selinux
Expand Down Expand Up @@ -437,6 +439,9 @@ external_ids : {hostname=standalone.localdomain, ovn-bridge=br-int, ovn-b
$ oc patch osdpns/openstack --type=merge --patch "
spec:
services:
ifeval::["{build}" == "downstream"]
- redhat
endif::[]
- bootstrap
- download-cache
- configure-network
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ spec:
- ctlplane
preProvisioned: true
services:
ifeval::["{build}" == "downstream"]
- redhat
endif::[]
- bootstrap
- download-cache
- configure-network
Expand Down Expand Up @@ -83,13 +86,23 @@ spec:
ansibleUser: root
ifeval::["{build}" == "downstream"]
ansibleVarsFrom:
- prefix: subscription_manager_
secretRef:
- secretRef:
name: subscription-manager
- secretRef:
name: redhat-registry
endif::[]
ansibleVars:
ifeval::["{build}" == "downstream"]
rhc_release: 9.2
rhc_repositories:
- {name: "*", state: disabled}
- {name: "rhel-9-for-x86_64-baseos-eus-rpms", state: enabled}
- {name: "rhel-9-for-x86_64-appstream-eus-rpms", state: enabled}
- {name: "rhel-9-for-x86_64-highavailability-eus-rpms", state: enabled}
- {name: "openstack-17.1-for-rhel-9-x86_64-rpms", state: enabled}
- {name: "fast-datapath-for-rhel-9-x86_64-rpms", state: enabled}
- {name: "openstack-dev-preview-for-rhel-9-x86_64-rpms", state: enabled}
endif::[]
edpm_bootstrap_release_version_package: []
# edpm_network_config
# Default nic config template for a EDPM node
Expand Down Expand Up @@ -173,13 +186,6 @@ ifeval::["{build}" != "downstream"]
./venv/bin/repo-setup current-podified -b antelope -d centos9 --stream
rm -rf repo-setup-main
endif::[]
ifeval::["{build}" == "downstream"]
edpm_bootstrap_command: |
subscription-manager register --username {{ subscription_manager_username }} --password {{ subscription_manager_password }}
subscription-manager release --set=9.2
subscription-manager repos --disable=*
subscription-manager repos --enable=rhel-9-for-x86_64-baseos-eus-rpms --enable=rhel-9-for-x86_64-appstream-eus-rpms --enable=rhel-9-for-x86_64-highavailability-eus-rpms --enable=openstack-17.1-for-rhel-9-x86_64-rpms --enable=fast-datapath-for-rhel-9-x86_64-rpms --enable=openstack-dev-preview-for-rhel-9-x86_64-rpms
endif::[]

gather_facts: false
enable_debug: false
Expand Down
Loading