Subscribe

Automation Store: SLO Package - initial setup problem

I'm attempting to install and setup new SLO pack into a Windows-7, WFA-3.1-RC1 environment. Getting at error in the 'Service Catalog Initialization' workflow at step 'Install Adaptive Q0S Service' that it can't find a perl module called Daemon.pm. I did not see it in either of the locations is listed for @INC. Ran it twice (ie; resumed the workflow, no change) ... so I searched under \Perl64 for any such named file. I found same named file under \Perl64\lib\HTTP ... so for a "what the heck" try I made a copy of that file and placed into \Perl64\site\lib\Win32\Daemon.pm. Then resumed workflow. It got a little further on that attempt (see below) but hit error saying 'undefined subroutine: &win32:Smiley Very Happyaemon::CreateService.

 

Any ideas? Could this be related to Perl 32-bit vs 64-bit?  

 

 

Srv-Cat-Init.png

Re: Automation Store: SLO Package - initial setup problem

[ Edited ]

I'm having the same issue on Windows 2008 R2 with WFA 3.1RC1

 

<SNIP>

15:50:52.351 INFO  [KP Setup] File Path : C:/Program Files/NetApp/WFA/jboss/standalone/workflow-help/TabularWorkflow_c9b2e32f-f3f6-4e68-8422-25cce6d1b199/files\service_manager.pl
15:50:52.367 INFO  [KP Setup] Folder to copy : C:\Program Files\NetApp\WFA\jboss\standalone\tmp\wfa\..\..\..\..\bin\
15:50:52.429 INFO  [KP Setup] DesFile C:\Program Files\NetApp\WFA\jboss\standalone\tmp\wfa\..\..\..\..\bin\..\kitchen\config.txt
15:50:52.445 INFO  [KP Setup]  Script Path C:\Program Files\NetApp\WFA\jboss\standalone\tmp\wfa\..\..\..\..\bin\service_manager.pl
15:50:52.492 INFO  [KP Setup] Command completed, took 1155 milliseconds
15:50:52.538 INFO  [Service Manager] ### Command 'Service Manager' in 'PERL' ###
15:50:52.991 ERROR  [Service Manager] Command failed for Workflow 'Service Catalog Initialization' with error : Can't locate Win32/Daemon.pm in @INC (@INC contains: C:/Program Files/NetApp/WFA/Perl64/site/lib C:/Program Files/NetApp/WFA/Perl64/lib .) at ./Service_Manager1210305629241246163.pl line 4.
BEGIN failed--compilation aborted at ./Service_Manager1210305629241246163.pl line 4.

15:50:52.991 INFO  [Service Manager] ***** Workflow Execution Failed *****

 

Any help is appreciated!...  Trying to demo QoS features for enterprise customer.  Would love to show SLO to them in this discussion

Re: Automation Store: SLO Package - initial setup problem

  • Looks like Prerequisites are not met , following Perl modules  must be installed  before running SLO workflows, and steps are document in help doc
    • DB_File
    • Win32:Smiley Very Happyaemon
    • Log::Log4perl

Re: Automation Store: SLO Package - initial setup problem

I was about to say "what help file doc", but OKay, you got me. I think I've found what you're referring to in the help-text associated with each workflow. I've been using WFA for 2 years and I never got into a habit of looking at the (i) help text for an individual workflow to find an overall description and install notes of an entire package of workflows. We should consider bubbling this up to a more visable place a PDF file named something like "readme" or "install/usage notes". 

Re: Automation Store: SLO Package - initial setup problem

[ Edited ]

This package availability validation should be done by the command using it. And throw a graceful error to let the user know what is wrong and what needs to be done.

 

sinhaa

 

 

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

Re: Automation Store: SLO Package - initial setup problem

Can anyone provide 'beginners' instructions for loading these three modules. I've tried both ppm and cpan without specific 'install perl module' instructions and failed. Below is my cpan attempt. Probably something to do with 'can't find perl 5' error message but out of ideas here. 

 

This is a Win2008R2 server running WFA 3.0P1

 

=====

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Administrator>cd "c:\Program Files\NetApp\WFA\Perl64"\bin

c:\Program Files\NetApp\WFA\Perl64\bin>cpan install DB_File
CPAN: Storable loaded ok (v2.45)
Reading 'C:\Program Files\NetApp\WFA\Perl64\cpan\Metadata'
Database was generated on Mon, 24 Aug 2015 05:53:21 GMT
Running install for module 'DB_File'
Running make for P/PM/PMQS/DB_File-1.835.tar.gz
CPAN: Digest::SHA loaded ok (v5.95)
CPAN: Compress::Zlib loaded ok (v2.064)
Checksum for C:\Program Files\NetApp\WFA\Perl64\cpan\sources\authors\id\P\PM\PMQS\DB_File-1.835.tar.gz ok
CPAN: Archive::Tar loaded ok (v2.00)
DB_File-1.835/
DB_File-1.835/MANIFEST
DB_File-1.835/DB_File.pm
DB_File-1.835/README
DB_File-1.835/ppport.h
DB_File-1.835/Changes
DB_File-1.835/config.in
DB_File-1.835/hints/
DB_File-1.835/hints/sco.pl
DB_File-1.835/hints/dynixptx.pl
DB_File-1.835/version.c
DB_File-1.835/Makefile.PL
DB_File-1.835/DB_File_BS
DB_File-1.835/patches/
DB_File-1.835/patches/5.004_04
DB_File-1.835/patches/5.004_01
DB_File-1.835/patches/5.005
DB_File-1.835/patches/5.004_05
DB_File-1.835/patches/5.004
DB_File-1.835/patches/5.004_03
DB_File-1.835/patches/5.6.0
DB_File-1.835/patches/5.005_02
DB_File-1.835/patches/5.004_02
DB_File-1.835/patches/5.005_01
DB_File-1.835/patches/5.005_03
DB_File-1.835/typemap
DB_File-1.835/t/
DB_File-1.835/t/pod.t
DB_File-1.835/t/db-btree.t
DB_File-1.835/t/db-recno.t
DB_File-1.835/t/db-hash.t
DB_File-1.835/dbinfo
DB_File-1.835/fallback.h
DB_File-1.835/META.json
DB_File-1.835/META.yml
DB_File-1.835/DB_File.xs
DB_File-1.835/fallback.xs
CPAN: File::Temp loaded ok (v0.2304)
CPAN: Parse::CPAN::Meta loaded ok (v1.4414)
CPAN: CPAN::Meta loaded ok (v2.132830)
CPAN: Module::CoreList loaded ok (v5.20141120)

CPAN.pm: Building P/PM/PMQS/DB_File-1.835.tar.gz

Parsing config.in...
Looks Good.
Checking if your kit is complete...
Looks good
Unable to find a perl 5 (by these names: C:\Program Files\NetApp\WFA\Perl64\bin\perl.exe perl5.16.3.exe perl5.exe perl.exe miniperl.
exe, in these dirs: . C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0\ C:\Program
Files\Java\jre6\bin C:\Program Files\NetApp\7-Mode Transition Tool\bin C:\Program Files\Java\jre7\bin C:\Windows\System32\WindowsPo
werShell\v1.0\ C:\Program Files\NetApp\WFA\Perl64\bin)
Warning (mostly harmless): No library found for -llibdb
Warning (mostly harmless): No library found for oldnames.lib
Warning (mostly harmless): No library found for kernel32.lib
Warning (mostly harmless): No library found for user32.lib
Warning (mostly harmless): No library found for gdi32.lib
Warning (mostly harmless): No library found for winspool.lib
Warning (mostly harmless): No library found for comdlg32.lib
Warning (mostly harmless): No library found for advapi32.lib
Warning (mostly harmless): No library found for shell32.lib
Warning (mostly harmless): No library found for ole32.lib
Warning (mostly harmless): No library found for oleaut32.lib
Warning (mostly harmless): No library found for netapi32.lib
Warning (mostly harmless): No library found for uuid.lib
Warning (mostly harmless): No library found for ws2_32.lib
Warning (mostly harmless): No library found for mpr.lib
Warning (mostly harmless): No library found for winmm.lib
Warning (mostly harmless): No library found for version.lib
Warning (mostly harmless): No library found for odbc32.lib
Warning (mostly harmless): No library found for odbccp32.lib
Warning (mostly harmless): No library found for comctl32.lib
Warning (mostly harmless): No library found for bufferoverflowU.lib
Warning (mostly harmless): No library found for msvcrt.lib
Generating a nmake-style Makefile
Writing Makefile for DB_File
Writing MYMETA.yml and MYMETA.json
'nmake' is not recognized as an internal or external command,
operable program or batch file.
PMQS/DB_File-1.835.tar.gz
nmake -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible

c:\Program Files\NetApp\WFA\Perl64\bin>PERLLIB5
'PERLLIB5' is not recognized as an internal or external command,
operable program or batch file.

c:\Program Files\NetApp\WFA\Perl64\bin>
c:\Program Files\NetApp\WFA\Perl64\bin>
c:\Program Files\NetApp\WFA\Perl64\bin>
c:\Program Files\NetApp\WFA\Perl64\bin>
c:\Program Files\NetApp\WFA\Perl64\bin>
c:\Program Files\NetApp\WFA\Perl64\bin>
c:\Program Files\NetApp\WFA\Perl64\bin>
c:\Program Files\NetApp\WFA\Perl64\bin>cd ..

c:\Program Files\NetApp\WFA\Perl64>cd ..

c:\Program Files\NetApp\WFA>cd perl

c:\Program Files\NetApp\WFA\perl>cd bin
The system cannot find the path specified.

c:\Program Files\NetApp\WFA\perl>dir
Volume in drive C has no label.
Volume Serial Number is 141D-6BDA

Directory of c:\Program Files\NetApp\WFA\perl

08/05/2015 02:12 PM <DIR> .
08/05/2015 02:12 PM <DIR> ..
08/05/2015 02:12 PM <DIR> nmsdk
04/22/2015 11:11 AM 8,090 WFAUtil.html
04/22/2015 11:11 AM 23,694 WFAUtil.pm
04/22/2015 11:11 AM 226 WFAWrapper.pl
3 File(s) 32,010 bytes
3 Dir(s) 20,053,651,456 bytes free

c:\Program Files\NetApp\WFA\perl>

Re: Automation Store: SLO Package - initial setup problem

Hello,

 

You mentioned you used ppm, but I don't see it in the CLI output below.  Can you post any errors you encountered?

 

The process for installing modules using ppm is in the WFA documentation.  I also created a post here

 

Andrew

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

Re: Automation Store: SLO Package - initial setup problem

Thank. This looks better. 

 

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Administrator>cd c:\program Files\NetApp\WFA\Perl64\bin

c:\Program Files\NetApp\WFA\Perl64\bin>ppm repo list
┌────┬──────┬──────┐
│ id │ pkgs │ name │
└────┴──────┴──────┘
(no enabled repositories)

c:\Program Files\NetApp\WFA\Perl64\bin>ppm repo add activestate
Downloading ActiveState Package Repository packlist...done
Updating ActiveState Package Repository database...done
Repo 1 added.

c:\Program Files\NetApp\WFA\Perl64\bin>ppm repo list
┌────┬───────┬────────────────────────────────┐
│ id │ pkgs  │ name │
├────┼───────┼────────────────────────────────┤
│ 1  │ 20732 │ ActiveState Package Repository │
└────┴───────┴────────────────────────────────┘
(1 enabled repository)

c:\Program Files\NetApp\WFA\Perl64\bin>ppm install DB_File
No missing packages to install

c:\Program Files\NetApp\WFA\Perl64\bin>ppm install Win32:Smiley Very Happyaemon
Downloading Win32-Daemon-20110117...done
Unpacking Win32-Daemon-20110117...done
Generating HTML for Win32-Daemon-20110117...done
Updating files in site area...done
6 files installed

c:\Program Files\NetApp\WFA\Perl64\bin>ppm install Log::Log4perl
Downloading Log-Log4perl-1.46...done
Unpacking Log-Log4perl-1.46...done
Generating HTML for Log-Log4perl-1.46...done
Updating files in site area...done
105 files installed

c:\Program Files\NetApp\WFA\Perl64\bin>

c:\Program Files\NetApp\WFA\Perl64\bin>ppm area sync

Syncing site PPM database with .packlists...done

Syncing perl PPM database with .packlists...done

 

c:\Program Files\NetApp\WFA\Perl64\bin>

Re: Automation Store: SLO Package - initial setup problem

Same sequence of steps on another, different, WFA system (Win7 with WFA3.1RC1). 

 

Any ideas on why DF_File fails to install on this syetm?

 

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

H:\>cd "c:\Program Files\NetApp\WFA\Perl64"\bin"

c:\Program Files\NetApp\WFA\Perl64\bin>ppm repo list
┌────┬──────┬──────┐
│ id │ pkgs │ name │
└────┴──────┴──────┘
(no enabled repositories)

c:\Program Files\NetApp\WFA\Perl64\bin>ppm repo add activestate
Downloading ActiveState Package Repository packlist...done
Updating ActiveState Package Repository database...done
Repo 1 added.

c:\Program Files\NetApp\WFA\Perl64\bin>ppm repo list
┌────┬───────┬────────────────────────────────┐
│ id │ pkgs │ name │
├────┼───────┼────────────────────────────────┤
│ 1 │ 20732 │ ActiveState Package Repository │
└────┴───────┴────────────────────────────────┘
(1 enabled repository)

c:\Program Files\NetApp\WFA\Perl64\bin>ppm install DB_File
Syncing site PPM database with .packlists...done
Syncing perl PPM database with .packlists...done
ppm install failed: Can't find any package that provides DB_File

c:\Program Files\NetApp\WFA\Perl64\bin>ppm install Win32:Smiley Very Happyaemon
Downloading Win32-Daemon-20110117...done
Unpacking Win32-Daemon-20110117...done
Generating HTML for Win32-Daemon-20110117...done
Updating files in site area...done
6 files installed

c:\Program Files\NetApp\WFA\Perl64\bin>ppm install Log::Log4perl
Downloading Log-Log4perl-1.46...done
Unpacking Log-Log4perl-1.46...done
Generating HTML for Log-Log4perl-1.46...done
Updating files in site area...done
105 files installed

c:\Program Files\NetApp\WFA\Perl64\bin>ppm install DB_File
ppm install failed: Can't find any package that provides DB_File

c:\Program Files\NetApp\WFA\Perl64\bin>ppm list
┌──────────────┬──────────┬───────┬─────────┬──────┐
│ name │ version │ files │ size │ area │
├──────────────┼──────────┼───────┼─────────┼──────┤
│ Log-Log4perl │ 1.46 │ 106 │ 1378 KB │ site │
│ Win32-Daemon │ 20110117 │ 7 │ 159 KB │ site │
└──────────────┴──────────┴───────┴─────────┴──────┘
(2 packages installed)

c:\Program Files\NetApp\WFA\Perl64\bin>ppm area sync
ppm area failed: Uninitialized install area Perl64

c:\Program Files\NetApp\WFA\Perl64\bin>ppm repo list
┌────┬───────┬────────────────────────────────┐
│ id │ pkgs │ name │
├────┼───────┼────────────────────────────────┤
│ 1 │ 20732 │ ActiveState Package Repository │
└────┴───────┴────────────────────────────────┘
(1 enabled repository)

c:\Program Files\NetApp\WFA\Perl64\bin>

Re: Automation Store: SLO Package - initial setup problem

Looking at this page, it appears that the current version of DB_File doesn't work with Windows Perl.  You may be able to download an older version (not sure where to find it though), and use the syntax to do a local install:

 

ppm install --location=. package_name

 

Andrew

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