Project

General

Profile

Actions

Bug #11207

closed

Broken empty options handling in apt module on some distros

Added by Dmitry Svyatogorov over 7 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

Package install through 'Packages' technique always fails on ubuntu. The debug below shows "repo-install" operation instead of "install".
Rudder server Rudder 4.1.5.

# rudder agent version
Rudder agent 4.1.5-trusty0 (CFEngine Core 3.10.0)

# rudder agent run -d
…
rudder    debug: cf_pwait - Waiting for process 19433
rudder    debug: Received empty packages list after requesting: list-updates
rudder    debug: Installing package 'zookeeperd'
rudder    debug: Installing repo type package: 'Name=zookeeperd
Version=3.4.5+dfsg-1
'
rudder    debug: Sending install command to package module: 'options=
Name=zookeeperd
Version=3.4.5+dfsg-1
'
rudder    debug: Opened fds 7 and 10 for command '/var/rudder/cfengine-community/modules/packages/apt_get repo-install'.
rudder    debug: cf_pwait - Waiting for process 19467
rudder  verbose: Command '/var/rudder/cfengine-community/modules/packages/apt_get repo-install' returned with non zero return code: 100
rudder     info: Some error occurred while communicating with package module while installing package.
rudder    debug: Evaluating present action promise status: f
   error: Error installing package 'zookeeperd'
…

Files

debug.log (6.24 MB) debug.log Dmitry Svyatogorov, 2017-08-10 17:43
packageManagement.cf (6.65 KB) packageManagement.cf Dmitry Svyatogorov, 2017-08-10 17:44

Related issues 1 (0 open1 closed)

Related to Rudder - User story #10388: Add a generic method that handles using options in package actionsReleasedBenoît PECCATTEActions
Actions #1

Updated by Alexis Mousset over 7 years ago

  • Project changed from Rudder to 41
  • Category changed from Techniques to Generic methods - Package Management
  • Target version changed from 4.1.6 to 1.1
Actions #2

Updated by Benoît PECCATTE over 7 years ago

  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Getting started - demo | first install | level 1 Techniques
  • Priority changed from 0 to 70

The apt_get is a cfengine module, so it is not expected to take the same arguments as apt-get. Repo-install is a valid value here.

Do you have any other error message ?

Updated by Dmitry Svyatogorov over 7 years ago

Attached rudder-generated promise /var/rudder/cfengine-community/inputs/packageManagement/1.0/packageManagement.cf
and full output for "rudder agent run -d > debug.log"
The installation proceeds ok through the old "Packages (Debian/Ubuntu/APT)" and cli (apt-get install), but stucks in "Packages" technique.

# apt-cache show zookeeperd
Package: zookeeperd
Priority: optional
Section: universe/java
Installed-Size: 64
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Architecture: all
Source: zookeeper
Version: 3.4.5+dfsg-1
Depends: lsb-base (>= 3.2-14), zookeeper (= 3.4.5+dfsg-1), sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16)
Filename: pool/universe/z/zookeeper/zookeeperd_3.4.5+dfsg-1_all.deb
Size: 8812
MD5sum: dac8fa53d0a47fdda19b524492c06a11
SHA1: 78401345fde7ebf6b49faafee583a57b1508d0a4
SHA256: aadf51d48cc9349d9502944ccbcf9231ef0089baacb016fb2cc83be6eb6f5a82
Description-en: Init control scripts for zookeeper
 ZooKeeper is a centralized, reliable, service for maintaining configuration
 information, naming, providing distributed synchronization, and group
 services. All of these kinds of services are used in some form or another by
 distributed applications.
 .
 This package contains init.d scripts to start and stop zookeeper and starts
 zookeeper on installation.
Description-md5: 6d3e9e37f1bdfe054bad45084d910d36
Homepage: http://zookeeper.apache.org
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
<pre>

<pre>
# apt-get install zookeeperd                
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  python-xapian
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  ca-certificates-java default-jre-headless fontconfig-config
  fonts-dejavu-core java-common libasyncns0 libflac8 libfontconfig1
  libjline-java libjpeg-turbo8 libjpeg8 liblcms2-2 liblog4j1.2-java
  libnetty-java libogg0 libpulse0 libsctp1 libslf4j-java libsndfile1
  libvorbis0a libvorbisenc2 libxerces2-java libxml-commons-external-java
  libxml-commons-resolver1.1-java libzookeeper-java openjdk-7-jre-headless
  tzdata-java zookeeper
Suggested packages:
  default-jre equivs libjline-java-doc liblcms2-utils liblog4j1.2-java-doc
  libgnumail-java pulseaudio libcommons-logging-java libxerces2-java-doc
  libxerces2-java-gcj libxml-commons-resolver1.1-java-doc icedtea-7-jre-jamvm
  libnss-mdns sun-java6-fonts fonts-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:
  libservlet2.5-java lksctp-tools libzookeeper-java-doc
The following NEW packages will be installed:
  ca-certificates-java default-jre-headless fontconfig-config
  fonts-dejavu-core java-common libasyncns0 libflac8 libfontconfig1
  libjline-java libjpeg-turbo8 libjpeg8 liblcms2-2 liblog4j1.2-java
  libnetty-java libogg0 libpulse0 libsctp1 libslf4j-java libsndfile1
  libvorbis0a libvorbisenc2 libxerces2-java libxml-commons-external-java
  libxml-commons-resolver1.1-java libzookeeper-java openjdk-7-jre-headless
  tzdata-java zookeeper zookeeperd
0 upgraded, 29 newly installed, 0 to remove and 1 not upgraded.
Need to get 45.8 MB of archives.
After this operation, 71.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libasyncns0 amd64 0.8-4ubuntu2 [11.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty/main libogg0 amd64 1.3.1-1ubuntu1 [17.0 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libflac8 amd64 1.3.0-2ubuntu0.14.04.1 [80.2 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main fonts-dejavu-core all 2.34-1ubuntu1 [1,024 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main fontconfig-config all 2.11.0-0ubuntu4.2 [47.4 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libfontconfig1 amd64 2.11.0-0ubuntu4.2 [123 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ trusty/main libjpeg-turbo8 amd64 1.3.0-0ubuntu2 [104 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ trusty-updates/main liblcms2-2 amd64 2.5-0ubuntu4.1 [131 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ trusty/main libvorbis0a amd64 1.3.2-1.3ubuntu1 [87.2 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ trusty/main libvorbisenc2 amd64 1.3.2-1.3ubuntu1 [84.5 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libsndfile1 amd64 1.0.25-7ubuntu2.1 [136 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libpulse0 amd64 1:4.0-0ubuntu11.1 [225 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ trusty/main libsctp1 amd64 1.0.15+dfsg-1 [9,226 B]
Get:14 http://archive.ubuntu.com/ubuntu/ trusty/main java-common all 0.51 [130 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ trusty/main default-jre-headless amd64 2:1.7-51 [3,834 B]
Get:16 http://archive.ubuntu.com/ubuntu/ trusty/main ca-certificates-java all 20130815ubuntu1 [13.4 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ trusty-updates/main tzdata-java all 2016h-0ubuntu0.14.04 [69.2 kB]
Get:18 http://archive.ubuntu.com/ubuntu/ trusty/main libjpeg8 amd64 8c-2ubuntu8 [2,194 B]
Get:19 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openjdk-7-jre-headless amd64 7u121-2.6.8-1ubuntu0.14.04.1 [39.2 MB]
Get:20 http://archive.ubuntu.com/ubuntu/ trusty/main libjline-java all 1.0-2 [69.4 kB]
Get:21 http://archive.ubuntu.com/ubuntu/ trusty/main liblog4j1.2-java all 1.2.17-4ubuntu3 [383 kB]
Get:22 http://archive.ubuntu.com/ubuntu/ trusty/universe libnetty-java all 1:3.2.6.Final-2 [671 kB]
Get:23 http://archive.ubuntu.com/ubuntu/ trusty/universe libslf4j-java all 1.7.5-2 [110 kB]
Get:24 http://archive.ubuntu.com/ubuntu/ trusty/main libxml-commons-resolver1.1-java all 1.2-7build1 [91.6 kB]
Get:25 http://archive.ubuntu.com/ubuntu/ trusty/main libxml-commons-external-java all 1.4.01-2build1 [245 kB]
Get:26 http://archive.ubuntu.com/ubuntu/ trusty/main libxerces2-java all 2.11.0-7 [1,362 kB]
Get:27 http://archive.ubuntu.com/ubuntu/ trusty/universe libzookeeper-java all 3.4.5+dfsg-1 [1,237 kB]
Get:28 http://archive.ubuntu.com/ubuntu/ trusty/universe zookeeper all 3.4.5+dfsg-1 [109 kB]
Get:29 http://archive.ubuntu.com/ubuntu/ trusty/universe zookeeperd all 3.4.5+dfsg-1 [8,812 B]
Fetched 45.8 MB in 0s (49.0 MB/s)  
Selecting previously unselected package libasyncns0:amd64.
(Reading database ... 59952 files and directories currently installed.)
Preparing to unpack .../libasyncns0_0.8-4ubuntu2_amd64.deb ...
Unpacking libasyncns0:amd64 (0.8-4ubuntu2) ...
Selecting previously unselected package libogg0:amd64.
Preparing to unpack .../libogg0_1.3.1-1ubuntu1_amd64.deb ...
Unpacking libogg0:amd64 (1.3.1-1ubuntu1) ...
Selecting previously unselected package libflac8:amd64.
Preparing to unpack .../libflac8_1.3.0-2ubuntu0.14.04.1_amd64.deb ...
Unpacking libflac8:amd64 (1.3.0-2ubuntu0.14.04.1) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../fonts-dejavu-core_2.34-1ubuntu1_all.deb ...
Unpacking fonts-dejavu-core (2.34-1ubuntu1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../fontconfig-config_2.11.0-0ubuntu4.2_all.deb ...
Unpacking fontconfig-config (2.11.0-0ubuntu4.2) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../libfontconfig1_2.11.0-0ubuntu4.2_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.11.0-0ubuntu4.2) ...
Selecting previously unselected package libjpeg-turbo8:amd64.
Preparing to unpack .../libjpeg-turbo8_1.3.0-0ubuntu2_amd64.deb ...
Unpacking libjpeg-turbo8:amd64 (1.3.0-0ubuntu2) ...
Selecting previously unselected package liblcms2-2:amd64.
Preparing to unpack .../liblcms2-2_2.5-0ubuntu4.1_amd64.deb ...
Unpacking liblcms2-2:amd64 (2.5-0ubuntu4.1) ...
Selecting previously unselected package libvorbis0a:amd64.
Preparing to unpack .../libvorbis0a_1.3.2-1.3ubuntu1_amd64.deb ...
Unpacking libvorbis0a:amd64 (1.3.2-1.3ubuntu1) ...
Selecting previously unselected package libvorbisenc2:amd64.
Preparing to unpack .../libvorbisenc2_1.3.2-1.3ubuntu1_amd64.deb ...
Unpacking libvorbisenc2:amd64 (1.3.2-1.3ubuntu1) ...
Selecting previously unselected package libsndfile1:amd64.
Preparing to unpack .../libsndfile1_1.0.25-7ubuntu2.1_amd64.deb ...
Unpacking libsndfile1:amd64 (1.0.25-7ubuntu2.1) ...
Selecting previously unselected package libpulse0:amd64.
Preparing to unpack .../libpulse0_1%3a4.0-0ubuntu11.1_amd64.deb ...
Unpacking libpulse0:amd64 (1:4.0-0ubuntu11.1) ...
Selecting previously unselected package libsctp1:amd64.
Preparing to unpack .../libsctp1_1.0.15+dfsg-1_amd64.deb ...
Unpacking libsctp1:amd64 (1.0.15+dfsg-1) ...
Selecting previously unselected package java-common.
Preparing to unpack .../java-common_0.51_all.deb ...
Unpacking java-common (0.51) ...
Selecting previously unselected package default-jre-headless.
Preparing to unpack .../default-jre-headless_2%3a1.7-51_amd64.deb ...
Unpacking default-jre-headless (2:1.7-51) ...
Selecting previously unselected package ca-certificates-java.
Preparing to unpack .../ca-certificates-java_20130815ubuntu1_all.deb ...
Unpacking ca-certificates-java (20130815ubuntu1) ...
Selecting previously unselected package tzdata-java.
Preparing to unpack .../tzdata-java_2016h-0ubuntu0.14.04_all.deb ...
Unpacking tzdata-java (2016h-0ubuntu0.14.04) ...
Selecting previously unselected package libjpeg8:amd64.
Preparing to unpack .../libjpeg8_8c-2ubuntu8_amd64.deb ...
Unpacking libjpeg8:amd64 (8c-2ubuntu8) ...
Selecting previously unselected package openjdk-7-jre-headless:amd64.
Preparing to unpack .../openjdk-7-jre-headless_7u121-2.6.8-1ubuntu0.14.04.1_amd64.deb ...
Unpacking openjdk-7-jre-headless:amd64 (7u121-2.6.8-1ubuntu0.14.04.1) ...
Selecting previously unselected package libjline-java.
Preparing to unpack .../libjline-java_1.0-2_all.deb ...
Unpacking libjline-java (1.0-2) ...
Selecting previously unselected package liblog4j1.2-java.
Preparing to unpack .../liblog4j1.2-java_1.2.17-4ubuntu3_all.deb ...
Unpacking liblog4j1.2-java (1.2.17-4ubuntu3) ...
Selecting previously unselected package libnetty-java.
Preparing to unpack .../libnetty-java_1%3a3.2.6.Final-2_all.deb ...
Unpacking libnetty-java (1:3.2.6.Final-2) ...
Selecting previously unselected package libslf4j-java.
Preparing to unpack .../libslf4j-java_1.7.5-2_all.deb ...
Unpacking libslf4j-java (1.7.5-2) ...
Selecting previously unselected package libxml-commons-resolver1.1-java.
Preparing to unpack .../libxml-commons-resolver1.1-java_1.2-7build1_all.deb ...
Unpacking libxml-commons-resolver1.1-java (1.2-7build1) ...
Selecting previously unselected package libxml-commons-external-java.
Preparing to unpack .../libxml-commons-external-java_1.4.01-2build1_all.deb ...
Unpacking libxml-commons-external-java (1.4.01-2build1) ...
Selecting previously unselected package libxerces2-java.
Preparing to unpack .../libxerces2-java_2.11.0-7_all.deb ...
Unpacking libxerces2-java (2.11.0-7) ...
Selecting previously unselected package libzookeeper-java.
Preparing to unpack .../libzookeeper-java_3.4.5+dfsg-1_all.deb ...
Unpacking libzookeeper-java (3.4.5+dfsg-1) ...
Selecting previously unselected package zookeeper.
Preparing to unpack .../zookeeper_3.4.5+dfsg-1_all.deb ...
Unpacking zookeeper (3.4.5+dfsg-1) ...
Selecting previously unselected package zookeeperd.
Preparing to unpack .../zookeeperd_3.4.5+dfsg-1_all.deb ...
Unpacking zookeeperd (3.4.5+dfsg-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libasyncns0:amd64 (0.8-4ubuntu2) ...
Setting up libogg0:amd64 (1.3.1-1ubuntu1) ...
Setting up libflac8:amd64 (1.3.0-2ubuntu0.14.04.1) ...
Setting up fonts-dejavu-core (2.34-1ubuntu1) ...
Setting up fontconfig-config (2.11.0-0ubuntu4.2) ...
Setting up libfontconfig1:amd64 (2.11.0-0ubuntu4.2) ...
Setting up libjpeg-turbo8:amd64 (1.3.0-0ubuntu2) ...
Setting up liblcms2-2:amd64 (2.5-0ubuntu4.1) ...
Setting up libvorbis0a:amd64 (1.3.2-1.3ubuntu1) ...
Setting up libvorbisenc2:amd64 (1.3.2-1.3ubuntu1) ...
Setting up libsndfile1:amd64 (1.0.25-7ubuntu2.1) ...
Setting up libpulse0:amd64 (1:4.0-0ubuntu11.1) ...
Setting up libsctp1:amd64 (1.0.15+dfsg-1) ...
Setting up java-common (0.51) ...
Setting up tzdata-java (2016h-0ubuntu0.14.04) ...
Setting up libjpeg8:amd64 (8c-2ubuntu8) ...
Setting up libjline-java (1.0-2) ...
Setting up liblog4j1.2-java (1.2.17-4ubuntu3) ...
Setting up libnetty-java (1:3.2.6.Final-2) ...
Setting up libslf4j-java (1.7.5-2) ...
Setting up libxml-commons-resolver1.1-java (1.2-7build1) ...
Setting up libxml-commons-external-java (1.4.01-2build1) ...
Setting up libxerces2-java (2.11.0-7) ...
Setting up libzookeeper-java (3.4.5+dfsg-1) ...
Setting up openjdk-7-jre-headless:amd64 (7u121-2.6.8-1ubuntu0.14.04.1) ...
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
Setting up ca-certificates-java (20130815ubuntu1) ...
Adding debian:StartCom_Certification_Authority_G2.pem
Adding debian:Juur-SK.pem
Adding debian:Chambers_of_Commerce_Root_-_2008.pem
Adding debian:Comodo_AAA_Services_root.pem
Adding debian:USERTrust_RSA_Certification_Authority.pem
Adding debian:Verisign_Class_2_Public_Primary_Certification_Authority_-_G2.pem
Adding debian:ssl-cert-snakeoil.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem
Adding debian:thawte_Primary_Root_CA_-_G2.pem
Adding debian:Izenpe.com.pem
Adding debian:NetLock_Qualified_=Class_QA=_Root.pem
Adding debian:WoSign.pem
Adding debian:GeoTrust_Global_CA_2.pem
Adding debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority.pem
Adding debian:QuoVadis_Root_CA_3.pem
Adding debian:TÜRKTRUST_Elektronik_Sertifika_Hizmet_Sağlayıcısı_H6.pem
Adding debian:Network_Solutions_Certificate_Authority.pem
Adding debian:EBG_Elektronik_Sertifika_Hizmet_Sağlayıcısı.pem
Adding debian:GeoTrust_Universal_CA_2.pem
Adding debian:Sonera_Class_2_Root_CA.pem
Adding debian:DigiCert_Global_Root_CA.pem
Adding debian:Comodo_Secure_Services_root.pem
Adding debian:UTN_USERFirst_Hardware_Root_CA.pem
Adding debian:UTN_USERFirst_Email_Root_CA.pem
Adding debian:QuoVadis_Root_CA_1_G3.pem
Adding debian:Visa_eCommerce_Root.pem
Adding debian:GeoTrust_Global_CA.pem
Adding debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
Adding debian:OISTE_WISeKey_Global_Root_GA_CA.pem
Adding debian:IGC_A.pem
Adding debian:Starfield_Class_2_CA.pem
Adding debian:GeoTrust_Primary_Certification_Authority_-_G3.pem
Adding debian:WoSign_China.pem
Adding debian:QuoVadis_Root_CA.pem
Adding debian:TeliaSonera_Root_CA_v1.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_2009.pem
Adding debian:Staat_der_Nederlanden_Root_CA_-_G2.pem
Adding debian:Deutsche_Telekom_Root_CA_2.pem
Adding debian:IdenTrust_Public_Sector_Root_CA_1.pem
Adding debian:Security_Communication_EV_RootCA1.pem
Adding debian:Entrust_Root_Certification_Authority_-_EC1.pem
Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority_-_G3.pem
Adding debian:Camerfirma_Chambers_of_Commerce_Root.pem
Adding debian:Equifax_Secure_Global_eBusiness_CA.pem
Adding debian:CA_WoSign_ECC_Root.pem
Adding debian:AddTrust_External_Root.pem
Adding debian:DigiCert_Global_Root_G3.pem
Adding debian:Root_CA_Generalitat_Valenciana.pem
Adding debian:Starfield_Root_Certificate_Authority_-_G2.pem
Adding debian:Swisscom_Root_CA_2.pem
Adding debian:GeoTrust_Primary_Certification_Authority_-_G2.pem
Adding debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem
Adding debian:SwissSign_Platinum_CA_-_G2.pem
Adding debian:Certinomis_-_Autorité_Racine.pem
Adding debian:Certification_Authority_of_WoSign_G2.pem
Adding debian:Security_Communication_RootCA2.pem
Adding debian:Certum_Root_CA.pem
Adding debian:ACEDICOM_Root.pem
Adding debian:TWCA_Global_Root_CA.pem
Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority_2.pem
Adding debian:XRamp_Global_CA_Root.pem
Adding debian:AddTrust_Qualified_Certificates_Root.pem
Adding debian:CNNIC_ROOT.pem
Adding debian:Buypass_Class_2_CA_1.pem
Adding debian:NetLock_Express_=Class_C=_Root.pem
Adding debian:AddTrust_Public_Services_Root.pem
Adding debian:CA_Disig.pem
Adding debian:Equifax_Secure_CA.pem
Adding debian:S-TRUST_Authentication_and_Encryption_Root_CA_2005_PN.pem
Adding debian:Certinomis_-_Root_CA.pem
Adding debian:Staat_der_Nederlanden_Root_CA.pem
Adding debian:WellsSecure_Public_Root_Certificate_Authority.pem
Adding debian:EC-ACC.pem
Adding debian:China_Internet_Network_Information_Center_EV_Certificates_Root.pem
Adding debian:Entrust_Root_Certification_Authority_-_G2.pem
Adding debian:DST_Root_CA_X3.pem
Adding debian:Entrust_Root_Certification_Authority.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_EV_2009.pem
Adding debian:DigiCert_Global_Root_G2.pem
Adding debian:Go_Daddy_Root_Certificate_Authority_-_G2.pem
Adding debian:AffirmTrust_Networking.pem
Adding debian:Taiwan_GRCA.pem
Adding debian:COMODO_RSA_Certification_Authority.pem
Adding debian:Microsec_e-Szigno_Root_CA.pem
Adding debian:Atos_TrustedRoot_2011.pem
Adding debian:COMODO_ECC_Certification_Authority.pem
Adding debian:Actalis_Authentication_Root_CA.pem
Adding debian:Swisscom_Root_CA_1.pem
Adding debian:TC_TrustCenter_Class_3_CA_II.pem
Adding debian:PSCProcert.pem
Adding debian:T-TeleSec_GlobalRoot_Class_3.pem
Adding debian:COMODO_Certification_Authority.pem
Adding debian:GeoTrust_Universal_CA.pem
Adding debian:Verisign_Class_1_Public_Primary_Certification_Authority_-_G3.pem
Adding debian:TÜRKTRUST_Elektronik_Sertifika_Hizmet_Sağlayıcısı_H5.pem
Adding debian:Camerfirma_Global_Chambersign_Root.pem
Adding debian:OISTE_WISeKey_Global_Root_GB_CA.pem
Adding debian:T-TeleSec_GlobalRoot_Class_2.pem
Adding debian:ComSign_CA.pem
Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority_-_G2.pem
Adding debian:DigiCert_Trusted_Root_G4.pem
Adding debian:NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem
Adding debian:DigiCert_Assured_ID_Root_G2.pem
Adding debian:ePKI_Root_Certification_Authority.pem
Adding debian:AffirmTrust_Premium_ECC.pem
Adding debian:VeriSign_Universal_Root_Certification_Authority.pem
Adding debian:Buypass_Class_3_Root_CA.pem
Adding debian:Swisscom_Root_EV_CA_2.pem
Adding debian:DigiCert_Assured_ID_Root_G3.pem
Adding debian:QuoVadis_Root_CA_2.pem
Adding debian:Security_Communication_Root_CA.pem
Adding debian:Microsec_e-Szigno_Root_CA_2009.pem
Adding debian:DigiCert_Assured_ID_Root_CA.pem
Adding debian:certSIGN_ROOT_CA.pem
Adding debian:Sonera_Class_1_Root_CA.pem
Adding debian:TURKTRUST_Certificate_Services_Provider_Root_2007.pem
Adding debian:AddTrust_Low-Value_Services_Root.pem
Adding debian:QuoVadis_Root_CA_3_G3.pem
Adding debian:Equifax_Secure_eBusiness_CA_1.pem
Adding debian:Certum_Trusted_Network_CA.pem
Adding debian:RSA_Security_2048_v3.pem
Adding debian:ACCVRAIZ1.pem
Adding debian:CA_Disig_Root_R1.pem
Adding debian:USERTrust_ECC_Certification_Authority.pem
Adding debian:AffirmTrust_Commercial.pem
Adding debian:Comodo_Trusted_Services_root.pem
Adding debian:Cybertrust_Global_Root.pem
Adding debian:thawte_Primary_Root_CA.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R5.pem
Adding debian:thawte_Primary_Root_CA_-_G3.pem
Adding debian:NetLock_Notary_=Class_A=_Root.pem
Adding debian:E-Tugra_Certification_Authority.pem
Adding debian:StartCom_Certification_Authority_2.pem
Adding debian:CA_Disig_Root_R2.pem
Adding debian:TWCA_Root_Certification_Authority.pem
Adding debian:SecureSign_RootCA11.pem
Adding debian:Verisign_Class_1_Public_Primary_Certification_Authority_-_G2.pem
Adding debian:Secure_Global_CA.pem
Adding debian:GlobalSign_Root_CA_-_R3.pem
Adding debian:QuoVadis_Root_CA_2_G3.pem
Adding debian:GlobalSign_Root_CA_-_R2.pem
Adding debian:Certplus_Class_2_Primary_CA.pem
Adding debian:StartCom_Certification_Authority.pem
Adding debian:Hongkong_Post_Root_CA_1.pem
Adding debian:GlobalSign_Root_CA.pem
Adding debian:SwissSign_Silver_CA_-_G2.pem
Adding debian:S-TRUST_Universal_Root_CA.pem
Adding debian:Entrust.net_Premium_2048_Secure_Server_CA.pem
Adding debian:IdenTrust_Commercial_Root_CA_1.pem
Adding debian:Verisign_Class_1_Public_Primary_Certification_Authority.pem
Adding debian:CFCA_EV_ROOT.pem
Adding debian:Go_Daddy_Class_2_CA.pem
Adding debian:SecureTrust_CA.pem
Adding debian:NetLock_Business_=Class_B=_Root.pem
Adding debian:Certigna.pem
Adding debian:TÜBİTAK_UEKAE_Kök_Sertifika_Hizmet_Sağlayıcısı_-_Sürüm_3.pem
Adding debian:SwissSign_Gold_CA_-_G2.pem
Adding debian:GeoTrust_Primary_Certification_Authority.pem
Adding debian:DST_ACES_CA_X6.pem
Adding debian:Baltimore_CyberTrust_Root.pem
Adding debian:EE_Certification_Centre_Root_CA.pem
Adding debian:Global_Chambersign_Root_-_2008.pem
Adding debian:DigiCert_High_Assurance_EV_Root_CA.pem
Adding debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G4.pem
Adding debian:Verisign_Class_2_Public_Primary_Certification_Authority_-_G3.pem
Adding debian:Staat_der_Nederlanden_EV_Root_CA.pem
Adding debian:Staat_der_Nederlanden_Root_CA_-_G3.pem
Adding debian:AC_Raíz_Certicámara_S.A..pem
Adding debian:ApplicationCA_-_Japanese_Government.pem
Adding debian:AffirmTrust_Premium.pem
Adding debian:Buypass_Class_2_Root_CA.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R4.pem
Adding debian:Trustis_FPS_Root_CA.pem
done.
Setting up default-jre-headless (2:1.7-51) ...
Setting up zookeeper (3.4.5+dfsg-1) ...
adduser: Warning: The home directory `/var/lib/zookeeper' does not belong to the user you are currently creating.
update-alternatives: using /etc/zookeeper/conf_example to provide /etc/zookeeper/conf (zookeeper-conf) in auto mode
Setting up zookeeperd (3.4.5+dfsg-1) ...
zookeeper start/running, process 26404
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Processing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....
done.
done.
Processing triggers for ureadahead (0.100.0-16) ...
[master a74eed9] committing changes in /etc after apt run
 Author: dsvyatogorov <dsvyatogorov@xxx-rudder-test.mhd.local>
 151 files changed, 6571 insertions(+), 7 deletions(-)
 create mode 100644 .java/.systemPrefs/.system.lock
 create mode 100644 .java/.systemPrefs/.systemRootModFile
 create mode 120000 alternatives/java
 create mode 120000 alternatives/java.1.gz
 create mode 120000 alternatives/jexec
 create mode 120000 alternatives/jexec-binfmt
 create mode 120000 alternatives/keytool
 create mode 120000 alternatives/keytool.1.gz
 create mode 120000 alternatives/orbd
 create mode 120000 alternatives/orbd.1.gz
 create mode 120000 alternatives/pack200
 create mode 120000 alternatives/pack200.1.gz
 create mode 120000 alternatives/rmid
 create mode 120000 alternatives/rmid.1.gz
 create mode 120000 alternatives/rmiregistry
 create mode 120000 alternatives/rmiregistry.1.gz
 create mode 120000 alternatives/servertool
 create mode 120000 alternatives/servertool.1.gz
 create mode 120000 alternatives/tnameserv
 create mode 120000 alternatives/tnameserv.1.gz
 create mode 120000 alternatives/unpack200
 create mode 120000 alternatives/unpack200.1.gz
 create mode 120000 alternatives/zookeeper-conf
 create mode 100755 ca-certificates/update.d/jks-keystore
 create mode 100644 default/cacerts
 create mode 100644 default/zookeeper
 create mode 100644 fonts/conf.avail/10-antialias.conf
 create mode 100644 fonts/conf.avail/10-autohint.conf
 create mode 100644 fonts/conf.avail/10-hinting-full.conf
 create mode 100644 fonts/conf.avail/10-hinting-medium.conf
 create mode 100644 fonts/conf.avail/10-hinting-slight.conf
 create mode 100644 fonts/conf.avail/10-hinting.conf
 create mode 100644 fonts/conf.avail/10-no-sub-pixel.conf
 create mode 100644 fonts/conf.avail/10-scale-bitmap-fonts.conf
 create mode 100644 fonts/conf.avail/10-sub-pixel-bgr.conf
 create mode 100644 fonts/conf.avail/10-sub-pixel-rgb.conf
 create mode 100644 fonts/conf.avail/10-sub-pixel-vbgr.conf
 create mode 100644 fonts/conf.avail/10-sub-pixel-vrgb.conf
 create mode 100644 fonts/conf.avail/10-unhinted.conf
 create mode 100644 fonts/conf.avail/11-lcdfilter-default.conf
 create mode 100644 fonts/conf.avail/11-lcdfilter-legacy.conf
 create mode 100644 fonts/conf.avail/11-lcdfilter-light.conf
 create mode 100644 fonts/conf.avail/20-unhint-small-dejavu-lgc-sans-mono.conf
 create mode 100644 fonts/conf.avail/20-unhint-small-dejavu-lgc-sans.conf
 create mode 100644 fonts/conf.avail/20-unhint-small-dejavu-lgc-serif.conf
 create mode 100644 fonts/conf.avail/20-unhint-small-dejavu-sans-mono.conf
 create mode 100644 fonts/conf.avail/20-unhint-small-dejavu-sans.conf
 create mode 100644 fonts/conf.avail/20-unhint-small-dejavu-serif.conf
 create mode 100644 fonts/conf.avail/20-unhint-small-vera.conf
 create mode 100644 fonts/conf.avail/25-unhint-nonlatin.conf
 create mode 100644 fonts/conf.avail/30-metric-aliases.conf
 create mode 100644 fonts/conf.avail/30-urw-aliases.conf
 create mode 100644 fonts/conf.avail/40-nonlatin.conf
 create mode 100644 fonts/conf.avail/45-latin.conf
 create mode 100644 fonts/conf.avail/49-sansserif.conf
 create mode 100644 fonts/conf.avail/50-user.conf
 create mode 100644 fonts/conf.avail/51-local.conf
 create mode 100644 fonts/conf.avail/53-monospace-lcd-filter.conf
 create mode 100644 fonts/conf.avail/57-dejavu-sans-mono.conf
 create mode 100644 fonts/conf.avail/57-dejavu-sans.conf
 create mode 100644 fonts/conf.avail/57-dejavu-serif.conf
 create mode 100644 fonts/conf.avail/58-dejavu-lgc-sans-mono.conf
 create mode 100644 fonts/conf.avail/58-dejavu-lgc-sans.conf
 create mode 100644 fonts/conf.avail/58-dejavu-lgc-serif.conf
 create mode 100644 fonts/conf.avail/60-latin.conf
 create mode 100644 fonts/conf.avail/65-fonts-persian.conf
 create mode 100644 fonts/conf.avail/65-khmer.conf
 create mode 100644 fonts/conf.avail/65-nonlatin.conf
 create mode 100644 fonts/conf.avail/69-unifont.conf
 create mode 100644 fonts/conf.avail/70-force-bitmaps.conf
 create mode 100644 fonts/conf.avail/70-no-bitmaps.conf
 create mode 100644 fonts/conf.avail/70-yes-bitmaps.conf
 create mode 100644 fonts/conf.avail/80-delicious.conf
 create mode 100644 fonts/conf.avail/90-synthetic.conf
 create mode 120000 fonts/conf.d/10-antialias.conf
 create mode 120000 fonts/conf.d/10-hinting-slight.conf
 create mode 120000 fonts/conf.d/10-hinting.conf
 create mode 120000 fonts/conf.d/10-scale-bitmap-fonts.conf
 create mode 120000 fonts/conf.d/11-lcdfilter-default.conf
 create mode 120000 fonts/conf.d/20-unhint-small-dejavu-lgc-sans-mono.conf
 create mode 120000 fonts/conf.d/20-unhint-small-dejavu-lgc-sans.conf
 create mode 120000 fonts/conf.d/20-unhint-small-dejavu-lgc-serif.conf
 create mode 120000 fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf
 create mode 120000 fonts/conf.d/20-unhint-small-dejavu-sans.conf
 create mode 120000 fonts/conf.d/20-unhint-small-dejavu-serif.conf
 create mode 120000 fonts/conf.d/20-unhint-small-vera.conf
 create mode 120000 fonts/conf.d/30-metric-aliases.conf
 create mode 120000 fonts/conf.d/30-urw-aliases.conf
 create mode 120000 fonts/conf.d/40-nonlatin.conf
 create mode 120000 fonts/conf.d/45-latin.conf
 create mode 120000 fonts/conf.d/49-sansserif.conf
 create mode 120000 fonts/conf.d/50-user.conf
 create mode 120000 fonts/conf.d/51-local.conf
 create mode 120000 fonts/conf.d/57-dejavu-sans-mono.conf
 create mode 120000 fonts/conf.d/57-dejavu-sans.conf
 create mode 120000 fonts/conf.d/57-dejavu-serif.conf
 create mode 120000 fonts/conf.d/58-dejavu-lgc-sans-mono.conf
 create mode 120000 fonts/conf.d/58-dejavu-lgc-sans.conf
 create mode 120000 fonts/conf.d/58-dejavu-lgc-serif.conf
 create mode 120000 fonts/conf.d/60-latin.conf
 create mode 120000 fonts/conf.d/65-fonts-persian.conf
 create mode 120000 fonts/conf.d/65-nonlatin.conf
 create mode 120000 fonts/conf.d/69-unifont.conf
 create mode 120000 fonts/conf.d/70-no-bitmaps.conf
 create mode 120000 fonts/conf.d/80-delicious.conf
 create mode 120000 fonts/conf.d/90-synthetic.conf
 create mode 100644 fonts/conf.d/README
 create mode 100644 fonts/fonts.conf
 create mode 100755 init.d/zookeeper
 create mode 100644 init/zookeeper.conf
 create mode 100644 java-7-openjdk/accessibility.properties
 create mode 100644 java-7-openjdk/calendars.properties
 create mode 100644 java-7-openjdk/content-types.properties
 create mode 100644 java-7-openjdk/flavormap.properties
 create mode 100644 java-7-openjdk/fontconfig.properties
 create mode 100644 java-7-openjdk/images/cursors/cursors.properties
 create mode 100644 java-7-openjdk/jvm-amd64.cfg
 create mode 100644 java-7-openjdk/logging.properties
 create mode 100644 java-7-openjdk/management/jmxremote.access
 create mode 100644 java-7-openjdk/management/jmxremote.password
 create mode 100644 java-7-openjdk/management/management.properties
 create mode 100644 java-7-openjdk/management/snmp.acl
 create mode 100644 java-7-openjdk/net.properties
 create mode 100644 java-7-openjdk/psfont.properties.ja
 create mode 100644 java-7-openjdk/psfontj2d.properties
 create mode 100644 java-7-openjdk/security/java.policy
 create mode 100644 java-7-openjdk/security/java.security
 create mode 100644 java-7-openjdk/security/nss.cfg
 create mode 100644 java-7-openjdk/sound.properties
 create mode 100644 java-7-openjdk/swing.properties
 create mode 100644 java-7-openjdk/tz.properties
 create mode 100644 pulse/client.conf
 create mode 100644 ssl/certs/java/cacerts
 create mode 100644 xml/resolver/CatalogManager.properties
 create mode 120000 zookeeper/conf
 create mode 100644 zookeeper/conf_example/configuration.xsl
 create mode 100644 zookeeper/conf_example/environment
 create mode 100644 zookeeper/conf_example/log4j.properties
 create mode 100644 zookeeper/conf_example/myid
 create mode 100644 zookeeper/conf_example/zoo.cfg
 create mode 100644 zookeeper/zooinspector/defaultConnectionSettings.cfg
 create mode 100644 zookeeper/zooinspector/defaultNodeVeiwers.cfg
</pre>

M.b. there is some clear reason in debug in addition to 100'th reason code, but I didn't found it.

* I'd installed "atop" package successfully with Packages" technique. But it has no dependencies. M.b. the fail reason resides in dependency processing? Or very large (≈30kB) apt output?

Actions #4

Updated by Alexis Mousset over 7 years ago

  • Assignee set to Alexis Mousset
Actions #5

Updated by Alexis Mousset over 7 years ago

I could reproduce the issue, I will investigate.

Actions #6

Updated by Alexis Mousset over 7 years ago

rudder  verbose: Forcing package list update due to missing database
rudder  verbose: Forcing package list update due to missing database
rudder  verbose: Command '/var/rudder/cfengine-community/modules/packages/apt_get repo-install' returned with non zero return code: 100
rudder     info: Some error occurred while communicating with package module while installing package.
   error: Error installing package 'zookeeperd'
Actions #7

Updated by Alexis Mousset over 7 years ago

The issue comes from the "options=" line (which works well on Ubuntu 16.04 for example).

Actions #8

Updated by Alexis Mousset over 7 years ago

execve("/usr/bin/apt-get", ["/usr/bin/apt-get", "-o", "Dpkg::Options::=--force-confold", "-o", "Dpkg::Options::=--force-confdef", "-y", "--force-yes", "", "install", "zookeeperd"]
[pid 23101] stat("", 0x7ffec3e1cd40)    = -1 ENOENT (No such file or directory)

But:

execve("/usr/bin/apt-get", ["/usr/bin/apt-get", "-o", "Dpkg::Options::=--force-confold", "-o", "Dpkg::Options::=--force-confdef", "-y", "--force-yes", "install", "zookeeperd"]

works.

Actions #9

Updated by Alexis Mousset over 7 years ago

Can be reproduced with:

root@agent2:~# /usr/bin/apt-get -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-confdef -y --force-yes "" install zookeeperd
E: Invalid operation
Actions #10

Updated by Alexis Mousset over 7 years ago

  • Status changed from New to In progress
Actions #11

Updated by Alexis Mousset over 7 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/ncf/pull/630
Actions #12

Updated by Alexis Mousset over 7 years ago

  • Related to User story #10388: Add a generic method that handles using options in package actions added
Actions #13

Updated by Alexis Mousset over 7 years ago

  • Subject changed from Technique 'Packages' produces "apt_get repo-install" for routine debian/ubuntu packages to Broken empty options handling in apt module on some distros
Actions #14

Updated by Alexis Mousset over 7 years ago

  • Status changed from Pending technical review to Pending release
Actions #16

Updated by Alexis Mousset over 7 years ago

Until next release, you can fix this bug on your Rudder server by applying https://github.com/Normation/ncf/pull/630 to /usr/share/ncf/tree/10_ncf_internals/modules/packages/apt_get. The nodes will automatically download the fix.

Actions #17

Updated by Vincent MEMBRÉ about 7 years ago

  • Status changed from Pending release to Released
  • Priority changed from 70 to 67
Actions #18

Updated by Alexis Mousset over 2 years ago

  • Target version changed from 1.1 to ncf-1.1
  • Priority changed from 67 to 0
Actions #19

Updated by Alexis Mousset over 2 years ago

  • Project changed from 41 to Rudder
  • Category changed from Generic methods - Package Management to Generic methods
Actions

Also available in: Atom PDF