You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
openshift_node: "restart node" ansible task fails sometimes #13318
@stevekuznetsov you're capturing a subset of the journals, why not capture all of them? I'd be interested in seeing if ovsdb is crashing or otherwise restarting.
I was working on a script that would get us all dependent services, as I was afraid that "all" might be huge amount of storage space. I'll work on that early next week.
I'd first figure out how large the entire journal is. If it's acceptable to store that then lets just do that. These aren't long running instances so journals shouldn't be huge and the chattiest of the processes (assuming we're setting debug levels) like master, node, docker are already captured. The only concern would be if some credentials were being logged I guess.
Seen here as well, here is the openvswitch log. From the node log, as before:
origin-node[14333]: I0313 15:42:53.099059 14333 ovs.go:62] Executing: ovs-ofctl -O OpenFlow13 dump-flows br0
origin-node[14333]: I0313 15:42:53.102467 14333 ovs.go:66] Error executing ovs-ofctl: ovs-ofctl: br0 is not a bridge or a socket
origin-node[14333]: I0313 15:42:53.102485 14333 controller.go:213] [SDN setup] full SDN setup required
origin-node[14333]: I0313 15:42:53.102579 14333 ovs.go:62] Executing: ovs-vsctl --if-exists del-br br0 -- add-br br0 -- set Bridge br0 fail-mode=secure protocols=OpenFlow13
ovs-vsctl[14598]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --if-exists del-br br0 -- add-br br0 -- set Bridge br0 fail-mode=secure protocols=OpenFlow13
ovs-vsctl[14598]: ovs|00002|db_ctl_base|ERR|unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
origin-node[14333]: I0313 15:42:53.107222 14333 ovs.go:66] Error executing ovs-vsctl: ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
origin-node[14333]: F0313 15:42:53.107251 14333 node.go:351] error: SDN node startup failed: exit status 1
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.
From the OpenVSwitch logs...
systemd[1]: Starting Open vSwitch...
systemd[1]: Started Open vSwitch.
systemd[1]: Stopping Open vSwitch...
systemd[1]: Starting Open vSwitch...
systemd[1]: Started Open vSwitch.
From the systemd logs ...
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.
systemd[1]: Starting Open vSwitch Forwarding Unit...
systemd[1]: Started Open vSwitch Forwarding Unit.
systemd[1]: origin-node.service holdoff time over, scheduling restart.
systemd[1]: Starting Origin Node...
systemd[1]: Started Origin Node.
systemd[1]: Stopping Origin Node...
systemd[1]: Stopping Open vSwitch Forwarding Unit...
systemd[1]: Stopping Open vSwitch...
systemd[1]: Starting Open vSwitch...
systemd[1]: Started Open vSwitch.
systemd[1]: Starting Origin Node...
systemd[1]: Stopping Open vSwitch Database Unit...
systemd[1]: Starting Open vSwitch Database Unit...
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.
systemd[1]: Starting Open vSwitch Forwarding Unit...
systemd[1]: Started Open vSwitch Forwarding Unit.
No AVC denials as before. Maybe we should be looking for some other type of denial? This is weird ...
ovs-vsctl[14598]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --if-exists del-br br0 -- add-br br0 -- set Bridge br0 fail-mode=secure protocols=OpenFlow13
ovs-vsctl[14598]: ovs|00002|db_ctl_base|ERR|unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
what journalctl --unit would we need to get the logs from ovs-vsctl if not openvswitch.service? The OpenVSwitch logs above look really empty... maybe we are not starting it with the correct logging level in the installer?
Hmm, I am going to add log grabs for ovs-vswitchd.service and ovsdb-server.service but I think we need to bump the log levels there if possible @sdodson -- they are emitting basically nothing even on a working system.
Looks like this is happening because openvswitch.service does not enforce that ovsdb-server.service and ovs-vswitchd.service are started prior to marking openvswitch.service as active.
Activity
php-coder commentedon Mar 10, 2017
@stevekuznetsov Could you advise how to debug it? Without output of
systemctl status origin-node.serviceandjournalctl -xeit looks impossible.stevekuznetsov commentedon Mar 10, 2017
New jobs will have these artifacts -- look under
generated/andjournals/in S3stevekuznetsov commentedon Mar 11, 2017
There was a
merge_pull_request_openshift_ansiblejob that failed with this recently... from the node logs:@sdodson have you seen this?
stevekuznetsov commentedon Mar 11, 2017
The job was running with
sdodson commentedon Mar 11, 2017
stevekuznetsov commentedon Mar 11, 2017
We're also logging those with
The output from that run, though...
sdodson commentedon Mar 11, 2017
@stevekuznetsov you're capturing a subset of the journals, why not capture all of them? I'd be interested in seeing if ovsdb is crashing or otherwise restarting.
sdodson commentedon Mar 11, 2017
All of them as in don't filter based on any service so we get the complete journal in the s3 bucket.
stevekuznetsov commentedon Mar 11, 2017
I was working on a script that would get us all dependent services, as I was afraid that "all" might be huge amount of storage space. I'll work on that early next week.
stevekuznetsov commentedon Mar 11, 2017
Something like:
Or are we worried about units not in that dependency tree, and should we just dump the entire journal?
sdodson commentedon Mar 13, 2017
I'd first figure out how large the entire journal is. If it's acceptable to store that then lets just do that. These aren't long running instances so journals shouldn't be huge and the chattiest of the processes (assuming we're setting debug levels) like master, node, docker are already captured. The only concern would be if some credentials were being logged I guess.
stevekuznetsov commentedon Mar 13, 2017
Dumping full journal in openshift-eng/aos-cd-jobs#103
stevekuznetsov commentedon Mar 13, 2017
There is now a new job with this failure... which has the full
journalctloutput.stevekuznetsov commentedon Mar 13, 2017
Seen here as well, here is the
openvswitchlog. From the node log, as before:From the OpenVSwitch logs...
From the
systemdlogs ...No AVC denials as before. Maybe we should be looking for some other type of denial? This is weird ...
stevekuznetsov commentedon Mar 13, 2017
@knobunc two questions please:
have you ever seen this before
whatThe OpenVSwitch logs above look really empty... maybe we are not starting it with the correct logging level in the installer?journalctl --unitwould we need to get the logs fromovs-vsctlif notopenvswitch.service?stevekuznetsov commentedon Mar 13, 2017
Hmm, I am going to add log grabs for
ovs-vswitchd.serviceandovsdb-server.servicebut I think we need to bump the log levels there if possible @sdodson -- they are emitting basically nothing even on a working system.sdodson commentedon Mar 14, 2017
I don't think those services exist, perhaps
openvswitch-nonetwork.serviceCan I run this over and over again outside of CI?stevekuznetsov commentedon Mar 14, 2017
@sdodson those are listed as dependencies in the
systemdtree and exist on systems withopenvswitchinstalled -- what do you mean?stevekuznetsov commentedon Mar 14, 2017
Looks like we should be on 2.6, anyway -- I'll get that configured on the test VMs and we can re-visit this if it occurs again.
sdodson commentedon Mar 15, 2017
Looks like this is happening because openvswitch.service does not enforce that ovsdb-server.service and ovs-vswitchd.service are started prior to marking openvswitch.service as active.
https://bugzilla.redhat.com/show_bug.cgi?id=1432637
sdodson commentedon Mar 15, 2017
Workarounds
master #13370
release-1.5 #13371
containerized installs openshift/openshift-ansible#3674
pravisankar commentedon Apr 12, 2017
Still hitting this issue:
https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended_conformance_install_update/46/consoleFull#77014445158b6e51eb7608a5981914356
https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended_conformance_install_update/46/consoleFull#-14246886155849c75fe4b0052e114d805c
stevekuznetsov commentedon Apr 12, 2017
The newer issue was actually #13713 -- resolved as of right now, newer packages for 1.5 Origin are out.