[ https://issues.apache.org/jira/browse/CASSANDRA-5816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722904#comment-13722904 ]
Blair Zajac commented on CASSANDRA-5816: ---------------------------------------- The issue I have is that the cassandra package wants to uninstall chrony for ntp. Here's a pristine Ubuntu 12.04.2 VM launched in OpenStack that adds DataStax's repo, installs chrony and then tries to install cassandra. {code} root@server-2057c48c-24d1-40d1-b9b7-7b65890a5e56:~# curl http://debian.datastax.com/debian/repo_key | apt-key add - % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2922 100 2922 0 0 18918 0 --:--:-- --:--:-- --:--:-- 36987 OK root@server-2057c48c-24d1-40d1-b9b7-7b65890a5e56:/etc/apt/sources.list.d# echo deb http://debian.datastax.com/community stable main >/etc/apt/sources.list.d/datastax.list root@server-2057c48c-24d1-40d1-b9b7-7b65890a5e56:/etc/apt/sources.list.d# apt-get update Get:1 http://debian.datastax.com stable Release.gpg [287 B] Get:2 http://debian.datastax.com stable Release [2,870 B] Get:3 http://security.ubuntu.com precise-security Release.gpg [198 B] Get:4 http://debian.datastax.com stable/main amd64 Packages [8,844 B] Get:5 http://security.ubuntu.com precise-security Release [49.6 kB] Get:6 http://debian.datastax.com stable/main i386 Packages [8,835 B] Hit http://nova.clouds.archive.ubuntu.com precise Release.gpg Ign http://debian.datastax.com stable/main TranslationIndex Get:7 http://nova.clouds.archive.ubuntu.com precise-updates Release.gpg [198 B] Get:8 http://security.ubuntu.com precise-security/main Sources [83.7 kB] Hit http://nova.clouds.archive.ubuntu.com precise Release Get:9 http://nova.clouds.archive.ubuntu.com precise-updates Release [49.6 kB] Get:10 http://security.ubuntu.com precise-security/universe Sources [27.6 kB] Get:11 http://security.ubuntu.com precise-security/main amd64 Packages [301 kB] Ign http://debian.datastax.com stable/main Translation-en_US Ign http://debian.datastax.com stable/main Translation-en Get:12 http://nova.clouds.archive.ubuntu.com precise/main Sources [934 kB] Get:13 http://security.ubuntu.com precise-security/universe amd64 Packages [80.2 kB] Get:14 http://security.ubuntu.com precise-security/main i386 Packages [316 kB] Get:15 http://security.ubuntu.com precise-security/universe i386 Packages [83.1 kB] Get:16 http://security.ubuntu.com precise-security/main TranslationIndex [74 B] Get:17 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B] Get:18 http://security.ubuntu.com precise-security/main Translation-en [146 kB] Get:19 http://security.ubuntu.com precise-security/universe Translation-en [51.1 kB] Get:20 http://nova.clouds.archive.ubuntu.com precise/universe Sources [5,019 kB] Hit http://nova.clouds.archive.ubuntu.com precise/main amd64 Packages Hit http://nova.clouds.archive.ubuntu.com precise/universe amd64 Packages Hit http://nova.clouds.archive.ubuntu.com precise/main i386 Packages Hit http://nova.clouds.archive.ubuntu.com precise/universe i386 Packages Hit http://nova.clouds.archive.ubuntu.com precise/main TranslationIndex Hit http://nova.clouds.archive.ubuntu.com precise/universe TranslationIndex Get:21 http://nova.clouds.archive.ubuntu.com precise-updates/main Sources [411 kB] Get:22 http://nova.clouds.archive.ubuntu.com precise-updates/universe Sources [93.4 kB] Get:23 http://nova.clouds.archive.ubuntu.com precise-updates/main amd64 Packages [668 kB] Get:24 http://nova.clouds.archive.ubuntu.com precise-updates/universe amd64 Packages [211 kB] Get:25 http://nova.clouds.archive.ubuntu.com precise-updates/main i386 Packages [689 kB] Get:26 http://nova.clouds.archive.ubuntu.com precise-updates/universe i386 Packages [214 kB] Get:27 http://nova.clouds.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B] Get:28 http://nova.clouds.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B] Hit http://nova.clouds.archive.ubuntu.com precise/main Translation-en Hit http://nova.clouds.archive.ubuntu.com precise/universe Translation-en Get:29 http://nova.clouds.archive.ubuntu.com precise-updates/main Translation-en [303 kB] Get:30 http://nova.clouds.archive.ubuntu.com precise-updates/universe Translation-en [124 kB] Fetched 9,882 kB in 12s (794 kB/s) Reading package lists... Done root@server-2057c48c-24d1-40d1-b9b7-7b65890a5e56:/etc/apt/sources.list.d# apt-get install chrony Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: timelimit The following NEW packages will be installed: chrony timelimit 0 upgraded, 2 newly installed, 0 to remove and 28 not upgraded. Need to get 372 kB of archives. After this operation, 870 kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu/ precise/universe timelimit amd64 1.8-1 [12.2 kB] Get:2 http://nova.clouds.archive.ubuntu.com/ubuntu/ precise/universe chrony amd64 1.24-3.1ubuntu1 [359 kB] Fetched 372 kB in 3s (107 kB/s) Selecting previously unselected package timelimit. (Reading database ... 47446 files and directories currently installed.) Unpacking timelimit (from .../timelimit_1.8-1_amd64.deb) ... Selecting previously unselected package chrony. Unpacking chrony (from .../chrony_1.24-3.1ubuntu1_amd64.deb) ... Processing triggers for initramfs-tools ... update-initramfs: Generating /boot/initrd.img-3.2.0-48-virtual Processing triggers for man-db ... Processing triggers for ureadahead ... Processing triggers for install-info ... Setting up timelimit (1.8-1) ... Setting up chrony (1.24-3.1ubuntu1) ... Creating config file /etc/chrony/chrony.conf with new version Starting /usr/sbin/chronyd... chronyd is running and online. root@server-2057c48c-24d1-40d1-b9b7-7b65890a5e56:/etc/apt/sources.list.d# apt-get install cassandra Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: timelimit Use 'apt-get autoremove' to remove them. The following extra packages will be installed: ca-certificates-java icedtea-6-jre-cacao icedtea-6-jre-jamvm java-common jsvc libavahi-client3 libavahi-common-data libavahi-common3 libcap2 libcommons-daemon-java libcups2 libjna-java libjpeg-turbo8 libjpeg8 libnspr4 libnss3 libnss3-1d libopts25 ntp openjdk-6-jre-headless openjdk-6-jre-lib python-support tzdata-java Suggested packages: default-jre equivs java-virtual-machine cups-common libjna-java-doc ntp-doc libnss-mdns sun-java6-fonts ttf-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho ttf-wqy-microhei ttf-wqy-zenhei ttf-indic-fonts-core ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts Recommended packages: default-jre-headless java2-runtime-headless The following packages will be REMOVED: chrony The following NEW packages will be installed: ca-certificates-java cassandra icedtea-6-jre-cacao icedtea-6-jre-jamvm java-common jsvc libavahi-client3 libavahi-common-data libavahi-common3 libcap2 libcommons-daemon-java libcups2 libjna-java libjpeg-turbo8 libjpeg8 libnspr4 libnss3 libnss3-1d libopts25 ntp openjdk-6-jre-headless openjdk-6-jre-lib python-support tzdata-java 0 upgraded, 24 newly installed, 1 to remove and 28 not upgraded. Need to get 49.6 MB of archives. After this operation, 112 MB of additional disk space will be used. Do you want to continue [Y/n]? {code} Granted, using --no-install-recommends works (I tried it here), but again, not having to use --no-install-recommends it is a gain since people don't need to learn about it. Thanks for suggesting and improving the original proposal using time-daemon, but again, I don't know why we're debating this when its a gain. > [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