Seagate / halon

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

scripts/h0: fix cmd_install on vagrant singlenode #1564

Closed andriytk closed 5 years ago

andriytk commented 5 years ago

On vagrant setup with bridge interface the cmd_install was selecting the wrong interface and, as result, wrong IP address for HALOND_LISTEN parameter on the singlenode configuration.

Now we just select eth1 interface (if present) which is the default interface on vagrant setup. Otherwise, we allow scripts/install-halon-services to select the interface.

andriytk commented 5 years ago

resolved all discussions

chumakd commented 5 years ago

merged

chumakd commented 5 years ago

enabled an automatic merge when the pipeline for 08f27e925bb5b87412074b7104b4461878bdeb21 succeeds

andriytk commented 5 years ago

added 1 commit

Compare with previous version

andriytk commented 5 years ago

changed this line in version 2 of the diff

andriytk commented 5 years ago

I think it is better than nothing.

chumakd commented 5 years ago

@andriy.tkachuk you'll get something like this among "normal" h0 logs output:

ls: cannot access /sys/class/net/: No such file or directory

which will look out of context - but if you think it will help identify an issue, we can keep it.

andriytk commented 5 years ago

@dmitriy.chumak style - ok. About the error - not sure we don't want to see it... Do we really?

andriytk commented 5 years ago

Not sure it is needed.

chumakd commented 5 years ago

assigned to @andriy.tkachuk

38f17114-d02a-4404-a14d-847256ffc365 commented 5 years ago

@andriy.tkachuk Do we need to check operate state of eth1? if it is required then I guess ethtool can be used to check link status else LGTM.

38f17114-d02a-4404-a14d-847256ffc365 commented 5 years ago

resolved all discussions

chumakd commented 5 years ago

Please follow the style already established in the h0 script to run external commands, i.e. use $(...) construct instead of backticks.

Also, redirecting stderr from ls to /dev/null can help avoiding extra noise in situations when /sys/ is not mounted.

andriytk commented 5 years ago

assigned to @prasanna.kulkarni

andriytk commented 5 years ago

@prasanna.kulkarni, @dmitriy.chumak could you review this, please?