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

qfix: start vpp in tmp folder to avoid collisions with external vpp cases #537

Conversation

denis-tingaikin
Copy link
Member

Signed-off-by: Denis Tingaikin denis.tingajkin@xored.com

Motivation

Closes #533

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
@denis-tingaikin denis-tingaikin marked this pull request as ready for review March 22, 2022 18:36
@denis-tingaikin
Copy link
Member Author

@edwarnicke , @glazychev-art Seems to me this patch closes #533

Could you have a look?

@glazychev-art
Copy link
Contributor

I've tested this solution. It works, but with this we lose a very handy thing: if we want to go to vppctl and do something manually there, we can't just type:
kubectl exec -it forwarder-vpp-name -n nsm-system vppctl

Instead, we need:

kubectl exec -it forwarder-vpp-name -n nsm-system bash
# vppctl -s /tmp/forwarder-vpp-name/var/run/vpp/cli.sock 

if err != nil {
logrus.Fatalf("error creating tmpDir %+v", err)
}
vppConn, vppErrCh = vpphelper.StartAndDialContext(ctx, vpphelper.WithRootDir(tmpDir))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can just use here vpphelper.WithRootDir(os.TempDir())
because it's just a local folder

nsmbot pushed a commit that referenced this pull request Apr 1, 2022
…k-vpp@main

PR link: networkservicemesh/sdk-vpp#537

Commit: 70eceb7
Author: Chunosov
Date: 2022-04-02 03:11:26 +0700
Message:
  - netns monitor (#537)
* add netNsMonitor

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>

* fix linter warnings

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>

* fix linter warning

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>

* add +build linux

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>

* support several clients in netnt monitor

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>

* refactor nsmonitor

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>

* fix ci warnings

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>

* add unit-tests for nsMonitorClient

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>

* fix linter warning

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>

* sync access to test values

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>

* add more checks for monitoring goroutines

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>

* fix missed sync requerd in nsmonitor tests

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit that referenced this pull request Dec 9, 2024
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#537

Commit: 0e5337e
Author: Network Service Mesh Bot
Date: 2024-12-09 05:50:06 -0600
Message:
  - Update go.mod and go.sum to latest version from networkservicemesh/sdk@main (#537)
PR link: networkservicemesh/sdk#1689
Commit: 1e611de
Author: Network Service Mesh Bot
Date: 2024-12-09 05:42:24 -0600
Message:
    - Update go.mod and go.sum to latest version from networkservicemesh/api@main (#1689)
PR link: networkservicemesh/api#180
Commit: bbb4cd5
Author: Denis Tingaikin
Date: 2024-12-09 03:03:53 -0500
Message:
        - update go to v1.23.3 (#180)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
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

Successfully merging this pull request may close these issues.

Forwarders can affect each other if they are on the same node
2 participants