[repo] apt fails to install update-notifier-common

Bug #1495571 reported by Mark Vanderwiel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack + Chef
Fix Released
High
Ma Wen Cheng

Bug Description

* apt_package[update-notifier-common] action install[2015-09-11T22:30:11+00:00] INFO: Processing apt_package[update-notifier-common] action install (apt::default line 75)
2015-09-11 22:30:13.456 |
2015-09-11 22:30:13.456 | 
2015-09-11 22:30:13.457 | ================================================================================
2015-09-11 22:30:13.457 | Error executing action `install` on resource 'apt_package[update-notifier-common]'
2015-09-11 22:30:13.457 | ================================================================================
2015-09-11 22:30:13.457 |
2015-09-11 22:30:13.457 |  Mixlib::ShellOut::ShellCommandFailed
2015-09-11 22:30:13.457 | ------------------------------------
2015-09-11 22:30:13.457 | Expected process to exit with [0], but received '100'
2015-09-11 22:30:13.458 |  ---- Begin output of apt-get -q -y install update-notifier-common=0.154.1ubuntu1 ----
2015-09-11 22:30:13.458 |  STDOUT: Reading package lists...
2015-09-11 22:30:13.458 |  Building dependency tree...
2015-09-11 22:30:13.458 |  Reading state information...
2015-09-11 22:30:13.458 |  The following packages were automatically installed and are no longer required:
2015-09-11 22:30:13.458 |  python-cheetah python-configobj python-json-pointer python-jsonpatch
2015-09-11 22:30:13.458 |  python-oauth python-prettytable python-serial python-urllib3 python-yaml
2015-09-11 22:30:13.459 |  python3-pycurl python3-software-properties software-properties-common
2015-09-11 22:30:13.459 |  unattended-upgrades
2015-09-11 22:30:13.459 |  Use 'apt-get autoremove' to remove them.
2015-09-11 22:30:13.459 |  The following extra packages will be installed:
2015-09-11 22:30:13.459 |  python-debian
2015-09-11 22:30:13.459 |  The following NEW packages will be installed:
2015-09-11 22:30:13.460 |  python-debian update-notifier-common
2015-09-11 22:30:13.460 |  0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
2015-09-11 22:30:13.460 |  Need to get 211 kB of archives.
2015-09-11 22:30:13.460 |  After this operation, 2398 kB of additional disk space will be used.
2015-09-11 22:30:13.460 |  Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main python-debian all 0.1.21+nmu2ubuntu2 [49.7 kB]
2015-09-11 22:30:13.460 |  Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main update-notifier-common all 0.154.1ubuntu1 [161 kB]
2015-09-11 22:30:13.461 |  Fetched 211 kB in 0s (1480 kB/s)
2015-09-11 22:30:13.461 |  Selecting previously unselected package python-debian.
2015-09-11 22:30:13.461 |  (Reading database ... 204849 files and directories currently installed.)
2015-09-11 22:30:13.461 |  Preparing to unpack .../python-debian_0.1.21+nmu2ubuntu2_all.deb ...
2015-09-11 22:30:13.461 |  Unpacking python-debian (0.1.21+nmu2ubuntu2) ...
2015-09-11 22:30:13.461 |  Selecting previously unselected package update-notifier-common.
2015-09-11 22:30:13.462 |  Preparing to unpack .../update-notifier-common_0.154.1ubuntu1_all.deb ...
2015-09-11 22:30:13.462 |  Unpacking update-notifier-common (0.154.1ubuntu1) ...
2015-09-11 22:30:13.462 |  Setting up python-debian (0.1.21+nmu2ubuntu2) ...
2015-09-11 22:30:13.462 |  Setting up update-notifier-common (0.154.1ubuntu1) ...
2015-09-11 22:30:13.462 |  STDERR: Configuration file '/etc/apt/apt.conf.d/15update-stamp'
2015-09-11 22:30:13.462 |  ==> File on system created by you or by a script.
2015-09-11 22:30:13.462 |  ==> File also in package provided by package maintainer.
2015-09-11 22:30:13.463 |  What would you like to do about it ? Your options are:
2015-09-11 22:30:13.463 |  Y or I : install the package maintainer's version
2015-09-11 22:30:13.463 |  N or O : keep your currently-installed version
2015-09-11 22:30:13.463 |  D : show the differences between the versions
2015-09-11 22:30:13.463 |  Z : start a shell to examine the situation
2015-09-11 22:30:13.463 |  The default action is to keep your current version.
2015-09-11 22:30:13.464 |  *** 15update-stamp (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package update-notifier-common (--configure):
2015-09-11 22:30:13.464 |  EOF on stdin at conffile prompt
2015-09-11 22:30:13.464 |  Errors were encountered while processing:
2015-09-11 22:30:13.464 |  update-notifier-common

This appears to be fixed with later version of apt cookbook as it now does not even install this package anymore.
So, need to bump apt cookbook to 2.8.2

This effect the following cookbooks:

cookbook-openstack-block-storage/metadata.rb:depends 'apt', '~> 2.6.1'
cookbook-openstack-client/metadata.rb:depends 'apt', '~> 2.6.1'
cookbook-openstack-common/metadata.rb:depends 'apt', '~> 2.6.1'

And the Repo berks file.

I would suggest we change the metadata depends to just 'apt', '~> 2.8' to allow for other future fixes.

Tags: repo
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-chef-repo (master)

Fix proposed to branch: master
Review: https://review.openstack.org/223262

Changed in openstack-chef:
assignee: nobody → JJ Asghar (d-jj)
status: New → In Progress
Revision history for this message
JJ Asghar (d-jj) wrote :

Released: https://review.openstack.org/223262 to resolve this.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cookbook-openstack-common (master)

Fix proposed to branch: master
Review: https://review.openstack.org/223368

Changed in openstack-chef:
assignee: JJ Asghar (d-jj) → Ma Wen Cheng (mars914)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cookbook-openstack-block-storage (master)

Fix proposed to branch: master
Review: https://review.openstack.org/223370

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cookbook-openstack-client (master)

Fix proposed to branch: master
Review: https://review.openstack.org/223376

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on openstack-chef-repo (master)

Change abandoned by JJ Asghar (<email address hidden>) on branch: master
Review: https://review.openstack.org/223262

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cookbook-openstack-block-storage (master)

Change abandoned by Ma Wen Cheng (<email address hidden>) on branch: master
Review: https://review.openstack.org/223370
Reason: duplicate https://review.openstack.org/#/c/189222/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cookbook-openstack-client (master)

Reviewed: https://review.openstack.org/223376
Committed: https://git.openstack.org/cgit/openstack/cookbook-openstack-client/commit/?id=e888adce0a8a49e86c2b4fdeadba64a257d58749
Submitter: Jenkins
Branch: master

commit e888adce0a8a49e86c2b4fdeadba64a257d58749
Author: wenchma <email address hidden>
Date: Tue Sep 15 09:50:25 2015 +0800

    Update apt cookbook version

    Change-Id: I0709b1d961fb9871977b35602f6456bb5c26ee41
    Closes-Bug: 1495571

Changed in openstack-chef:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cookbook-openstack-common (master)

Reviewed: https://review.openstack.org/223368
Committed: https://git.openstack.org/cgit/openstack/cookbook-openstack-common/commit/?id=82b4e9b3183f8171ae3b30b981735b71eba07e61
Submitter: Jenkins
Branch: master

commit 82b4e9b3183f8171ae3b30b981735b71eba07e61
Author: wenchma <email address hidden>
Date: Tue Sep 15 09:45:16 2015 +0800

    Update apt cookbook version

    Change-Id: I4ddebafeba997ef2d4e39197f7cd2e74c9bb43c5
    Closes-Bug: 1495571

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cookbook-openstack-common ocata-eol

This issue was fixed in the openstack/cookbook-openstack-common ocata-eol release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.