[SERVER-24829] Restart LXC host, if it is not running Created: 28/Jun/16  Updated: 19/Jul/16  Resolved: 29/Jun/16

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.3.10

Type: Bug Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-24626 Tail the LXC host log, if the host is... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: TIG 17 (07/15/16)
Participants:
Linked BF Score: 0

 Description   

Sometimes the LXC hosts will fail to start on the Jepsen distro:

 [2016/06/27 19:33:41.666] Running command 'shell.exec' in "do jepsen setup" (step 2.2 of 3)
 [2016/06/27 19:33:44.679] ssh: connect to host n1 port 22: No route to host
 [2016/06/27 19:33:44.680] lost connection
 [2016/06/27 19:33:44.680] Copy to host n1 failed!
 [2016/06/27 19:33:44.686]       lxc-start 1465419101.921 ERROR    lxc_cgmanager - cgmanager.c:cgm_destroy:575 - Error connecting to cgroup manager
 [2016/06/27 19:33:44.686]       lxc-start 1467066406.994 ERROR    lxc_conf - conf.c:instantiate_veth:3105 - failed to attach 'veth9LG2VB' to the bridge 'lxcbr0': No such device
 [2016/06/27 19:33:44.686]       lxc-start 1467066407.243 ERROR    lxc_conf - conf.c:lxc_create_network:3388 - failed to create netdev
 [2016/06/27 19:33:44.686]       lxc-start 1467066407.244 ERROR    lxc_start - start.c:lxc_spawn:856 - failed to create the network
 [2016/06/27 19:33:44.686]       lxc-start 1467066407.244 ERROR    lxc_start - start.c:__lxc_start:1121 - failed to spawn 'n1'
 [2016/06/27 19:33:44.686]       lxc-start 1467066412.247 ERROR    lxc_start_ui - lxc_start.c:main:341 - The container failed to start.
 [2016/06/27 19:33:44.686]       lxc-start 1467066412.247 ERROR    lxc_start_ui - lxc_start.c:main:343 - To get more details, run the container in foreground mode.
 [2016/06/27 19:33:44.686]       lxc-start 1467066412.247 ERROR    lxc_start_ui - lxc_start.c:main:345 - Additional information can be obtained by setting the --logfile and --logpriority options.

When this happens, we will just restart them with

lxc-start -n <host> -d



 Comments   
Comment by Githook User [ 29/Jun/16 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-24829 Restart LXC host, if it is not running
Branch: master
https://github.com/mongodb/mongo/commit/c9e147d7ed0422464302af11e294368e18ec72a6

Generated at Thu Feb 08 04:07:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.