Seagate / halon

High availability solution
Apache License 2.0
1 stars 0 forks source link

Use new `h0` script in system tests #1507

Closed 1468ca0b-2a64-4fb4-8e52-ea5806644b4c closed 5 years ago

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: chumakd

Do you have any idea what process could have been using /var/mero/? (‘run-st’ passes on my machine...)

have no idea, I've restarted the test once again

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

h0 run-st failed on Jenkins:

----- run_st -----
<< t_sns-rep-reb >>
++ export 'PS4=+ [${FUNCNAME[0]:+${FUNCNAME[0]}:}${LINENO}] '
++ PS4='+ [${FUNCNAME[0]:+${FUNCNAME[0]}:}${LINENO}] '
++ [10] H0=/root/build/halon/scripts/h0
+ [4] M0_CLUSTER=
+ [5] SERIAL=STOBAD002
+ [6] DRIVE_SELECT_OPTS='--slot-enclosure ENC#0 --serial STOBAD002 --slot-index 2'
+ [8] /root/build/halon/scripts/h0 init
----- init -----
‘/etc/sysconfig/mero’ -> ‘/root/build/mero/scripts/install/etc/sysconfig/mero’
‘/usr/lib/systemd/system/mero-trace@.service’ -> ‘/root/build/mero/scripts/install/usr/lib/systemd/system/mero-trace@.service’
‘/usr/lib/systemd/system/mero-kernel.service’ -> ‘/root/build/mero/scripts/install/usr/lib/systemd/system/mero-kernel.service’
[...snip...]
mkdir: created directory ‘/usr/libexec/halon’
‘/usr/libexec/halon/halon-cleanup’ -> ‘/root/build/halon/.stack-work/install/x86_64-linux/lts-9.21/8.0.2/bin/halon-cleanup’
mkdir: created directory ‘/var/lib/halon’
--->  Removing loop devices
--->  Removing file images
--->  Removing disks-*.conf files
--->  Removing /etc/mero/* files
--->  Removing /etc/halon/halon_facts.yaml
rm: cannot remove ‘/var/mero/’: Device or resource busy

@chumakd Do you have any idea what process could have been using /var/mero/? (‘run-st’ passes on my machine...)

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: chumakd

@chumakd May I ask you to remove h0 start line from the Xperior script?

@vvv done, updated Jenkis test is running

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: chumakd

Don't know why git cannot detect this rename.

@vvv The answer may be found in git help diff manpage (look for option -M):

The default similarity index is 50%

So if files differ more than that threshold they are not considered as a rename.

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

Xperior script fails, because h0 start command doesn't exist any more.

> cd /root/build//halon && ./scripts/h0 start
Invalid command: start
Type `h0 help' for usage.

This scenario is covered by h0 run-st and is not needed any more.

@chumakd May I ask you to remove h0 start line from the Xperior script?

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

I did git mv -f scripts/h0{-new,}.

$ cmp <(git show d1570442f:scripts/h0-new) <(git show 8895aadef:scripts/h0)
$ 

Don't know why git cannot detect this rename.