RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1634015 - ovs-vswitchd service hangs with Error too many open files
Summary: ovs-vswitchd service hangs with Error too many open files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openvswitch2.10
Version: 7.4
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: pre-dev-freeze
: ---
Assignee: Timothy Redaelli
QA Contact: qding
Ioanna Gkioka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-28 12:53 UTC by Timothy Redaelli
Modified: 2018-11-05 14:53 UTC (History)
7 users (show)

Fixed In Version: openvswitch2.10-2.10.0-9.el7fdn
Doc Type: Bug Fix
Doc Text:
Previously, when the ovs-vswitchd service restarting, an error displayed wit many open files. With this update, the number of sockets opened by ovs-vswitchd are decreased, and the described problem no longer occurs.
Clone Of: 1526306
Environment:
Last Closed: 2018-11-05 14:52:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3499 0 None None None 2018-11-05 14:53:02 UTC

Description Timothy Redaelli 2018-09-28 12:53:37 UTC
+++ This bug was initially created as a clone of Bug #1526306 +++

Description of problem: After Re-starting the ovs-vswitchd Service on a controller Ends up in Service failing with Error "too many open files"

Version-Release number of selected component (if applicable):

openvswitch-2.6.1-13.git20161206.el7ost.x86_64
python-openvswitch-2.6.1-13.git20161206.el7ost.noarch


How reproducible: This is happening in a Specific Cu. Env, where the problem is faced, 


Steps to Reproduce:
1. Set the controller in Standby Mode
2. Re-start the ovs.vswitchd service
3. ovs-vswitchd service tries to still create TAP devices and fails with at the End with "too many open files"

Actual results: Ovs-vswitchd Service fails to start


Expected results: 1) ovs-vswitchd Service should start without failure
2) Since the controller is in standby Mode it should not try to create so many ports

Comment 4 qding 2018-10-08 05:27:26 UTC
Reproduce with openvswitch2.10-2.10.0-1.el7fdp.x86_64

[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0  1  10  11  12  13  14  15  16  17  18  19  2  20  21  22  23  3  4  5  6  7  8  9
[root@dell-per730-04 ~]# ovs-vsctl add-br ovsbr0
[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0    101  105  109  112  116  12   123  127  130  134  138  141  145  149  152  156  16   163  17  20  24  28  31  35  39  42  46  5   53  57  60  64  68  71  75  79  82  86  9   93  97
1    102  106  11   113  117  120  124  128  131  135  139  142  146  15   153  157  160  164  18  21  25  29  32  36  4   43  47  50  54  58  61  65  69  72  76  8   83  87  90  94  98
10   103  107  110  114  118  121  125  129  132  136  14   143  147  150  154  158  161  165  19  22  26  3   33  37  40  44  48  51  55  59  62  66  7   73  77  80  84  88  91  95  99
100  104  108  111  115  119  122  126  13   133  137  140  144  148  151  155  159  162  166  2   23  27  30  34  38  41  45  49  52  56  6   63  67  70  74  78  81  85  89  92  96
[root@dell-per730-04 ~]# ovs-vsctl add-port ovsbr0 p0 -- set interface p0 type=internal
[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0    102  107  111  116  120  125  13   134  139  143  148  152  157  161  166  170  175  18   184  189  193  198  201  25  3   34  39  43  48  52  57  61  66  70  75  8   84  89  93  98
1    103  108  112  117  121  126  130  135  14   144  149  153  158  162  167  171  176  180  185  19   194  199  21   26  30  35  4   44  49  53  58  62  67  71  76  80  85  9   94  99
10   104  109  113  118  122  127  131  136  140  145  15   154  159  163  168  172  177  181  186  190  195  2    22   27  31  36  40  45  5   54  59  63  68  72  77  81  86  90  95
100  105  11   114  119  123  128  132  137  141  146  150  155  16   164  169  173  178  182  187  191  196  20   23   28  32  37  41  46  50  55  6   64  69  73  78  82  87  91  96
101  106  110  115  12   124  129  133  138  142  147  151  156  160  165  17   174  179  183  188  192  197  200  24   29  33  38  42  47  51  56  60  65  7   74  79  83  88  92  97
[root@dell-per730-04 ~]# ovs-vsctl add-port ovsbr0 p1 -- set interface p1 type=internal
[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0    103  109  114  12   125  130  136  141  147  152  158  163  169  174  18   185  190  196  200  206  211  217  222  228  233  26  31  37  42  48  53  59  64  7   75  80  86  91  97
1    104  11   115  120  126  131  137  142  148  153  159  164  17   175  180  186  191  197  201  207  212  218  223  229  234  27  32  38  43  49  54  6   65  70  76  81  87  92  98
10   105  110  116  121  127  132  138  143  149  154  16   165  170  176  181  187  192  198  202  208  213  219  224  23   235  28  33  39  44  5   55  60  66  71  77  82  88  93  99
100  106  111  117  122  128  133  139  144  15   155  160  166  171  177  182  188  193  199  203  209  214  22   225  230  236  29  34  4   45  50  56  61  67  72  78  83  89  94
101  107  112  118  123  129  134  14   145  150  156  161  167  172  178  183  189  194  2    204  21   215  220  226  231  24   3   35  40  46  51  57  62  68  73  79  84  9   95
102  108  113  119  124  13   135  140  146  151  157  162  168  173  179  184  19   195  20   205  210  216  221  227  232  25   30  36  41  47  52  58  63  69  74  8   85  90  96
[root@dell-per730-04 ~]# ovs-vsctl add-port ovsbr0 p2 -- set interface p2 type=internal
[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0    104  110  117  123  13   136  142  149  155  161  168  174  180  187  193  2    205  211  218  224  230  237  243  25   256  262  269  30  37  43  5   56  62  69  75  81  88  94
1    105  111  118  124  130  137  143  15   156  162  169  175  181  188  194  20   206  212  219  225  231  238  244  250  257  263  27   31  38  44  50  57  63  7   76  82  89  95
10   106  112  119  125  131  138  144  150  157  163  17   176  182  189  195  200  207  213  22   226  232  239  245  251  258  264  270  32  39  45  51  58  64  70  77  83  9   96
100  107  113  12   126  132  139  145  151  158  164  170  177  183  19   196  201  208  214  220  227  233  24   246  252  259  265  271  33  4   46  52  59  65  71  78  84  90  97
101  108  114  120  127  133  14   146  152  159  165  171  178  184  190  197  202  209  215  221  228  234  240  247  253  26   266  28   34  40  47  53  6   66  72  79  85  91  98
102  109  115  121  128  134  140  147  153  16   166  172  179  185  191  198  203  21   216  222  229  235  241  248  254  260  267  29   35  41  48  54  60  67  73  8   86  92  99
103  11   116  122  129  135  141  148  154  160  167  173  18   186  192  199  204  210  217  223  23   236  242  249  255  261  268  3    36  42  49  55  61  68  74  80  87  93
[root@dell-per730-04 ~]# ovs-vsctl add-port ovsbr0 p3 -- set interface p3 type=internal
[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0    104  110  117  123  13   136  142  149  155  161  168  174  180  187  193  2    205  211  218  224  230  237  243  25   256  262  269  275  281  288  294  30   306  37  43  5   56  62  69  75  81  88  94
1    105  111  118  124  130  137  143  15   156  162  169  175  181  188  194  20   206  212  219  225  231  238  244  250  257  263  27   276  282  289  295  300  31   38  44  50  57  63  7   76  82  89  95
10   106  112  119  125  131  138  144  150  157  163  17   176  182  189  195  200  207  213  22   226  232  239  245  251  258  264  270  277  283  29   296  301  32   39  45  51  58  64  70  77  83  9   96
100  107  113  12   126  132  139  145  151  158  164  170  177  183  19   196  201  208  214  220  227  233  24   246  252  259  265  271  278  284  290  297  302  33   4   46  52  59  65  71  78  84  90  97
101  108  114  120  127  133  14   146  152  159  165  171  178  184  190  197  202  209  215  221  228  234  240  247  253  26   266  272  279  285  291  298  303  34   40  47  53  6   66  72  79  85  91  98
102  109  115  121  128  134  140  147  153  16   166  172  179  185  191  198  203  21   216  222  229  235  241  248  254  260  267  273  28   286  292  299  304  35   41  48  54  60  67  73  8   86  92  99
103  11   116  122  129  135  141  148  154  160  167  173  18   186  192  199  204  210  217  223  23   236  242  249  255  261  268  274  280  287  293  3    305  36   42  49  55  61  68  74  80  87  93
[root@dell-per730-04 ~]# ovs-vsctl add-port ovsbr0 p4 -- set interface p4 type=internal
[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0    105  112  12   127  134  141  149  156  163  170  178  185  192  2    206  213  220  228  235  242  25   257  264  271  279  286  293  30   307  314  321  329  336  36  43  50  58  65  72  8   87  94
1    106  113  120  128  135  142  15   157  164  171  179  186  193  20   207  214  221  229  236  243  250  258  265  272  28   287  294  300  308  315  322  33   337  37  44  51  59  66  73  80  88  95
10   107  114  121  129  136  143  150  158  165  172  18   187  194  200  208  215  222  23   237  244  251  259  266  273  280  288  295  301  309  316  323  330  338  38  45  52  6   67  74  81  89  96
100  108  115  122  13   137  144  151  159  166  173  180  188  195  201  209  216  223  230  238  245  252  26   267  274  281  289  296  302  31   317  324  331  339  39  46  53  60  68  75  82  9   97
101  109  116  123  130  138  145  152  16   167  174  181  189  196  202  21   217  224  231  239  246  253  260  268  275  282  29   297  303  310  318  325  332  34   4   47  54  61  69  76  83  90  98
102  11   117  124  131  139  146  153  160  168  175  182  19   197  203  210  218  225  232  24   247  254  261  269  276  283  290  298  304  311  319  326  333  340  40  48  55  62  7   77  84  91  99
103  110  118  125  132  14   147  154  161  169  176  183  190  198  204  211  219  226  233  240  248  255  262  27   277  284  291  299  305  312  32   327  334  341  41  49  56  63  70  78  85  92
104  111  119  126  133  140  148  155  162  17   177  184  191  199  205  212  22   227  234  241  249  256  263  270  278  285  292  3    306  313  320  328  335  35   42  5   57  64  71  79  86  93
[root@dell-per730-04 ~]# 


Verify with openvswitch2.10-2.10.0-10.el7fdp.x86_64.rpm

[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0  1  10  11  12  13  14  15  16  17  18  19  2  20  21  22  23  3  4  5  6  7  8  9
[root@dell-per730-04 ~]# ovs-vsctl add-br ovsbr0
[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0  10  12  14  16  18  2   21  23  25  27  29  30  32  34  36  38  4   41  43  45  47  49  50  52  54  56  58  6   61  63  65  67  69  70  72  74  76  78  8   81  83  85  87  89  90  92  94  96  98
1  11  13  15  17  19  20  22  24  26  28  3   31  33  35  37  39  40  42  44  46  48  5   51  53  55  57  59  60  62  64  66  68  7   71  73  75  77  79  80  82  84  86  88  9   91  93  95  97
[root@dell-per730-04 ~]# ovs-vsctl add-port ovsbr0 p0 -- set interface p0 type=internal
[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0  10  12  14  16  18  2   21  23  25  27  29  30  32  34  36  38  4   41  43  45  47  49  50  52  54  56  58  6   61  63  65  67  69  70  72  74  76  78  8   81  83  85  87  89  90  92  94  96  98
1  11  13  15  17  19  20  22  24  26  28  3   31  33  35  37  39  40  42  44  46  48  5   51  53  55  57  59  60  62  64  66  68  7   71  73  75  77  79  80  82  84  86  88  9   91  93  95  97  99
[root@dell-per730-04 ~]# ovs-vsctl add-port ovsbr0 p1 -- set interface p1 type=internal
[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0  10   11  13  15  17  19  20  22  24  26  28  3   31  33  35  37  39  40  42  44  46  48  5   51  53  55  57  59  60  62  64  66  68  7   71  73  75  77  79  80  82  84  86  88  9   91  93  95  97  99
1  100  12  14  16  18  2   21  23  25  27  29  30  32  34  36  38  4   41  43  45  47  49  50  52  54  56  58  6   61  63  65  67  69  70  72  74  76  78  8   81  83  85  87  89  90  92  94  96  98
[root@dell-per730-04 ~]# ovs-vsctl add-port ovsbr0 p2 -- set interface p2 type=internal
[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0  10   101  12  14  16  18  2   21  23  25  27  29  30  32  34  36  38  4   41  43  45  47  49  50  52  54  56  58  6   61  63  65  67  69  70  72  74  76  78  8   81  83  85  87  89  90  92  94  96  98
1  100  11   13  15  17  19  20  22  24  26  28  3   31  33  35  37  39  40  42  44  46  48  5   51  53  55  57  59  60  62  64  66  68  7   71  73  75  77  79  80  82  84  86  88  9   91  93  95  97  99
[root@dell-per730-04 ~]# ovs-vsctl add-port ovsbr0 p3 -- set interface p3 type=internal
[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0  10   101  11  13  15  17  19  20  22  24  26  28  3   31  33  35  37  39  40  42  44  46  48  5   51  53  55  57  59  60  62  64  66  68  7   71  73  75  77  79  80  82  84  86  88  9   91  93  95  97  99
1  100  102  12  14  16  18  2   21  23  25  27  29  30  32  34  36  38  4   41  43  45  47  49  50  52  54  56  58  6   61  63  65  67  69  70  72  74  76  78  8   81  83  85  87  89  90  92  94  96  98
[root@dell-per730-04 ~]# ovs-vsctl add-port ovsbr0 p4 -- set interface p4 type=internal
[root@dell-per730-04 ~]# ls /proc/`pidof ovs-vswitchd`/fd
0  10   101  103  12  14  16  18  2   21  23  25  27  29  30  32  34  36  38  4   41  43  45  47  49  50  52  54  56  58  6   61  63  65  67  69  70  72  74  76  78  8   81  83  85  87  89  90  92  94  96  98
1  100  102  11   13  15  17  19  20  22  24  26  28  3   31  33  35  37  39  40  42  44  46  48  5   51  53  55  57  59  60  62  64  66  68  7   71  73  75  77  79  80  82  84  86  88  9   91  93  95  97  99
[root@dell-per730-04 ~]#

Comment 7 errata-xmlrpc 2018-11-05 14:52:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3499


Note You need to log in before you can comment on or make changes to this bug.