Uploaded image for project: 'Fast Datapath Product'
  1. Fast Datapath Product
  2. FDP-1242

[image mode]install openvswitch but start failed

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • openvswitch3.4
    • 3
    • False
    • Hide

       

      Show
       
    • False
    • Hide

      Given a RHEL image mode system with Open vSwitch installed via rpm-ostree, 

      When the system reboots and openvswitch service is started, 

      Then the service should start successfully without failing due to missing hugetlbfs group membership for the openvswitch user.

      Show
      Given a RHEL image mode system with Open vSwitch installed via rpm-ostree,  When the system reboots and openvswitch service is started,  Then the service should start successfully without failing due to missing hugetlbfs group membership for the openvswitch user.
    • rhel-9
    • None
    • rhel-net-ovs-dpdk
    • ssg_networking
    • FDP-OVS/DPDK Sprint 7, FDP-OVS/DPDK Sprint 8, OVS/DPDK - Sprint 9 - West, OVS/DPDK - Sprint 10 - West
    • 4

       Problem Description: Clearly explain the issue.

      [root@netqe04 ~]# systemctl restart openvswitch
      A dependency job for openvswitch.service failed. See 'journalctl -xe' for details.

       Impact Assessment: Describe the severity and impact (e.g., network down,availability of a workaround, etc.).

      For rhel9.6 image mode, test openvswitch will blocked

       Software Versions: Specify the exact versions in use (e.g.,openvswitch3.1-3.1.0-147.el8fdp).

      [root@netqe04 ~]# rpm -qa | grep openvswitch
      openvswitch-selinux-extra-policy-1.0-36.el9fdp.noarch
      openvswitch3.4-3.4.0-48.el9fdp.x86_64

      [root@netqe04 ~]# rpm-ostree --version
      rpm-ostree:
       Version: '2025.5'
       Git: b76df3f17396afc780fa05d88b78a7da310bbf5b
       Features:
        - rust
        - compose
        - container
        - rhsm

      [root@netqe04 ~]# rpm-ostree status -b 
      State: idle
      BootedDeployment:
      ● ostree-unverified-image:containers-storage:localhost/bootc:beaker
                         Digest: sha256:47e513ce0d98fb00ac5063ae46e335a01ab948292dd09c04d8479ad31656d7f3
                        Version: 9.20250307.0 (2025-03-16T14:03:59Z)
                  LocalPackages: openvswitch-selinux-extra-policy-1.0-36.el9fdp.noarch openvswitch3.4-3.4.0-48.el9fdp.x86_64

        Issue Type: Indicate whether this is a new issue or a regression (if a regression, state the last known working version).

      new issue

       Reproducibility: Confirm if the issue can be reproduced consistently. If not, describe how often it occurs.

      100%

       Reproduction Steps: Provide detailed steps or scripts to replicate the issue.

      1.rpm-ostree install http://download.devel.redhat.com/brewroot/packages/openvswitch-selinux-extra-policy/1.0/36.el9fdp/noarch/openvswitch-selinux-extra-policy-1.0-36.el9fdp.noarch.rpm

      2.rpm-ostree install http://download.devel.redhat.com/brewroot/packages/openvswitch3.4/3.4.0/48.el9fdp/x86_64/openvswitch3.4-3.4.0-48.el9fdp.x86_64.rpm

      3.systemctl reboot

      4.systemctl restart openvswitch

       Expected Behavior: Describe what should happen under normal circumstances.

      openvswitch service should be start

       Observed Behavior: Explain what actually happens.

      openvsiwtch service start well

       Troubleshooting Actions: Outline the steps taken to diagnose or resolve the issue so far.

      [root@netqe04 ~]# id openvswitch
      uid=985(openvswitch) gid=982(openvswitch) groups=982(openvswitch)
      [root@netqe04 ~]# getent group hugetlbfs
      hugetlbfs:x:981:
      [root@netqe04 ~]#  useradd -g hugetlbfs openvswitch
      useradd: user 'openvswitch' already exists
      [root@netqe04 ~]# vi /etc/sysconfig/openvswitch
      [root@netqe04 ~]# ll /etc/openvswitch
      total 20
      -rw-r-----. 1 openvswitch openvswitch 15349 Mar 17 03:08 conf.db
      -rw-r--r--. 1 openvswitch openvswitch   163 Mar 17 02:22 default.conf
      [root@netqe04 ~]# ll /etc/ | grep openvswitch
      drwxr-xr-x.  2 openvswitch openvswitch     64 Mar 17 03:08 openvswitch
      [root@netqe04 ~]# ll /var/log/openvswitch
      total 0
      [root@netqe04 ~]# ll /var/log | grep openvswitch
      drwxr-x---. 2 openvswitch hugetlbfs            6 Mar 17 02:26 openvswitch
      [root@netqe04 ~]# ll /dev/ | grep vfio
      drwxr-xr-x.   2 root root            60 Mar 17 02:26 vfio
      [root@netqe04 ~]# sudo chown -R openvswitch:hugetlbfs /etc/openvswitch
      sudo chown -R openvswitch:hugetlbfs /var/log/openvswitch
      sudo chown -R openvswitch:hugetlbfs /dev/vfio
      [root@netqe04 ~]# grep hugetlbfs /etc/group
      [root@netqe04 ~]# groupadd -g 1002 hugetlbfs
      groupadd: group 'hugetlbfs' already exists
      [root@netqe04 ~]# usermod -a openvswitch -G h 

       Logs: If you collected logs please provide them (e.g. sos report, /var/log/openvswitch/* , testpmd console)

      journalctl output as below

      Mar 17 03:29:41 netqe04.knqe.eng.rdu2.dc.redhat.com ovsdb-server[11346]: ovs|00001|daemon_unix|EMER|(null): Invalid --user option openvswitch:hugetlbfs (user openvswitch is not in group hugetlbfs), aborting.
      Mar 17 03:29:41 netqe04.knqe.eng.rdu2.dc.redhat.com ovs-ctl[11346]: ovsdb-server: (null): Invalid --user option openvswitch:hugetlbfs (user openvswitch is not in group hugetlbfs), aborting.
      Mar 17 03:29:41 netqe04.knqe.eng.rdu2.dc.redhat.com ovs-ctl[11304]: Starting ovsdb-server ... failed!
      Mar 17 03:29:41 netqe04.knqe.eng.rdu2.dc.redhat.com systemd[1]: ovsdb-server.service: Control process exited, code=exited, status=1/FAILURE 

       
       

              tredaell@redhat.com Timothy Mario Redaelli
              mhou@redhat.com HOU MINXI
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: