No history of volumes usage (mounting/umounting) is present into cinder logs

Bug #1639269 reported by Denis Klepikov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
In Progress
Wishlist
Fuel Sustaining

Bug Description

No history of volumes usage (mounting/umounting) is present into cinder logs
Please add entries into cinder logs about volumes mounting/umounting to instances

Date/time Volume ID attached/detached to Instance_ID

Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

MOS Cinder team, please take a look at this and decide whether this to be implemented and should it be backported into older releases.

Changed in mos:
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → MOS Cinder (mos-cinder)
milestone: none → 9.2
tags: added: area-cinder
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Denis K.,

If you are only interested in logs and not in API, then this info is already available in nova-compute logs:

ubuntu@rpodolyaka-devstack:~/devstack$ grep 4577d61a-1855-4ee6-8590-272d699bc0f5 /opt/stack/logs/n-cpu.log | grep INFO
2016-11-07 13:21:53.419 21629 INFO nova.compute.manager [req-60864d1c-c425-45cc-9a6b-7c79fc8cc69b demo demo] [instance: 91bf6b05-266e-4923-8f4b-0873e147d662] Attaching volume 4577d61a-1855-4ee6-8590-272d699bc0f5 to /dev/vdb
2016-11-07 13:23:51.106 21629 INFO nova.compute.manager [req-090ad538-7841-4dfb-8449-f99c055c9d14 demo demo] [instance: 91bf6b05-266e-4923-8f4b-0873e147d662] Detach volume 4577d61a-1855-4ee6-8590-272d699bc0f5 from mountpoint /dev/vdb

Michael Dovgal (mdovgal)
Changed in mos:
assignee: MOS Cinder (mos-cinder) → Michael Dovgal (mdovgal)
Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :
Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/cinder (9.0/mitaka)

Reviewed: https://review.fuel-infra.org/28588
Submitter: Pkgs Jenkins <email address hidden>
Branch: 9.0/mitaka

Commit: f58bcc2e6cbb7ec7d8692078f576411085125cf5
Author: Michael Dovgal <email address hidden>
Date: Thu Nov 17 12:01:55 2016

Log detailed attach/detach volumes info

Change cinder-volume logs level from debug to info to have
information about volume attach/detach usage.

Partial-Bug: #1639269

Change-Id: I4c51c57c5d4d854eb72dc25aba05e57d0117659c

Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :

Puppet team, please, change cinder log formatting to:

logging_default_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [^[[00;36m-%(color)s] ^[[01;35m%(instance)s%(color)s%(resource)s%(message)s^[[00m
logging_context_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [^[[01;36m%(request_id)s ^[[00;36m%(user_id)s %(project_id)s%(color)s] ^[[01;35m%(instance)s%(color)s%(resource)s%(message)s^[[00m

Changed in mos:
assignee: Michael Dovgal (mdovgal) → Fuel Library (Deprecated) (fuel-library)
Dmitry Pyzhov (dpyzhov)
Changed in mos:
assignee: Fuel Library (Deprecated) (fuel-library) → Fuel Sustaining (fuel-sustaining-team)
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/cinder (mcp/newton)

Fix proposed to branch: mcp/newton
Change author: Michael Dovgal <email address hidden>
Review: https://review.fuel-infra.org/33465

Changed in mos:
status: Confirmed → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/cinder (11.0/ocata)

Fix proposed to branch: 11.0/ocata
Change author: Michael Dovgal <email address hidden>
Review: https://review.fuel-infra.org/34182

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/cinder (mcp/ocata)

Fix proposed to branch: mcp/ocata
Change author: Michael Dovgal <email address hidden>
Review: https://review.fuel-infra.org/34845

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/cinder (mcp/ocata)

Change abandoned by Ivan Kolodyazhny <email address hidden> on branch: mcp/ocata
Review: https://review.fuel-infra.org/34845

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/cinder (11.0/ocata)

Change abandoned by Roman Podoliaka <email address hidden> on branch: 11.0/ocata
Review: https://review.fuel-infra.org/34182
Reason: we do not need 11.0/ocata anymore - use mcp/ocata instead

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/cinder (mcp/newton)

Change abandoned by Michael Dovgal <email address hidden> on branch: mcp/newton
Review: https://review.fuel-infra.org/33465

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.