Using the secureApt script is not needed anymore! Uyuni creates them! But die this to work, you need to configure uyuni. Don't have it on mind right now, but there should be some "mgr-create-gpg..." something script. Sorry for not being that detailed right now.
Robert
sent from my mobile device
-------- Originale Nachricht --------
Von: Paul-Andre Panon
Gesendet: Freitag, 05. Februar 2021 um 05:39 Uhr Von: "Paul-Andre Panon"
An: "Pau Garcia" , users@lists.uyuni-project.org, "Robert Paschedag" Betreff: Re: Registration problems with Ubuntu 20.04 and Uyuni Actually I do and I don't. There's no auth.conf,
ppanon@mydomain@mytestclient:/etc/apt$ ls -al total 20 drwxr-xr-x 7 root root 158 Dec 7 19:42 . drwxr-xr-x 97 root root 8192 Feb 4 06:03 .. drwxr-xr-x 2 root root 296 Jan 28 06:40 apt.conf.d drwxr-xr-x 2 root root 30 Jan 26 23:17 auth.conf.d drwxr-xr-x 2 root root 6 Apr 9 2020 preferences.d -rw-r--r-- 1 root root 2779 Jan 26 23:17 sources.list -rw-r--r-- 1 root root 2743 Jul 31 2020 sources.list.curtin.old drwxr-xr-x 2 root root 39 Jan 26 23:17 sources.list.d drwxr-xr-x 2 root root 123 Jul 31 2020 trusted.gpg.d
but there is a file in the auth.conf.d subdirectory
ppanon@mydomain@mytestclient:/etc/apt$ ls -al auth.conf.d/ total 8 drwxr-xr-x 2 root root 30 Jan 26 23:17 . drwxr-xr-x 7 root root 158 Dec 7 19:42 .. -rw------- 1 _apt root 5058 Jan 26 23:17 susemanager.conf
For each channel there are two entries:
ppanon@mydomain@mytestclient:/etc/apt$ sudo more auth.conf.d/susemanager.conf [sudo] password for ppanon@mydomain: # susemanager.conf managed by SUSE Manager # Do not edit this file, changes will be overwritten #
machine myserver.mydomain:443/rhn/manager/download/dists/<channel1> login <long encrypted string> machine myserver.mydomain:443/rhn/manager/download/<channel1> login <long encrypted string>
machine myserver.mydomain:443/rhn/manager/download/dists/<channel2> login
machine myserver.mydomain:443/rhn/manager/download/<channel2> login . . . The encrypted strings are the same for the two entries for each channel, but differ from channel to channel.
So maybe the problem is that the auth.conf file which should include the files in the subdirectory are missing? I'm not sure what the syntax for that would be and it didn't look like that was necessary in the man page.
I've tried to run #sudo apt -oDebug::pkgAcquire::Worker=1 update and I don't see any indication that tokens are being submitted in the URLs listed in the output, but I don't know if that should be visible or not.
Err:1 https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=dqUK1umlLbMzRY3vgMeXApGDhSshpw tHFz85acJjq5o&s=dUR-ezbPQfs6dC41TAC5oBsuq3Z8jR3HlTLCejun4cE&e= ubuntu-2004-amd64-main-security-uyuni InRelease <- https:102%20Status%0aURI:%20https://myserver.mydomain:443/rhn/manager/ download/dists/ubuntu-20.04-pool-amd64-uyuni/InRelease%0aMessage:%20Co nnecting%20to%20myserver.mydomain%20(10.90.16.11) <- https:102%20Status%0aURI:%20https://myserver.mydomain:443/rhn/manager/ download/dists/ubuntu-20.04-pool-amd64-uyuni/InRelease%0aMessage:%20Co nnected%20to%20myserver.mydomain%20(10.90.16.11) <- https:102%20Status%0aURI:%20https://myserver.mydomain:443/rhn/manager/ download/dists/ubuntu-20.04-pool-amd64-uyuni/InRelease%0aMessage:%20Wa iting%20for%20headers <- https:400%20URI%20Failure%0aFailReason:%20HttpError404%0aMessage:%2040 4%20%20404%20[IP:%2010.90.16.11%20443]%0aURI:%20https://myserver.mydom ain:443/rhn/manager/download/dists/ubuntu-20.04-pool-amd64-uyuni/InRel ease Ign:8 https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=dqUK1umlLbMzRY3vgMeXApGDhSshpw tHFz85acJjq5o&s=dUR-ezbPQfs6dC41TAC5oBsuq3Z8jR3HlTLCejun4cE&e= ubuntu-20.04-pool-amd64-uyuni InRelease <- https:102%20Status%0aURI:%20https://myserver.mydomain:443/rhn/manager/ download/dists/ubuntu-2004-amd64-uyuni-client/InRelease%0aMessage:%20W aiting%20for%20headers <- https:200%20URI%20Start%0aLast-Modified:%20Sun,%2008%20Nov%202020%2017 :04:03%20+0000%0aURI:%20https://myserver.mydomain:443/rhn/manager/down load/dists/ubuntu-2004-amd64-uyuni-client/InRelease Get:9 https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=dqUK1umlLbMzRY3vgMeXApGDhSshpw tHFz85acJjq5o&s=dUR-ezbPQfs6dC41TAC5oBsuq3Z8jR3HlTLCejun4cE&e= ubuntu-2004-amd64-uyuni-client InRelease <- https:400%20URI%20Failure%0aTransient-Failure:%20true%0aFailReason:%20 HttpError404%0aMessage:%20Undetermined%20Error%20[IP:%2010.90.16.11%20 443]%0aURI:%20https://myserver.mydomain:443/rhn/manager/download/dists /ubuntu-2004-amd64-uyuni-client/InRelease -> https:600%20URI%20Acquire%0aURI:%20https://myserver.mydomain:443/rhn/m anager/download/dists/ubuntu-20.04-pool-amd64-uyuni/Release%0aFilename :%20/var/lib/apt/lists/partial/myserver.mydomain:443_rhn_manager_downl oad_dists_ubuntu-20.04-pool-amd64-uyuni_Release%0aTarget-Type:%20index %0aTarget-Release:%20ubuntu-20.04-pool-amd64-uyuni%0aTarget-Base-URI:% 20https://myserver.mydomain:443/rhn/manager/download/dists/ubuntu-20.0 4-pool-amd64-uyuni/%0aTarget-Repo-URI:%20https://myserver.mydomain:443 /rhn/manager/download/%0aTarget-Site:%20https://myserver.mydomain:443/ rhn/manager/download%0aIndex-File:%20true%0aMaximum-Size:%2010000000%0 aLast-Modified:%20Tue,%2003%20Nov%202020%2010:18:00%20GMT%0a%0a Err:9 https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=dqUK1umlLbMzRY3vgMeXApGDhSshpw tHFz85acJjq5o&s=dUR-ezbPQfs6dC41TAC5oBsuq3Z8jR3HlTLCejun4cE&e= ubuntu-2004-amd64-uyuni-client InRelease <- https:102%20Status%0aURI:%20https://myserver.mydomain:443/rhn/manager/ download/dists/ubuntu-2004-amd64-universe-updates-uyuni/InRelease%0aMe ssage:%20Connecting%20to%20myserver.mydomain%20(10.90.16.11) <- https:102%20Status%0aURI:%20https://myserver.mydomain:443/rhn/manager/ download/dists/ubuntu-2004-amd64-universe-updates-uyuni/InRelease%0aMe ssage:%20Connected%20to%20myserver.mydomain%20(10.90.16.11) <- https:102%20Status%0aURI:%20https://myserver.mydomain:443/rhn/manager/ download/dists/ubuntu-2004-amd64-universe-updates-uyuni/InRelease%0aMe ssage:%20Waiting%20for%20headers <- https:200%20URI%20Start%0aLast-Modified:%20Tue,%2008%20Dec%202020%2012 :19:09%20+0000%0aURI:%20https://myserver.mydomain:443/rhn/manager/down load/dists/ubuntu-2004-amd64-universe-updates-uyuni/InRelease Get:10 https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=dqUK1umlLbMzRY3vgMeXApGDhSshpw tHFz85acJjq5o&s=dUR-ezbPQfs6dC41TAC5oBsuq3Z8jR3HlTLCejun4cE&e= ubuntu-2004-amd64-universe-updates-uyuni InRelease <- https:400%20URI%20Failure%0aTransient-Failure:%20true%0aMessage:%20Und etermined%20Error%20[IP:%2010.90.16.11%20443]%0aURI:%20https://myserve r.mydomain:443/rhn/manager/download/dists/ubuntu-2004-amd64-universe-u pdates-uyuni/InRelease Err:10 https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=dqUK1umlLbMzRY3vgMeXApGDhSshpw tHFz85acJjq5o&s=dUR-ezbPQfs6dC41TAC5oBsuq3Z8jR3HlTLCejun4cE&e= ubuntu-2004-amd64-universe-updates-uyuni InRelease <- https:102%20Status%0aURI:%20https://myserver.mydomain:443/rhn/manager/ download/dists/ubuntu-2004-amd64-universe-uyuni/InRelease%0aMessage:%2 0Connecting%20to%20myserver.mydomain%20(10.90.16.11) <- https:102%20Status%0aURI:%20https://myserver.mydomain:443/rhn/manager/ download/dists/ubuntu-2004-amd64-universe-uyuni/InRelease%0aMessage:%2 0Connected%20to%20myserver.mydomain%20(10.90.16.11) <- https:102%20Status%0aURI:%20https://myserver.mydomain:443/rhn/manager/ download/dists/ubuntu-2004-amd64-universe-uyuni/InRelease%0aMessage:%2 0Waiting%20for%20headers <- https:200%20URI%20Start%0aLast-Modified:%20Sun,%2008%20Nov%202020%2017 :06:43%20+0000%0aURI:%20https://myserver.mydomain:443/rhn/manager/down load/dists/ubuntu-2004-amd64-universe-uyuni/InRelease Get:11 https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=dqUK1umlLbMzRY3vgMeXApGDhSshpw tHFz85acJjq5o&s=dUR-ezbPQfs6dC41TAC5oBsuq3Z8jR3HlTLCejun4cE&e= ubuntu-2004-amd64-universe-uyuni InRelease
-----Original Message----- From: Robert Paschedag
Sent: Thursday, February 4, 2021 12:18 PM To: Paul-Andre Panon Cc: Pau Garcia ; users@lists.uyuni-project.org Subject: RE: Registration problems with Ubuntu 20.04 and Uyuni So you really do not have an apt auth.conf file?
sent from my mobile device-------- Originale Nachricht -------- Von: Paul-Andre Panon
Gesendet: Thu Feb 04 02:24:35 GMT+01:00 2021 An: Robert Paschedag Cc: Pau Garcia , users@lists.uyuni-project.org Betreff: RE: Registration problems with Ubuntu 20.04 and Uyuni Hi Robert,
Thanks for the info on what that token should be and where. I'll keep in mind the forthcoming change of location. But for now, since we're still running Uyuni 2020.11, it should be in the sources.list file and it just isn't
ppanon@mydomain@mytestclient:/etc/apt$ more /etc/apt/sources.list.d/susemanager\:channels.list # Channels managed by SUSE Manager # Do not edit this file, changes will be overwritten #
deb [trusted=yes] https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=pxVgKDn-f6RHE3D2lDunlML94QxZ3C _Febju36NyR1s&s=qfcb9vUZM4RnSc2sU3_5gAtK5Q9vejVBXHPQmvug5c0&e= ubuntu-2004-amd64-main-security-uyuni main deb [trusted=yes] https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=pxVgKDn-f6RHE3D2lDunlML94QxZ3C _Febju36NyR1s&s=qfcb9vUZM4RnSc2sU3_5gAtK5Q9vejVBXHPQmvug5c0&e= ubuntu-20.04-pool-amd64-uyuni main deb [trusted=yes] https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=pxVgKDn-f6RHE3D2lDunlML94QxZ3C _Febju36NyR1s&s=qfcb9vUZM4RnSc2sU3_5gAtK5Q9vejVBXHPQmvug5c0&e= ubuntu-2004-amd64-uyuni-client main deb [trusted=yes] https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=pxVgKDn-f6RHE3D2lDunlML94QxZ3C _Febju36NyR1s&s=qfcb9vUZM4RnSc2sU3_5gAtK5Q9vejVBXHPQmvug5c0&e= ubuntu-2004-amd64-universe-updates-uyuni main deb [trusted=yes] https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=pxVgKDn-f6RHE3D2lDunlML94QxZ3C _Febju36NyR1s&s=qfcb9vUZM4RnSc2sU3_5gAtK5Q9vejVBXHPQmvug5c0&e= ubuntu-2004-amd64-universe-uyuni main deb [trusted=yes] https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=pxVgKDn-f6RHE3D2lDunlML94QxZ3C _Febju36NyR1s&s=qfcb9vUZM4RnSc2sU3_5gAtK5Q9vejVBXHPQmvug5c0&e= ubuntu-2004-amd64-main-uyuni main deb [trusted=yes] https://urldefense.proofpoint.com/v2/url?u=https-3A__myserver.mydomain -3A443_rhn_manager_download&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWE McncSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=pxVgKDn-f6RHE3D2lDunlML94QxZ3C _Febju36NyR1s&s=qfcb9vUZM4RnSc2sU3_5gAtK5Q9vejVBXHPQmvug5c0&e= ubuntu-2004-amd64-main-updates-uyuni main
So how do I fix this? Is there a salt command I can use to try to replicate that part of the bootstrap and get more information to find out why it's failing? Is there a salt command I can use to generate and populate those tokens after the fact?
Thanks,
Paul-Andre
-----Original Message----- From: Robert Paschedag
Sent: Saturday, January 30, 2021 6:38 AM To: Paul-Andre Panon Cc: Pau Garcia ; users@lists.uyuni-project.org Subject: RE: Registration problems with Ubuntu 20.04 and Uyuni Hi Paul-Andre,
when zu register via salt, within your sources.list file created by uyuni, you should have a token attached to every channel that client is subscribed to.
A latest fix moves those token information into the auth.conf file (a .netrc like file). See also
Robert
sent from my mobile device-------- Originale Nachricht -------- Von: Paul-Andre Panon
Gesendet: Wed Jan 27 01:01:40 GMT+01:00 2021 An: Pau Garcia , users@lists.uyuni-project.org Betreff: RE: Registration problems with Ubuntu 20.04 and Uyuni Well, it’s a definite improvement. I’ve rolled that into the template customization scripts and I can now see more than 1 system registered. Thank you.
I’m now seeing a different problem.
W: Failed to fetch https://urldefense.proofpoint.com/v2/url?u=https-3A__myuniserver.mydom ain-3A443_rhn_manager_download_dists_ubuntu-2D2004-2Damd64-2Dmain-2Dse curity-2Duyuni_InRelease&d=DwIFaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=2sQoWEMcn cSKL5kWoc_nrZbhUyhuj8tJfA91_lDSglQ&m=uXLXgJZnU7L6qtsKpTFhdwYWbJJ47fyrl 1qTBRu4-D8&s=RtMA8z2YPpn1X1WUP4o1G2CizV-ZfgHAHmK0hyKlDb4&e= Undetermined Error [IP: AA.BB.CC.DD 443]
If I try to go to that URL from a browser, I get
You need a token to access /manager/download/ubuntu-2004-amd64-main-security-uyuni/repodata/InRel ease
The only reference I’ve found in google for that appears to be in Spanish and CentOS related on a capa9.net forum.
--
*For more information on how and why we collect your personal information, please visit our Privacy Policy <https://www.motorolasolutions.com/en_us/about/privacy-policy.html?elq TrackId=8980d888905940e39a2613a7a3dcb0a7&elqaid=2786&elqat=2#privacyst atement>.*
--
*For more information on how and why we collect your personal information, please visit our Privacy Policy <https://www.motorolasolutions.com/en_us/about/privacy-policy.html?elq TrackId=8980d888905940e39a2613a7a3dcb0a7&elqaid=2786&elqat=2#privacyst atement>.*
-- *For more information on how and why we collect your personal information, please visit our Privacy Policy https://www.motorolasolutions.com/en_us/about/privacy-policy.html?elqTrackId=8980d888905940e39a2613a7a3dcb0a7&elqaid=2786&elqat=2#privacystatement.*