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

Adjust ESM Release file to match default unattended-upgrades behavior #43

Closed
vorlonofportland opened this issue Apr 28, 2017 · 3 comments
Assignees

Comments

@vorlonofportland
Copy link

vorlonofportland commented Apr 28, 2017

unattended-upgrades by default matches on the release and security pockets of only the official Ubuntu release. This relies on the following fields in the archive Release file for a correct match:

Origin: Ubuntu
Suite: precise-security

According to STS, these are not present in the Release file for the ESM archive. Please add them.

@vorlonofportland
Copy link
Author

Discussed with Adam Conrad that we don't want to misrepresent the esm archive as being an archive it isn't. We need Origin and Suite set but should not collide with the main archive. Instead we will SRU unattended-upgrades to additionally recognize the ESM archive and enable it by default.

So the values we want are:
Origin: UbuntuESM
Suite: precise

(Suite: precise-security might be more conceptually correct, but we are concerned that presenting a value that doesn't match the archive file path could cause tool confusion.)

@panlinux
Copy link

panlinux commented May 1, 2017

I deployed this charm and these are the results (10.55.60.98 is my test deployment server):

# apt-cache policy
(...)
 500 https://10.55.60.98/ubuntu/ precise/main i386 Packages
     release o=UbuntuESM,a=precise,n=precise,l=precise archive,c=main
     origin 10.55.60.98
 500 https://10.55.60.98/ubuntu/ precise/main amd64 Packages
     release o=UbuntuESM,a=precise,n=precise,l=precise archive,c=main
     origin 10.55.60.98

root@precise-esm:~# head -n 7 /var/lib/apt/lists/10.55.60.98_ubuntu_dists_precise_Release
Origin: UbuntuESM
Label: precise archive
Suite: precise
Codename: precise
Date: Mon, 01 May 2017 15:34:41 UTC
Architectures: i386 amd64
Components: main

The "l" flag is different in a normal precise archive, not sure if that's relevant. It says "Ubuntu" instead of "precise archive" as in the ESM case:

 500 http://br.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=main
     origin br.archive.ubuntu.com

@albertodonato
Copy link
Contributor

@panlinux I changed the template to use the Origin value as Label too. AFAIU the label is just a description, but it makes more sense for it to match the origin than the suite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants