uyuni icon indicating copy to clipboard operation
uyuni copied to clipboard

bootstrap-repo ubuntu-22.04-amd64 error - Uyuni server 2022-08

Open eins opened this issue 1 year ago • 11 comments

Problem description

Version of Uyuni Server

zypper info Uyuni-Server-release
Loading repository data...
Reading installed packages...


Information for package Uyuni-Server-release:
---------------------------------------------
Repository     : Uyuni Server Stable
Name           : Uyuni-Server-release
Version        : 2022.08-185.2.uyuni2
Arch           : x86_64
Vendor         : obs://build.opensuse.org/systemsmanagement:Uyuni
Support Level  : Level 3
Installed Size : 1.4 KiB
Installed      : Yes
Status         : up-to-date
Source package : Uyuni-Server-release-2022.08-185.2.uyuni2.src
Summary        : Uyuni Server
Description    :
    Uyuni lets you efficiently manage physical, virtual,
    and cloud-based Linux systems. It provides automated and cost-effective
    configuration and software management, asset management, and system
    provisioning.

Details about the issue

Howdy!

I added ubuntu-2204 spacewalk-common-channels and the repo sync finished but I got an error when I ran gr-create-bootstrap-repo -c ubuntu-22.04-amd64-uyuni

spacewalk-common-channels \
ubuntu-2204-pool-amd64-uyuni \
ubuntu-2204-amd64-main-uyuni \
ubuntu-2204-amd64-main-updates-uyuni \
ubuntu-2204-amd64-main-security-uyuni \
ubuntu-2204-amd64-universe-uyuni \
ubuntu-2204-amd64-universe-updates-uyuni \
ubuntu-2204-amd64-uyuni-client

mgr-create-bootstrap-repo -l
1. amazonlinux-2-aarch64-uyuni
2. amazonlinux-2-x86_64-uyuni
3. openSUSE-Leap-15.2-x86_64-uyuni
4. ubuntu-16.04-amd64-uyuni
5. ubuntu-18.04-amd64-uyuni
6. ubuntu-20.04-amd64-uyuni
7. ubuntu-22.04-amd64-uyuni

spacewalk-repo-sync -vvv --channel ubuntu-2204-amd64-main-uyuni

tail -f /var/log/rhn/reposync/ubuntu-2204-amd64-main-uyuni.log
2022/08/15 18:41:22 -00:00     6000 packages linked
2022/08/15 18:41:22 -00:00 18297 0.0.0.0: rhnSQL/driver_postgresql.__call__('rhn_channel.refresh_newest_package', (135, 'server.app.yumreposync', None))
2022/08/15 18:41:22 -00:00 18297 0.0.0.0: rhnSQL/driver_postgresql.__call__('SELECT rhn_channel.refresh_newest_package(%s, %s, %s)', (135, 'server.app.yumreposync', None))
2022/08/15 18:41:24 -00:00 18297 0.0.0.0: rhnSQL/driver_postgresql.__call__('rhn_channel.update_channel', (135, 0))
2022/08/15 18:41:24 -00:00 18297 0.0.0.0: rhnSQL/driver_postgresql.__call__('SELECT rhn_channel.update_channel(%s, %s)', (135, 0))
2022/08/15 18:41:24 -00:00     6090 packages linked
2022/08/15 18:41:24 -00:00
2022/08/15 18:41:24 -00:00   Patches in repo: 0.
2022/08/15 18:41:24 -00:00   Regenerating bootstrap repositories.
2022/08/15 18:46:15 -00:00 Sync completed.

After this I got this error:

mgr-create-bootstrap-repo -c ubuntu-22.04-amd64-uyuni
 
Creating bootstrap repo for ubuntu-22.04-amd64-uyuni
Error: Too few arguments for command 'includedeb'!
Syntax: reprepro [--delete] includedeb <distribution> <.deb-file>
There have been errors!
Error creating bootstrap repo.

reprepro version

zypper search -s reprepro
Loading repository data...
Reading installed packages...
 
S | Name     | Type    | Version          | Arch   | Repository
--+----------+---------+------------------+--------+--------------------
i | reprepro | package | 5.3.0-2.8.uyuni2 | x86_64 | Uyuni Server Stable
 
    Note: For an extended search including not yet activated remote resources please use 'zypper
    search-packages'.

zypper search-packages -s reprepro
Could not search for the package: Error: Registration server returned 'base product not found' (404)Following packages were found in following modules:
 
Package                          Module or Repository SUSEConnect Activation Command 
-------------------------------- -------------------  
reprepro-5.3.0-2.8.uyuni2.x86_64 Installed            
reprepro-5.3.0-2.8.uyuni2.x86_64 uyuni-server-stable  
 
To activate the respective module or product, use SUSEConnect --product.
Use SUSEConnect --help for more details.
rpm -q --changelog reprepro
* Wed Jun 29 2022 Julio González Gil <[email protected]>
- Bump up the maxsize on a fixed-size C buffer to avoid breaking on some
  autogenerated rust packages
  * 0001-Bump-up-the-maxsize-on-a-fixed-size-C-buffer-to-avoi.patch
- Flush stdout and stderr before execv of an end hook
  * 0002-Flush-stdout-stderr-before-calling-endhook.patch
- Add support for Zstd compressed debs
  * 0003-Add-Zstd-support.patch

* Thu Sep 09 2021 Stefan Bluhm <[email protected]>
- Added alternative package name for db4-devel.

* Wed Mar 13 2019 Matei Albu <[email protected]>
- Updated to 5.3.0
- Added GPG signature

* Tue Nov 29 2016 [email protected]
- update to 4.16.0

* Wed Jan 16 2013 [email protected]
- Update to 4.8.2 (version in Ubuntu 12.04LTS)

* Tue Aug 30 2011 [email protected]
- Update to 4.7.0
- Add CentOS dependencies

@juliogonzalez this is the new github issue that you mention in #5764

eins avatar Aug 18 '22 16:08 eins

@eins your server looks a bit strange to me:

2022/08/15 18:41:22 -00:00 18297 0.0.0.0: rhnSQL/driver_postgresql.__call__('rhn_channel.refresh_newest_package', (135, 'server.app.yumreposync', None))
2022/08/15 18:41:22 -00:00 18297 0.0.0.0: rhnSQL/driver_postgresql.__call__('SELECT rhn_channel.refresh_newest_package(%s, %s, %s)', (135, 'server.app.yumreposync', None))
2022/08/15 18:41:24 -00:00 18297 0.0.0.0: rhnSQL/driver_postgresql.__call__('rhn_channel.update_channel', (135, 0))
2022/08/15 18:41:24 -00:00 18297 0.0.0.0: rhnSQL/driver_postgresql.__call__('SELECT rhn_channel.update_channel(%s, %s)', (135, 0))

I didn't see such messages during my tests, and no other user reported it so far.

zypper search-packages -s reprepro
Could not search for the package: Error: Registration server returned 'base product not found' (404)Following packages were found in following modules:
[...]
To activate the respective module or product, use SUSEConnect --product.
Use SUSEConnect --help for more details.

Looks as if your Uyuni Server was installed on top of SLE15, which is not supported. Is it the case? Did you do something strange with SUSEConnect?

But in any case:

spacewalk-repo-sync -vvv --channel ubuntu-2204-amd64-main-uyuni

Please check https://www.uyuni-project.org/uyuni-docs/en/uyuni/client-configuration/clients-ubuntu.html#_check_synchronization_status, as that's not the right sintax. With that you are only syncing ubuntu-2204-amd64-main-uyuni and not other channels. So looks to me the problem could be that you didn't sync the other channels (including the client tools)

juliogonzalez avatar Aug 19 '22 11:08 juliogonzalez

@juliogonzalez I never used SUSEConnect at all.

spacewalk-repo-sync -vvv --channel ubuntu-2204-amd64-main-uyuni

this is interesting. that spacewalk-repo-sync is wrong. it should be <base_channel_label> which in this case is ubuntu-2204-amd64-main

How can I remove the 2204 channel though?

spacewalk-common-channels ubuntu-2204-amd64-main  ubuntu-2204-amd64-main-uyuni ubuntu-2204-amd64-main-updates-uyuni ubuntu-2204-amd64-main-security-uyuni ubuntu-2204-amd64-uyuni-client
SUSE Manager username: admin
SUSE Manager password:
Base channel 'Ubuntu 22.04 LTS AMD64 Base for Uyuni' - exists
WARNING: ubuntu-2204-amd64-main-security-uyuni: redstone.xmlrpc.XmlRpcFault: The channel name 'Ubuntu 22.04 LTS AMD64 Main Security for Uyuni' is already in use, please enter a different name
WARNING: ubuntu-2204-amd64-main-updates-uyuni: redstone.xmlrpc.XmlRpcFault: The channel name 'Ubuntu 22.04 LTS AMD64 Main Updates for Uyuni' is already in use, please enter a different name
WARNING: ubuntu-2204-amd64-main-uyuni: redstone.xmlrpc.XmlRpcFault: The channel name 'Ubuntu 22.04 LTS AMD64 Main for Uyuni' is already in use, please enter a different name
WARNING: ubuntu-2204-amd64-uyuni-client: redstone.xmlrpc.XmlRpcFault: The channel name 'Uyuni Client Tools for Ubuntu 22.04 AMD64' is already in use, please enter a different name

this is my current package list for ubuntu versions: uyuni_ubuntuChannels01

eins avatar Aug 19 '22 15:08 eins

From the screenshot I'd say your list of channel looks OK. Your problems is that, as you can see, most of the channels have 0 packages.

As I told above: spacewalk-repo-sync -vvv --channel ubuntu-2204-amd64-main-uyuni is not right, as it won't sync all channels.

According to the doc: spacewalk-repo-sync -p <base_channel_label>, so in this case spacewalk-repo-sync -p ubuntu-2204-amd64 should work

But in case you need to remove channels:

https://www.uyuni-project.org/uyuni-docs/en/uyuni/administration/channel-management.html#_delete_channels https://www.uyuni-project.org/uyuni-docs/en/uyuni/administration/custom-channels.html#_manage_custom_channels

juliogonzalez avatar Aug 22 '22 11:08 juliogonzalez

@juliogonzalez thanks again for the reply

I removed ubuntu 22.04 channels and Repositories from the uyuni server ui. there is no trace of 22.04 in uyuni server ui --> Manage or from the cli

 mgr-create-bootstrap-repo -l
1. amazonlinux-2-aarch64-uyuni
2. amazonlinux-2-x86_64-uyuni
3. openSUSE-Leap-15.2-x86_64-uyuni
4. ubuntu-16.04-amd64-uyuni
5. ubuntu-18.04-amd64-uyuni
6. ubuntu-20.04-amd64-uyuni

I tried to add the 22.04 channel but I got this error

spacewalk-common-channels \
> ubuntu-2204-amd64-main  \
> ubuntu-2204-amd64-main-uyuni \
> ubuntu-2204-amd64-main-updates-uyuni \
> ubuntu-2204-amd64-main-security-uyuni \
> ubuntu-2204-amd64-uyuni-client
SUSE Manager username: admin
SUSE Manager password:
ERROR: ubuntu-22.04-pool-amd64-uyuni could not be found at the server
ERROR: ubuntu-2204-amd64-main-security-uyuni: redstone.xmlrpc.XmlRpcFault: unhandled internal exception: User 1 does not have access to channel ubuntu-22.04-pool-amd64-uyuni or the channel does not exist

User 1 ?

==> rhn_web_api.log <==
[2022-08-22 14:47:40,123] INFO  - REQUESTED FROM: ::1 CALL: channel.software.create(admin, ubuntu-2204-amd64-main-security-uyuni, Ubuntu 22.04 LTS AMD64 Main Security for Uyuni, Ubuntu 22.04 LTS AMD64 Main Security for Uyuni, channel-amd64-deb, ubuntu-22.04-pool-amd64-uyuni, sha256, {fingerprint=, id=, url=}) CALLER: (admin) TIME: 0.017 seconds
redstone.xmlrpc.XmlRpcFault: unhandled internal exception: User 1 does not have access to channel ubuntu-22.04-pool-amd64-uyuni or the channel does not exist

eins avatar Aug 22 '22 14:08 eins

User 1 ?

Yeah, that's the id of the admin user. Confusing indeed.

ERROR: ubuntu-22.04-pool-amd64-uyuni could not be found at the server

It seems to me that, according to spacewalk-common-channels.ini, the documentation is wrong. In that file the base channel is configured as ubuntu-2204-pool-amd64-uyuni, so the correct command should be:

spacewalk-common-channels \
ubuntu-2204-pool-amd64-uyuni \
ubuntu-2204-amd64-main-uyuni \
ubuntu-2204-amd64-main-updates-uyuni \
ubuntu-2204-amd64-main-security-uyuni \
ubuntu-2204-amd64-uyuni-client

This should allow you to add all the channels. Then you should do:

spacewalk-repo-sync -p ubuntu-22.04-pool-amd64-uyuni

to sync them all.

mackdk avatar Sep 12 '22 10:09 mackdk

User 1 ?

Yeah, that's the id of the admin user. Confusing indeed.

ERROR: ubuntu-22.04-pool-amd64-uyuni could not be found at the server

It seems to me that, according to spacewalk-common-channels.ini, the documentation is wrong. In that file the base channel is configured as ubuntu-2204-pool-amd64-uyuni, so the correct command should be:

spacewalk-common-channels \
ubuntu-2204-pool-amd64-uyuni \
ubuntu-2204-amd64-main-uyuni \
ubuntu-2204-amd64-main-updates-uyuni \
ubuntu-2204-amd64-main-security-uyuni \
ubuntu-2204-amd64-uyuni-client

This should allow you to add all the channels. Then you should do:

spacewalk-repo-sync -p ubuntu-22.04-pool-amd64-uyuni

to sync them all.

@mackdk this solved the issue for me in Uyuni 2022.08 this is the output

mgr-create-bootstrap-repo -l
1. amazonlinux-2-aarch64-uyuni
2. amazonlinux-2-x86_64-uyuni
3. openSUSE-Leap-15.2-x86_64-uyuni
4. ubuntu-16.04-amd64-uyuni
5. ubuntu-18.04-amd64-uyuni
6. ubuntu-20.04-amd64-uyuni

spacewalk-common-channels \                                                                                                                                                                                                                                                                                                                                                                                              [0/261]
> ubuntu-2204-pool-amd64-uyuni \
> ubuntu-2204-amd64-main-uyuni \
> ubuntu-2204-amd64-main-updates-uyuni \
> ubuntu-2204-amd64-main-security-uyuni \
> ubuntu-2204-amd64-uyuni-client
SUSE Manager username: admin
SUSE Manager password:

spacewalk-repo-sync -p ubuntu-22.04-pool-amd64-uyuni
07:18:11 ======================================
07:18:11 | Channel: ubuntu-22.04-pool-amd64-uyuni
07:18:11 ======================================
07:18:11 Sync of channel started.
07:18:11 Repo URL: http://localhost/pub/repositories/empty-deb/?uniquekey=2204-uyuni
07:18:11     Packages in repo:                 0
07:18:11     No new packages to sync.
07:18:11
07:18:11   Patches in repo: 0.
07:18:11 Sync completed.
07:18:11 ======================================
07:18:11 | Channel: ubuntu-2204-amd64-main-security-uyuni
07:18:11 ======================================
07:18:11 Sync of channel started.
07:18:13 Repo URL: http://archive.ubuntu.com/ubuntu/dists/jammy-security/main/binary-amd64/?<token>
07:18:13     Packages in repo:              1597

...

