2016-02-22 07:43 AM
got a problem in a WFA-Workflow.
I'm using several WFA commands in a workflow to work on a single cDot-cluster.
I use a couple of Powershell-commands that work flawless (connect & execute)
and one perl-command (from Netapp - "SnapMirror initialize or update set")
which fails on connecting to the array.
I did not change anything on the Perl-configuration that comes with WFA.
WFA is latest version 184.108.40.206.1P1 Build 3511759
Server is Win2012 R2 freshly installed.
Hope somebody can help me here?
Solved! SEE THE SOLUTION
2016-02-23 03:30 AM
Kindly post the exact error that you are getting.
That could help in debugging.
2016-02-23 03:43 AM
Sure, that's the command log output:
16:26:38.985 INFO [SnapMirror initialize or update set] ### Command 'SnapMirror initialize or update set' in 'PERL' ###
16:26:44.564 INFO [SnapMirror initialize or update set] Connecting to cluster: netapp1
16:26:44.595 INFO [SnapMirror initialize or update set] Credentials successfully provided for 'netapp1'
16:26:45.798 INFO [SnapMirror initialize or update set] Trying to connect to netapp1 using HTTPS
16:26:49.658 INFO [SnapMirror initialize or update set] Trying to connect to netapp1 using HTTP
16:26:53.611 ERROR [SnapMirror initialize or update set] Command failed for Workflow '_Create and configure SVM' with error :
Unable to connect to array
16:26:53.611 INFO [SnapMirror initialize or update set] ***** Workflow Execution Failed *****
Can I provide any more logs that trigger down the cause besides that?
2016-02-23 03:50 AM
'netapp1' might not be reachable from wfa server. Can you try to do test connectivity of 'netapp1' from GUI-->Execution-->Credentials dialog. Also, can you try to provide IP address or FQDN of the cluster to the command ?
2016-02-23 03:56 AM
connectivity and credentials are definetely working,
the command "Create Storage Virtual Machine" in said workflow to the same cluster using the same credentials does work:
16:25:27.325 INFO [Create and configure Storage Virtual Machine] ### Command 'Create and configure Storage Virtual Machine' in 'POWER_SHELL' ###
16:25:36.091 INFO [Create and configure Storage Virtual Machine] Get-WfaCredentials -Host netapp1
16:25:36.122 INFO [Create and configure Storage Virtual Machine] Credentials successfully provided for 'netapp1'
16:25:36.185 INFO [Create and configure Storage Virtual Machine] Connect-Controller -Type CLUSTER -Name netapp1 -Credential System.Management.Automation.PSCredential -Vserver -Timeout 60000
16:25:36.263 INFO [Create and configure Storage Virtual Machine] Connect-NcController (with credentials) -Name netapp1 -Timeout 60000 -ErrorAction Stop
16:25:43.435 INFO [Create and configure Storage Virtual Machine] Connected to cluster node
16:25:44.342 INFO [Create and configure Storage Virtual Machine] Creating a new Storage Virtual Machine - Name 'testsvm' , Aggregate 'aggr_sas900_01_netapp11' on Root Volume 'netapp1_root'
16:25:49.233 INFO [Create and configure Storage Virtual Machine] Configuring Storage Virtual Machine with Allowed protocols 'nfs cifs
16:25:50.655 INFO [Create and configure Storage Virtual Machine] Command completed, took 23330 milliseconds
--> only difference in that workflow is that the command that is not working is written in perl. All others (written in powershell) do work absolutely fine.
2016-02-23 04:01 AM - edited 2016-02-23 04:06 AM
Test-Connectivity uses powershell to verify connectivity. So this result was expected. To debug perl, can you do the following.
my $wfa_util = WFAUtil->new();
$wfa_util->sendLog('INFO', 'Connecting to cluster: ' . $Cluster);
my $server = $wfa_util->connect($Cluster);
How does this work for you?
2016-03-31 02:14 AM
sry for long delay.
Tried it, exactly the same problem:
11:12:03.032 INFO [test_connectivity] Connecting to cluster: netapp1
11:12:03.079 INFO [test_connectivity] Credentials successfully provided for 'netapp1'
11:12:04.188 INFO [test_connectivity] Trying to connect to netapp1 using HTTPS
11:12:12.220 INFO [test_connectivity] Trying to connect to netapp1 using HTTP
11:12:15.111 ERROR [test_connectivity] Failed executing command. Exception:
Unable to connect to array
--> Also installed a fresh WFA on a Win2012R2 Server, same result
--> Maybe some problem on securing the connection?
2016-03-31 02:43 AM
There is a known problem with Perl NMSDK. If host names are unable to be resolved by the DNS, this problem is seen.
I suggest you add the hostname netapp1 in your WFA's windows's hosts file.
Got to: C:\Windows\System32\drivers\etc and open the file hosts for editing using some text editor like Notepad++
Add a line like
<IP_Address_of_netapp1> <FQDN_of_netapp1> netapp1
Now back to WFA and try the same test command.