Skip to content

Conversation

@jsmeix
Copy link
Member

@jsmeix jsmeix commented Jun 23, 2016

use plain 'rpcinfo -p'
see #889

make it no longer fatal when rpc.statd is unavailable
see #870

removed all references to FD8
see #887
and #874

first steps to be prepared for 'set -eu'
see https://github.com/rear/rear/wiki/Coding-Style

…e 889), make it no longer fatal when rpc.statd is unavailable (issue 870), removed all references to FD8 (issue 887 and pull request 874), first steps to be prepared for 'set -eu' (rear coding style).
@jsmeix jsmeix self-assigned this Jun 23, 2016
@jsmeix jsmeix added this to the Rear v1.19 milestone Jun 23, 2016
@jsmeix jsmeix added enhancement Adaptions and new features bug The code does not do what it is meant to do cleanup waiting for info Also used to mark an issue as stale, cf. stale.yml labels Jun 23, 2016
@jsmeix
Copy link
Member Author

jsmeix commented Jun 23, 2016

@gdha
could you please have a look
and report what you think about it.

…ng style - now the final check if RPC status service is available is well separated from the result of starting rpc.statd
# check that RPC portmapper service is available and wait for it as needed
# on some systems portmap/rpcbind can take some time to be accessible
# hence 5 attempts each second to check that RPC portmapper service is available
for attempt in $( seq 5 ) ; do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder as you use seq now if this should move from PROGS to REQUIRED_PROGS conf/GNU/Linux.conf?
Or, we could replace it by $(echo 1 2 3 4 5) ?

@gdha
Copy link
Member

gdha commented Jun 23, 2016

@jsmeix looks good to me; I just left a minor remark in your pull request - it is up to you to modify or ignore - I have no real preference.

@jsmeix
Copy link
Member Author

jsmeix commented Jun 23, 2016

Regarding 'seq' usage in current code:

sources/rear/github/rear $ find * | xargs grep 'seq '
usr/share/rear/backup/DUPLICITY/default/50_make_duplicity_backup.sh:    # for i in $(seq 0 $(($NMBRS - 1)) )
usr/share/rear/lib/layout-functions.sh:  for pos in $(seq 0 $(( max -1 ))); do
usr/share/rear/lib/network-functions.sh:                        for j in $(seq $pads); do
usr/share/rear/lib/network-functions.sh:            for i in $(seq 5); do
usr/share/rear/lib/udev-workflow.sh:                for i in $(seq 1 15); do
usr/share/rear/output/ISO/Linux-i386/81_prepare_multiple_iso.sh:for i in `seq -f '%02g' 1 $(($NB_ISOS-1))`; do
usr/share/rear/verify/NETFS/default/05_start_required_daemons.sh:for attempt in $( seq 5 ) ; do

I think I better make 'seq' one of the REQUIRED_PROGS.

@jsmeix
Copy link
Member Author

jsmeix commented Jun 23, 2016

First test result:
Works well for me on SLES11-SP4:

RESCUE g130:~ # rear -d -D recover
Relax-and-Recover 1.18 / Git
Using log file: /var/log/rear/rear-g130.log
Starting required daemons for NFS: RPC portmapper (portmap or rpcbind) and rpc.statd if available.
Started RPC portmapper 'rpcbind'.
RPC portmapper 'rpcbind' available.
Started rpc.statd.
RPC status rpc.statd available.
NOTICE: Will do driver migration
...

@jsmeix
Copy link
Member Author

jsmeix commented Jun 23, 2016

Second test result:
Works well for me on SLES12-SP1:

RESCUE f121:~ # rear -d -D recover
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.iso885915)
Relax-and-Recover 1.18 / Git
Using log file: /var/log/rear/rear-f121.log
Starting required daemons for NFS: RPC portmapper (portmap or rpcbind) and rpc.statd if available.
Started RPC portmapper 'rpcbind'.
RPC portmapper 'rpcbind' available.
Started rpc.statd.
RPC status rpc.statd available.
NOTICE: Will do driver migration
...

@jsmeix
Copy link
Member Author

jsmeix commented Jun 23, 2016

Hmmm...
the PROGS array in usr/share/rear/conf/GNU/Linux.conf
lists so many basic tools and there is no
REQUIRED_PROGS array in usr/share/rear/conf/GNU/Linux.conf
that I think the PROGS versus REQUIRED_PROGS issue
for basic tools should be handled in a separated issue:
#892

@jsmeix jsmeix merged commit c95e69a into rear:master Jun 23, 2016
@jsmeix jsmeix added fixed / solved / done and removed waiting for info Also used to mark an issue as stale, cf. stale.yml labels Jun 23, 2016
@jsmeix
Copy link
Member Author

jsmeix commented Jun 23, 2016

I merge it because it works well for me and
so that others can test it via rear GitHub master.

@jsmeix jsmeix deleted the use_plain_rpcinfo-p_issue889 branch June 23, 2016 14:47
@jsmeix
Copy link
Member Author

jsmeix commented Jun 27, 2016

For completeness:

With
276bf61

usr/share/rear/verify/NETFS/default/05_start_required_daemons.sh
was renamed into
usr/share/rear/verify/NETFS/default/05_start_required_nfs_daemons.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug The code does not do what it is meant to do cleanup enhancement Adaptions and new features fixed / solved / done

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants