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

[Question] /tmp Permission changed after running edgeadm addon edge-apps #328

Closed
mhh12121 opened this issue Feb 14, 2022 · 5 comments
Closed
Labels
kind/question Further information is requested

Comments

@mhh12121
Copy link

ENV:

lsb_release -a :

Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.6 LTS
Release:	18.04
Codename:	bionic

kubectl version:

Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.12", GitCommit:"4bf2e32bb2b9fdeea19ff7cdc1fb51fb295ec407", GitTreeState:"clean", BuildDate:"2021-10-27T17:12:26Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.15", GitCommit:"8f1e5bf0b9729a899b8df86249b56e2c74aebc55", GitTreeState:"clean", BuildDate:"2022-01-19T17:23:01Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}

Process:

  1. Only single k8s master running on my laptop, no other node;
  2. Install calico as cni;
  3. Running sudo edgeadm addon edge-apps --master-public-addr doujohnerk8smaster.com on master;

Result:

To run ls -lad /tmp , its permissions seem be changed:
drwxrw_rwt 3 root root 4096 Feb 14 11:42 /tmp,
which leads to bash: cannot create temp file for here-document: Permission denied if I tried to autocomplete my command.
And I have to manually add umask chmod 1777 /tmp to make it work;

@mhh12121 mhh12121 added the kind/question Further information is requested label Feb 14, 2022
@attlee-wang
Copy link
Member

This may be a limitation of your node itself @mhh12121

@jasine
Copy link
Contributor

jasine commented Mar 2, 2022

This may be a limitation of your node itself @mhh12121

I have the same issue, and I have tested the permission of /tmp changed after installing superedge with the all in one package

@mhh12121 mhh12121 changed the title [Question] Weird stuff after running edgeadm addon edge-apps [Question] /tmp Permission changed after running edgeadm addon edge-apps May 16, 2022
@mhh12121
Copy link
Author

This may be a limitation of your node itself @mhh12121

What would be that limitation, any hints or suggestions ? I'm still confused now:worried:

@dodiadodia
Copy link
Contributor

@mhh12121 It's edgeam's default processing logic: edgeadm uses /tmp as the installation directory, but edgeadm remove the installation directory first and recreate it, that cause the /tmp's permission changing.
You can assign the --worker-path when executing edgeadm init, such as edgeadm init --worker-path /tmp/edgeadm-install, then the /tmp will not affect.

@dodiadodia
Copy link
Contributor

The new edgeadm project https://github.com/superedge/edgeadm has changed the defult WorkPath to /tmp/edgeadm-tmp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants