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-10204: XenCenter: guest RDP control #275
Conversation
Waiting on this until the requirements are finalised. |
Based on the discussion of the requirements, guest agent would watch and update RDP status to ensure it be correct for XenCenter to display corresponding button. |
We don't yet know whether the guest agent can do that (with sufficient performance), so I don't want to take this pull request and then find we have to revert much of it. |
Yes, I agree that might be an issue. |
Hi @stephen-turner & @huizh So, @stephen-turner do you think we can start the code review now? |
Thank you, Cheng. So just to be clear, with your changes to the guest agent, will XenCenter now get notified even if RDP is turned on or off directly in the guest? If so, we will proceed with reviewing the pull request. |
Hi @stephen-turner, |
We're planning to review this on Thursday. Sorry, we don't have any free slots today or tomorrow with all the right people. |
@@ -11406,6 +11409,9 @@ To learn more about the XenServer Dynamic Workload Balancing feature or to start | |||
<data name="VNC_RDESKTOP" xml:space="preserve"> | |||
<value>Sw&itch to Remote Desktop</value> | |||
</data> | |||
<data name="VNC_RDESKTOP_TRUN_ON" xml:space="preserve"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling mistake: should be TURN not TRUN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already change the typo. Thanks.
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
e9d1eab
to
6a49c83
Compare
You asked about CreamOrGreater(): feel free to write this function. Let us know when you want us to review it again. |
You wrote:
The preferred behaviour here is different depending whether the user turned on RDP by pressing the button in XenCenter, or by turning it on in the guest.
If this is too difficult to implement, we should always do 2., and change the text in the dialog to read simply "Would you like to turn on Remote Desktop in this VM? [Yes] [No]" |
e626f47
to
f3c79d0
Compare
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
Hi @stephen-turner , thank you for you reminder. Current, all rework jobs are been done based on all your comments, and I think we can start the review process again. Thanks a lot. |
Sorry I didn't notice before, but this pull request accidentally introduces a new file, XenModel/XenAPI-Extensions/Proxy.cs. Please remove it. (It's large, so I don't even want it added and then deleted again; please make a new, squashed changeset without it). Thanks. |
@@ -741,6 +761,11 @@ public void Unpause() | |||
vncScreen.Unpause(); | |||
} | |||
|
|||
private bool RDPDiabledOnCreamOrGreater(IXenConnection conn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in function name: should be Disabled not Diabled.
Hi @stephen-turner I already check on all comments and thanks for your great work which help me a lot. |
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
Thank you @stephen-turner Thank you for your review and @cheng--zhang for the discussion, do we have more comments for the codes change to be merged? |
Sorry, I still need to do another review, but it's been a really busy week with the train planning. |
I have scheduled this for Monday. Apologies for the delay. |
The code looks OK to me now, but I wanted to do some smoke testing too. Could you confirm which branch and build has all the changes (xapi and guest agent) on it? I tried with trunk-ring3 build 90554, but it didn't work right: I saw "switch to RDP" when RDP was turned off; no button when RDP was turned on; and I never saw "turn on RDP". But maybe I just haven't got the guest agent changes. |
Hi @stephen-turner, I am so sorry about the test on trunk-ring3. Because this feature also need code change for Windows PV tool, the commit is not merged in trunk-ring3, so the RDP status in trunk-ring3 will not be the correct one. You can use trunk branch build as a test environment. The trunk branch included all changes for this feature. |
OK, thanks, I'll try that. |
This still isn't working well for me. It doesn't appear to be responding to changes made via the in-guest UI. And when I press "Turn on XenDesktop", the button gets greyed out, but it never connects. I have also seen a state where the remote desktop option is set, but with a warning that I need to configure the Windows firewall too, which I thought is supposed to happen automatically. I think we should have a meeting to discuss this, rather than continuing to do it in the pull request. I'll set one up for tomorrow. |
It turns out that the problems were caused by not having all the guest agent changes on the server I was testing on. It looks good now, so I'm accepting this pull request. There are some minor bugs, but we will take them as separate items. |
CP-10204: XenCenter: guest RDP control
This code change is to add changes as bellow:
One thing need to modify is that "CreedenceorGreater" funtion check should be change.
Signed-off-by: Cheng Zhang cheng.zhang@citrix.com