[SRU] Rampart's configuration on Ubuntu's package doesn't define a default ClockSkewBuffer

Bug #854946 reported by Bruno França dos Reis
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eucalyptus (Ubuntu)
Fix Released
Medium
James Page
Lucid
Invalid
Medium
Unassigned
Maverick
Won't Fix
Medium
James Page
Natty
Fix Released
Medium
James Page
Oneiric
Fix Released
Medium
James Page

Bug Description

SRU Information:

IMPATCT: If minor clock drift is encountered between Eucalyptus NC and CC then any messages that are in the future are rejected by RampartC, even if the time difference is minimal.
FIX: Patch supplied by upstream to permit minor time differences between nodes in Rampart configuration - this formed part of the 2.0.3 security release of Eucalyptus.
PATCH: see attached clock_drift.patch and associated branches for each release.
TEST CASE:
- Requires at minimum a two node eucalyptus installation.
- Clock difference between the two nodes should be introduced.
- Webservice messages will then be dropped between the two nodes.
REGRESSION POTENTIAL: Minimal - patch supplied from upstream released version so should be well tested.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Original Bug Report:

In both EucalyptusNC/services.xml and EucalyptusCC/services.xml there's no ClockSkewBuffer (nor TimeToLive nor PrecisionInMilliseconds), therefore messages "from the future" (from the webservice's point of view) won't be accepted, even if the difference in time is minimal.

This happens on a default Ubuntu 11.04 x64 cloud server installation, after a full upgrade (apt-get update && apt-get dist-upgrade) and a reboot.

Eucalyptus' package version is 2.0.1+bzr1256-0ubuntu4.1

For a more detailed description on this issue, see a question I asked in ServerFault: http://serverfault.com/questions/313200/ubuntu-enterprise-cloud-ncs-down-and-time-synchronization

Related branches

Revision history for this message
graziano obertelli (graziano.obertelli) wrote :

This issue was solved in Eucalyptus 2.0.3 (upstream) with the attached patch. It's just a 2 liners that ensure rampartC policy to be more lenient on the time difference.

Revision history for this message
Dave Walker (davewalker) wrote :

Thanks for raising this graziano, and attaching a patch.. Am i correct in saying this should have been part of the security update?

Thanks.

Changed in eucalyptus (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
milestone: none → ubuntu-11.10-beta-2
Changed in eucalyptus (Ubuntu Natty):
status: New → Confirmed
importance: Undecided → Medium
Changed in eucalyptus (Ubuntu Maverick):
status: New → Confirmed
Changed in eucalyptus (Ubuntu Lucid):
status: New → Confirmed
importance: Undecided → Medium
Changed in eucalyptus (Ubuntu Maverick):
importance: Undecided → Medium
tags: added: server-o-rs
Revision history for this message
graziano obertelli (graziano.obertelli) wrote :

Thanks for the quick answer! Yes it was part of our 2.0.3 release, which was a security release only. My understanding (which I can confirm if you want) is that with the addition of more stringent rules for rampartC, this second patch was needed to allow communication between components when the clocks were not perfectly synchronized.

James Page (james-page)
Changed in eucalyptus (Ubuntu Oneiric):
assignee: nobody → James Page (james-page)
status: Confirmed → In Progress
Revision history for this message
James Page (james-page) wrote :

Graziano

Will this effect eucalyptus 1.6 in lucid as well? or is it constrained to >= 2.0?

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

This bug was fixed in the package eucalyptus - 2.0.1+bzr1256-0ubuntu8

---------------
eucalyptus (2.0.1+bzr1256-0ubuntu8) oneiric; urgency=low

  * Fix compatibility issues with SSLv3 (LP: #851611):
    - d/patches/29-euca_conf-sslv3.patch: Use --secure-protocol=SSLv3
      with wget when communicating with CLC.
    - d/eucalyptus-cloud.upstart: Use --secure-protocol=SSLv3 with wget
      when checking for CLC startup complete.
  * d/patches/30-clock_drift.patch: Resolve issue with rampart blocking
    communication between CC and NC when time is fractionally in the
    future (LP: #854946):
 -- James Page <email address hidden> Wed, 21 Sep 2011 09:57:58 +0100

Changed in eucalyptus (Ubuntu Oneiric):
status: In Progress → Fix Released
Revision history for this message
graziano obertelli (graziano.obertelli) wrote :

James,

for 1.6.2 (lucid) a similar set of patches were sent I think at about the same time, but I can be mistaken here. A cursory look seems to imply that they were not applied to Lucid. I am digging through my email graveyard to find them: I will forward them to you as soon as I find them.

Thanks for checking!

Revision history for this message
graziano obertelli (graziano.obertelli) wrote :

I stand corrected: Lucid has indeed all the correct patches applied.

James Page (james-page)
summary: - Rampart's configuration on Ubuntu's package doesn't define a default
- ClockSkewBuffer
+ [SRU] Rampart's configuration on Ubuntu's package doesn't define a
+ default ClockSkewBuffer
James Page (james-page)
description: updated
description: updated
James Page (james-page)
Changed in eucalyptus (Ubuntu Natty):
assignee: nobody → James Page (james-page)
Changed in eucalyptus (Ubuntu Maverick):
assignee: nobody → James Page (james-page)
status: Confirmed → In Progress
Changed in eucalyptus (Ubuntu Natty):
status: Confirmed → In Progress
Revision history for this message
James Page (james-page) wrote :

Marking lucid task as invalid as this fix had already been applied.

Changed in eucalyptus (Ubuntu Lucid):
status: Confirmed → Invalid
Revision history for this message
James Page (james-page) wrote :

Thanks for confirming that Graziano

Fixes for natty and maverick uploaded to -proposed queue and ready for ubuntu-sru team review.

Thanks

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Bfreis, or anyone else affected,

Accepted eucalyptus into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in eucalyptus (Ubuntu Natty):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Bruno França dos Reis (bfreis) wrote :

Hello.

I've just installed the update from natty-proposed on my 3 servers (2 NCs, 1 CC), and they seem to be fine. I will confirm if everything is still OK tomorrow, since the errors were intermittent.

It is the first time I use "-proposed", so I have a question: if everything goes smooth, and you publish this update to "main", will I have to do anything on my servers, like reinstall the packages, or somehow tell the system that the packages now come from "main" instead of "-proposed"? Will I be able to simply remove the "deb ... natty-proposed ..." line from /etc/apt/sources.list without destroying anything?

Thanks!

Revision history for this message
Clint Byrum (clint-fewbar) wrote : Re: [Bug 854946] Re: [SRU] Rampart's configuration on Ubuntu's package doesn't define a default ClockSkewBuffer

Excerpts from Bfreis's message of Mon Sep 26 19:55:40 UTC 2011:
> Hello.
>
> I've just installed the update from natty-proposed on my 3 servers (2
> NCs, 1 CC), and they seem to be fine. I will confirm if everything is
> still OK tomorrow, since the errors were intermittent.
>
> It is the first time I use "-proposed", so I have a question: if
> everything goes smooth, and you publish this update to "main", will I
> have to do anything on my servers, like reinstall the packages, or
> somehow tell the system that the packages now come from "main" instead
> of "-proposed"? Will I be able to simply remove the "deb ... natty-
> proposed ..." line from /etc/apt/sources.list without destroying
> anything?
>
> Thanks!

No, you won't have to do anything. Apt doesn't care where the latest
package comes from on upgrade, it just gets the latest package*.

* absent any apt-pinning or use of backports. ;)

Revision history for this message
Bruno França dos Reis (bfreis) wrote :

Hello.

Just to inform that since yesterday after when I updated to the latest version available on natty-proposed the servers are running good, and have shown no symptoms of "messages from the future" being discarded (verified through the absence of the error logs I was seeing in /var/log/eucalytus/axis2c.log).

Thanks for all the support and promptitude on dealing with this issue!

Bruno

Revision history for this message
Clint Byrum (clint-fewbar) wrote : Please test proposed package

Hello Bfreis, or anyone else affected,

Accepted eucalyptus into maverick-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in eucalyptus (Ubuntu Maverick):
status: In Progress → Fix Committed
tags: added: verification-done verification-done-natty
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package eucalyptus - 2.0.1+bzr1256-0ubuntu4.2

---------------
eucalyptus (2.0.1+bzr1256-0ubuntu4.2) natty-proposed; urgency=low

  * d/patches/28-clock_drift.patch: Resolve issue with rampart blocking
    communication between CC and NC when time is fractionally in the
    future (LP: #854946).
 -- James Page <email address hidden> Mon, 26 Sep 2011 09:43:21 +0100

Changed in eucalyptus (Ubuntu Natty):
status: Fix Committed → Fix Released
Martin Pitt (pitti)
tags: removed: verification-done
James Page (james-page)
Changed in eucalyptus (Ubuntu Maverick):
status: Fix Committed → Won't Fix
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.