HPCCommunity.org
 
Register

Go Back   HPC Community - High Performance Computing (HPC) Community > Kusu > Kusu Kits

Kusu Kits Discuss Kusu Kits as such the Kusu scheduler (LAVA), cluster filesystems, compilers and tools, open source and commercial add-on applications here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 10th, 2008, 02:09 PM
Member
 
Join Date: September 16th, 2008
Location: Germany
Posts: 42
Default lava -- user is deleted

I am using a recent kusu release:
Code:
[root@master ~]# cat /etc/kusu-release
Kusu "Kramat" 0.10 (build 3520)
But I recognized that the lavaadmin user which was added by the lava kit gets deleted on reboot on my system.

I added a user myself to /etc/passwd with useradd and it got deleted too...

Did I somehow mess up my setup or is this a bug?

Does the cfm tool rewrite the passwd file? Nevertheless lava should no where to add lavaadmin
Reply With Quote
  #2 (permalink)  
Old October 13th, 2008, 05:31 AM
Project Moderator
 
Join Date: March 4th, 2008
Posts: 59
Blog Entries: 3
Default

Hi,

This may be a bug with cfm. Please help us file a bug[1] and we can look into this.

We have tested a normal useradd, followed by a reboot. The user account was not deleted.

-Liming
[1] System Dashboard - Open Source Grid Development Center
Reply With Quote
  #3 (permalink)  
Old October 13th, 2008, 07:16 AM
Member
 
Join Date: September 16th, 2008
Location: Germany
Posts: 42
Default

I do not understand yet how this is supposed to work. and my /etc/passwd get overwritten on every boot.

I have the following:
Code:
lrwxrwxrwx 1 root root 11 Oct  8 15:34 /etc/cfm/compute-centos-5-x86_64/etc/passwd -> /etc/passwd
lrwxrwxrwx 1 root root 11 Oct  8 15:34 /etc/cfm/compute-diskless-centos-5-x86_64/etc/passwd -> /etc/passwd
lrwxrwxrwx 1 root root 11 Oct  8 15:34 /etc/cfm/compute-imaged-centos-5-x86_64/etc/passwd -> /etc/passwd
lrwxrwxrwx 1 root root 11 Oct  8 15:34 /etc/cfm/installer-centos-5-x86_64/etc/passwd -> /etc/passwd
Code:
[root@master ~]# ls -l /etc/passwd
-rw-r--r-- 1 root root 1579 Oct 13 09:09 /etc/passwd
and the following:
Code:
[root@master ~]# ls -l /opt/kusu/cfm/*/etc/passwd
-rw-r--r-- 1 apache apache 910 Oct 13 09:10 /opt/kusu/cfm/1/etc/passwd
-rw-r--r-- 1 apache apache 910 Oct 13 09:10 /opt/kusu/cfm/2/etc/passwd
-rw-r--r-- 1 apache apache 910 Oct 13 09:10 /opt/kusu/cfm/3/etc/passwd
-rw-r--r-- 1 apache apache 910 Oct 13 09:10 /opt/kusu/cfm/4/etc/passwd
The content looks like BASE64 encoded, but I cannot decode it with base64 ...
Code:
[root@master ~]# cat /opt/kusu/cfm/4/etc/passwd
U2FsdGVkX1/3Kvn+5xq1y8BrWo88ZrLp0WmgBddAHvnP+n7OptEGGUFqPFD4xuNf
sSepJXm7EMaNNet38vRZ0PCeN+Dx056dnEK44/5Lzrie1dBCJvwQtR5BnbSBCnXT
4tQBBokrqApXODCLq3SFmgGjPFjb2FOXRLwkKb0JxhgV9KvZOXJnAEvg4muNfCkT
TLUszJP68sNsKVTylEOfI/GUmDWPJc0+AB50KKpLG0izj7z+NWmgleMbjpjea3Ph
NNwQePtVYV5s3CXEzwf7xXmBuPwkbtjveTI2TCf7QUTgZXdk6AaACZAECPgmqw0a
F63tq609HKpID8yU3gaog0rzBs2L0EZ3ALOZWK0aE27Y2OWZd2Sf2n8XtkzOSj5Z
V/aAhyHJtpqYdcVzflh4gV1sfQ8VRAUTj3ZvhjR5QJgjcVBwfnaoc68/+65RjexD
Yumok+zIvWZLLoEnsARm/mMgadDwP4qUC9Qmue2jGOrMznbMW7wXiBQLh48dUXQz
tvZSGlRCEvDsUnRftHGbrEA5U24sFlMG2TIQnwTO7yRjU2QeTrv8CNQ5nMf5fl9T
VHMKER/XjJ/o0qpbn/f+ZwITvd+u5m/20IGgMDSSmA6LCX239nHjixGOMf6OQlwW
rH/Akwms1zLbRVeXyv5cpO0qA6aJ5f8ElU3VY7dFc4FuT9y0r5eFdDVzh/frcGf4
COG8icb6N+4OED6bAGGR1XJunUD/VDyzOYhxOhlpXqxfKTYQtuJoEU/pDaj1+iTh
KmCMuNso3PZSX9TuYoPCVAbd0j8cXM+bEkfzn5bt273B3koleZEdnzYvqYJBxjjI
9urgd8ZTuoYGxfLrLon9DZMC+1qFyjJtuj/vf6eN6Q8q60T/eLyCGu5iDTUiI0iO
Sadly my system clock is a little flacky as my installer node currently is a virtual machine...
Reply With Quote
  #4 (permalink)  
Old October 13th, 2008, 08:04 AM
Member
 
Join Date: September 16th, 2008
Location: Germany
Posts: 42
Default

Quote:
Originally Posted by _fmms_ View Post
I do not understand yet how this is supposed to work. and my /etc/passwd get overwritten on every boot.

...
The content looks like BASE64 encoded, but I cannot decode it with base64 ...
Ok I found out that the content is openssl encoded and got it decoded.

My /etc/passwd is in fact overriden by /opt/kusu/cfm/*/etc/passwd, how does cfm decide what to overwrite?
Reply With Quote
  #5 (permalink)  
Old October 13th, 2008, 08:35 AM
Member
 
Join Date: September 16th, 2008
Location: Germany
Posts: 42
Default

I set DEBUG to 1 and got the following in /tmp/cfm.log:
Code:
ERROR:  Installers not specified
INFO:  Forcing update of all files.
Updating Files
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Updating file: /etc/fstab.append
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Combining: /opt/kusu/etc//etc/fstab.OS and /etc/fstab.append to /etc/fstab
Updating file: /etc/hosts.equiv
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Updating file: /etc/passwd
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Updating file: /etc/group
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Updating file: /etc/hosts
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Updating file: /etc/shadow
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Updating file: /etc/ssh/ssh_host_dsa_key
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Updating file: /etc/ssh/ssh_host_rsa_key
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Updating file: /etc/ssh/ssh_host_key.pub
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Updating file: /etc/ssh/ssh_config
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Updating file: /etc/ssh/ssh_host_dsa_key.pub
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Updating file: /etc/ssh/ssh_host_rsa_key.pub
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Updating file: /etc/ssh/ssh_host_key
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Running plugin: /opt/kusu/lib/plugins/cfmclient/S01mountall.sh
Running plugin: /opt/kusu/lib/plugins/cfmclient/S02KusuAutomount.sh
Running plugin: /opt/kusu/lib/plugins/cfmclient/lava-restart
Updating Packages
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Nothing to remove
Nothing to add
Running plugin: /opt/kusu/lib/plugins/cfmclient/S01mountall.sh
Running plugin: /opt/kusu/lib/plugins/cfmclient/S02KusuAutomount.sh
Running plugin: /opt/kusu/lib/plugins/cfmclient/lava-restart
Updating Files
++  Testing for: /opt/kusu/cfm/cfmfiles.lst
++  CFMBaseDir: /opt/kusu/cfm
++  NGID = 1
INFO:  Have local Access
Reply With Quote
  #6 (permalink)  
Old October 13th, 2008, 12:02 PM
Member
 
Join Date: September 16th, 2008
Location: Germany
Posts: 42
Default

ltsai: Do you have something more for me to try, or do you want me to open a bugreport now?

Maybe I am just using something wrong ...
Reply With Quote
  #7 (permalink)  
Old October 14th, 2008, 01:07 PM
Project Moderator
 
Join Date: March 4th, 2008
Posts: 59
Blog Entries: 3
Default

Please go ahead and file a bug.

Thanks,
Liming
Reply With Quote
  #8 (permalink)  
Old October 14th, 2008, 02:03 PM
Member
 
Join Date: September 16th, 2008
Location: Germany
Posts: 42
Default

I have been playing for several hours now with it. And just now it started to work. (without actually changing anything)

I will report back if it stop working...

Thanks and sorry for the noise
Reply With Quote
  #9 (permalink)  
Old October 15th, 2008, 01:23 PM
Project Moderator
 
Join Date: March 4th, 2008
Posts: 59
Blog Entries: 3
Default

Not a problem. Let us know if you run into further problems.
Reply With Quote
  #10 (permalink)  
Old October 15th, 2008, 02:40 PM
Member
 
Join Date: September 16th, 2008
Location: Germany
Posts: 42
Default

Sadly this appeared again, but a plain cfmsync -f does work fine and updates my files as expected. On reboot it breaks but this is due to the really bad clock of my vmware afaik.

I am still not sure what would have been the best for updating, see:
How to update the base kit to 1.0?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 12:42 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.