ceilometer-common fails to install during install.sh

Bug #1321507 reported by Ian Wells
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cisco Openstack
Incomplete
Undecided
Pradeep Kilambi

Bug Description

This seems to be because ceilometer-common wants mysql-server to be both installed and runnning when its postinst script is run, but this is not actually the case. Possibly an ubuntu packaging bug, in fact. The error:

...
Notice: /Stage[main]/Apt::Update/Exec[apt_update]: Triggered 'refresh' from 1 events
Debug: /Stage[main]/Apt::Update/Exec[apt_update]: The container Class[Apt::Update] will propagate my refresh event
Debug: Prefetching apt resources for package
Debug: Executing '/usr/bin/dpkg-query -W --showformat '${Status} ${Package} ${Version}\n''
Debug: Class[Apt::Update]: The container Stage[main] will propagate my refresh event
Debug: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ceilometer-agent-compute'
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ceilometer-agent-compute' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  ceilometer-common python-blinker python-bs4 python-ceilometer
  python-croniter python-dateutil python-flask python-happybase python-ipaddr
  python-itsdangerous python-jsonpath-rw python-msgpack python-oslo.vmware
  python-pecan python-ply python-pyinotify python-simplegeneric python-thrift
  python-waitress python-webtest python-werkzeug python-wsme
Suggested packages:
  python-pysnmp4 python-flask-doc python-ply-doc python-pyinotify-doc
  python-waitress-doc python-webtest-doc python-pyquery ipython python-genshi
  python-redis python-werkzeug-doc
The following NEW packages will be installed:
  ceilometer-agent-compute ceilometer-common python-blinker python-bs4
  python-ceilometer python-croniter python-dateutil python-flask
  python-happybase python-ipaddr python-itsdangerous python-jsonpath-rw
  python-msgpack python-oslo.vmware python-pecan python-ply python-pyinotify
  python-simplegeneric python-thrift python-waitress python-webtest
  python-werkzeug python-wsme
