unattended-upgrades fails on first deploy
--- bitmask/provider ‹master* M› » leap -v 2 deploy couch1 = loading /home/varac/dev/Projects/Leap/git/bitmask/leap_platform/provider_base/services/dns.json = loading /home/varac/dev/Projects/Leap/git/bitmask/leap_platform/provider_base/services/monitor.json = loading /home/varac/dev/Projects/Leap/git/bitmask/leap_platform/provider_base/services/webapp.json = loading /home/varac/dev/Projects/Leap/git/bitmask/leap_platform/provider_base/services/openvpn.json = loading /home/varac/dev/Projects/Leap/git/bitmask/leap_platform/provider_base/services/couchdb.json = loading /home/varac/dev/Projects/Leap/git/bitmask/leap_platform/provider_base/services/ca.json = loading /home/varac/dev/Projects/Leap/git/bitmask/leap_platform/provider_base/tags/local.json = loading /home/varac/dev/Projects/Leap/git/bitmask/leap_platform/provider_base/common.json = loading /home/varac/dev/Projects/Leap/git/bitmask/leap_platform/provider_base/provider.json = loading services/monitor.json = loading services/webapp.json = loading services/ca.json = loading tags/production.json = loading nodes/turtle.json = loading nodes/web1.json = loading nodes/monitor1.json = loading nodes/aligator.json = loading nodes/koala.json = loading nodes/ca1.json = loading nodes/sloth.json = loading nodes/vpn1.json = loading nodes/couch1.json = loading common.json = loading provider.json = loading secrets.json = ran git submodule status 2>&1 = no change files/ssh/authorized_keys = no change files/ssh/known_hosts = no change hiera/couch1.yaml = no change secrets.json = checking node - executing "test -f /srv/leap/initialized && ! dpkg-query -W --showformat='${Status}\\\n' puppet ruby-hiera-puppet rsync lsb-release 2>&1 | grep -q -E '(deinstall|no packages)'" = synching configuration files - hiera/couch1.yaml -> couch1:/etc/leap/hiera.yaml - rsync -az -e "ssh -o GlobalKnownHostsFile='/home/varac/dev/Projects/Leap/git/bitmask/provider/files/ssh/known_hosts' -o StrictHostKeyChecking='yes' -o HostKeyAlias='couch1' -o HostName='10.5.5.44' -p 22 -i /tmp/vagrant.key" hiera/couch1.yaml root@couch1:/etc/leap/hiera.yaml = executing `apply_puppet' = applying puppet - executing `puppet:apply' - executing "if [ ! -f /tmp/puppet.lock ] then touch /tmp/puppet.lock else stat -c \"\e[031mPuppet in progress, /tmp/puppet.lock owned by %U since %x\e[0m\" /tmp/puppet.lock >&2 exit 1 fi" - executing `puppet:update_code' - rsync -az --delete --exclude='.git' --exclude='.svn' -e "ssh -o GlobalKnownHostsFile='/home/varac/dev/Projects/Leap/git/bitmask/provider/files/ssh/known_hosts' -o StrictHostKeyChecking='yes' -o HostKeyAlias='couch1' -o HostName='10.5.5.44' -p 22 -i /tmp/vagrant.key" /home/varac/dev/Projects/Leap/git/bitmask/leap_platform/puppet root@couch1:/srv/leap - executing "cd /srv/leap && /usr/bin/puppet apply --color=false --libdir puppet/lib --confdir puppet puppet/manifests/site.pp" - [couch1] warning: Dynamic lookup of $codename at /srv/leap/puppet/modules/apt/manifests/preferences.pp:6 is deprecated. For more information, see http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the change in behavior, use the --debug flag. - [couch1] warning: Dynamic lookup of $codename at /srv/leap/puppet/modules/apt/templates/Debian/preferences_wheezy.erb:1 is deprecated. For more information, see http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the change in behavior, use the --debug flag. - [couch1] warning: Dynamic lookup of $codename at /srv/leap/puppet/modules/apt/templates/Debian/preferences_wheezy.erb:3 is deprecated. For more information, see http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the change in behavior, use the --debug flag. - [couch1] warning: Dynamic lookup of $codename at /srv/leap/puppet/modules/apt/templates/Debian/preferences_wheezy.erb:6 is deprecated. For more information, see http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the change in behavior, use the --debug flag. - [couch1] warning: Dynamic lookup of $codename at /srv/leap/puppet/modules/apt/templates/Debian/preferences_wheezy.erb:8 is deprecated. For more information, see http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the change in behavior, use the --debug flag. - [couch1] notice: Scope(Node[default]): Services for wheezy.vagrantup.com: couchdb - [couch1] warning: Dynamic lookup of $apache_no_default_site at /srv/leap/puppet/modules/apache/manifests/base.pp:46 is deprecated. For more information, see http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the change in behavior, use the --debug flag. - [couch1] warning: Dynamic lookup of $x509 at /srv/leap/puppet/modules/site_couchdb/manifests/apache_ssl_proxy.pp:15 is deprecated. For more information, see http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the change in behavior, use the --debug flag. - [couch1] warning: Dynamic lookup of $x509 at /srv/leap/puppet/modules/site_couchdb/manifests/apache_ssl_proxy.pp:21 is deprecated. For more information, see http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the change in behavior, use the --debug flag. - [couch1] notice: /Stage[initial]/Site_apt::Dist_upgrade/Exec[initial_apt_update]/returns: executed successfully - [couch1] notice: /Stage[initial]/Site_apt::Dist_upgrade/Exec[initial_apt_dist_upgrade]/returns: executed successfully - [couch1] notice: /Stage[initial]/Site_config::Hosts/File[/etc/hosts]/content: content changed '{md5}7fb54acc368f928cbdb44da4a38f676b' to '{md5}a769b57644cc0465890660138be73b5c' - [couch1] notice: /Stage[initial]/Site_config::Hosts/File[/etc/hostname]/content: content changed '{md5}d7401427f1678bbee691a727e13abf17' to '{md5}fd8938466eb8e44dbd4ab08eef17209a' - [couch1] notice: /Stage[initial]/Site_config::Hosts/Exec[/bin/hostname couch1]: Triggered 'refresh' from 2 events - [couch1] notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat]/ensure: created - [couch1] notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin]/ensure: created - [couch1] notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin/concatfragments.sh]/ensure: defined content as '{md5}256169ee61115a6b717b2844d2ea3128' - [couch1] notice: /Stage[main]/Apache::Package/Package[apache]/ensure: ensure changed 'purged' to 'present' - [couch1] notice: /Stage[main]/Apache::Base/File[include_dir]/ensure: created - [couch1] notice: /Stage[main]/X509::Base/File[/usr/local/share/ca-certificates]/group: group changed 'staff' to 'root' - [couch1] notice: /Stage[main]/X509::Base/Exec[update-ca-certificates]: Triggered 'refresh' from 1 events - [couch1] notice: /Stage[main]/Site_apt/Apt::Apt_conf[90disable-pdiffs]/File[/etc/apt/apt.conf.d/90disable-pdiffs]/content: content changed '{md5}6ab0c1eacffa8aa9a36e0678c0d6ef6f' to '{md5}927b8094c4e9e96fad7513dd781e7b37' - [couch1] notice: /Stage[main]/Couchdb::Base/Package[couchdb]/ensure: ensure changed 'purged' to 'present' - [couch1] notice: /Stage[main]/Apache::Base/File[htpasswd_dir]/ensure: created - [couch1] notice: /Stage[main]/Common::Moduledir/File[/var/lib/puppet/modules]/ensure: created - [couch1] notice: /File[/var/lib/puppet/modules/README]/ensure: defined content as '{md5}54000a2c832d3c13c1b6c5e2d4624644' - [couch1] notice: /Stage[main]/Git::Base/Package[git]/ensure: ensure changed 'purged' to 'present' - [couch1] notice: /Stage[main]/Site_couchdb::Configure/File[/etc/init.d/couchdb]/content: content changed '{md5}7d331e28fa7fe5623453118d63a59d26' to '{md5}b2d80034441f8ba49e2f8dae20a86911' - [couch1] notice: /Stage[main]/Couchdb::Deploy_config/File[/etc/couchdb/local.ini]/content: content changed '{md5}83eeb75fdabc244ddb677b3f01503bd5' to '{md5}8aa7326934918a5c0f211b2be43d18d6' - [couch1] notice: /Stage[main]/Site_couchdb::Configure/File[/etc/couchdb/local.d/admin.ini]/ensure: defined content as '{md5}6b7f3cead9ea96644348274949370491' - [couch1] notice: /Stage[main]/Apache::Base/Apache::Config::Include[defaults.inc]/Apache::Config::File[defaults.inc]/File[apache_defaults.inc]/ensure: defined content as '{md5}3f175020bd5b06b971349ec7cffac132' - [couch1] notice: /Stage[main]/Site_couchdb::Configure/Exec[/etc/init.d/couchdb restart sleep 6]: Triggered 'refresh' from 2 events - [couch1] notice: /Stage[main]/Apache::Base/Apache::Config::Global[git.conf]/Apache::Config::File[git.conf]/File[apache_git.conf]/ensure: defined content as '{md5}b58da72e959d0447e6357f49d98a255a' - [couch1] notice: /Stage[main]/Apache::Debian/Apache::Config::Global[security]/Apache::Config::File[security]/File[apache_security]/content: content changed '{md5}0f644d9d04ad556f44f1e65674bc07dc' to '{md5}070f47e91332a98dbad4f13e6f0e7625' - [couch1] notice: /Stage[main]/Apache::Debian/File[default_debian_apache_vhost]/ensure: removed - [couch1] notice: /Stage[main]/Site_couchdb/Couchdb::Query::Setup[localhost]/File[/etc/couchdb/couchdb.netrc]/ensure: defined content as '{md5}e806f6bbb12e0ee2401ad69e5f4dc7be' - [couch1] notice: /Stage[main]/Unbound::Package/Package[unbound]/ensure: ensure changed 'purged' to 'present' - [couch1] notice: /Stage[main]/Site_config::Caching_resolver/File[/etc/unbound/conf.d]/ensure: created - [couch1] notice: /Stage[main]/Site_config::Caching_resolver/File[/etc/unbound/conf.d/placeholder]/ensure: created - [couch1] notice: /Stage[main]/Unbound/Concat[/etc/unbound/unbound.conf]/File[/var/lib/puppet/concat/_etc_unbound_unbound.conf]/ensure: created - [couch1] notice: /Stage[main]/Unbound/Concat[/etc/unbound/unbound.conf]/File[/var/lib/puppet/concat/_etc_unbound_unbound.conf/fragments.concat.out]/ensure: created - [couch1] notice: /Stage[main]/Unbound/Concat[/etc/unbound/unbound.conf]/File[/var/lib/puppet/concat/_etc_unbound_unbound.conf/fragments.concat]/ensure: created - [couch1] notice: /Stage[main]/Unbound/Concat[/etc/unbound/unbound.conf]/File[/var/lib/puppet/concat/_etc_unbound_unbound.conf/fragments]/ensure: created - [couch1] notice: /Stage[main]/Unbound/Concat::Fragment[unbound server]/File[/var/lib/puppet/concat/_etc_unbound_unbound.conf/fragments/1_unbound server]/ensure: created - [couch1] notice: /Stage[main]/Unbound/Concat[/etc/unbound/unbound.conf]/Exec[concat_/etc/unbound/unbound.conf]/returns: executed successfully - [couch1] notice: /Stage[main]/Unbound/Concat[/etc/unbound/unbound.conf]/Exec[concat_/etc/unbound/unbound.conf]: Triggered 'refresh' from 3 events - [couch1] notice: /Stage[main]/Unbound/Concat[/etc/unbound/unbound.conf]/File[/etc/unbound/unbound.conf]/content: content changed '{md5}e3609b28f5a043afad77d34c8da13a92' to '{md5}bda7351c5f4dbd96d9049ff0cf8cd684' - [couch1] notice: /Stage[main]/Unbound::Service/Service[unbound]: Triggered 'refresh' from 1 events - [couch1] notice: /Stage[main]/Apt/Apt::Apt_conf[02show_upgraded]/File[/etc/apt/apt.conf.d/02show_upgraded]/ensure: defined content as '{md5}f8b9fbb99496bc2d919bb757b9819540' - [couch1] notice: /Stage[main]/Apt/Config_file[/etc/apt/sources.list]/File[/etc/apt/sources.list]/content: content changed '{md5}dd98eca7444e6f93712e0cbc8ee5a05f' to '{md5}c85f5486cc2208687527223a0c069530' - [couch1] notice: /Stage[main]/Apt/Apt::Apt_conf[03clean]/File[/etc/apt/apt.conf.d/03clean]/ensure: defined content as '{md5}9c94d212b6be1a8a08d1facc24424f8b' - [couch1] notice: /Stage[main]/Apt/File[/var/cache/local]/ensure: created - [couch1] notice: /Stage[main]/Apt/File[/var/cache/local/preseeding]/ensure: created - [couch1] err: /Stage[main]/Apt::Unattended_upgrades/Package[unattended-upgrades]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install unattended-upgrades' returned 100: Reading package lists... - [couch1] Building dependency tree... - [couch1] Reading state information... - [couch1] Package unattended-upgrades is not available, but is referred to by another package. - [couch1] This may mean that the package is missing, has been obsoleted, or - [couch1] is only available from another source - [couch1] E: Package 'unattended-upgrades' has no installation candidate - [couch1] notice: /Stage[main]/Apt::Unattended_upgrades/Apt::Apt_conf[50unattended-upgrades]/File[/etc/apt/apt.conf.d/50unattended-upgrades]: Dependency Package[unattended-upgrades] has failures: true - [couch1] warning: /Stage[main]/Apt::Unattended_upgrades/Apt::Apt_conf[50unattended-upgrades]/File[/etc/apt/apt.conf.d/50unattended-upgrades]: Skipping because of failed dependencies - [couch1] notice: /Stage[main]/Apt::Dot_d_directories/Exec[refresh_apt]: Dependency Package[unattended-upgrades] has failures: true - [couch1] warning: /Stage[main]/Apt::Dot_d_directories/Exec[refresh_apt]: Skipping because of failed dependencies ^A1^A - [couch1] notice: /Stage[main]/Apt::Dot_d_directories/Exec[refresh_apt]: Triggered 'refresh' from 4 events - [couch1] notice: /Stage[main]/Apt::Preferences/Concat[/etc/apt/preferences]/File[/var/lib/puppet/concat/_etc_apt_preferences]: Dependency Package[unattended-upgrades] has failures: true - [couch1] warning: /Stage[main]/Apt::Preferences/Concat[/etc/apt/preferences]/File[/var/lib/puppet/concat/_etc_apt_preferences]: Skipping because of failed dependencies - [couch1] notice: /Stage[main]/Apt::Preferences/Concat[/etc/apt/preferences]/File[/var/lib/puppet/concat/_etc_apt_preferences/fragments.concat]: Dependency Package[unattended-upgrades] has failures: true - [couch1] warning: /Stage[main]/Apt::Preferences/Concat[/etc/apt/preferences]/File[/var/lib/puppet/concat/_etc_apt_preferences/fragments.concat]: Skipping because of failed dependencies - [couch1] notice: /Stage[main]/Apt::Preferences/Concat[/etc/apt/preferences]/File[/var/lib/puppet/concat/_etc_apt_preferences/fragments.concat.out]: Dependency Package[unattended-upgrades] has failures: true - [couch1] warning: /Stage[main]/Apt::Preferences/Concat[/etc/apt/preferences]/File[/var/lib/puppet/concat/_etc_apt_preferences/fragments.concat.out]: Skipping because of failed dependencies - [couch1] notice: /Stage[main]/X509::Base/File[/etc/x509]/ensure: created - [couch1] notice: /Stage[main]/X509::Base/File[/etc/x509/keys]/ensure: created - [couch1] notice: /Stage[main]/X509::Base/File[/etc/x509/certs]/ensure: created - [couch1] notice: /Stage[main]/Apache::Base/File[default_apache_index]/content: content changed '{md5}21dde95d9d269cbb2fa6560309dca40c' to '{md5}274ae61c40bf778814205e095b9e4626' - [couch1] notice: /Stage[main]/Apt::Preferences/Concat[/etc/apt/preferences]/File[/var/lib/puppet/concat/_etc_apt_preferences/fragments]: Dependency Package[unattended-upgrades] has failures: true - [couch1] warning: /Stage[main]/Apt::Preferences/Concat[/etc/apt/preferences]/File[/var/lib/puppet/concat/_etc_apt_preferences/fragments]: Skipping because of failed dependencies - [couch1] notice: /Stage[main]/Apt::Preferences/Concat::Fragment[apt_preferences_header]/File[/var/lib/puppet/concat/_etc_apt_preferences/fragments/00_apt_preferences_header]: Dependency Package[unattended-upgrades] has failures: true - [couch1] warning: /Stage[main]/Apt::Preferences/Concat::Fragment[apt_preferences_header]/File[/var/lib/puppet/concat/_etc_apt_preferences/fragments/00_apt_preferences_header]: Skipping because of failed dependencies - [couch1] notice: /Stage[main]/Apt::Preferences/Concat[/etc/apt/preferences]/Exec[concat_/etc/apt/preferences]: Dependency Package[unattended-upgrades] has failures: true - [couch1] warning: /Stage[main]/Apt::Preferences/Concat[/etc/apt/preferences]/Exec[concat_/etc/apt/preferences]: Skipping because of failed dependencies - [couch1] notice: /Stage[main]/Apt::Preferences/Concat[/etc/apt/preferences]/File[/etc/apt/preferences]: Dependency Package[unattended-upgrades] has failures: true - [couch1] warning: /Stage[main]/Apt::Preferences/Concat[/etc/apt/preferences]/File[/etc/apt/preferences]: Skipping because of failed dependencies - [couch1] notice: /Stage[main]/Site_couchdb/Couchdb::Create_db[users]/Couchdb::Query[create_db_users]/Exec[/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X PUT 127.0.0.1:5984/users --data '']/returns: executed successfully - [couch1] notice: /Stage[main]/Site_couchdb/Couchdb::Create_db[users]/Couchdb::Query[db_security_users]/Exec[/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X PUT 127.0.0.1:5984/users/_security --data '{ "admins": {"names": [], "roles": [] }, "readers": { "names": ["webapp"], "roles": [] } }']/returns: executed successfully - [couch1] notice: /Stage[main]/Site_couchdb/Couchdb::Create_db[client_certificates]/Couchdb::Query[create_db_client_certificates]/Exec[/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X PUT 127.0.0.1:5984/client_certificates --data '']/returns: executed successfully - [couch1] notice: /Stage[main]/Site_couchdb/Couchdb::Create_db[client_certificates]/Couchdb::Query[db_security_client_certificates]/Exec[/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X PUT 127.0.0.1:5984/client_certificates/_security --data '{ "admins": {"names": [], "roles": [] }, "readers": { "names": [], "roles": ["certs"] } }']/returns: executed successfully - [couch1] notice: /Stage[main]/Site_couchdb/Couchdb::Add_user[webapp]/Couchdb::Query[create_user_webapp]/Exec[/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X PUT 127.0.0.1:5984/_users/org.couchdb.user:webapp --data '{ "_id": "org.couchdb.user:webapp", "type": "user", "name": "webapp", "roles": ["certs"], "password": "6dSFCM9twURC5SQIETCFmRtI44J6AqVs"}']/returns: executed successfully - [couch1] notice: /Stage[main]/Apt/Modules_dir[apt]/Module_dir[apt]/File[/var/lib/puppet/modules/apt]/ensure: created - [couch1] notice: /Stage[main]/Couchdb::Base/Service[couchdb]: Triggered 'refresh' from 2 events - [couch1] notice: /Stage[main]/Resolvconf/File[/etc/resolv.conf]/content: content changed '{md5}2a8dd35b454f121e0cd5a7776be2837a' to '{md5}7ad39c9811b952ca2d29385eff848d44' - [couch1] notice: /Stage[main]/Resolvconf/File[/etc/resolv.conf]/mode: mode changed '0644' to '0444' - [couch1] notice: /Stage[main]/Site_couchdb/Couchdb::Add_user[ca_daemon]/Couchdb::Query[create_user_ca_daemon]/Exec[/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X PUT 127.0.0.1:5984/_users/org.couchdb.user:ca_daemon --data '{ "_id": "org.couchdb.user:ca_daemon", "type": "user", "name": "ca_daemon", "roles": ["certs"], "password": "rwdhUUzCFR6sqNHwPkY2NcQXwEPDqdhC"}']/returns: executed successfully - [couch1] notice: /Stage[main]/Site_couchdb/Site_couchdb::Apache_ssl_proxy[apache_ssl_proxy]/X509::Cert[leap_couchdb]/File[/etc/x509/certs/leap_couchdb.crt]/ensure: defined content as '{md5}64e5ab96a9ed6cd4e570af874c808fa3' - [couch1] notice: /Stage[main]/Site_couchdb/Site_couchdb::Apache_ssl_proxy[apache_ssl_proxy]/Apache::Module[proxy]/Apache::Debian::Module[proxy]/Exec[/usr/sbin/a2enmod proxy]/returns: executed successfully - [couch1] notice: /Stage[main]/Site_couchdb/Site_couchdb::Apache_ssl_proxy[apache_ssl_proxy]/Apache::Module[ssl]/Apache::Debian::Module[ssl]/Exec[/usr/sbin/a2enmod ssl]/returns: executed successfully - [couch1] notice: /Stage[main]/Site_couchdb/Site_couchdb::Apache_ssl_proxy[apache_ssl_proxy]/Apache::Module[rewrite]/Apache::Debian::Module[rewrite]/Exec[/usr/sbin/a2enmod rewrite]/returns: executed successfully - [couch1] notice: /Stage[main]/Site_couchdb/Site_couchdb::Apache_ssl_proxy[apache_ssl_proxy]/X509::Key[leap_couchdb]/File[/etc/x509/keys/leap_couchdb.key]/ensure: defined content as '{md5}630795507728bdbc134dcd2c93ab1b52' - [couch1] notice: /Stage[main]/Site_couchdb/Site_couchdb::Apache_ssl_proxy[apache_ssl_proxy]/Apache::Module[proxy_http]/Apache::Debian::Module[proxy_http]/Exec[/usr/sbin/a2enmod proxy_http]/returns: executed successfully - [couch1] notice: /Stage[main]/Site_couchdb/Site_couchdb::Apache_ssl_proxy[apache_ssl_proxy]/Apache::Vhost::File[couchdb_proxy]/File[couchdb_proxy.conf]/ensure: defined content as '{md5}bdbe2abe2c6fe409d98507e5d270df72' - [couch1] notice: /Stage[main]/Apache::Base/Service[apache]: Triggered 'refresh' from 10 events - [couch1] notice: Finished catalog run in 230.12 seconds - Puppet apply complete. - executing "rm -f /tmp/puppet.lock true"
(from redmine: created on 2013-01-29, closed on 2013-02-01, relates #1609)