Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory - exportfs #106

Open
marzdgzmn opened this issue May 22, 2018 · 2 comments
Open

No such file or directory - exportfs #106

marzdgzmn opened this issue May 22, 2018 · 2 comments

Comments

@marzdgzmn
Copy link

         Error executing action `run` on resource 'execute[exportfs]'
      
         Errno::ENOENT
         -------------
         No such file or directory - exportfs
         
         Cookbook Trace:
         ---------------
         /tmp/kitchen/cache/cookbooks/nfs/providers/export.rb:73:in `block in class_from_file'
         
         Resource Declaration:
         ---------------------
         # In /tmp/kitchen/cache/cookbooks/nfs/providers/export.rb
         
   43:     execute 'exportfs' do
   44:       command 'exportfs -ar'
   45:       action :nothing
   46:     end
   47: 

Platform: centos-7.2 (run in test-kitchen)

stacktrace.log

@noelafjones
Copy link

I see this error with Chef 14 (under SLES 11) because in Chef 14.2 the execute resource was modified to include the default_env property. To quote the release note "If you find that binaries cannot be found when using the execute resource, default_env set to true may resolve those issues." I think the following change needs to be made to the cookbook to resolve this.

  command 'exportfs -ar'
  default_env true if respond_to?('default_env')
  action :nothing

@pavel-shvagirev
Copy link

In my case the reason was that those recipes that install nfs packages were triggered later than code that initiated a `exportfs -ra'. Therefore recipes order change solved the issue.

enrico-usai added a commit to enrico-usai/aws-parallelcluster-cookbook that referenced this issue Jun 26, 2023
exportfs and authconfig execution was failing with:
No such file or directory - exportfs/authconfig

### References
* `default_env true` documentation: https://docs.chef.io/resources/execute/#properties
* Related issue: sous-chefs/nfs#106

Signed-off-by: Enrico Usai <[email protected]>
enrico-usai added a commit to aws/aws-parallelcluster-cookbook that referenced this issue Jun 26, 2023
exportfs and authconfig execution was failing with:
No such file or directory - exportfs/authconfig

### References
* `default_env true` documentation: https://docs.chef.io/resources/execute/#properties
* Related issue: sous-chefs/nfs#106

Signed-off-by: Enrico Usai <[email protected]>
Jennifer603 pushed a commit to Jennifer603/aws-parallelcluster-cookbook that referenced this issue Jun 26, 2023
exportfs and authconfig execution was failing with:
No such file or directory - exportfs/authconfig

* `default_env true` documentation: https://docs.chef.io/resources/execute/#properties
* Related issue: sous-chefs/nfs#106

Signed-off-by: Enrico Usai <[email protected]>
Jennifer603 pushed a commit to Jennifer603/aws-parallelcluster-cookbook that referenced this issue Jun 26, 2023
exportfs and authconfig execution was failing with:
No such file or directory - exportfs/authconfig

* `default_env true` documentation: https://docs.chef.io/resources/execute/#properties
* Related issue: sous-chefs/nfs#106

Signed-off-by: Enrico Usai <[email protected]>
enrico-usai added a commit to enrico-usai/aws-parallelcluster-cookbook that referenced this issue Jun 27, 2023
mdadm execution during the update was failing with:
No such file or directory - mdadm

### References
* `default_env true` documentation: https://docs.chef.io/resources/execute/#properties
* Related issue: sous-chefs/nfs#106

Signed-off-by: Enrico Usai <[email protected]>
Jennifer603 added a commit to aws/aws-parallelcluster-cookbook that referenced this issue Jun 27, 2023
* Export default ENV when PATH is required for command execution

exportfs and authconfig execution was failing with:
No such file or directory - exportfs/authconfig

* `default_env true` documentation: https://docs.chef.io/resources/execute/#properties
* Related issue: sous-chefs/nfs#106

Signed-off-by: Enrico Usai <[email protected]>

* Push instance-to-node mapping to cw log, configure new log group

---------

Signed-off-by: Enrico Usai <[email protected]>
Co-authored-by: Enrico Usai <[email protected]>
Co-authored-by: Huajie Zhang <[email protected]>
enrico-usai added a commit to aws/aws-parallelcluster-cookbook that referenced this issue Jun 29, 2023
mdadm execution during the update was failing with:
No such file or directory - mdadm

### References
* `default_env true` documentation: https://docs.chef.io/resources/execute/#properties
* Related issue: sous-chefs/nfs#106

Signed-off-by: Enrico Usai <[email protected]>
Jennifer603 added a commit to Jennifer603/aws-parallelcluster-cookbook that referenced this issue Jul 7, 2023
…#2311)

* Export default ENV when PATH is required for command execution

exportfs and authconfig execution was failing with:
No such file or directory - exportfs/authconfig

* `default_env true` documentation: https://docs.chef.io/resources/execute/#properties
* Related issue: sous-chefs/nfs#106

Signed-off-by: Enrico Usai <[email protected]>

* Push instance-to-node mapping to cw log, configure new log group

---------

Signed-off-by: Enrico Usai <[email protected]>
Co-authored-by: Enrico Usai <[email protected]>
Co-authored-by: Huajie Zhang <[email protected]>
rkilpadi pushed a commit to aws/aws-parallelcluster-cookbook that referenced this issue Jul 21, 2023
exportfs and authconfig execution was failing with:
No such file or directory - exportfs/authconfig

### References
* `default_env true` documentation: https://docs.chef.io/resources/execute/#properties
* Related issue: sous-chefs/nfs#106

Signed-off-by: Enrico Usai <[email protected]>
rkilpadi pushed a commit to aws/aws-parallelcluster-cookbook that referenced this issue Jul 21, 2023
mdadm execution during the update was failing with:
No such file or directory - mdadm

### References
* `default_env true` documentation: https://docs.chef.io/resources/execute/#properties
* Related issue: sous-chefs/nfs#106

Signed-off-by: Enrico Usai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants