Modify

Ticket #123 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

statistics.xml versus bcfg2 -v

Reported by: Patrick Ruckstuhl <ruckstuhl@…> Owned by: desai
Priority: critical Milestone:
Component: bcfg2-reports Version:
Keywords: Cc:

Description

I have a strange problem, that I could not track down.

showentries myserver

entrytype | name

==============================================================

ConfigFile? | /etc/mini-dinstall.conf Package | mini-dinstall ConfigFile? | /etc/logcheck/ignore.d.server/bcfg2-server-my ConfigFile? | /etc/bcfg2.conf Package | bcfg2-server Service | bcfg2-server ConfigFile? | /etc/bcfg2.conf ConfigFile? | /etc/bcfg2.key Package | bcfg2 ConfigFile? | /etc/vim/vimrc Package | vim Package | ntp-simple ConfigFile? | /etc/apt/sources.list ConfigFile? | /etc/motd ConfigFile? | /etc/bash.bashrc ConfigFile? | /etc/profile ConfigFile? | /etc/default/rcS ConfigFile? | /etc/sysctl.conf

If I run the client in verbose mode, I get

Phase: final Correct entries: 18 Incorrect entries: 0 Total managed entries: 18 Unmanaged entries: 414

which looks correct (bcfg2-server package and service is not listed in the extra list). The statistics.xml (and the generated report) say 434 extra configuration elements and list the bcfg2-server package and service as extra configuration.

Any ideas what could be the problem?

I'm running 8.3 on debian sarge.

{'profile': False, 'kevlar': False, 'interactive': False, 'dryrun': False, 'verbose': True, 'paranoid': False, 'setup': '/etc/bcfg2.conf', 'cache': False, 'remove': False, 'server': 'XXXXXXXX', 'quick': True, 'bundle': False, 'file': False, 'debug': True, 'build': False, 'password': 'XXXXXXXX', 'help': False} GetProbes? completed successfully GetConfig? completed successfully Configuring Debian toolset Reading Package Lists... Done Building Dependency Tree... Done Done configuring Debian toolset Selected debian toolset... Inventorying system... Found active services:

anacron apmd bcfg2 cron fam klogd mysql ntp-server rmnologin single ssh sysklogd apache atd bcfg2-server exim4 inetd makedev nagios portmap rsync smartmontools stop-bootlogd

Phase: initial Correct entries: 15 Incorrect entries: 3 Total managed entries: 18 Unmanaged entries: 414 Updating the system

Found extra packages:

adduser gcc libgpmg1 libxml-libxml-common-perl php4-pear apache gcc-2.95 libhtml-parser-perl libxml-libxml-perl php4-rrdtool apache-common gcc-3.3 libhtml-tagset-perl libxml-namespacesupport-perl php4-snmp apache2-utils gcc-3.3-base libhtml-tree-perl libxml-sax-perl phpmyadmin apt gdb libice6 libxml-simple-perl pica apt-utils gettext libident libxml2 pkg-config aptitude gettext-base libidn11 libxml2-utils po-debconf at gfaor-common libisc7 libxmu6 portmap atlas3-base gfaor-core libjpeg62 libxmuu1 procps autoconf gfcore-gui libkrb53 libxp6 psmisc autoconf2.13 gnupg libldap2 libxpm4 python automake1.4 graphviz liblocale-gettext-perl libxrandr2 python-apt automake1.9 grep liblockfile1 libxrender1 python-dev autotools-dev groff-base libltdl3 libxslt1.1 python-gnupginterface backupninja gsfonts liblwres1 libxt6 python-newt base-files gzip liblzo1 libxtrap6 python2.3 base-passwd hdparm libmagic1 libxtst6 python2.3-dev bash hostname libmcrypt4 libzzip-0-12 python2.3-fam bc html2text libmm13 lilo python2.3-lxml bind9-host hwinfo libmysqlclient-dev linda python2.3-pyopenssl binutils ifupdown libmysqlclient12 lintian python2.3-subversion bison info libmysqlclient14 linux-kernel-headers python2.4 bonnie++ initscripts libmysqlcppapi-dev locales python2.4-f2py bsdmainutils intltool-debian libmysqlcppapi4 lockfile-progs python2.4-numeric bsdutils ipchains libncurses5 logcheck python2.4-numeric-ext bzip2 iputils-ping libncurses5-dev logcheck-database python2.4-scipy-core cabextract joe libncursesw5 login qstat cacti kernel-image-2.6.8.1-gf-athlon libneon24 logrotate radiusclient1 cacti-cactid kernel-package libnet-daemon-perl logtail rcs chkrootkit klogd libnet-dns-perl lsof rdiff console-common leaktracer libnet-ip-perl lynx rdiff-backup console-data less libnet-snmp-perl m4 reportbug console-tools libacl1 libnewt0.51 mailx rrdtool coreutils libapache-dbi-perl libopencdk8 make rsync cpio libapache-mod-gzip libpam-modules makedev samba-common cpp libapache-mod-perl libpam-runtime man-db scponly cpp-2.95 libapache-mod-php4 libpam0g manpages sed cpp-3.3 libapr0 libparse-yapp-perl manpages-dev sharutils cppunit libattr1 libpcre3 mawk shellutils cron libblkid1 libperl5.8 mbr siege cvs libbz2-1.0 libphp-adodb mc slang1a-utf8 cvs-buildpackage libc6 libplrpc-perl mime-support sloccount cvs-syncmail libc6-dev libpng12-0 modconf smartmontools cvs2cl libcap1 libpopt0 modutils smbclient dash libcomerr2 libpq3 mount snmp db4.2-util libcompress-zlib-perl libradius1 msttcorefonts ssh debconf libconfig-inifiles-perl libreadline4 mtr-tiny strace debconf-i18n libconsole libreadline5 mysql-client-4.1 subversion debconf-utils libcppunit-1.10-0 librrd0 mysql-common-4.1 subversion-tools debhelper libcppunit-dev librrds-perl mysql-server-4.1 sudo debianutils libcurl3 librsync1 nagios-common sysklogd debsums libdb1-compat libsasl2 nagios-plugins sysutils defoma libdb2 libsensors3 nagios-text sysv-rc devscripts libdb3 libsigc++-1.2-5c102 ncurses-base sysvinit dialog libdb3-util libsm6 ncurses-bin tar diff libdb4.1 libsnmp-base net-tools tcc diffstat libdb4.2 libsnmp5 netbase tcl8.3 dnsutils libdbd-mysql-perl libss2 netcat tcl8.4 doxygen libdbi-perl libssl-dev netkit-inetd tcpd dpkg libdevel-symdump-perl libssl0.9.7 nmap tcsh dpkg-dev libdevmapper1.01 libstdc++2.10-dev ntp telnet dput libdigest-hmac-perl libstdc++2.10-glibc2.2 ntp-server texinfo dselect libdigest-sha1-perl libstdc++5 ntpdate textutils dsh libdns16 libstdc++5-3.3-dev nvi time duplicity libdshconfig1 libsvn0 openssl tk8.4 e2fslibs libexpat1 libsysfs1 passwd traceroute e2fsprogs libfam0c102 libt1-5 patch ttf-bitstream-vera ed libfile-ncopy-perl libtasn1-2 pciutils ucf exim4-base libfontconfig1 libtext-charwidth-perl perl unzip exim4-config libfreetype6 libtext-iconv-perl perl-base util-linux exim4-daemon-light libg2c0 libtext-wrapi18n-perl perl-modules valgrind fakeroot libgcc1 libtextwrap1 pgpgpg vim-common fam libgcrypt11 libtool php4 wget file libgd-tools liburi-perl php4-apd whiptail fileutils libgd2-xpm libusb-0.1-4 php4-cli whois findutils libgdbm3 libuuid1 php4-common xfree86-common fontconfig libgdbmg1 libwrap0 php4-curl xlibs fping libgfcore-dev libwww-perl php4-dev xlibs-data ftp libgfcore1 libx11-6 php4-eaccelerator xutils g++ libglib1.2 libxaw7 php4-gd zip g++-2.95 libglib2.0-0 libxext6 php4-json zlib1g g++-3.3 libgnutls11 libxft1 php4-mcrypt zlib1g-dev gawk libgpg-error0 libxi6 php4-mysql

Found extra active services:

anacron apmd bcfg2 exim4 inetd makedev nagios portmap rsync smartmontools stop-bootlogd apache atd cron fam klogd mysql ntp-server rmnologin single ssh sysklogd

Packages to remove:

adduser gcc libgpmg1 libxml-libxml-common-perl php4-pear apache gcc-2.95 libhtml-parser-perl libxml-libxml-perl php4-rrdtool apache-common gcc-3.3 libhtml-tagset-perl libxml-namespacesupport-perl php4-snmp apache2-utils gcc-3.3-base libhtml-tree-perl libxml-sax-perl phpmyadmin apt gdb libice6 libxml-simple-perl pica apt-utils gettext libident libxml2 pkg-config aptitude gettext-base libidn11 libxml2-utils po-debconf at gfaor-common libisc7 libxmu6 portmap atlas3-base gfaor-core libjpeg62 libxmuu1 procps autoconf gfcore-gui libkrb53 libxp6 psmisc autoconf2.13 gnupg libldap2 libxpm4 python automake1.4 graphviz liblocale-gettext-perl libxrandr2 python-apt automake1.9 grep liblockfile1 libxrender1 python-dev autotools-dev groff-base libltdl3 libxslt1.1 python-gnupginterface backupninja gsfonts liblwres1 libxt6 python-newt base-files gzip liblzo1 libxtrap6 python2.3 base-passwd hdparm libmagic1 libxtst6 python2.3-dev bash hostname libmcrypt4 libzzip-0-12 python2.3-fam bc html2text libmm13 lilo python2.3-lxml bind9-host hwinfo libmysqlclient-dev linda python2.3-pyopenssl binutils ifupdown libmysqlclient12 lintian python2.3-subversion bison info libmysqlclient14 linux-kernel-headers python2.4 bonnie++ initscripts libmysqlcppapi-dev locales python2.4-f2py bsdmainutils intltool-debian libmysqlcppapi4 lockfile-progs python2.4-numeric bsdutils ipchains libncurses5 logcheck python2.4-numeric-ext bzip2 iputils-ping libncurses5-dev logcheck-database python2.4-scipy-core cabextract joe libncursesw5 login qstat cacti kernel-image-2.6.8.1-gf-athlon libneon24 logrotate radiusclient1 cacti-cactid kernel-package libnet-daemon-perl logtail rcs chkrootkit klogd libnet-dns-perl lsof rdiff console-common leaktracer libnet-ip-perl lynx rdiff-backup console-data less libnet-snmp-perl m4 reportbug console-tools libacl1 libnewt0.51 mailx rrdtool coreutils libapache-dbi-perl libopencdk8 make rsync cpio libapache-mod-gzip libpam-modules makedev samba-common cpp libapache-mod-perl libpam-runtime man-db scponly cpp-2.95 libapache-mod-php4 libpam0g manpages sed cpp-3.3 libapr0 libparse-yapp-perl manpages-dev sharutils cppunit libattr1 libpcre3 mawk shellutils cron libblkid1 libperl5.8 mbr siege cvs libbz2-1.0 libphp-adodb mc slang1a-utf8 cvs-buildpackage libc6 libplrpc-perl mime-support sloccount cvs-syncmail libc6-dev libpng12-0 modconf smartmontools cvs2cl libcap1 libpopt0 modutils smbclient dash libcomerr2 libpq3 mount snmp db4.2-util libcompress-zlib-perl libradius1 msttcorefonts ssh debconf libconfig-inifiles-perl libreadline4 mtr-tiny strace debconf-i18n libconsole libreadline5 mysql-client-4.1 subversion debconf-utils libcppunit-1.10-0 librrd0 mysql-common-4.1 subversion-tools debhelper libcppunit-dev librrds-perl mysql-server-4.1 sudo debianutils libcurl3 librsync1 nagios-common sysklogd debsums libdb1-compat libsasl2 nagios-plugins sysutils defoma libdb2 libsensors3 nagios-text sysv-rc devscripts libdb3 libsigc++-1.2-5c102 ncurses-base sysvinit dialog libdb3-util libsm6 ncurses-bin tar diff libdb4.1 libsnmp-base net-tools tcc diffstat libdb4.2 libsnmp5 netbase tcl8.3 dnsutils libdbd-mysql-perl libss2 netcat tcl8.4 doxygen libdbi-perl libssl-dev netkit-inetd tcpd dpkg libdevel-symdump-perl libssl0.9.7 nmap tcsh dpkg-dev libdevmapper1.01 libstdc++2.10-dev ntp telnet dput libdigest-hmac-perl libstdc++2.10-glibc2.2 ntp-server texinfo dselect libdigest-sha1-perl libstdc++5 ntpdate textutils dsh libdns16 libstdc++5-3.3-dev nvi time duplicity libdshconfig1 libsvn0 openssl tk8.4 e2fslibs libexpat1 libsysfs1 passwd traceroute e2fsprogs libfam0c102 libt1-5 patch ttf-bitstream-vera ed libfile-ncopy-perl libtasn1-2 pciutils ucf exim4-base libfontconfig1 libtext-charwidth-perl perl unzip exim4-config libfreetype6 libtext-iconv-perl perl-base util-linux exim4-daemon-light libg2c0 libtext-wrapi18n-perl perl-modules valgrind fakeroot libgcc1 libtextwrap1 pgpgpg vim-common fam libgcrypt11 libtool php4 wget file libgd-tools liburi-perl php4-apd whiptail fileutils libgd2-xpm libusb-0.1-4 php4-cli whois findutils libgdbm3 libuuid1 php4-common xfree86-common fontconfig libgdbmg1 libwrap0 php4-curl xlibs fping libgfcore-dev libwww-perl php4-dev xlibs-data ftp libgfcore1 libx11-6 php4-eaccelerator xutils g++ libglib1.2 libxaw7 php4-gd zip g++-2.95 libglib2.0-0 libxext6 php4-json zlib1g g++-3.3 libgnutls11 libxft1 php4-mcrypt zlib1g-dev gawk libgpg-error0 libxi6 php4-mysql

Entries are incorrect:

ConfigFile?: /etc/bcfg2.conf ConfigFile?: /etc/bcfg2.conf ConfigFile?: /etc/motd

Services to remove:

anacron apmd bcfg2 exim4 inetd makedev nagios portmap rsync smartmontools stop-bootlogd apache atd cron fam klogd mysql ntp-server rmnologin single ssh sysklogd

Starting pass 1 3 Entries left 0 new, 0 update, 414 remove Installing non-package entries Installing ConfigFile? /etc/motd Installing ConfigFile? /etc/bcfg2.conf Installing ConfigFile? /etc/bcfg2.conf Starting pass 2 0 Entries left 0 new, 0 update, 414 remove Installing non-package entries Bundle bcfg2 needs update Re-checked entry ConfigFile? /etc/bcfg2.conf: True Re-checked entry ConfigFile? /etc/bcfg2.key: True Re-checked entry Package bcfg2: True Bundle bcfg2-server needs update Re-checked entry ConfigFile? /etc/logcheck/ignore.d.server/bcfg2-server-my: True Re-checked entry ConfigFile? /etc/bcfg2.conf: True Re-checked entry Package bcfg2-server: True Re-checked entry Service bcfg2-server: True Restarting service bcfg2-server

/etc/init.d/bcfg2-server reload

< Usage: bcfg2-server {start|stop|restart|force-reload}

Phase: final Correct entries: 18 Incorrect entries: 0 Total managed entries: 18 Unmanaged entries: 414 RecvStats? completed successfully

Attachments

statistics.xml (71.3 KB) - added by Patrick Ruckstuhl <ruckstuhl@…> 13 years ago.

Change History

Changed 13 years ago by Patrick Ruckstuhl <ruckstuhl@…>

comment:1 Changed 13 years ago by Patrick Ruckstuhl <ruckstuhl@…>

  • Priority changed from major to critical
  • Component changed from bcfg2-client to bcfg2-reports

I think it may be a more general problem, I now added another host and the statistics still only show the old host. Even if I remove the statistics.xml and run bcfg2 only on the new host, and then generate StatReports?, it only shows the old host even if I don't run the bcfg2 client on the old host.

comment:2 Changed 13 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

For posterity, here is the account of the bug. Basically, client aliases weren't being respected in statistics upload, so that new data wouldn't show up for clients if aliases were being used. The bcfg2-server now does a lookup followed by metadata resolution, using the resulting hostname from the metadata object returned so that the metadata is categorized properly.

Fixed in [136a23aafedc7755e91de56fda6edac9be05cefe] (SVN r2237)

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.