[ 
https://issues.apache.org/jira/browse/CASSANDRA-5816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722936#comment-13722936
 ] 

paul cannon commented on CASSANDRA-5816:
----------------------------------------

You want

{noformat}
apt-get install cassandra chrony
{noformat}

or

{noformat}
apt-get install cassandra
apt-get install chrony
{noformat}

If you install chrony first, apt has no way to know that you'd prefer to keep 
chrony over meeting the recommendation from the Cassandra package. If you have 
an automated package-set-management system, it should know how to request 
installation of multiple packages in one command like this, so that apt can 
best sort out dependency trees and scoring based on what you have explicitly 
requested. Alternatively, you could set appropriate pinning for chrony and/or 
ntp in apt_preferences.

I'm not debating whether using "{{ntp | time-daemon}}" is the right thing to do 
or not (I don't care), but I feel like a better understanding of the problem 
would help everyone involved.
                
> [PATCH] Debian packaging: also recommend chrony and ptpd in addition to ntp
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-5816
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5816
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Packaging
>    Affects Versions: 1.2.7
>            Reporter: Blair Zajac
>            Assignee: Blair Zajac
>            Priority: Minor
>
> I'm switching my Ubuntu servers running Cassandra from ntp to chrony for the 
> reasons cited here when Fedora made the switch to have chrony be the default 
> NTP client:
> http://fedoraproject.org/wiki/Features/ChronyDefaultNTP
> Currently, the debian packaging recommends only ntp so if chrony is installed 
> it'll want to remove it and install ntp.  I also added ptpd, the Precision 
> Time Protocol daemon, which is another time syncing server for completeness.
> Please apply this to the 1.2 branch so the next 1.2.x release can deploy with 
> chrony.
> Below is the patch since it's a one-liner.
> Thanks,
> Blair
> --- a/debian/control
> +++ b/debian/control
> @@ -12,7 +12,7 @@ Standards-Version: 3.8.3
>  Package: cassandra
>  Architecture: all
>  Depends: openjdk-6-jre-headless (>= 6b11) | java6-runtime, jsvc (>= 1.0), 
> libcommons-daemon-java (>= 1.0), adduser, libjna-java, python (>= 2.5), 
> python-support (>= 0.90.0), ${misc:Depends}
> -Recommends: ntp
> +Recommends: chrony | ntp | ptpd
>  Conflicts: apache-cassandra1
>  Replaces: apache-cassandra1
>  Description: distributed storage system for structured data

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to