zoukankan      html  css  js  c++  java
  • 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                   |

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

  • 相关阅读:
    电信网络拓扑图自动布局之总线
    长短链接区别-2
    TCP长连接与短连接的区别
    memset(&a, 0, sizeof(struct customer))函数
    linker command failed with exit code 1
    iOS “[App] if we're in the real pre-commit handler we can't actually add any new fences due
    iOS 获取屏幕某个区域的截图-b
    iOS-集成支付宝支付、微信支付简单总结
    邓白氏码的申请-iOS公司开发者账号准备
    iOS 自定义导航栏 和状态栏
  • 原文地址:https://www.cnblogs.com/bjtime/p/9341298.html
Copyright © 2011-2022 走看看