Modify

Opened 10 years ago

Last modified 5 years ago

#15 accepted task

Postinstall scripts sorting goes wrong

Reported by: jeroenn Owned by: bas
Priority: minor Milestone: SALI 1.7.0
Component: sali Version: 1.3.0
Keywords: Cc:

Description

During postinstall the scripts are not run in the right order.

Postinstall should run these scripts in order:

01all.test1
02node.test1
03all.test2
88all.test3

But runs in this order:

01all.test1
03all.test2
88all.test3
02node.test1

Attachments (0)

Change History (10)

comment:1 Changed 10 years ago by bas

  • Cc jeroen.nijhof@sara.nl added
  • Owner changed from somebody to bas
  • Priority changed from major to minor
  • Status changed from new to accepted
  • Type changed from defect to task

See README Systemimager. We did not changes anything. Maybe we have to change it.

- Scripts should be named in this way:
  
  Two digit number to indicate order within a class.
  | Class name.
  | |  Period, followed by your description of the script.
  | |  |
  | |  |
  v v  v
  99all.harmless_example_script

  Classes include: 
  - $IMAGENAME      (Ie: my_compute_image)
  - $BASE_HOSTNAME  (Ie: compute)
  - $HOSTNAME       (Ie: compute07)
  - all
  - $OVERRIDE
  
  Scripts are ordered and executed first by class, then by number within 
  a class.  If you have multiple $OVERRIDE directories, they will be 
  executed in the order specified in your auto-install script.


# /* vi: set et ts=2 tw=72: */

comment:2 Changed 9 years ago by dennis

  • Milestone set to SALI 1.5.0

comment:3 Changed 9 years ago by dennis

  • Cc jeroen.nijhof@sara.nl removed
  • Milestone changed from SALI 1.4.6 to SALI 1.5.0

comment:4 Changed 9 years ago by dennis

Moved this ticket to version 1.5.0 instead of 1.4.6, because this changes the behavior of the function.

comment:5 Changed 9 years ago by bas

  • Milestone SALI 1.5.0 deleted

comment:6 Changed 8 years ago by bas

a test if ticket update will be sent to dev mailing list

comment:7 Changed 8 years ago by dennis

  • Milestone set to SALI 1.6.0

comment:8 Changed 7 years ago by dennis

  • Milestone changed from SALI 1.6.0 to SALI 2.0.0

comment:9 Changed 7 years ago by robert.verkerk@surfsara.nl

Dit is niet fijn. Hij voert eerst de all scripts uit en daarna b.v. de irods scripts. Daar word ik geen happy camper van?. De directory is:

[asm1]:/data/sali/scripts/base
root$ ls -l post-install/
total 84
drwxr-xr-x 6 root root 4096 Apr 11  2012 .svn
-rw-r--r-- 1 root root  429 Jun 17  2011 00all.wdj_mounted
-rw-r--r-- 1 root root 1602 Nov 11 14:18 01all.config_network_cards
-rw-r--r-- 1 root root 1367 Nov 11 14:19 01all.persistent_net
-rw-r--r-- 1 root root  713 Nov 11 14:20 02all.hostname
-rw-r--r-- 1 root root  239 Nov 11 14:22 02irods.hostname
-rw-r--r-- 1 root root  597 Nov 11 14:24 02irods.interfaces
-rw-r--r-- 1 root root 3237 Nov 11 14:21 03all.bootloader
-rw-r--r-- 1 root root  502 Nov  8 11:33 03irods.bootloader
-rw-r--r-- 1 root root 2688 Nov 11 14:25 03irods.sshd_config
-rw-r--r-- 1 root root  182 Jun 17  2011 04all.synctool
-rw-r--r-- 1 root root  389 Nov 11 14:25 04irods.cleanup
-rw-r--r-- 1 root root  439 Nov 11 14:21 05all.update_hosts_allow
-rw-r--r-- 1 root root  517 Nov 11 14:16 06all.update_firewall_rules
-rw-r--r-- 1 root root  581 Nov 11 14:16 07all.update_resolv.conf
-rw-r--r-- 1 root root 2038 Aug 11  2011 08all.config_dmf_server
-rw-r--r-- 1 root root   95 Nov  7 14:58 08all.rpm_rebuilddb
-rw-r--r-- 1 root root 2520 May 31  2010 95all.monitord_rebooted
-rw-r--r-- 1 root root  434 Apr  6  2010 98all.pxeconfig
-rw-r--r-- 1 root root  241 Dec 11  2007 99all.harmless_example_script
-rw-r--r-- 1 root root 2346 Dec 11  2007 README

de output hiervan is:

TD WdJ:                                                                                                                                                                                               
/dev/mapper/vg_irods1-lv_root on / type ext4 (rw)                                                                                                                                                     
proc on /proc type proc (rw)                                                                                                                                                                          
sysfs on /sys type sysfs (rw)                                                                                                                                                                         
devpts on /dev/pts type devpts (rw,gid=5,mode=620)                                                                                                                                                    
tmpfs on /dev/shm type tmpfs (rw)                                                                                                                                                                     
/dev/sda4 on /boot type ext4 (rw)                                                                                                                                                                     
/dev/mapper/vg_irods1-lv_home on /home type ext4 (rw)                                                                                                                                                 
/dev/mapper/vg_irods-lv_cache on /eudatCache type xfs (rw)                                                                                                                                            
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)                                                                                                                                                
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)                                                                                                                                                
wasp1.grid.sara.nl:/pnfs on /pnfs type nfs (rw,nfsvers=4,minorversion=1,addr=145.100.32.93,clientaddr=145.100.2.202)                                                                                  

TD /a is NO LONGER available in post-install phase                                                                                                                                                    
TD /a is NO LONGER available in post-install phase                                                                                                                                                    

---------------------------                                                                                                                                                                           


creating config eth0                                                                                                                                                                                  
TD The release is centos, exit                                                                                                                                                                        
creating persistent udev devices                                                                                                                                                                      
TD The release is centos, exit                                                                                                                                                                        
creating /etc/HOSTNAME & /etc/hosts                                                                                                                                                                   
TD The release is centos, exit                                                                                                                                                                        
updating initrd and bootloader                                                                                                                                                                        
TD The release is centos, exit                                                                                                                                                                        
syncing synctool tree                                                                                                                                                                                 
nc: bad address 'asm1'                                                                                                                                                                                
Updating hosts.allow                                                                                                                                                                                  
TD The release is centos, exit                                                                                                                                                                        
Updating firewall.rules                                                                                                                                                                               
TD The release is centos, exit                                                                                                                                                                        
Updating resolv.conf                                                                                                                                                                                  
TD The release is centos, exit                                                                                                                                                                        
No tm node. Not generating a dmf config file                                                                                                                                                          
Trying 192.168.19.33...                                                                                                                                                                               
Connected to 192.168.19.33.                                                                                                                                                                           
Escape character is '^]'.                                                                                                                                                                             
Starting firewater hostbased firewall ...
ip = 192.168.19.62
/usr/sara/sbin/pxefirewall-post-install.sh 192.168.19.62
/srv/tftpboot/pxelinux.cfg/C0A8133E
file = /srv/tftpboot/pxelinux.cfg/C0A8133E
Connection closed by foreign host.

I live in /var/lib/systemimager/scripts/post-install.
See: /var/lib/systemimager/scripts/post-install/README for details.

creating network config: /etc/sysconfig/network
creating network configs
setting up grub: running grub..
Using Legacy GRUB install method!
Probing devices to guess BIOS drives. This may take a long time.


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename.]
grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... yes
 Checking if "/grub/stage2" exists... yes
 Checking if "/grub/e2fs_stage1_5" exists... yes
 Running "embed /grub/e2fs_stage1_5 (hd0)"...  27 sectors are embedded.
succeeded
 Running "install /grub/stage1 (hd0) (hd0)1+27 p (hd0,0)/grub/stage2 /grub/grub.conf"... succeeded
Done.
grub> setting up grub: done.
creating sshd config: /etc/ssh/sshd_config
cleaning up /var directories done!
cat: can't open '/tmp/mounts.*': No such file or directory

comment:10 Changed 5 years ago by dennis

  • Milestone changed from SALI 2.0.0 to SALI 1.7.0

Milestone renamed

Add Comment

Modify Ticket

Change Properties
Action
as accepted The owner will remain bas.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from bas to the specified user. Next status will be 'assigned'.
The owner will be changed from bas to anonymous. Next status will be 'accepted'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.