← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1962574] [NEW] Live-Migration and Spawn instance does not log consistently

 

Public bug reported:

Description
===========
Most log entries contain the request-id and user-context (user-id, project-id, etc...), but not the instance creation which is spawned in a separate thread, or the live-migration (also separate thread)


Expected result
===============
For example, I would expect for example the instance creation to be logged the following way:

2022-03-01 12:29:21,245 7 INFO nova.compute.manager
[req-399ed405-efde-4197-8fe2-8b7f7a7cca0c <user-id> <project-id> -
<user-domain> <project-domain> [instance:
12345678-b6cf-4500-8433-53051f945673] Took 18.46 seconds to build
instance.

Actual result
=============
Instead various log messages are containing a "[-]" indicating that the request-context is not set in the thread.
2022-03-01 12:29:21,245 7 INFO nova.compute.manager [-] [instance: 12345678-b6cf-4500-8433-53051f945673] Took 18.46 seconds to build instance.


Environment
===========
1. Exact version of OpenStack you are running. See the following
  list for all releases: http://docs.openstack.org/releases/

All versions are affected. Including master branch.

2. Which hypervisor did you use?
   N/A

2. Which storage type did you use?
   N/A

3. Which networking type did you use?
   N/A

Logs & Configs
==============

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1962574

Title:
  Live-Migration and Spawn instance does not log consistently

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========
  Most log entries contain the request-id and user-context (user-id, project-id, etc...), but not the instance creation which is spawned in a separate thread, or the live-migration (also separate thread)

  
  Expected result
  ===============
  For example, I would expect for example the instance creation to be logged the following way:

  2022-03-01 12:29:21,245 7 INFO nova.compute.manager
  [req-399ed405-efde-4197-8fe2-8b7f7a7cca0c <user-id> <project-id> -
  <user-domain> <project-domain> [instance:
  12345678-b6cf-4500-8433-53051f945673] Took 18.46 seconds to build
  instance.

  Actual result
  =============
  Instead various log messages are containing a "[-]" indicating that the request-context is not set in the thread.
  2022-03-01 12:29:21,245 7 INFO nova.compute.manager [-] [instance: 12345678-b6cf-4500-8433-53051f945673] Took 18.46 seconds to build instance.

  
  Environment
  ===========
  1. Exact version of OpenStack you are running. See the following
    list for all releases: http://docs.openstack.org/releases/

  All versions are affected. Including master branch.

  2. Which hypervisor did you use?
     N/A

  2. Which storage type did you use?
     N/A

  3. Which networking type did you use?
     N/A

  Logs & Configs
  ==============

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1962574/+subscriptions



Follow ups