After the upgrade from Focal to Jammy, what did you mean exactly with "marked to be removed"? I just created a Focal container, installed resource-agents binary package (contains pgsql agent), ran 'do-release-upgrade', and at the end I still have the pgsql agent provided now by resource-agents-extra.
root@ra-upgrade-focal:~# dpkg -l | grep resource-agents
ii resource-agents 1:4.7.0-1ubuntu7 all Transitional package for the resource-agents
ii resource-agents-base 1:4.7.0-1ubuntu7 all Cluster Resource Agents curated by Ubuntu
ii resource-agents-common 1:4.7.0-1ubuntu7 amd64 Common files used by the Cluster Resource Agents
ii resource-agents-extra 1:4.7.0-1ubuntu7 amd64 Cluster Resource Agents
root@ra-upgrade-focal:~# dpkg -L resource-agents-extra | grep pgsql
/usr/lib/ocf/resource.d/heartbeat/pgsql
/usr/share/man/man7/ocf_heartbeat_pgsql.7.gz
/usr/share/resource-agents/ocft/configs/pgsql
And there is nothing marked to be removed from apt:
root@ra-upgrade-focal:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@ra-upgrade-focal:~# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Could you explain in more details what is happening when you upgrade your system?
About enabling -proposed in Focal, there is no version of resource-agents in focal-proposed so it would not change, in Jammy there is an ongoing SRU of the version you mentioned (1:4.7.0-1ubuntu7.1). When you upgraded to Jammy the jammy-proposed was added probably because you had focal-proposed before. I tried to also enable jammy-proposed and install the resource-agents from there and it worked fine as well.
I am not sure about the constraints of your setup but something to keep in mind is that resource-agents binary package was in main in Focal, in Jammy, it was demoted to universe because it is now a transitional package which will install resource-agents-base and resource-agents-extra. resource-agents-base contains agents curated by Ubuntu Server and this binary package is in main, the resource-agents-extra contains agents not curated by Ubuntu Server (so we do not test nor support them officially) therefore it is in universe.
Hi Joao,
After the upgrade from Focal to Jammy, what did you mean exactly with "marked to be removed"? I just created a Focal container, installed resource-agents binary package (contains pgsql agent), ran 'do-release- upgrade' , and at the end I still have the pgsql agent provided now by resource- agents- extra.
root@ra- upgrade- focal:~ # dpkg -l | grep resource-agents agents- base 1:4.7.0-1ubuntu7 all Cluster Resource Agents curated by Ubuntu agents- common 1:4.7.0-1ubuntu7 amd64 Common files used by the Cluster Resource Agents agents- extra 1:4.7.0-1ubuntu7 amd64 Cluster Resource Agents upgrade- focal:~ # dpkg -L resource- agents- extra | grep pgsql ocf/resource. d/heartbeat/ pgsql man/man7/ ocf_heartbeat_ pgsql.7. gz resource- agents/ ocft/configs/ pgsql
ii resource-agents 1:4.7.0-1ubuntu7 all Transitional package for the resource-agents
ii resource-
ii resource-
ii resource-
root@ra-
/usr/lib/
/usr/share/
/usr/share/
And there is nothing marked to be removed from apt:
root@ra- upgrade- focal:~ # apt update archive. ubuntu. com/ubuntu jammy InRelease security. ubuntu. com/ubuntu jammy-security InRelease archive. ubuntu. com/ubuntu jammy-updates InRelease archive. ubuntu. com/ubuntu jammy-backports InRelease upgrade- focal:~ # apt upgrade
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 http://
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@ra-
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Could you explain in more details what is happening when you upgrade your system?
About enabling -proposed in Focal, there is no version of resource-agents in focal-proposed so it would not change, in Jammy there is an ongoing SRU of the version you mentioned (1:4.7. 0-1ubuntu7. 1). When you upgraded to Jammy the jammy-proposed was added probably because you had focal-proposed before. I tried to also enable jammy-proposed and install the resource-agents from there and it worked fine as well.
I am not sure about the constraints of your setup but something to keep in mind is that resource-agents binary package was in main in Focal, in Jammy, it was demoted to universe because it is now a transitional package which will install resource- agents- base and resource- agents- extra. resource- agents- base contains agents curated by Ubuntu Server and this binary package is in main, the resource- agents- extra contains agents not curated by Ubuntu Server (so we do not test nor support them officially) therefore it is in universe.