nova相关操作的Request_Id的获取

在分析nova的众多log文件时,如nova-api,nova-scheduler,nova-compute等,其中的request id是串联起整个flow的关键词。

而通过nova instance-action-list <server>指令即可获得相关操作的request id的信息:

root@controller:~# nova instance-action-list Vm-Test-01

+--------+------------------------------------------+---------+----------------------------+

| Action | Request_ID                               | Message | Start_Time                 |

+--------+------------------------------------------+---------+----------------------------+

| create | req-1070b9b3-9626-4329-ae54-cc5837aee9b2 | -       | 2018-07-10T07:28:38.000000 |

| stop   | req-f99c85e9-f344-41ea-b0d8-4d1830e3a5d0 | -       | 2018-07-19T01:54:55.000000 |

+--------+------------------------------------------+---------+----------------------------+

而且通过下面这个CLI指令,能获得相关操作的概要信息:

usage: nova instance-action <server> <request_id>

root@ controller:~# nova instance-action Vm-Test-01 req-1070b9b3-9626-4329-ae54-cc5837aee9b2

+---------------+----------------------------------------------------+

| Property      | Value                                              |

+---------------+----------------------------------------------------+

| action        | create                                             |

| events        | [{u'event': u'compute__do_build_and_run_instance', |

|               |   u'finish_time': u'2018-07-10T07:28:45.000000',   |

|               |   u'result': u'Success',                           |

|               |   u'start_time': u'2018-07-10T07:28:39.000000',    |

|               |   u'traceback': None}]                             |

| instance_uuid | 01c06694-2d1f-4168-a92f-8762cf41a542               |

| message       | -                                                  |

| project_id    | 42cdcb9c73c9439ea95910cdc890dd58                   |

| request_id    | req-1070b9b3-9626-4329-ae54-cc5837aee9b2           |

| start_time    | 2018-07-10T07:28:38.000000                         |

| user_id       | fee776518e74453e983d624d4ab30fdd                   |

+---------------+----------------------------------------------------+

上一篇:Android 动画具体解释View动画


下一篇:tab_切换