Install hook error due to modprobe 8021q failure

Bug #1353443 reported by Michael Foord
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Dimiter Naydenov

Bug Description

On local provider, deployment of a charm can fail with an error similar to:

machine-1: 2014-08-06 09:19:28 ERROR juju.worker runner.go:219 exited "networker": command "lsmod | grep -q 8021q || modprobe 8021q" failed (code: 1, stdout: , stderr: modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.13.0-32-generic/modules.dep.bin'

or:

machine-1: 2014-08-05 21:27:06 ERROR juju.worker runner.go:219 exited "networker": command "lsmod | grep -q 8021q || modprobe 8021q" failed (code: 1, stdout: , stderr: FATAL: Could not load /lib/modules/3.13.0-32-generic/modules.dep: No such file or directory

modprobe in the lxc container is using the host path to attempt to load the module. This appears to be a symptom of the module not being loaded in the host.

After the install fails due to the uniter exiting (or "something") something fixes the problem as a "juju resolved --retry" almost always succeeds.

Logs attached.

Revision history for this message
Michael Foord (mfoord) wrote :
Revision history for this message
Michael Foord (mfoord) wrote :
Revision history for this message
Michael Foord (mfoord) wrote :

Note that "modprobe 8021q" on the host before starting the container should be a workaround.

Revision history for this message
Dimiter Naydenov (dimitern) wrote :

I'm marking this as Critical, as it happens on trunk and is a regression since we introduced the networker.

Changed in juju-core:
status: New → Incomplete
status: Incomplete → Triaged
milestone: none → next-stable
importance: Undecided → Critical
tags: added: local-provider networker regression
Curtis Hovey (sinzui)
tags: added: ci
Revision history for this message
Dimiter Naydenov (dimitern) wrote :

Couple of thoughts:
1) Networker should not attempt to modprobe 8021q if there are no VLANs to configure
2) When running in an LXC container, we can't modprobe anything, so the networker should not even try.

Changed in juju-core:
assignee: nobody → Dimiter Naydenov (dimitern)
status: Triaged → Won't Fix
status: Won't Fix → In Progress
Revision history for this message
Dave Cheney (dave-cheney) wrote :

I am downgrading this issue to high.

Justification:

* yes, it needs to be fixed for the next stable release but I do not believe it blocks other changes landing
* the build has been blocked for over a week, I feel the benefit of blocking the line for this change does not justify the cost of blocking the work of 5 teams.

Changed in juju-core:
importance: Critical → High
Revision history for this message
Dimiter Naydenov (dimitern) wrote :

Fix committed, but not merged yet because juju-core trunk is blocked on 2 bugs.

Changed in juju-core:
status: In Progress → Won't Fix
status: Won't Fix → Fix Committed
Curtis Hovey (sinzui)
tags: added: network
removed: networker
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: next-stable → 1.21-alpha1
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
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.