Subscribe
Accepted Solution

WFA cannot connect to array on perl command

Hello,

 

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 3.1.0.0.1P1 Build 3511759

Server is Win2012 R2 freshly installed.

 

Hope somebody can help me here?

 

Regards,

Thorsten

Re: WFA cannot connect to array on perl command

To which version of ONTAP you are trying to connect?

 

Regards

Abhi

Re: WFA cannot connect to array on perl command

Hello,

 

it's 8.3.1P1 (cDot)

 

Thanks for your help,

Thorsten

Re: WFA cannot connect to array on perl command

Thorsten,

 

Kindly post the exact error that you are getting.

 

That could help in debugging.

 

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: WFA cannot connect to array on perl command

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?

Re: WFA cannot connect to array on perl command

'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 ?

 

Re: WFA cannot connect to array on perl command

Hello,

 

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.

Re: WFA cannot connect to array on perl command

[ Edited ]

Test-Connectivity uses powershell to verify connectivity. So this result was expected. To debug perl, can you do the following. 

  1.  Add a new command in language = perl and have this code. Just test it, it needs no inputs etc.

====

#Begin Code

 

use Getopt::Long;
use NaServer;
use WFAUtil;

 

my $Cluster="netapp1";

my $wfa_util = WFAUtil->new();


$wfa_util->sendLog('INFO', 'Connecting to cluster: ' . $Cluster);

my $server = $wfa_util->connect($Cluster);

 

#End Code

 

How does this work for you?

 

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: WFA cannot connect to array on perl command

Hey,

 

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?

Re: WFA cannot connect to array on perl command

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

 

Save it

 

 

Now back to WFA and try the same test command.

 

sinhaa

 

 

 

 

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.