0 upgraded, 23 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1466 kB of archives.
After this operation, 13.2 MB of additional disk space will be used.
Selecting previously unselected package python-thrift.
(Reading database ... 90614 files and directories currently installed.)
Preparing to unpack .../python-thrift_0.9.0-1build1_amd64.deb ...
Unpacking python-thrift (0.9.0-1build1) ...
Selecting previously unselected package python-happybase.
Preparing to unpack .../python-happybase_0.7-1build1_all.deb ...
Unpacking python-happybase (0.7-1build1) ...
Selecting previously unselected package python-ply.
Preparing to unpack .../python-ply_3.4-3ubuntu2_all.deb ...
Unpacking python-ply (3.4-3ubuntu2) ...
Selecting previously unselected package python-jsonpath-rw.
Preparing to unpack .../python-jsonpath-rw_1.2.0-1build1_all.deb ...
Unpacking python-jsonpath-rw (1.2.0-1build1) ...
Selecting previously unselected package python-simplegeneric.
Preparing to unpack .../python-simplegeneric_0.8.1-1_all.deb ...
Unpacking python-simplegeneric (0.8.1-1) ...
Selecting previously unselected package python-waitress.
Preparing to unpack .../python-waitress_0.8.8-1ubuntu3_all.deb ...
Unpacking python-waitress (0.8.8-1ubuntu3) ...
Selecting previously unselected package python-bs4.
Preparing to unpack .../python-bs4_4.2.1-1ubuntu2_all.deb ...
Unpacking python-bs4 (4.2.1-1ubuntu2) ...
Selecting previously unselected package python-webtest.
Preparing to unpack .../python-webtest_2.0.14-1ubuntu1_all.deb ...
Unpacking python-webtest (2.0.14-1ubuntu1) ...
Selecting previously unselected package python-pecan.
Preparing to unpack .../python-pecan_0.3.0-1ubuntu2_all.deb ...
Unpacking python-pecan (0.3.0-1ubuntu2) ...
Selecting previously unselected package python-ipaddr.
Preparing to unpack .../python-ipaddr_2.1.10-1_all.deb ...
Unpacking python-ipaddr (2.1.10-1) ...
Selecting previously unselected package python-wsme.
Preparing to unpack .../python-wsme_0.6-0ubuntu1_all.deb ...
Unpacking python-wsme (0.6-0ubuntu1) ...
Selecting previously unselected package python-msgpack.
Preparing to unpack .../python-msgpack_0.3.0-1ubuntu3_amd64.deb ...
Unpacking python-msgpack (0.3.0-1ubuntu3) ...
Selecting previously unselected package python-werkzeug.
Preparing to unpack .../python-werkzeug_0.9.4+dfsg-1.1ubuntu1_all.deb ...
Unpacking python-werkzeug (0.9.4+dfsg-1.1ubuntu1) ...
Selecting previously unselected package python-itsdangerous.
Preparing to unpack .../python-itsdangerous_0.22+dfsg1-1build1_all.deb ...
Unpacking python-itsdangerous (0.22+dfsg1-1build1) ...
Selecting previously unselected package python-flask.
Preparing to unpack .../python-flask_0.10.1-2build1_all.deb ...
Unpacking python-flask (0.10.1-2build1) ...
Selecting previously unselected package python-dateutil.
Preparing to unpack .../python-dateutil_1.5+dfsg-1ubuntu1_all.deb ...
Unpacking python-dateutil (1.5+dfsg-1ubuntu1) ...
Selecting previously unselected package python-croniter.
Preparing to unpack .../python-croniter_0.3.4-0ubuntu1_all.deb ...
Unpacking python-croniter (0.3.4-0ubuntu1) ...
Selecting previously unselected package python-oslo.vmware.
Preparing to unpack .../python-oslo.vmware_0.2-0ubuntu1_all.deb ...
Unpacking python-oslo.vmware (0.2-0ubuntu1) ...
Selecting previously unselected package python-ceilometer.
Preparing to unpack .../python-ceilometer_2014.1-0ubuntu1_all.deb ...
Unpacking python-ceilometer (2014.1-0ubuntu1) ...
Selecting previously unselected package ceilometer-common.
Preparing to unpack .../ceilometer-common_2014.1-0ubuntu1_all.deb ...
Unpacking ceilometer-common (2014.1-0ubuntu1) ...
Selecting previously unselected package ceilometer-agent-compute.
Preparing to unpack .../ceilometer-agent-compute_2014.1-0ubuntu1_all.deb ...
Unpacking ceilometer-agent-compute (2014.1-0ubuntu1) ...
Selecting previously unselected package python-blinker.
Preparing to unpack .../python-blinker_1.3.dfsg1-1ubuntu2_all.deb ...
Unpacking python-blinker (1.3.dfsg1-1ubuntu2) ...
Selecting previously unselected package python-pyinotify.
Preparing to unpack .../python-pyinotify_0.9.4-1build1_all.deb ...
Unpacking python-pyinotify (0.9.4-1build1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up python-thrift (0.9.0-1build1) ...
Setting up python-happybase (0.7-1build1) ...
Setting up python-ply (3.4-3ubuntu2) ...
Setting up python-jsonpath-rw (1.2.0-1build1) ...
Setting up python-simplegeneric (0.8.1-1) ...
Setting up python-waitress (0.8.8-1ubuntu3) ...
update-alternatives: using /usr/bin/waitress-serve-python2 to provide /usr/bin/waitress-serve (waitress-serve) in auto mode
Setting up python-bs4 (4.2.1-1ubuntu2) ...
Setting up python-webtest (2.0.14-1ubuntu1) ...
Setting up python-pecan (0.3.0-1ubuntu2) ...
Setting up python-ipaddr (2.1.10-1) ...
Setting up python-wsme (0.6-0ubuntu1) ...
Setting up python-msgpack (0.3.0-1ubuntu3) ...
Setting up python-werkzeug (0.9.4+dfsg-1.1ubuntu1) ...
Setting up python-itsdangerous (0.22+dfsg1-1build1) ...
Setting up python-flask (0.10.1-2build1) ...
Setting up python-dateutil (1.5+dfsg-1ubuntu1) ...
Setting up python-croniter (0.3.4-0ubuntu1) ...
Setting up python-oslo.vmware (0.2-0ubuntu1) ...
Setting up python-ceilometer (2014.1-0ubuntu1) ...
Setting up ceilometer-common (2014.1-0ubuntu1) ...
2014-05-20 10:47:30.259 4633 CRITICAL ceilometer [-] OperationalError: (OperationalError) table meter already exists u'\nCREATE TABLE meter (\n\tid INTEGER NOT NULL, \n\tname VARCHAR(255) NOT NULL, \n\ttype VARCHAR(255), \n\tunit VARCHAR(255), \n\tPRIMARY KEY (id), \n\tCONSTRAINT def_unique UNIQUE (name, type, unit)\n)\n\n' ()

dpkg: error processing package ceilometer-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ceilometer-agent-compute:
 ceilometer-agent-compute depends on ceilometer-common (= 2014.1-0ubuntu1); however:
  Package ceilometer-common is not configured yet.

dpkg: error processing package ceilometer-agent-compute (--configure):
 dependency problems - leaving unconfigured
Setting up python-blinker (1.3.dfsg1-1ubuntu2) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up python-pyinotify (0.9.4-1build1) ...
Errors were encountered while processing:
 ceilometer-common
 ceilometer-agent-compute
E: Sub-process /usr/bin/dpkg returned an error code (1)

Error: /Stage[main]/Ceilometer::Agent::Compute/Package[ceilometer-agent-compute]/ensure: change from absent to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ceilometer-agent-compute' returned 100: Reading package lists...
...

Revision history for this message
Chris Ricker (chris-ricker) wrote :

I haven't seen this but you appear to be testing without all our patches under review so might be one of those

Pradeep, have you seen?

Changed in openstack-cisco:
assignee: nobody → Pradeep Kilambi (pkilambi)
milestone: none → i.0
Revision history for this message
Pradeep Kilambi (pkilambi) wrote :

I did a fresh AIO icehouse deployment and don't see these errors. I see ceilometer with mysql setup as expected.

Are you sure you're using the right repos? And you're using Trusty and not Precise?

Revision history for this message
Ian Wells (ijw-ubuntu) wrote : Re: [Bug 1321507] Re: ceilometer-common fails to install during install.sh
Download full text (9.8 KiB)

Yep. I have some hanged in puppet-openstack-builder but nothing significant to this.

--
Ian.

> On 21 May 2014, at 08:35, "Pradeep Kilambi (pkilambi)" <email address hidden> wrote:
>
> I did a fresh AIO icehouse deployment and don't see these errors. I see
> ceilometer with mysql setup as expected.
>
> Are you sure you're using the right repos? And you're using Trusty and
> not Precise?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1321507
>
> Title:
> ceilometer-common fails to install during install.sh
>
> Status in Openstack @ Cisco:
> New
>
> Bug description:
> This seems to be because ceilometer-common wants mysql-server to be
> both installed and runnning when its postinst script is run, but this
> is not actually the case. Possibly an ubuntu packaging bug, in fact.
> The error:
>
> ...
> Notice: /Stage[main]/Apt::Update/Exec[apt_update]: Triggered 'refresh' from 1 events
> Debug: /Stage[main]/Apt::Update/Exec[apt_update]: The container Class[Apt::Update] will propagate my refresh event
> Debug: Prefetching apt resources for package
> Debug: Executing '/usr/bin/dpkg-query -W --showformat '${Status} ${Package} ${Version}\n''
> Debug: Class[Apt::Update]: The container Stage[main] will propagate my refresh event
> Debug: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ceilometer-agent-compute'
> Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ceilometer-agent-compute' returned 100: Reading package lists...
> Building dependency tree...
> Reading state information...
> The following extra packages will be installed:
> ceilometer-common python-blinker python-bs4 python-ceilometer
> python-croniter python-dateutil python-flask python-happybase python-ipaddr
> python-itsdangerous python-jsonpath-rw python-msgpack python-oslo.vmware
> python-pecan python-ply python-pyinotify python-simplegeneric python-thrift
> python-waitress python-webtest python-werkzeug python-wsme
> Suggested packages:
> python-pysnmp4 python-flask-doc python-ply-doc python-pyinotify-doc
> python-waitress-doc python-webtest-doc python-pyquery ipython python-genshi
> python-redis python-werkzeug-doc
> The following NEW packages will be installed:
> ceilometer-agent-compute ceilometer-common python-blinker python-bs4
> python-ceilometer python-croniter python-dateutil python-flask
> python-happybase python-ipaddr python-itsdangerous python-jsonpath-rw
> python-msgpack python-oslo.vmware python-pecan python-ply python-pyinotify
> python-simplegeneric python-thrift python-waitress python-webtest
> python-werkzeug python-wsme
> 0 upgraded, 23 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0 B/1466 kB of archives.
> After this operation, 13.2 MB of additional disk space will be used.
> Selecting previously unselected package python-thrift.
> (Reading database ... 90614 files and directories currently installed.)
> Preparing to unpack .../python-thrift_0.9.0-1build1_amd64.deb ...
> Unpacking python-thrift (0.9.0-1build1) ...
> Selecting previ...

Read more...

Revision history for this message
Ian Wells (ijw-ubuntu) wrote :

Likely to be the MySQL bug I reported last night where it isn't listening on the right address but instead on 127.0.0.1.

Revision history for this message
Mark T. Voelker (mvoelker) wrote :

I was also unable to reproduce this in a pair of AIO deployments today. Given that the MySQL bug you mentioned (I'm assuming that's Bug 1321539) had already been patched, I'm going to call this incomplete for the moment. Could you see if you can reproduce it on a modern version (which would also contain the fix for the aforementioned 1321539 that you seemed to have been missing)?

Changed in openstack-cisco:
status: New → Incomplete
Revision history for this message
Mark T. Voelker (mvoelker) wrote :

Also, what scenario were you deploying when you hit this?

Changed in openstack-cisco:
milestone: i.0 → none
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.