systemvm: list systemvm does not return agent state and version#3870
Conversation
This makes the listSystemVms API to return the host status (agent state), version and last pinged information. This makes it possible for UIs to call a single API to get this information. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-777 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@shwstppr @Pearl1594 please review as well. |
|
LGTM - agentstate, lastpinged and version fields seem to be added to the list systemvms response |
DaanHoogland
left a comment
There was a problem hiding this comment.
code lgtm. seems like an enhancement to me. Primate targets 4.15, should we put it in here?
| private String state; | ||
|
|
||
| @SerializedName("agentstate") | ||
| @Param(description = "the agent state of the system VM") |
There was a problem hiding this comment.
can we add since key here as these are new response params
|
@DaanHoogland the technical preview targets 4.14, without this fix the implementation in Primate would be complicated. |
|
code LGTM @rhtyd can you make some changes on 4.13/4.14 UI ? the agent state is determined in a complicated way. |
|
That's not very critical, but let me check if it's a quick one. I originally wanted to limit the scope just to apis, wrt Primate. |
|
ok, @rhtyd I'm fine with it. merge at will. |
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
@shwstppr thanks, fixed the |
|
Thanks @DaanHoogland will merge after smoketests and some UI confirmation (cc @weizhouapache) |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-784 |
|
@weizhouapache can you confirm the ui? |
|
@DaanHoogland ui works. However, lastping returns wrong date/time. we have same issue on other api response. we can fix them together afterwards. |
|
sounds like a ugly bug @weizhouapache shift by ten bits != /1000. I think we should move away from the bit shifting when dealing with milliseconds. |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@DaanHoogland what I said is not a blocker. I am ok with this PR. @rhtyd yes, it has same issue. In response of listhosts and listsystemvms, both shows the last ping time is "1970-01-XXXX" instead of "2020-02-XXXX". we can fix it in the future, not today. |
…he#3870) This makes the listSystemVms API to return the host status (agent state), version and last pinged information. This makes it possible for UIs to call a single API to get this information.
This makes the listSystemVms API to return the host status (agent state),
version and last pinged information. This makes it possible for UIs
to call a single API to get this information.
This is largely for Primate.