/etc/ssl/certs/cert-ec2.pem is dangling symlink

Bug #1085537 reported by Scott Moser
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
euca2ools (Ubuntu)
Fix Released
High
Loïc Minier
Quantal
Fix Released
Undecided
Loïc Minier

Bug Description

$ dpkg -L euca2ools | grep cert-ec2
/etc/ssl/certs/cert-ec2.pem
$ ls -l /etc/ssl/certs/cert-ec2.pem
lrwxrwxrwx 1 root root 33 Jul 13 16:57 /etc/ssl/certs/cert-ec2.pem -> /usr/share/euca2ools/cert-ec2.pem

It would seem that this is an improper fix or regression from bug 1007533.

[rationale]
The EC2 certificate is missing in quantal when it was present in previous releases and the broken symlink breaks Postfix startup in some configurations (as it tries to cpio /etc/ssl/certs into a chroot).

[test case]
"dpkg -L euca2ools | grep cert-ec2" returns both the /etc/ssl/certs/cert-ec2.pem symlink and an actual /usr/share/euca2ools/cert-ec2.pem file

[regression potential]
Can't think of a specific regression potential here.

Revision history for this message
Scott Moser (smoser) wrote :
Scott Moser (smoser)
summary: - /etc/ssl/certs/cert-ec2.pem is invalid symlink
+ /etc/ssl/certs/cert-ec2.pem is dangling symlink
Scott Moser (smoser)
description: updated
Revision history for this message
Robie Basak (racb) wrote :

Verified on Quantal (2.0.2-1ubuntu2).

Changed in euca2ools (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Loïc Minier (lool) wrote :

This prevents postfix from starting up when it tries to cpio /etc/ssl/certs into its runtime chroot

Loïc Minier (lool)
Changed in euca2ools (Ubuntu):
assignee: nobody → Loïc Minier (lool)
Loïc Minier (lool)
description: updated
Changed in euca2ools (Ubuntu Quantal):
assignee: nobody → Loïc Minier (lool)
Loïc Minier (lool)
Changed in euca2ools (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package euca2ools - 2.1.1-0ubuntu2

---------------
euca2ools (2.1.1-0ubuntu2) raring; urgency=low

  * Actually install debian/cert-ec2.pem into usr/share/euca2ools/;
    LP: #1085537.
  * Rename Vcs-* to XS-Debian-Vcs-*.
  * Fix euca-describe-group -> euca-describe-groups binary and manpage
    symlinks; LP: #1098096.
 -- Loic Minier <email address hidden> Thu, 10 Jan 2013 09:53:43 +0100

Changed in euca2ools (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Loïc Minier (lool) wrote :
Revision history for this message
Clint Byrum (clint-fewbar) wrote : Please test proposed package

Hello Scott, or anyone else affected,

Accepted euca2ools into quantal-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/euca2ools/2.0.2-1ubuntu2.1 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 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, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

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

Changed in euca2ools (Ubuntu Quantal):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Scott Moser (smoser) wrote :

ami-0cdf4965 (us-east-1/ebs/ubuntu-quantal-12.10-amd64-server-20130206) does not seem to exhibit this problem.

## show the problem exists
$ dpkg-query --show euca2ools
euca2ools 2.0.2-1ubuntu2
$ dpkg -L euca2ools | grep cert-ec2
/etc/ssl/certs/cert-ec2.pem
$ ls -l /etc/ssl/certs/cert-ec2.pem
lrwxrwxrwx 1 root root 33 Jul 13 2012 /etc/ssl/certs/cert-ec2.pem -> /usr/share/euca2ools/cert-ec2.pem
$ ls -l /usr/share/euca2ools/cert-ec2.pem
ls: cannot access /usr/share/euca2ools/cert-ec2.pem: No such file or directory

# enable proposed
$ echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-proposed main" |
  sudo tee /etc/apt/sources.list.d/proposed.list
$ sudo apt-get update
$ sudo apt-get install euca2ools

$ dpkg-query --show euca2ools
euca2ools 2.0.2-1ubuntu2.1
$ dpkg -L euca2ools | grep cert-ec2
/usr/share/euca2ools/cert-ec2.pem
/etc/ssl/certs/cert-ec2.pem
$ ls -l /etc/ssl/certs/cert-ec2.pem
lrwxrwxrwx 1 root root 33 Jan 24 07:45 /etc/ssl/certs/cert-ec2.pem -> /usr/share/euca2ools/cert-ec2.pem
$ ls -l /usr/share/euca2ools/cert-ec2.pem
-rw-r--r-- 1 root root 1379 Jun 13 2012 /usr/share/euca2ools/cert-ec2.pem
$ head -n 3 /usr/share/euca2ools/cert-ec2.pem
-----BEGIN CERTIFICATE-----
MIIDzjCCAzegAwIBAgIJALDnZV+lpZdSMA0GCSqGSIb3DQEBBQUAMIGhMQswCQYD
VQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBDYXBlMRIwEAYDVQQHEwlDYXBlIFRv

So, the upgrade fixed the broken symlink and got the right file content in
place.

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

This bug was fixed in the package euca2ools - 2.0.2-1ubuntu2.1

---------------
euca2ools (2.0.2-1ubuntu2.1) quantal-proposed; urgency=low

  * Actually install debian/cert-ec2.pem into usr/share/euca2ools/;
    LP: #1085537.
 -- Loic Minier <email address hidden> Thu, 10 Jan 2013 10:33:59 +0100

Changed in euca2ools (Ubuntu Quantal):
status: Fix Committed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been 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 regresssions.

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.