Murano API service contains errors in log file after service start

Bug #1621936 reported by Ivan Udovichenko
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
murano (Ubuntu)
Fix Released
Medium
Unassigned
Xenial
Incomplete
Medium
Unassigned
Yakkety
Fix Released
Medium
Unassigned

Bug Description

During murano-api service start you may observe errors in /var/log/murano/murano-api.log log file:
"""
...
2016-09-09 16:31:37.631 24299 DEBUG murano.common.statservice [-] Updating statistic information. update_stats /usr/lib/python2.7/dist-packages/murano/common/statservice.py:59
2016-09-09 16:31:37.631 24299 DEBUG murano.common.statservice [-] Stats object: <murano.api.v1.request_statistics.RequestStatisticsCollection object at 0x7fa9639de990> update_stats /usr/lib/python2.7/dist-packages/murano/common/statservice.py:60
2016-09-09 16:31:37.631 24299 DEBUG murano.common.statservice [-] Stats: (Requests: 0 Errors: 0 Ave.Res.Time 0.0000
 Per tenant: {}) update_stats /usr/lib/python2.7/dist-packages/murano/common/statservice.py:66
2016-09-09 16:31:37.698 24299 DEBUG oslo_db.sqlalchemy.engines [-] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/engines.py:256
2016-09-09 16:31:37.737 24299 ERROR murano.common.statservice [-] Failed to get statistics object from a database. 'module' object has no attribute 'NUM_CPUS'
2016-09-09 16:31:37.737 24299 ERROR murano.common.statservice Traceback (most recent call last):
2016-09-09 16:31:37.737 24299 ERROR murano.common.statservice File "/usr/lib/python2.7/dist-packages/murano/common/statservice.py", line 75, in update_stats
2016-09-09 16:31:37.737 24299 ERROR murano.common.statservice psutil.NUM_CPUS,
2016-09-09 16:31:37.737 24299 ERROR murano.common.statservice AttributeError: 'module' object has no attribute 'NUM_CPUS'
2016-09-09 16:31:37.737 24299 ERROR murano.common.statservice
...
"""

The issues shows itself because of a new version (3.4.2-1) of python-psutil package: http://packages.ubuntu.com/xenial/python-psutil

The detailed instruction how to reproduce the issue was written by my manager (Igor Yozhikov):
https://docs.google.com/document/d/1zf4WROMtd2Miq57WHDRRC7Qt-GZ6AIpQIlL2S3FT6Qo/view

The fix was proposed/merged here:
https://review.openstack.org/#/c/360727/

Related bug:
https://bugs.launchpad.net/murano/+bug/1598208

Revision history for this message
Ivan Udovichenko (iudovichenko) wrote :

Update to version 2.0.2 helped. It is in stable/mitaka branch:
https://review.openstack.org/gitweb?p=openstack/murano.git;a=shortlog;h=refs/heads/stable/mitaka

I successfully built a new version. And have attached a debdiff output.

tags: added: murano-api
tags: added: python-psutil
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "debdiff_murano_2.0.2-1.diff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Mathew Hodson (mhodson)
Changed in murano (Ubuntu):
importance: Undecided → Medium
Chuck Short (zulcss)
Changed in murano (Ubuntu Yakkety):
status: New → Fix Released
Mathew Hodson (mhodson)
Changed in murano (Ubuntu Xenial):
importance: Undecided → Medium
Revision history for this message
Ivan Udovichenko (iudovichenko) wrote :

I've successfully added Murano source package to PPA (Xenial):
https://launchpad.net/~iudovichenko/+archive/ubuntu/python/+packages

Please review and sponsor the packages.

Thank you.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in murano (Ubuntu Xenial):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the work, SRU requests need to have some extra informations on their bugs, could you read https://wiki.ubuntu.com/StableReleaseUpdates#SRU_Bug_Template and add those to the description?

Changed in murano (Ubuntu Xenial):
status: Confirmed → Incomplete
Revision history for this message
Robie Basak (racb) wrote :

Unsubscribing ~ubuntu-sponsors as this is not ready for upload as it has incomplete SRU information. When it is ready, please resubscribe ~ubuntu-sponsors again for consideration. Thanks!

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.