From abaab35870dc22df9b0377b1237b553193a1cbc7 Mon Sep 17 00:00:00 2001 From: Thomas Schmidt Date: Fri, 9 Aug 2024 16:53:52 +0200 Subject: [PATCH] install cloud-regionsrv-client --- engines/instance_verification/TESTING.md | 25 ++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/engines/instance_verification/TESTING.md b/engines/instance_verification/TESTING.md index eaef491e9..e784f5140 100644 --- a/engines/instance_verification/TESTING.md +++ b/engines/instance_verification/TESTING.md @@ -1,3 +1,4 @@ +## Testing public could client registrations locally Start RMT with pubcloud engines enabled: @@ -7,10 +8,30 @@ bin/rmt-cli mirror product 2609,2626,2683,2618 # mirror SLE 15.6 RMT_LOAD_ENGINES=1 bin/rails s -b 0.0.0.0 ``` +Prepare the client: + ```bash docker run --rm -ti --privileged registry.suse.com/suse/sle15:15.6 /bin/bash $ zypper rm -y container-suseconnect -$ zypper in -y suseconnect -suseconnect --url http://172.17.0.1:4224 +$ zypper in -y suseconnect vim less curl +$ zypper in -y http://updates.suse.de/SUSE/Products/SLE-Module-Public-Cloud/15-SP6/x86_64/product/noarch/cloud-regionsrv-client-10.1.7-150000.6.108.1.noarch.rpm + +$ mv /etc/zypp/repos.d/* /tmp/ # move out BCI repos +$ registercloudguest --smt-ip 172.17.0.1 --smt-fp 4224 --smt-fqdn 172.17.0.1 + +``` + +Register client in PAYG mode, providing instance data: + ``` +$ suseconnect --url http://172.17.0.1:4224 +``` + + + + +Notes: + +* `/usr/lib/zypp/plugins/urlresolver/susecloud` (https://github.com/SUSE-Enceladus/cloud-regionsrv-client) gets the url of the region RMT server and replaces it in the 'susecloud' type zypper services. +* `registercloudguest` logs to /var/log/cloudregister