Comment 2 for bug 2031192

Revision history for this message
Steven LaCosse (motosteven) wrote :

Thanks Lucas for looking into this.

In my original report, I've been testing the ua contract server as the same machine I'm trying to enable the airgapped subscription to, which also happens to be joined to the landscape server.
I have not created a repo profile to enable the esm repos via landscape.

I've tried what you've suggested.

When the repo path already has http:// in the service repo path prior to attaching the sub and enabling this removes the the http error when enabling esm-apps.

The prior error was

["2023-08-15T08:23:01.054", "DEBUG", "root", "_subp", 581, "Ran cmd: apt-get update, rc: 0 stderr: b'W: http://landscapeservertest.com/repository/standalone/ubuntu/dists/jammy-updates/InRelease: /etc/apt/auth.conf.d/90ubuntu-advantage: Credentials for landscapeservertest.com/repository/standalone/ match, but the protocol is not encrypted. Annotate with http:// to use.\\nW: http://landscapeservertest.com/repository/standalone/ubuntu/dists/jammy-security/InRelease: /etc/apt/auth.conf.d/90ubuntu-advantage: Credentials for landscapeservertest.com/repository/standalone/ match, but the protocol is not encrypted. Annotate with http:// to use.\\nW: http://landscapeservertest.com/repository/standalone/ubuntu/dists/jammy/InRelease: /etc/apt/auth.conf.d/90ubuntu-advantage: Credentials for landscapeservertest.com/repository/standalone/ match, but the protocol is not encrypted. Annotate with http:// to use.\\nW: http://landscapeservertest.com/repository/standalone/landscape/dists/jammy/InRelease: /etc/apt/auth.conf.d/90ubuntu-advantage: Credentials for landscapeservertest.com/repository/standalone/ match, but the protocol is not encrypted. Annotate with http:// to use.\\nW: http://landscapeservertest.com/repository/standalone/ubuntu/dists/jammy-esm-apps-security/InRelease: /etc/apt/auth.conf.d/90ubuntu-advantage: Credentials for

With esm-apps repo already in service repo with http, unfortunately enabling esm-apps still shows the same problem of not showing the service enabled
Enabling esm-apps does create the /etc/apt/sources.list.d/ubuntu-esm-apps.list
So the repo packages are available to use, apt update shows this

apt update

Hit:1 http://landscapeservertest.com/repository/standalone/ubuntu jammy-updates InRelease
Hit:2 http://landscapeservertest.com/repository/standalone/ubuntu jammy-security InRelease
Hit:3 http://landscapeservertest.com/repository/standalone/ubuntu jammy InRelease
Hit:4 http://landscapeservertest.com/repository/standalone/landscape jammy InRelease
Hit:5 http://landscapeservertest.com/repository/standalone/ubuntu jammy-esm-apps-security InRelease

But it still does not change the status of the subscription service enablement

pro status
SERVICE ENTITLED STATUS DESCRIPTION
esm-apps yes disabled Expanded Security Maintenance for Applications
esm-infra yes disabled Expanded Security Maintenance for Infrastructure
livepatch yes disabled Canonical Livepatch service
realtime-kernel yes disabled Ubuntu kernel with PREEMPT_RT patches integrated
usg yes disabled Security compliance and audit tools