Exporting indices...
07:28:35 Sync completed.
07:28:35 ======================================
07:28:35 | Channel: ubuntu-2204-amd64-main-updates-uyuni
07:28:35 ======================================
07:28:35 Sync of channel started.
07:28:35 Repo URL: http://archive.ubuntu.com/ubuntu/dists/jammy-updates/main/binary-amd64/?<token>
07:28:35     Packages in repo:              2731
07:28:47     Packages already synced:          0
07:28:47     Packages to sync:              2731
07:28:48     New packages to download:      1191
07:28:48   Downloading packages:
07:28:48 Downloading total 1191 files from 1 queues.
07:28:48     1/1191 : apparmor_3.0.4-2ubuntu2.1_amd64.deb
07:28:48     2/1191 : apt-doc_2.4.7_all.deb
07:28:48     3/1191 : apparmor-profiles_3.0.4-2ubuntu2.1_all.deb
07:28:48     4/1191 : apt-utils_2.4.7_amd64.deb
07:28:48     5/1191 : apparmor-utils_3.0.4-2ubuntu2.1_all.deb
07:28:48     6/1191 : base-files_12ubuntu4.2_amd64.deb
07:28:48     7/1191 : autofs_5.1.8-1ubuntu1.2_amd64.deb
07:28:48     8/1191 : ceph_17.2.0-0ubuntu0.22.04.1_amd64.deb
07:28:48     9/1191 : apt_2.4.7_amd64.deb
07:28:48     10/1191 : brltty_6.4-4ubuntu3_amd64.deb
07:28:48     11/1191 : cd-boot-images-riscv64_5.1_all.deb

...

07:31:13   Package batch #135 of 137 completed...
07:31:13
07:31:13   Linking packages to the channel.
07:31:17     1000 packages linked
07:31:20     2000 packages linked
07:31:23     2731 packages linked
07:31:23
07:31:23   Patches in repo: 0.
07:31:23   Regenerating bootstrap repositories.
Generating bootstrap repos for all available products which had changes.
Nothing to do.
07:31:24 Sync completed.
07:31:24 ======================================
07:31:24 | Channel: ubuntu-2204-amd64-main-uyuni
07:31:24 ======================================
07:31:24 Sync of channel started.
07:31:27 Repo URL: http://archive.ubuntu.com/ubuntu/dists/jammy/main/binary-amd64/?<token>
07:31:27     Packages in repo:              6090

...

enerating bootstrap repos for all available products which had changes.
Nothing to do.
07:34:27 Sync completed.
07:34:27 ======================================
07:34:27 | Channel: ubuntu-2204-amd64-uyuni-client
07:34:27 ======================================
07:34:27 Sync of channel started.
07:34:29 Repo URL: https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable:/Ubuntu2204-Uyuni-Client-Tools/xUbuntu_22.04/?<token>
07:34:29     Packages in repo:                 6
07:34:29     Packages already synced:          0
07:34:29     Packages to sync:                 6
07:34:29     New packages to download:         6
07:34:29   Downloading packages:
07:34:29 Downloading total 6 files from 1 queues.
07:34:31     1/6 : scap-security-guide_0.1.62-1.44.1.uyuni_all.deb
07:34:32     2/6 : spacecmd_4.3.14-2.1.uyuni_all.deb
07:34:33     3/6 : scap-security-guide-debian_0.1.62-1.44.1.uyuni_all.deb
07:34:33     4/6 : scap-security-guide-ubuntu_0.1.62-1.44.1.uyuni_all.deb
07:34:34     5/6 : scap-security-guide-redhat_0.1.62-1.44.1.uyuni_all.deb
07:34:35     6/6 : venv-salt-minion_3004-4.6.uyuni_amd64.deb
07:34:35
07:34:35   Importing packages to DB:
07:34:37   Package batch #1 of 1 completed...
07:34:37
07:34:37   Linking packages to the channel.
07:34:37     6 packages linked
07:34:37
07:34:37   Patches in repo: 0.
07:34:37   Regenerating bootstrap repositories.
Generating bootstrap repos for all available products which had changes.

Creating bootstrap repo for ubuntu-22.04-amd64-uyuni
copy 'venv-salt-minion-3004-4.6.uyuni.amd64-deb'
Exporting indices...
07:34:40 Sync completed.
07:34:40 Total time: 0:16:28

mgr-create-bootstrap-repo -l
1. amazonlinux-2-aarch64-uyuni
2. amazonlinux-2-x86_64-uyuni
3. openSUSE-Leap-15.2-x86_64-uyuni
4. ubuntu-16.04-amd64-uyuni
5. ubuntu-18.04-amd64-uyuni
6. ubuntu-20.04-amd64-uyuni
7. ubuntu-22.04-amd64-uyuni

now I can see packages for 22.04 in the ui too uyuni-22 04channel01

@mackdk I will bootstrap a 22.04 minion later and see how it goes. thanks a lot for your reply xD

@juliogonzalez what is the process to fix the uyuni documentation for the bootstrap repo 22.04 process? is there any way to improve the Procedure: Adding Software Channels at the Command Prompt with the real names for each channel ? or that should be generic like this

spacewalk-common-channels \
<base_channel_label>
<child_channel_label_1> \
<child_channel_label_2> \
... <child_channel_label_n>

uyuni-22 04channel02

eins avatar Sep 16 '22 07:09 eins

Good to know you were able to fix the issue :+1:

what is the process to fix the uyuni documentation for the bootstrap repo 22.04 process?

If you are willing to contribute the fix, the uyuni-doc README explains how to create a pull request and submit the change. In this case, it would mean changing the values for the base channels in the table of the page clients-ubuntu.adoc that you can find in the client configuration module.

is there any way to improve the Procedure: Adding Software Channels at the Command Prompt with the real names for each channel ?

From what I know, at the moment that part is currently a generic snippet shared among multiple pages.

mackdk avatar Sep 16 '22 08:09 mackdk

I bootstrap a 22.04 minion and I noticed that the 22.04 channels do not have universe, I can't update packages like nginx without it. why 22.04 channel do not have universe like 20.04 ?

apt search doas
Sorting... Done
Full Text Search... Done
apt search nginx
Sorting... Done
Full Text Search... Done

eins avatar Sep 16 '22 19:09 eins

why 22.04 channel do not have universe like 20.04 ?

It is available. You can use spacewalk-common-channels -l to get the full list of ready-to-be-used channels:

uyuni-server:~ # spacewalk-common-channels -l | grep 2204 | grep universe
 ubuntu-2204-amd64-universe-backports-uyuni: amd64-deb
 ubuntu-2204-amd64-universe-security-uyuni: amd64-deb
 ubuntu-2204-amd64-universe-updates-uyuni: amd64-deb
 ubuntu-2204-amd64-universe-uyuni: amd64-deb

mackdk avatar Sep 17 '22 00:09 mackdk

@mackdk thanks for the reply.

There is something odd I can't find nginx package after the bootstrap

the universe 22.04 channel in the command line

spacewalk-common-channels -l | grep 2204
 ubuntu-2204-amd64-main-backports-uyuni: amd64-deb
 ubuntu-2204-amd64-main-security-uyuni: amd64-deb
 ubuntu-2204-amd64-main-updates-uyuni: amd64-deb
 ubuntu-2204-amd64-main-uyuni: amd64-deb
 ubuntu-2204-amd64-multiverse-backports-uyuni: amd64-deb
 ubuntu-2204-amd64-multiverse-security-uyuni: amd64-deb
 ubuntu-2204-amd64-multiverse-updates-uyuni: amd64-deb
 ubuntu-2204-amd64-multiverse-uyuni: amd64-deb
 ubuntu-2204-amd64-restricted-backports-uyuni: amd64-deb
 ubuntu-2204-amd64-restricted-security-uyuni: amd64-deb
 ubuntu-2204-amd64-restricted-updates-uyuni: amd64-deb
 ubuntu-2204-amd64-restricted-uyuni: amd64-deb
 ubuntu-2204-amd64-universe-backports-uyuni: amd64-deb
 ubuntu-2204-amd64-universe-security-uyuni: amd64-deb
 ubuntu-2204-amd64-universe-updates-uyuni: amd64-deb
 ubuntu-2204-amd64-universe-uyuni: amd64-deb
 ubuntu-2204-amd64-uyuni-client: amd64-deb
 ubuntu-2204-amd64-uyuni-client-devel: amd64-deb
 ubuntu-2204-pool-amd64-uyuni: amd64-deb

And in the Full Software Channel list and my 22.04 activation key have both the following options:

  • base: Ubuntu 22.04 LTS AMD64 Base for Uyuni
  • Ubuntu 22.04 LTS AMD64 Main for Uyuni
  • Ubuntu 22.04 LTS AMD64 Main Security for Uyuni
  • Ubuntu 22.04 LTS AMD64 Main Updates for Uyuni
  • Uyuni Client Tools for Ubuntu 22.04 AMD64

This looks good but after the bootstrap I can't find nginx in the 22.04 minion. What could be wrong here ?

uyuni-22 04key01

eins avatar Sep 17 '22 11:09 eins

Sorry, I wasn't clear.

spacewalk-common-channels offers a pre-configured list of commonly used custom channels, so you can add them easily to your channels list. The universe-* channels are not mentioned in the documentation because for Ubuntu 22.04 they are not needed to bootstrap a new client. But if you need them in any of your managed server, you have to add and sync them.

To do that the first command is:

spacewalk-common-channels ubuntu-2204-amd64-universe-uyuni

Note that this will add only the universe channel. If you need any other like universe-updates or universe-security you have to add them as well, using the appropriate label (which is shown alongside with the available architecture, when you run the command spacewalk-common-channels -l).

After all the channels you need have been added, you can sync them all at once using:

spacewalk-repo-sync -p ubuntu-22.04-pool-amd64-uyuni

This command will sync all the channels that are children of a base channel (in this case ubuntu-22.04-pool-amd64-uyuni). You can also sync a single specific channel from both the command line and the UI. When everything is synced, you will have to update the channel list of the activation key you created and the channel list your client system is subscribed to. Both operation can be performed through the web UI.

Some references: spacewalk-common-channels --help https://www.uyuni-project.org/uyuni-docs/en/uyuni/administration/custom-channels.html https://www.uyuni-project.org/uyuni-docs/en/uyuni/client-configuration/snippets/addchannels_novendor_cli_multiarch.html https://www.uyuni-project.org/uyuni-docs/en/uyuni/client-configuration/activation-keys.html https://www.uyuni-project.org/uyuni-docs/en/uyuni/reference/systems/system-details/sd-overview.html#_subscribed_channels

mackdk avatar Sep 19 '22 08:09 mackdk

@mackdk thanks again for the replies.

I finally fixed the issue with my 22.04 channels and I got updates for the 22.04 minion and packages like nginx were available.

as you said it I added the three universe channels and then the sync command

spacewalk-common-channels ubuntu-2204-amd64-universe-uyuni
spacewalk-common-channels ubuntu-2204-amd64-universe-security-uyuni
spacewalk-common-channels ubuntu-2204-amd64-universe-updates-uyuni

WARNING: ubuntu-2204-amd64-universe-security-uyuni: redstone.xmlrpc.XmlRpcFault: The channel name 'Ubuntu 22.04 LTS AMD64 Universe Security Updates for Uyuni' is already in use, please enter a different name
WARNING: ubuntu-2204-amd64-universe-updates-uyuni: redstone.xmlrpc.XmlRpcFault: The channel name 'Ubuntu 22.04 LTS AMD64 Universe Updates for Uyuni' is already in use, please enter a different name

spacewalk-repo-sync -p ubuntu-22.04-pool-amd64-uyuni

after those commands I selected the the two 'new' universe channels to my 2204 activation key and that was it.

uyuni-2204activationkey02

eins avatar Sep 28 '22 13:09 eins