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

DRAFT: openSUSE Leap 16.0 (Alpha) #9491

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
3 changes: 3 additions & 0 deletions java/code/src/com/redhat/rhn/domain/server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -2507,6 +2507,9 @@ boolean isLeap() {
boolean isLeap15() {
return ServerConstants.LEAP.equalsIgnoreCase(getOs()) && getRelease().startsWith("15");
}
boolean isLeap16() {
return ServerConstants.LEAP.equalsIgnoreCase(getOs()) && getRelease().startsWith("16");
}

/**
* @return true if the installer type is of openSUSE Leap Micro
Expand Down
1 change: 1 addition & 0 deletions java/spacewalk-java.changes.juliogonzalez.leap16.0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Add product identification for openSUSE Leap 16.0 (Alpha)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Add GPG key for SLFO packages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
insert into rhnPackageKey (id, key_id, key_type_id, provider_id) (select sequence_nextval('rhn_pkey_id_seq'), 'fec28eaf09d9ea69', lookup_package_key_type('gpg'), lookup_package_provider('SUSE LLC') from dual where not exists (select 1 from rhnPackageKey where key_id = 'fec28eaf09d9ea69'));
Copy link
Member Author

Choose a reason for hiding this comment

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

Note, this is probably going to be needed to support SLE Micro 6.1, so if we add support before merging this PR, this needs to be done on master, and this will need to be removed from this PR.

20 changes: 20 additions & 0 deletions susemanager/src/mgr_bootstrap_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,26 @@
"PKGLIST": PKGLIST15_SALT + PKGLIST15_X86_ARM,
"DEST": DOCUMENT_ROOT + "/pub/repositories/opensuse/15/6/bootstrap/",
},
"openSUSE-Leap-16.0-x86_64-uyuni": {
"BASECHANNEL": "opensuse_leap16_0-x86_64",
"PKGLIST": PKGLISTMICRO_BUNDLE_ONLY,
Copy link
Member Author

Choose a reason for hiding this comment

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

I am tempted to create a group called PKGLIST_BUNDLE_ONLY... any new OS will only support bundle, regardless of being Micro or not... right?

"DEST": DOCUMENT_ROOT + "/pub/repositories/opensuse/16/0/bootstrap/",
},
"openSUSE-Leap-16.0-aarch64-uyuni": {
"BASECHANNEL": "opensuse_leap16_0-aarch64",
"PKGLIST": PKGLISTMICRO_BUNDLE_ONLY,
"DEST": DOCUMENT_ROOT + "/pub/repositories/opensuse/16/0/bootstrap/",
},
"openSUSE-Leap-16.0-s390x-uyuni": {
"BASECHANNEL": "opensuse_leap16_0-s390x",
"PKGLIST": PKGLISTMICRO_BUNDLE_ONLY,
"DEST": DOCUMENT_ROOT + "/pub/repositories/opensuse/16/0/bootstrap/",
},
"openSUSE-Leap-16.0-ppc64le-uyuni": {
"BASECHANNEL": "opensuse_leap16_0-ppc64le",
"PKGLIST": PKGLISTMICRO_BUNDLE_ONLY,
"DEST": DOCUMENT_ROOT + "/pub/repositories/opensuse/16/0/bootstrap/",
},
"openSUSE-Leap-Micro-5.3-x86_64-uyuni": {
"BASECHANNEL": "opensuse_micro5_3-x86_64",
"PKGLIST": PKGLISTMICRO_BUNDLE_ONLY,
Expand Down
1 change: 1 addition & 0 deletions susemanager/susemanager.changes.juliogonzalez.leap16.0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Add openSUSE Leap 16.0 (Alpha) bootstrap repositories
32 changes: 32 additions & 0 deletions utils/spacewalk-common-channels.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,38 @@ gpgkey_id = %(_uyuni_gpgkey_id)s
gpgkey_fingerprint = %(_uyuni_gpgkey_fingerprint)s
repo_url = https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Master:/openSUSE_Leap_15-Uyuni-Client-Tools/openSUSE_Leap_15.0/

[opensuse_leap16_0]
checksum = sha256
archs = x86_64, aarch64, s390x, ppc6le
name = openSUSE Leap 16.0 (%(arch)s)
gpgkey_url = file:///usr/lib/rpm/gnupg/keys/gpg-pubkey-29b700a4-62b07e22.asc
gpgkey_id = 29B700A4
gpgkey_fingerprint = AD48 5664 E901 B867 051A B15F 35A2 F86E 29B7 00A4
repo_url = https://cdn.opensuse.org/distribution/leap/16.0/repo/oss/
Copy link
Member Author

Choose a reason for hiding this comment

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

While this repo was available at the instance as both download.opensuse.org and cdn.opensuse.org, it seems cdn.opensuse.org is the future: https://news.opensuse.org/2023/07/31/try-out-cdn-with-opensuse-repos/

This change is already part of openSUSE Leap Micro 6.0, so expect it to be part of openSUSE Leap 16.0

dist_map_release = 16.0

# This is expected. openSUSE Leap 16.0 client tools are valid for all openSUSE Leap 16.X releases
[opensuse_leap16_0-uyuni-client]
name = Uyuni Client Tools for %(base_channel_name)s
archs = x86_64, aarch64, s390x, ppc6le
Copy link
Member Author

Choose a reason for hiding this comment

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

Yup, for now they ISOs for all of them: https://get.opensuse.org/leap/16.0/

base_channels = opensuse_leap16_0-%(arch)s
checksum = sha256
gpgkey_url = %(_uyuni_gpgkey_url)s
gpgkey_id = %(_uyuni_gpgkey_id)s
gpgkey_fingerprint = %(_uyuni_gpgkey_fingerprint)s
repo_url = https://cdn.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable:/SLMicro6-Uyuni-Client-Tools/SL-Micro6/
Copy link
Member Author

Choose a reason for hiding this comment

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

Work for now, but we need to decide if we want SLMicro6 or other client tools. Should be related to what we want to do for SUSE Linux 16 as well.


# This is expected. openSUSE Leap 16.0 client tools are valid for all openSUSE Leap 16.X releases
[opensuse_leap16_0-uyuni-client-devel]
name = Uyuni Client Tools for %(base_channel_name)s (Development)
archs = x86_64, aarch64, s390x, ppc6le
base_channels = opensuse_leap16_0-%(arch)s
checksum = sha256
gpgkey_url = %(_uyuni_gpgkey_url)s
gpgkey_id = %(_uyuni_gpgkey_id)s
gpgkey_fingerprint = %(_uyuni_gpgkey_fingerprint)s
repo_url = https://cdn.opensuse.org/repositories/systemsmanagement:/Uyuni:/Master:/SLMicro6-Uyuni-Client-Tools/SL-Micro6/
Copy link
Member Author

Choose a reason for hiding this comment

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

Same as before


[opensuse_micro5_3]
checksum = sha256
archs = x86_64, aarch64
Expand Down
1 change: 1 addition & 0 deletions utils/spacewalk-utils.changes.juliogonzalez.leap16.0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Add openSUSE Leap 16.0 (Alpha) repositories
Loading