Bug 714241 - sudo yum fails if CWD is nfs root squashed
Summary: sudo yum fails if CWD is nfs root squashed
Keywords:
Status: CLOSED DUPLICATE of bug 698795
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 15
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-17 16:54 UTC by wmason
Modified: 2014-01-21 23:18 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-20 14:25:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
strace output from yum (18.23 KB, application/octet-stream)
2011-06-17 16:54 UTC, wmason
no flags Details

Description wmason 2011-06-17 16:54:59 UTC
Created attachment 505315 [details]
strace output from yum

Since F15, I can no longer run "sudo yum install <package name>" if the current working directory is on nfs and it is root squashed.  
I've attached strace output from a failing install.  The important part follows:

open(".", O_RDONLY)                     = -1 EACCES (Permission denied)
write(17, "error: Unable to open current di"..., 59) = 59


The following is a example of the run failing on nfs and working in /tmp:

$ pwd
/users/wmason
$ sudo yum install httpd-devel
[sudo] password for wmason: 
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora: kdeforge.unl.edu
 * updates: kdeforge.unl.edu
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd-devel.x86_64 0:2.2.17-10.fc15.1 will be installed
--> Processing Dependency: apr-util-devel for package: httpd-devel-2.2.17-10.fc15.1.x86_64
--> Processing Dependency: apr-devel for package: httpd-devel-2.2.17-10.fc15.1.x86_64
--> Running transaction check
---> Package apr-devel.x86_64 0:1.4.5-1.fc15 will be installed
---> Package apr-util-devel.x86_64 0:1.3.12-1.fc15 will be installed
--> Processing Dependency: apr-util = 1.3.12-1.fc15 for package: apr-util-devel-1.3.12-1.fc15.x86_64
--> Running transaction check
---> Package apr-util.x86_64 0:1.3.10-7.fc15 will be updated
--> Processing Dependency: apr-util = 1.3.10-7.fc15 for package: apr-util-ldap-1.3.10-7.fc15.x86_64
---> Package apr-util.x86_64 0:1.3.12-1.fc15 will be an update
--> Running transaction check
---> Package apr-util-ldap.x86_64 0:1.3.10-7.fc15 will be updated
---> Package apr-util-ldap.x86_64 0:1.3.12-1.fc15 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================================================================================
 Package                                                              Arch                                                         Version                                                                Repository                                                     Size
==============================================================================================================================================================================================================================================================================
Installing:
 httpd-devel                                                          x86_64                                                       2.2.17-10.fc15.1                                                       fedora                                                        143 k
Installing for dependencies:
 apr-devel                                                            x86_64                                                       1.4.5-1.fc15                                                           updates                                                       186 k
 apr-util-devel                                                       x86_64                                                       1.3.12-1.fc15                                                          updates                                                        69 k
Updating for dependencies:
 apr-util                                                             x86_64                                                       1.3.12-1.fc15                                                          updates                                                        80 k
 apr-util-ldap                                                        x86_64                                                       1.3.12-1.fc15                                                          updates                                                        16 k

Transaction Summary
==============================================================================================================================================================================================================================================================================
Install       3 Package(s)
Upgrade       2 Package(s)

Total download size: 495 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Download delta size: 41 k
(1/2): apr-util-1.3.10-7.fc15_1.3.12-1.fc15.x86_64.drpm                                                                                                                                                                                                |  27 kB     00:00     
(2/2): apr-util-ldap-1.3.10-7.fc15_1.3.12-1.fc15.x86_64.drpm                                                                                                                                                                                           |  14 kB     00:00     
Finishing rebuild of rpms, from deltarpms
<delta rebuild>                                                                                                                                                                                                                                        |  97 kB     00:01     
Presto reduced the update size by 58% (from 97 k to 41 k).
Package(s) data still to download: 398 k
(1/3): apr-devel-1.4.5-1.fc15.x86_64.rpm                                                                                                                                                                                                               | 186 kB     00:00     
(2/3): apr-util-devel-1.3.12-1.fc15.x86_64.rpm                                                                                                                                                                                                         |  69 kB     00:00     
(3/3): httpd-devel-2.2.17-10.fc15.1.x86_64.rpm                                                                                                                                                                                                         | 143 kB     00:00     
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                         1.1 MB/s | 398 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
httpd-devel-2.2.17-10.fc15.1.x86_64 was supposed to be installed but is not!
apr-util-ldap-1.3.12-1.fc15.x86_64 was supposed to be installed but is not!
apr-devel-1.4.5-1.fc15.x86_64 was supposed to be installed but is not!
apr-util-1.3.12-1.fc15.x86_64 was supposed to be installed but is not!
apr-util-devel-1.3.12-1.fc15.x86_64 was supposed to be installed but is not!
apr-util-1.3.10-7.fc15.x86_64 was supposed to be removed but is not!
apr-util-ldap-1.3.10-7.fc15.x86_64 was supposed to be removed but is not!

Installed:
  httpd-devel.x86_64 0:2.2.17-10.fc15.1                                                                                                                                                                                                                                       

Dependency Installed:
  apr-devel.x86_64 0:1.4.5-1.fc15                                                                                                    apr-util-devel.x86_64 0:1.3.12-1.fc15                                                                                                   

Dependency Updated:
  apr-util.x86_64 0:1.3.12-1.fc15                                                                                                     apr-util-ldap.x86_64 0:1.3.12-1.fc15                                                                                                    

Complete!
$ cd /tmp/
$ sudo yum install httpd-devel
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora: kdeforge.unl.edu
 * updates: kdeforge.unl.edu
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd-devel.x86_64 0:2.2.17-10.fc15.1 will be installed
--> Processing Dependency: apr-util-devel for package: httpd-devel-2.2.17-10.fc15.1.x86_64
--> Processing Dependency: apr-devel for package: httpd-devel-2.2.17-10.fc15.1.x86_64
--> Running transaction check
---> Package apr-devel.x86_64 0:1.4.5-1.fc15 will be installed
---> Package apr-util-devel.x86_64 0:1.3.12-1.fc15 will be installed
--> Processing Dependency: apr-util = 1.3.12-1.fc15 for package: apr-util-devel-1.3.12-1.fc15.x86_64
--> Running transaction check
---> Package apr-util.x86_64 0:1.3.10-7.fc15 will be updated
--> Processing Dependency: apr-util = 1.3.10-7.fc15 for package: apr-util-ldap-1.3.10-7.fc15.x86_64
---> Package apr-util.x86_64 0:1.3.12-1.fc15 will be an update
--> Running transaction check
---> Package apr-util-ldap.x86_64 0:1.3.10-7.fc15 will be updated
---> Package apr-util-ldap.x86_64 0:1.3.12-1.fc15 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================================================================================
 Package                                                              Arch                                                         Version                                                                Repository                                                     Size
==============================================================================================================================================================================================================================================================================
Installing:
 httpd-devel                                                          x86_64                                                       2.2.17-10.fc15.1                                                       fedora                                                        143 k
Installing for dependencies:
 apr-devel                                                            x86_64                                                       1.4.5-1.fc15                                                           updates                                                       186 k
 apr-util-devel                                                       x86_64                                                       1.3.12-1.fc15                                                          updates                                                        69 k
Updating for dependencies:
 apr-util                                                             x86_64                                                       1.3.12-1.fc15                                                          updates                                                        80 k
 apr-util-ldap                                                        x86_64                                                       1.3.12-1.fc15                                                          updates                                                        16 k

Transaction Summary
==============================================================================================================================================================================================================================================================================
Install       3 Package(s)
Upgrade       2 Package(s)

Total download size: 495 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Download delta size: 41 k
(1/2): apr-util-1.3.10-7.fc15_1.3.12-1.fc15.x86_64.drpm                                                                                                                                                                                                |  27 kB     00:00     
(2/2): apr-util-ldap-1.3.10-7.fc15_1.3.12-1.fc15.x86_64.drpm                                                                                                                                                                                           |  14 kB     00:00     
Finishing rebuild of rpms, from deltarpms
<delta rebuild>                                                                                                                                                                                                                                        |  97 kB     00:01     
Presto reduced the update size by 58% (from 97 k to 41 k).
Package(s) data still to download: 398 k
(1/3): apr-devel-1.4.5-1.fc15.x86_64.rpm                                                                                                                                                                                                               | 186 kB     00:00     
(2/3): apr-util-devel-1.3.12-1.fc15.x86_64.rpm                                                                                                                                                                                                         |  69 kB     00:00     
(3/3): httpd-devel-2.2.17-10.fc15.1.x86_64.rpm                                                                                                                                                                                                         | 143 kB     00:00     
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                         2.6 MB/s | 398 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : apr-util-1.3.12-1.fc15.x86_64                                                                                                                                                                                                                              1/7 
  Installing : apr-devel-1.4.5-1.fc15.x86_64                                                                                                                                                                                                                              2/7 
  Installing : apr-util-devel-1.3.12-1.fc15.x86_64                                                                                                                                                                                                                        3/7 
  Installing : httpd-devel-2.2.17-10.fc15.1.x86_64                                                                                                                                                                                                                        4/7 
  Updating   : apr-util-ldap-1.3.12-1.fc15.x86_64                                                                                                                                                                                                                         5/7 
  Cleanup    : apr-util-ldap-1.3.10-7.fc15.x86_64                                                                                                                                                                                                                         6/7 
  Cleanup    : apr-util-1.3.10-7.fc15.x86_64                                                                                                                                                                                                                              7/7 

Installed:
  httpd-devel.x86_64 0:2.2.17-10.fc15.1                                                                                                                                                                                                                                       

Dependency Installed:
  apr-devel.x86_64 0:1.4.5-1.fc15                                                                                                    apr-util-devel.x86_64 0:1.3.12-1.fc15                                                                                                   

Dependency Updated:
  apr-util.x86_64 0:1.3.12-1.fc15                                                                                                     apr-util-ldap.x86_64 0:1.3.12-1.fc15                                                                                                    

Complete!

Comment 1 Phil Regier 2011-06-17 18:39:51 UTC
Duplicate of 698795

Comment 2 James Antill 2011-06-20 14:25:13 UTC

*** This bug has been marked as a duplicate of bug 698795 ***


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