Project

General

Profile

Bug #6160

Services not starting after upgrade when eth0 interface has no IP address

Added by Etienne Lessard about 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Category:
System-Admin
Target version:
Security issue:
No
In versions:
15.17
Read documentation?:
Yes

Description

During an upgrade from 15.13 to 16.03, on a XiVO with no IP address on it's eth0 interface
Then the upgrade "fails" because some services (xivo-agentd, xivo-ctid, xivo-dird, xivo-confd, xivo-auth) do not start
In the xivo-confd logs for example, we can see:

...
2016-03-24 15:07:28,190 [23550] (INFO) (xivo_confd.plugins.legacy_plugins): Loading legacy plugin: xivo_confd.resources.extensions.actions
2016-03-24 15:07:28,194 [23550] (INFO) (xivo_confd.plugins.legacy_plugins): Loading legacy plugin: xivo_confd.resources.infos.actions
2016-03-24 15:07:28,196 [23550] (INFO) (xivo_confd.plugins.legacy_plugins): Loading legacy plugin: xivo_confd.resources.queue_members.actions
2016-03-24 15:07:28,200 [23550] (INFO) (xivo_confd.plugins.legacy_plugins): Loading legacy plugin: xivo_confd.resources.voicemails.actions
2016-03-24 15:07:28,204 [23550] (INFO) (xivo_confd.plugins.legacy_plugins): Loading legacy plugin: xivo_confd.resources.func_keys.actions
2016-03-24 15:07:28,222 [23550] (CRITICAL) (root): 2
Traceback (most recent call last):
  File "/usr/bin/xivo-confd", line 22, in <module>
    main(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/xivo_confd/bin/daemon.py", line 45, in main
    controller.run()
  File "/usr/lib/python2.7/dist-packages/xivo_confd/controller.py", line 55, in run
    partial(self_check, self.config)):
  File "/usr/lib/python2.7/dist-packages/xivo/consul_helpers.py", line 65, in __init__
    service_discovery_config, bus_config)
  File "/usr/lib/python2.7/dist-packages/xivo/consul_helpers.py", line 206, in __init__
    super(NotifyingRegisterer, self).__init__(name, uuid, consul_config, service_discovery_config)
  File "/usr/lib/python2.7/dist-packages/xivo/consul_helpers.py", line 142, in __init__
    raise MissingConfigurationError(str(e))
MissingConfigurationError: 2

The solution is to add an explicit configuration to each impacted services in its conf.d directory:

service_discovery:
  advertise_address: 127.0.0.1

For info, the output of "ip addr show eth0" on the server:

2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether aa:bb:cc:dd:ee:ff brd ff:ff:ff:ff:ff:ff

History

#1 Updated by Anonymous about 2 years ago

  • Target version set to Backlog

#2 Updated by Pascal Cadotte-Michaud about 2 years ago

  • Assignee set to Pascal Cadotte-Michaud
  • Status changed from New to Code review

xivo-lib-python

br: 6160-no-eth0

#3 Updated by François Blackburn about 2 years ago

  • Status changed from Code review to Resolved

#4 Updated by Sylvain Boily about 2 years ago

  • Target version changed from Backlog to 16.06

#5 Updated by Sébastien Duthil almost 2 years ago

  • In versions changed from 16.03 to 15.17

Also available in: Atom PDF