Skip to content

test flake: race between node and ovs #13713

Closed

Description

@sosiouxme

https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_openshift_ansible/193/
Specifically:
https://ci.openshift.redhat.com/jenkins/job/test_pull_request_openshift_ansible_extended_conformance_install_update/17/

It appears to possible for the ovs startup to be delayed long enough that node startup gets to the point where it's needed and fails.

origin-node.service journal:

Apr 11 08:23:42 ip-172-18-1-133.ec2.internal origin-node[20310]: I0411 08:23:42.029603   20310 ovs.go:62] Executing: ovs-ofctl -O OpenFlow13 dump-flows br0
Apr 11 08:23:42 ip-172-18-1-133.ec2.internal origin-node[20310]: I0411 08:23:42.032885   20310 ovs.go:66] Error executing ovs-ofctl: ovs-ofctl: br0 is not a bridge or a socket
Apr 11 08:23:42 ip-172-18-1-133.ec2.internal origin-node[20310]: I0411 08:23:42.032906   20310 controller.go:213] [SDN setup] full SDN setup required
Apr 11 08:23:42 ip-172-18-1-133.ec2.internal origin-node[20310]: I0411 08:23:42.033028   20310 ovs.go:62] Executing: ovs-vsctl --if-exists del-br br0 -- add-br br0 -- set Bridge br0 fail-mode=secure protocols=OpenFlow13
Apr 11 08:23:42 ip-172-18-1-133.ec2.internal ovs-vsctl[20392]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --if-exists del-br br0 -- add-br br0 -- set Bridge br0 fail-mode=secure protocols=OpenFlow13
Apr 11 08:23:42 ip-172-18-1-133.ec2.internal ovs-vsctl[20392]: ovs|00002|db_ctl_base|ERR|unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
Apr 11 08:23:42 ip-172-18-1-133.ec2.internal origin-node[20310]: I0411 08:23:42.037764   20310 ovs.go:66] Error executing ovs-vsctl: ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
Apr 11 08:23:42 ip-172-18-1-133.ec2.internal origin-node[20310]: F0411 08:23:42.037789   20310 node.go:351] error: SDN node startup failed: exit status 1

Due to a race between node/ovs:

 systemd[1]: Starting Open vSwitch Database Unit...
 systemd[1]: Starting Open vSwitch...
 systemd[1]: Started Open vSwitch.
 systemd[1]: Starting Origin Node...
 systemd[1]: origin-node.service: main process exited, code=exited, status=255/n/a
 systemd[1]: Failed to start Origin Node.
 systemd[1]: Unit origin-node.service entered failed state.
 systemd[1]: origin-node.service failed.
 systemd[1]: Started Open vSwitch Database Unit.

Activity

  1. added
    kind/test-flake
    on Apr 11, 2017
  2. stevekuznetsov commented on Apr 11, 2017

    @stevekuznetsov
    Contributor

    This is happening as we're using a too-old build of Origin 1.5 -- once the build is updated it will pick up the fix we have for this in 1.5 branch.

  3. added
    kind/bug
    on Apr 12, 2017
  4. pweil- commented on Apr 12, 2017

    @pweil-

    @sosiouxme can you re-verify once the build that @stevekuznetsov mentions is ready?

  5. stevekuznetsov commented on Apr 12, 2017

    @stevekuznetsov
    Contributor

    /cc @tdawson is there a resource on the build timeframes for CentOS PaaS SIG for the 1.5 repo? Could we get one more pre-release build in there?

  6. sosiouxme commented on Apr 12, 2017

    @sosiouxme
    MemberAuthor

    @pweil- well I can make a note to check the build history for a few days after it's ready and see that this flake isn't happening again.

  7. stevekuznetsov commented on Apr 12, 2017

    @stevekuznetsov
    Contributor

    We can probably close it outright when we update, haven't seen this in master after the fix.

  8. tdawson commented on Apr 12, 2017

    @tdawson
    Member

    I have created a new pre-release 1.5 build for the CentOS Paas SIG based off of todays code. Hopefully this helps.

  9. stevekuznetsov commented on Apr 12, 2017

    @stevekuznetsov
    Contributor

    Thanks, @tdawson

  10. stevekuznetsov commented on Apr 13, 2017

    @stevekuznetsov
    Contributor

    Seeing it again here...

    Apr 13 12:24:13 ip-172-18-13-130.ec2.internal systemd[1]: Starting Open vSwitch...
    Apr 13 12:24:13 ip-172-18-13-130.ec2.internal systemd[1]: Starting Open vSwitch Database Unit...
    Apr 13 12:24:13 ip-172-18-13-130.ec2.internal systemd[1]: Started Open vSwitch.
    Apr 13 12:24:13 ip-172-18-13-130.ec2.internal systemd[1]: Starting Origin Node...
    Apr 13 12:24:16 ip-172-18-13-130.ec2.internal systemd[1]: origin-node.service: main process exited, code=exited, status=255/n/a
    Apr 13 12:24:16 ip-172-18-13-130.ec2.internal systemd[1]: Failed to start Origin Node.
    Apr 13 12:24:16 ip-172-18-13-130.ec2.internal systemd[1]: Unit origin-node.service entered failed state.
    Apr 13 12:24:16 ip-172-18-13-130.ec2.internal systemd[1]: origin-node.service failed.
    Apr 13 12:24:16 ip-172-18-13-130.ec2.internal systemd[1]: Started Open vSwitch Database Unit.
    

    Installed:

    origin-master.x86_64          1.5.0-0.4.el7
    

    The problem is that we are using the openshift-future repo but not also the openshift-origin15 and other versioned repos in the Origin CI Tool. I'll have to enable them.

  11. stevekuznetsov commented on Apr 18, 2017

    @stevekuznetsov
    Contributor
  12. stevekuznetsov commented on Apr 19, 2017

    @stevekuznetsov
    Contributor

    Let's re-open if we continue to see it/

  13. sosiouxme commented on May 25, 2017

    @sosiouxme
    MemberAuthor

    Looks like it hasn't been an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

kind/bugkind/test-flakepriority/P1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions