+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 12

Thread: lava -- user is deleted

  1. #1
    _fmms_ is offline Member
    Join Date
    September 16th, 2008
    Location
    Germany
    Posts
    42
    Downloads
    7
    Uploads
    0

    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

  2. #2
    ltsai is offline Project Moderator
    Join Date
    March 4th, 2008
    Posts
    61
    Blog Entries
    3
    Downloads
    3
    Uploads
    0

    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

  3. #3
    _fmms_ is offline Member
    Join Date
    September 16th, 2008
    Location
    Germany
    Posts
    42
    Downloads
    7
    Uploads
    0

    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...

  4. #4
    _fmms_ is offline Member
    Join Date
    September 16th, 2008
    Location
    Germany
    Posts
    42
    Downloads
    7
    Uploads
    0

    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?

  5. #5
    _fmms_ is offline Member
    Join Date
    September 16th, 2008
    Location
    Germany
    Posts
    42
    Downloads
    7
    Uploads
    0

    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
    

  6. #6
    _fmms_ is offline Member
    Join Date
    September 16th, 2008
    Location
    Germany
    Posts
    42
    Downloads
    7
    Uploads
    0

    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 ...

  7. #7
    ltsai is offline Project Moderator
    Join Date
    March 4th, 2008
    Posts
    61
    Blog Entries
    3
    Downloads
    3
    Uploads
    0

    Default

    Please go ahead and file a bug.

    Thanks,
    Liming

  8. #8
    _fmms_ is offline Member
    Join Date
    September 16th, 2008
    Location
    Germany
    Posts
    42
    Downloads
    7
    Uploads
    0

    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

  9. #9
    ltsai is offline Project Moderator
    Join Date
    March 4th, 2008
    Posts
    61
    Blog Entries
    3
    Downloads
    3
    Uploads
    0

    Default

    Not a problem. Let us know if you run into further problems.

  10. #10
    _fmms_ is offline Member
    Join Date
    September 16th, 2008
    Location
    Germany
    Posts
    42
    Downloads
    7
    Uploads
    0

    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 to Thread
Page 1 of 2
1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts