Bug 1175773 - nfs-utils_env.sh: line 21: [: : integer expression expected
Summary: nfs-utils_env.sh: line 21: [: : integer expression expected
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nfs-utils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-18 14:43 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2015-01-14 07:28 UTC (History)
3 users (show)

Fixed In Version: nfs-utils-1.3.1-4.1.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-14 07:28:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zbigniew Jędrzejewski-Szmek 2014-12-18 14:43:51 UTC
Description of problem:
Seen the following in the logs:

gru 18 09:08:12 fedora22 systemd[1]: Starting Preprocess NFS configuration...
gru 18 09:08:12 fedora22 systemd[1]: Failed to set memory.limit_in_bytes on : Invalid argument
gru 18 09:08:12 fedora22 systemd[1]: Failed to reset devices.list on /system.slice: Invalid argument
gru 18 09:08:12 fedora22 nfs-utils_env.sh[1975]: /usr/lib/systemd/scripts/nfs-utils_env.sh: line 21: [: : integer expression expected
gru 18 09:08:12 fedora22 nfs-utils_env.sh[1975]: /usr/lib/systemd/scripts/nfs-utils_env.sh: line 25: [: : integer expression expected
gru 18 09:08:12 fedora22 nfs-utils_env.sh[1975]: /usr/lib/systemd/scripts/nfs-utils_env.sh: line 29: [: : integer expression expected
gru 18 09:08:12 fedora22 systemd[1]: Started Preprocess NFS configuration.
gru 18 09:08:12 fedora22 systemd[1]: Dependency failed for pNFS block layout mapping daemon.
gru 18 09:08:12 fedora22 systemd[1]: Job nfs-blkmap.service/start failed with result 'dependency'.

Version-Release number of selected component (if applicable):
nfs-utils-1.3.1-2.0.fc22.x86_64
nfs-utils-1.3.1-4.0.fc22.x86_64

(This was during upgrade, I'm not sure which one this message comes from...)

Comment 1 Steve Dickson 2014-12-19 03:05:01 UTC
This should be fixed in the latest update nfs-utils-1.3.1-4.0.fc22

Comment 2 Henrique Martins 2014-12-23 05:32:52 UTC
This also happens on fc21.  Seems like the if statements needs a -n <VAR> ahead of the <VAR> -gt 0 clause.

Also nfs-utils_env.sh has this comment
  # extract configuration from /etc/sysconfig/nfs-utils and write
but the code seems to read from /etc/sysconfig/nfs instead, i.e.:
  nfs_config=/etc/sysconfig/nfs
  if test -r $nfs_config; then

Comment 3 Steve Dickson 2015-01-03 14:27:49 UTC
(In reply to Steve Dickson from comment #1)
> This should be fixed in the latest update nfs-utils-1.3.1-4.1.fc22

and nfs-utils-1.3.1-4.1.fc21... See

   https://admin.fedoraproject.org/updates/FEDORA-2014-15315/nfs-utils-1.3.1-4.1.fc21?_csrf_token=c600ba89b0c239cadd44b09fe34d57aa935c5926

Comment 4 Fedora Update System 2015-01-03 14:39:48 UTC
nfs-utils-1.3.1-4.1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/FEDORA-2014-15315/nfs-utils-1.3.1-4.1.fc21

Comment 5 Fedora Update System 2015-01-03 19:11:48 UTC
Package nfs-utils-1.3.1-4.1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing nfs-utils-1.3.1-4.1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-15315/nfs-utils-1.3.1-4.1.fc21
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-01-14 07:28:28 UTC
nfs-utils-1.3.1-4.1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.