You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by ar...@apache.org on 2009/07/24 22:03:12 UTC

svn commit: r797630 - /incubator/vcl/trunk/managementnode/lib/VCL/reserved.pm

Author: arkurth
Date: Fri Jul 24 20:03:12 2009
New Revision: 797630

URL: http://svn.apache.org/viewvc?rev=797630&view=rev
Log:
VCL-23
Removed section of Windows-specific code in reserved.pm which is no longer called. It's replaced by the grant_access() subroutine.

Modified:
    incubator/vcl/trunk/managementnode/lib/VCL/reserved.pm

Modified: incubator/vcl/trunk/managementnode/lib/VCL/reserved.pm
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/reserved.pm?rev=797630&r1=797629&r2=797630&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/reserved.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/reserved.pm Fri Jul 24 20:03:12 2009
@@ -212,54 +212,8 @@
 			# group access M-N-K -- multiple users need access
 			# standard with no connection checks
 			
-			if ($image_os_name =~ /win|vmwarewin/) {
-				notify($ERRORS{'OK'}, 0, "Windows image detected: $image_os_name");
-				
-				# Determine whether to open RDP port for single IP or group access
-				if ($user_group_member_count > 0) {
-					# Imagemeta user group defined and member count is > 0
-					notify($ERRORS{'OK'}, 0, "group set in imagemeta has members");
-					if (remotedesktopport($nodename, "ENABLE")) {
-						notify($ERRORS{'OK'}, 0, "remote desktop enabled on $nodename for group access");
-					}
-					else {
-						notify($ERRORS{'WARNING'}, 0, "remote desktop not group enabled on $nodename");
-						$retval_conn = "failed";
-						goto RETVALCONN;
-					}
-				}    # Close imagemeta user group defined and member count is > 0
-				else {
-					# Imagemeta user group undefined or member count is 0
-					notify($ERRORS{'OK'}, 0, "either group not set in imagemeta or has 0 members");
-					if (remotedesktopport($nodename, "ENABLE", $remote_ip)) {
-						insertloadlog($reservation_id, $computer_id, "info", "reserved: opening remote access port for $remote_ip");
-						notify($ERRORS{'OK'}, 0, "remote desktop enabled on $nodename");
-					}
-					else {
-						notify($ERRORS{'WARNING'}, 0, "remote desktop not enabled on $nodename");
-						$retval_conn = "failed";
-						goto RETVALCONN;
-					}
-				}    # Close imagemeta user group undefined or member count is 0
-
-				# Check if forimaging is set on the request
-				if (!$request_forimaging) {
-					## Don't care to monitor any imaging reservations
-					#notify($ERRORS{'OK'}, 0, "this is not a forimaging request, check for ITM monitoring");
-					#if (system_monitoring($nodename, $image_name, "start", "ITM")) {
-					#	notify($ERRORS{'OK'}, 0, "ITM monitoring enabled");
-					#	insertloadlog($reservation_id, $computer_id, "info", "reserved: ITM detected starting system monitoring");
-					#}
-					#else {
-					#	# Don't care at this time
-					#	notify($ERRORS{'OK'}, 0, "ITM monitoring is not enabled");
-					#}
-				}    # Close if request forimaging
-
-			}    # Close if OS name is win or vmware
-
 			# Check if linux image
-			elsif ($image_os_type =~  /linux/){
+			if ($image_os_type =~  /linux/){
 				notify($ERRORS{'OK'}, 0, "Linux image detected: $image_os_name");
 
 				# adduser ; this adds user and restarts sshd