Service start is not reliable with any network initialization issues

Bug #1567175 reported by Jorge Niedbalski
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
High
Jorge Niedbalski
1.25
Won't Fix
High
Jorge Niedbalski

Bug Description

[Environment]

Juju-Core 1.25.3
Trusty 14.04.3

[Description]

The jujud service (machine and unit) is started via upstart on runlevel 2345, but this condition should
be extended to wait for a couple of additional events (static-network-up and net-device-up IFACE != lo),
so on that manner the service will be started only if all the network devices are up and also all the interfaces flagged as auto are up.

On that note, there are not so uncommon events such as a delayed DHCP server taking a few seconds to configure a network interface, that will eventually affect some logic as address-selection and charms that depends on specific networks to be available.
(ceph, as an example).

So I think that the start stanza should look like:

start on runlevel [2345] and (static-network-up and net-device-up IFACE!=lo)

Instead of just start on runlevel [2345]

Revision history for this message
Cheryl Jennings (cherylj) wrote :

Jorge - if you have any logs that show symptoms or errors, can you upload them?

Changed in juju-core:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Jorge Niedbalski (niedbalski) wrote :

I included a pre-start script for validating that all the auto interfaces are up && dhcp configured.

Reference: http://paste.ubuntu.com/15577670/

Changed in juju-core:
assignee: nobody → Jorge Niedbalski (niedbalski)
tags: added: sts-needs-review
tags: added: sts
Revision history for this message
Anastasia (anastasia-macmood) wrote :

@Jorge,
Could you please replicate with most recent beta for 2.0 and attach logs?

Changed in juju-core:
status: Triaged → Incomplete
Changed in juju-core:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.