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

Need /run for openvswitch #481

Merged
merged 1 commit into from
Mar 22, 2024
Merged

Need /run for openvswitch #481

merged 1 commit into from
Mar 22, 2024

Conversation

atheurer
Copy link
Contributor

No description provided.

@atheurer atheurer requested a review from k-rister March 22, 2024 01:03
@atheurer atheurer merged commit 02d3e1b into master Mar 22, 2024
138 checks passed
@atheurer atheurer deleted the osp-run branch March 22, 2024 15:11
@pradiptapks
Copy link

HI @atheurer @k-rister

[root@crucible rickshaw]# pwd; git diff
/opt/crucible/repos/https:github.com:perftool-incubator/rickshaw
diff --git a/endpoints/base b/endpoints/base
index 9400e3c..f27b892 100755
--- a/endpoints/base
+++ b/endpoints/base
@@ -149,7 +149,7 @@ function process_opts() {
     local longopts+=",packrat-dir:,bench-ids:"
     local opts=$(getopt -q -o "" --longoptions "$longopts" -n "getopt.sh" -- "$@");
     if [ $? -ne 0 ]; then
-        exit_error "Unrecognized option specified" endpoint-deploy  
+        exit_error "Unrecognized option specified" endpoint-deploy
     fi
     eval set -- "$opts";
     while true; do
diff --git a/endpoints/osruntime-bootstrap b/endpoints/osruntime-bootstrap
index 9fdc60f..4b58905 100755
--- a/endpoints/osruntime-bootstrap
+++ b/endpoints/osruntime-bootstrap
@@ -269,6 +269,7 @@ function launch_osruntime() {
         cs_cmd+=" --net=host"
         cs_cmd+=" --security-opt=label=disable"
         cs_cmd+=" --mount=type=bind,source=$data_dir,destination=/tmp"
+        cs_cmd+=" --mount=type=bind,source=/run,destination=/run"
         cs_cmd+=" --mount=type=bind,source=/lib/firmware,destination=/lib/firmware"
         cs_cmd+=" --mount=type=bind,source=/lib/modules,destination=/lib/modules"
         cs_cmd+=" --mount=type=bind,source=/usr/src,destination=/usr/src"

Mount issue is still exist with this patch.. As a result for OpenStack Compute, I can noticed same error to fetch ```
/var/run/openvswitch

# cat latest/run/tool-data/profiler/remotehost-2-ovs-1/ovs/ovs-start-stderrout.txt
args: --interval 5

pwd: /tmp/tmp.oX6yGl4ObZ/tool-data/ovs

hostname: nfv-intel-11

interval=5
ovs-collect pid is 750102
ERROR: could not find /var/run/openvswitch
# grep FileNotFoundError latest/run/tool-data/profiler/remotehost-2-ovs-1/ovs/post-process-output.txt
FileNotFoundError: [Errno 2] No such file or directory: 'appctl-dpctl-ct-stats-show.txt.xz'
FileNotFoundError: [Errno 2] No such file or directory: 'appctl-memory-show.txt.xz'
FileNotFoundError: [Errno 2] No such file or directory: 'appctl-dpif-netdev-pmd-perf-show.txt.xz'
FileNotFoundError: [Errno 2] No such file or directory: 'ofctl-dump-ports.txt.xz'
FileNotFoundError: [Errno 2] No such file or directory: 'appctl-dpctl-dump-flows.txt.xz'
FileNotFoundError: [Errno 2] No such file or directory: 'appctl-dpctl-show.txt.xz'
FileNotFoundError: [Errno 2] No such file or directory: 'appctl-upcall-show.txt.xz'

[root@nfv-intel-11 ~]# mount| grep run
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,size=52606088k,nr_inodes=819200,mode=755,inode64)
none on /run/credentials/systemd-sysctl.service type ramfs (ro,nosuid,nodev,noexec,relatime,seclabel,mode=700)
none on /run/credentials/systemd-tmpfiles-setup-dev.service type ramfs (ro,nosuid,nodev,noexec,relatime,seclabel,mode=700)
none on /run/credentials/systemd-tmpfiles-setup.service type ramfs (ro,nosuid,nodev,noexec,relatime,seclabel,mode=700)
tmpfs on /run/netns type tmpfs (rw,nosuid,nodev,seclabel,size=52606088k,nr_inodes=819200,mode=755,inode64)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=26303040k,nr_inodes=6575760,mode=700,inode64)
nsfs on /run/netns/ovnmeta-128686a7-db06-42b9-b5b0-be631b214d84 type nsfs (rw)
nsfs on /run/netns/ovnmeta-128686a7-db06-42b9-b5b0-be631b214d84 type nsfs (rw)

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.

3 participants