Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24829

Restart LXC host, if it is not running

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.10
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • TIG 17 (07/15/16)
    • 0

      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
      

            Assignee:
            jonathan.abrahams Jonathan Abrahams
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: