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

BUG: can't get local addresses in single node #5180

Open
cuisongliu opened this issue Oct 29, 2024 · 2 comments
Open

BUG: can't get local addresses in single node #5180

cuisongliu opened this issue Oct 29, 2024 · 2 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@cuisongliu
Copy link
Collaborator

Sealos Version

5.0.0

How to reproduce the bug?

2024-10-29T22:13:45 debug sync workdir: /root/.sealos/default
2024-10-29T22:13:45 debug copy files src /root/.sealos/default to dst /root/.sealos/default on 10.4.0.95:22 locally
Error: could not get local addresses: route ip+net: no such network interface

func New(inner ssh.Interface) (Interface, error) {
	addr, err := net.InterfaceAddrs()
	if err != nil {
		return nil, fmt.Errorf("could not get local addresses: %v", err)
	}
	return &wrap{
		inner:          inner,
		localAddresses: sets.Set[string](netutil.AddressSet(isValid, addr)),
	}, nil
}

What is the expected behavior?

No response

What do you see instead?

No response

Operating environment

- Sealos version:
- Docker version:
- Kubernetes version:
- Operating system:
- Runtime environment:
- Cluster size:
- Additional information:

Additional information

No response

@cuisongliu cuisongliu added the kind/bug Something isn't working label Oct 29, 2024
@fengxsong
Copy link
Collaborator

@cuisongliu it might related to this issue? golang/go#51934

@cuisongliu
Copy link
Collaborator Author

@cuisongliu it might related to this issue? golang/go#51934

I think it should be. I have a problem in the process of installing the helm chart. At this time, I am creating a network card similar to flannel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@cuisongliu @fengxsong and others