Skip to content
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

WN software/components/symlink/links is undefined #24

Closed
almumontiel opened this issue Mar 17, 2014 · 12 comments
Closed

WN software/components/symlink/links is undefined #24

almumontiel opened this issue Mar 17, 2014 · 12 comments

Comments

@almumontiel
Copy link

I get this error while compiling a basic grid/wn machine type.

[panc] element at /software/components/symlink/links is undefined

I understand this might be assigned to some variable that is empty at the moment, therefore the list of links is empty.

Could you help me solving this?
Cheers

@jouvin
Copy link
Contributor

jouvin commented Mar 24, 2014

@almumontiel you may want to reopen this issue against configuration-modules-core repository as it is in fact a flaw in ncm-symlinks that should allow to include the componenent without adding any configuration (doing nothing).

Cheers,

Michel

@almumontiel
Copy link
Author

thanks.
I just moved it there. Im closing this one then.

@jouvin
Copy link
Contributor

jouvin commented Mar 25, 2014

My fault! After a more careful look, the problem is in the template library. This happens in particular if you enable NFS on WNs but you don't have WN_SHARED_AREAS correctly defined. Clearly the compilation should work or an explicit error be triggered.

I reopen the issue!

Michel

@jouvin
Copy link
Contributor

jouvin commented Mar 25, 2014

#29 should fix it. Please, could you remove your workaround for the error to reoccur, then update your umd-3 templates (only feature/nfs/client/autofs.pan has been changed) and confirm that the error disappear with the upgraded template.

Note that you may still want to review your local configuration to understand why NFS client is configured without shared areas defined. This may happen if you have NFS_CLIENT_ENABLED explicitly defined in your local configuration. Normally you should let it undefined so that the standard templates do what is appropriate. To check if it is defined, you can use the usual find command to identify the templates that may define this variable:

find cfg/clusters cfg/sites -name \*.pan -exec egrep -l 'variable.*NFS_CLIENT_ENABLED' {} \;

Then either remove -l or look at the templates.

Michel

@almumontiel
Copy link
Author

Thank you very much for your quick answer.
I have downloaded the last version of grid/umd-3.
I have removed my workaround.
I have checked that I have WN_SHARED_AREAS defined. Indeed with my workaround, I could see those properly mounted.
I have looked for that variable: NFS_CLIENT_ENABLED, but it is not set, it does not appear.

After this, I compile and i still get the error of the symlink list not defined.
Then I define NFS_CLIENT_ENABLED=undef; but still, I get the same error.

cheers,

@jouvin
Copy link
Contributor

jouvin commented Mar 25, 2014

Hi,

Please could you touch one profile exhibiting the problem and execute:

external/ant/bin/ant -Dpan.debug.include=feature/nfs/init

Then after touching again the profile

external/ant/bin/ant -Dpan.debug.include=feature/nfs/client/autofs

If possible ensure that only one profile is recompiled to make the output more readable. And post the output.

Michel

@lpsc
Copy link

lpsc commented Mar 25, 2014

Dear Michel,

following the instructions you gave at:
#24.

1.

we just retrieved from github the file feature/nfs/client/autofs.pan into our local installation.

Executing a "ant" gives us the same symlink error.

We also made sure we do not have any NFS_CLIENT_ENABLED defined with the command:

find cfg/clusters cfg/sites -name *.pan -exec egrep -l 'variable.*NFS_CLIENT_ENABLED' {} \;

2.

In a second step, we executed the "and" commands you point out in the issue. Here is the output:

[root@lpsc0033x scdb]# touch /var/scdb/cfg/clusters/cluster-lpsc-emi-3/profiles/lpsc-wn97.in2p3.fr.pan
[root@lpsc0033x scdb]# external/ant/bin/ant -Dpan.debug.include=feature/nfs/init
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/lib/tools.jar
Buildfile: build.xml

init:

define.tasks:

check.syntax:
     [panc] 1/1 object template(s) being processed
     [panc] 1 templates
     [panc] 1/1 compiled, 0/0 annotations, 0/0 xml, 0/0 dependency
     [panc] 0 errors, 67 ms, 32 MB/1,751 MB heap, 9 MB/214 MB nonheap
     [panc] 

compile.profiles:

compile.cluster.groups:
     [echo] Compiling profiles for default group

compile.cluster.profiles:
     [echo] Cluster: cluster-lpsc-emi-1 in /var/scdb/cfg/clusters
     [panc] 0/0 object template(s) being processed

compile.cluster.profiles:
     [echo] Cluster: cluster-lpsc-emi-2 in /var/scdb/cfg/clusters
     [panc] 386/386 object template(s) being processed
     [panc] 386 templates
     [panc] 386/386 compiled, 0/0 annotations, 772/772 xml, 0/0 dependency
     [panc] 0 errors, 198,868 ms, 1,210 MB/1,751 MB heap, 14 MB/214 MB nonheap
     [panc] 

compile.cluster.profiles:
     [echo] Cluster: cluster-lpsc-emi-3 in /var/scdb/cfg/clusters
     [panc] 1/1 object template(s) being processed
     [panc] validation error [/var/scdb/cfg/clusters/cluster-lpsc-emi-3/profiles/lpsc-wn97.in2p3.fr.pan]
     [panc] element at /software/components/symlink/links is undefined
     [panc] 
     [panc] 
     [panc] 1 templates
     [panc] 1/1 compiled, 0/0 annotations, 0/2 xml, 0/0 dependency
     [panc] 1 errors, 1,505 ms, 1,195 MB/1,751 MB heap, 14 MB/214 MB nonheap
     [panc] 

BUILD FAILED
/var/scdb/quattor.build.xml:254: The following error occurred while executing this line:
/var/scdb/quattor.build.xml:293: The following error occurred while executing this line:
/var/scdb/quattor.build.xml:340: Compilation failed; see messages.

Total time: 3 minutes 44 seconds
[root@lpsc0033x scdb]# touch /var/scdb/cfg/clusters/cluster-lpsc-emi-3/profiles/lpsc-wn97.in2p3.fr.pan
[root@lpsc0033x scdb]# external/ant/bin/ant -Dpan.debug.include=feature/nfs/client/autofs
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/lib/tools.jar
Buildfile: build.xml

init:

define.tasks:

check.syntax:
     [panc] 1/1 object template(s) being processed
     [panc] 1 templates
     [panc] 1/1 compiled, 0/0 annotations, 0/0 xml, 0/0 dependency
     [panc] 0 errors, 172 ms, 32 MB/1,751 MB heap, 9 MB/214 MB nonheap
     [panc] 

compile.profiles:

compile.cluster.groups:
     [echo] Compiling profiles for default group

compile.cluster.profiles:
     [echo] Cluster: cluster-lpsc-emi-1 in /var/scdb/cfg/clusters
     [panc] 0/0 object template(s) being processed

compile.cluster.profiles:
     [echo] Cluster: cluster-lpsc-emi-2 in /var/scdb/cfg/clusters
     [panc] 386/386 object template(s) being processed
     [panc] 386 templates
     [panc] 386/386 compiled, 0/0 annotations, 772/772 xml, 0/0 dependency
     [panc] 0 errors, 195,977 ms, 1,167 MB/1,751 MB heap, 14 MB/214 MB nonheap
     [panc] 

compile.cluster.profiles:
     [echo] Cluster: cluster-lpsc-emi-3 in /var/scdb/cfg/clusters
     [panc] 1/1 object template(s) being processed
     [panc] validation error [/var/scdb/cfg/clusters/cluster-lpsc-emi-3/profiles/lpsc-wn97.in2p3.fr.pan]
     [panc] element at /software/components/symlink/links is undefined
     [panc] 
     [panc] 
     [panc] 1 templates
     [panc] 1/1 compiled, 0/0 annotations, 0/2 xml, 0/0 dependency
     [panc] 1 errors, 1,733 ms, 1,062 MB/1,751 MB heap, 14 MB/214 MB nonheap
     [panc] 

BUILD FAILED
/var/scdb/quattor.build.xml:254: The following error occurred while executing this line:
/var/scdb/quattor.build.xml:293: The following error occurred while executing this line:
/var/scdb/quattor.build.xml:340: Compilation failed; see messages.

Total time: 3 minutes 43 seconds

3.

we will now try the workaround proposed by Almudena.
We will tell you what it gives.

Cheers,
Catherine

@lpsc
Copy link

lpsc commented Mar 25, 2014

After trying the work-around Almudena gave us, it compiles fine !
Here is below the template of our WN, we added a single line:

"/software/components/symlink/links"=list();

Thanks !
Catherine

############################################################
#
#
#     object template lpsc-wn97.in2p3.fr
#
############################################################

object template lpsc-wn97.in2p3.fr;
variable CLUSTER_INFO_TEMPLATE = 'site/cluster_info';
#
variable OS_FLAVOUR_ENABLED ?= true;
variable AII_V2_INSTALL ?= true;
variable YUM_SNAPSHOT_DATE ?= '20140316';
variable AII_OSINSTALL_ROOT = '/yum/snapshots/'+YUM_SNAPSHOT_DATE;
variable NODE_OS_VERSION_DEFAULT = "sl640-x86_64";
#
"/software/components/symlink/links"=list();
#
include {'machine-types/grid/wn'};
# software repositories (should be last)
#
include { PKG_REPOSITORY_CONFIG };

@jouvin
Copy link
Contributor

jouvin commented Mar 27, 2014

This is unfortunate that your pan compiler does not seem to work in debug mode (no output). I'll try to follow-up by email.

Michel

@jouvin
Copy link
Contributor

jouvin commented Sep 5, 2014

Fixed a while ago... (#47)

@jrha jrha removed this from the 14.12 milestone Sep 5, 2014
@jrha
Copy link
Member

jrha commented Sep 5, 2014

So closed then...

@jrha jrha closed this as completed Sep 5, 2014
@jouvin
Copy link
Contributor

jouvin commented Sep 5, 2014

Sorry, I clicked the wrong button!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants