bin:google_authorized_keys shipped by this package conflicts with the same binary shipped by src:google-compute-engine-oslogin

Bug #1980725 reported by Utkarsh Gupta
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
google-guest-agent (Ubuntu)
Fix Released
Undecided
Utkarsh Gupta
Bionic
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned
Impish
Won't Fix
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned

Bug Description

[Impact]
========

The two packages src:google-compute-engine-oslogin and src:google-guest-agent cannot be co-installed together because they ship the same binary so dpkg throws the following error out:

dpkg: error processing archive /tmp/apt-dpkg-install-USEDmn/2-google-guest-agent_20220622.00-0ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/google_authorized_keys', which is also in package google-compute-engine-oslogin 20210907.00-0ubuntu2
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

[Test Plan]
===========

$ lxc launch images:ubuntu/kinetic ktemp
$ lxc shell ktemp
$ apt update
$ apt install google-compute-engine-oslogin
$ apt install google-guest-agent

This should result in failure. Whilst these two should co-install together.

Another thing to note is the file list that's going to be provided:
Without fix:

/lib/systemd/system/google-guest-agent.service
/lib/systemd/system/google-shutdown-scripts.service
/lib/systemd/system/google-startup-scripts.service
/usr/bin/google_authorized_keys
/usr/bin/google_guest_agent
/usr/bin/google_metadata_script_runner
/usr/share/doc/google-guest-agent/changelog.Debian.gz
/usr/share/doc/google-guest-agent/copyright

With the fix:

/lib/systemd/system/google-guest-agent.service
/lib/systemd/system/google-shutdown-scripts.service
/lib/systemd/system/google-startup-scripts.service
/usr/bin/google_guest_agent
/usr/bin/google_metadata_script_runner
/usr/share/doc/google-guest-agent/changelog.Debian.gz
/usr/share/doc/google-guest-agent/copyright

That is, the google_authorized_keys shouldn't be shipped.

[Where Problems Could Occur]
============================

Whilst this is totally broken in Kinetic and in the -proposed pocket of Jammy, Impish, and Focal, it can't get any worse than that. But an edge case might happen when the person has just installed google-guest-agent and started to use the binary from there, instead of using it from the original source (the oslogin package). But this hasn't been published in any stable releases so I don't see that happening, really. :)

Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Furthermore, since Impish is going to be EOL'd in two weeks, it's not worth fixing it there at all because it'll take us at least sometime to get this verified, et al, only to have Impish EOL'd so marking this as Won't Fix.

Changed in google-guest-agent (Ubuntu):
assignee: nobody → Utkarsh Gupta (utkarsh)
tags: added: regression-proposed
Changed in google-guest-agent (Ubuntu Impish):
status: New → Won't Fix
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package google-guest-agent - 20220622.00-0ubuntu2

---------------
google-guest-agent (20220622.00-0ubuntu2) kinetic; urgency=medium

  * d/rules: don't build google_authorized_keys as it
    conflicts with the same binary shipped by
    src:google-compute-engine-oslogin. (LP: #1980725)

 -- Utkarsh Gupta <email address hidden> Tue, 05 Jul 2022 14:43:54 +0530

Changed in google-guest-agent (Ubuntu):
status: New → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Utkarsh, or anyone else affected,

Accepted google-guest-agent into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/google-guest-agent/20220622.00-0ubuntu2~22.04.0 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in google-guest-agent (Ubuntu Jammy):
status: New → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hello Utkarsh, or anyone else affected,

Accepted google-guest-agent into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/google-guest-agent/20220622.00-0ubuntu2~20.04.0 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in google-guest-agent (Ubuntu Focal):
status: New → Fix Committed
tags: added: verification-needed-focal
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hello Utkarsh, or anyone else affected,

Accepted google-guest-agent into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/google-guest-agent/20220622.00-0ubuntu2~18.04.0 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in google-guest-agent (Ubuntu Bionic):
status: New → Fix Committed
tags: added: verification-needed-bionic
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Hello,

For Jammy:

$ lxc launch images:ubuntu/jammy jtemp
$ lxc shell jtemp
# enabling the -proposed repository!
$ apt update
$ apt install google-compute-engine-oslogin
$ apt install google-guest-agent

This installs version 20220622.00-0ubuntu2~22.04.0 without any problems and works like a charm. Additionally, the files that are shipped matches what was shipped before and should be shipped now as well:

/lib/systemd/system/google-guest-agent.service
/lib/systemd/system/google-shutdown-scripts.service
/lib/systemd/system/google-startup-scripts.service
/usr/bin/google_guest_agent
/usr/bin/google_metadata_script_runner
/usr/share/doc/google-guest-agent/changelog.Debian.gz
/usr/share/doc/google-guest-agent/copyright

...which is awesome because google_authorized_keys is not shipped and thus doubly confirms the fix for Jammy.

tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

For Focal:

$ lxc launch images:ubuntu/focal ftemp
$ lxc shell ftemp
# enabling the -proposed repository!
$ apt update
$ apt install google-compute-engine-oslogin
$ apt install google-guest-agent

This installs version 20220622.00-0ubuntu2~20.04.0 without any problems and works like a charm. Additionally, the files that are shipped matches what was shipped before and should be shipped now as well:

/lib/systemd/system/google-guest-agent.service
/lib/systemd/system/google-shutdown-scripts.service
/lib/systemd/system/google-startup-scripts.service
/usr/bin/google_guest_agent
/usr/bin/google_metadata_script_runner
/usr/share/doc/google-guest-agent/changelog.Debian.gz
/usr/share/doc/google-guest-agent/copyright

...which is awesome because google_authorized_keys is not shipped and thus doubly confirms the fix for Focal.

tags: added: verification-done-focal
removed: verification-needed-focal
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

For Bionic:

$ lxc launch images:ubuntu/bionic btemp
$ lxc shell btemp
# enabling the -proposed repository!
$ apt update
$ apt install google-compute-engine-oslogin
$ apt install google-guest-agent

This installs version 20220622.00-0ubuntu2~18.04.0 without any problems and works like a charm. Additionally, the files that are shipped matches what was shipped before and should be shipped now as well:

/lib/systemd/system/google-guest-agent.service
/lib/systemd/system/google-shutdown-scripts.service
/lib/systemd/system/google-startup-scripts.service
/usr/bin/google_guest_agent
/usr/bin/google_metadata_script_runner
/usr/share/doc/google-guest-agent/changelog.Debian.gz
/usr/share/doc/google-guest-agent/copyright

...which is awesome because google_authorized_keys is not shipped and thus doubly confirms the fix for Bionic.

tags: added: verification-done-bionic
removed: verification-needed-bionic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package google-guest-agent - 20220622.00-0ubuntu2~22.04.0

---------------
google-guest-agent (20220622.00-0ubuntu2~22.04.0) jammy; urgency=medium

  * No-change rebuild for Jammy. (LP: #1959392)

google-guest-agent (20220622.00-0ubuntu2) kinetic; urgency=medium

  * d/rules: don't build google_authorized_keys as it
    conflicts with the same binary shipped by
    src:google-compute-engine-oslogin. (LP: #1980725)

google-guest-agent (20220622.00-0ubuntu1~22.04.0) jammy; urgency=medium

  * No-change rebuild for Jammy. (LP: #1959392)

 -- Utkarsh Gupta <email address hidden> Tue, 05 Jul 2022 17:05:25 +0530

Changed in google-guest-agent (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for google-guest-agent has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package google-guest-agent - 20220622.00-0ubuntu2~20.04.0

---------------
google-guest-agent (20220622.00-0ubuntu2~20.04.0) focal; urgency=medium

  * No-change rebuild for Focal. (LP: #1980725)

google-guest-agent (20220622.00-0ubuntu2) kinetic; urgency=medium

  * d/rules: don't build google_authorized_keys as it
    conflicts with the same binary shipped by
    src:google-compute-engine-oslogin. (LP: #1980725)

google-guest-agent (20220622.00-0ubuntu1~20.04.0) focal; urgency=medium

  * No-change rebuild for Focal. (LP: #1959392)

 -- Utkarsh Gupta <email address hidden> Tue, 05 Jul 2022 17:08:17 +0530

Changed in google-guest-agent (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package google-guest-agent - 20220622.00-0ubuntu2~18.04.0

---------------
google-guest-agent (20220622.00-0ubuntu2~18.04.0) bionic; urgency=medium

  * Rebuild for Bionic.
    - Set GO111MODULE to off to avoid internet usage.

google-guest-agent (20220622.00-0ubuntu2) kinetic; urgency=medium

  * d/rules: don't build google_authorized_keys as it
    conflicts with the same binary shipped by
    src:google-compute-engine-oslogin. (LP: #1980725)

google-guest-agent (20220622.00-0ubuntu1~18.04.0) bionic; urgency=medium

  * No-change rebuild for Bionic. (LP: #1959392)

 -- Utkarsh Gupta <email address hidden> Tue, 05 Jul 2022 17:30:39 +0530

Changed in google-guest-agent (Ubuntu Bionic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.