Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP-10531: Update vm_guest_metrics to implement PV drivers update #2198

Merged
merged 1 commit into from
Apr 7, 2015

Conversation

huizh
Copy link
Contributor

@huizh huizh commented Mar 26, 2015

  1. Introduce networks_path_optimized and storages_path_optimized flags to vm_guest_metrics.
  2. Update the implementation of PV_drivers_up_to_date.

Signed-off-by: Hui Zhang hui.zhang@citrix.com

@cheng-z
Copy link
Member

cheng-z commented Mar 27, 2015

Hi @simonjbeaumont
Could you please help to review the code?
Thanks

@huizh
Copy link
Contributor Author

huizh commented Mar 27, 2015

FYI.
The code was originally reviewed on master branch with #2160
The comments were addressed.
This PR is to change the target from master to feature branch.

Besides, there's another PR xapi-project/xenopsd#174 for the change of xenopsd.
Thanks a lot.


field ~qualifier:DynamicRO ~ty:Bool ~in_oss_since:None
~lifecycle:[
Deprecated, rel_dundee, "Deprecated in favour of network_paths_optimized and storage_paths_optimized, and redefined in terms of them"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add Published, rel_rio, "true if the PV drivers appear to be up to date", which is what it implicitly used to have.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Rob. I will add it.

@robhoes
Copy link
Member

robhoes commented Apr 2, 2015

This generally looks good to me, apart from a few suggestions above. Finally, it would be good to add a little more text to the commit message, explaining what the changes are for (there actually should have been two commit, since there are two distinct changes). I.e. 1) what are these new fields for; 2) how is the old field redefined and why?

1. Introduce network_paths_optimized and storage_paths_optimized flags to vm_guest_metrics.
   They are used to represent if VM is using PV network and PV storage frontends.
   XenCenter could display them respectively.
2. Update the computation of PV_drivers_up_to_date.
   The value is logical AND of network_paths_optimized and storage_paths_optimized.
   Also deprecate this flag since the network and storage flags are introduced.

Signed-off-by: Hui Zhang <hui.zhang@citrix.com>
@huizh
Copy link
Contributor Author

huizh commented Apr 3, 2015

Hi @robhoes, thanks a lot for your comments and suggestions.
I've updated accordingly.
Would you please help review?

Thanks.

@robhoes
Copy link
Member

robhoes commented Apr 7, 2015

@huizh This looks good now, thanks for the update. I'll merge it now.

robhoes added a commit that referenced this pull request Apr 7, 2015
CP-10531: Update vm_guest_metrics to implement PV drivers update
@robhoes robhoes merged commit 5b26de4 into xapi-project:trunk-car1755 Apr 7, 2015
@robhoes
Copy link
Member

robhoes commented Apr 7, 2015

(Btw: the test build failed, but that seems to be due to infrastructure issues not related to the patch)

@huizh
Copy link
Contributor Author

huizh commented Apr 7, 2015

Thanks @robhoes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants