glean: Ordering cycle found, skipping Network (Pre)

Bug #1646141 reported by Waldemar Znoinski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
New
Undecided
Waldemar Znoinski

Bug Description

ubuntu 16, image built using dib (by nodepool) using standard + custom elements:
      - ubuntu
      - vm
      - openstack-repos
      - puppet
      - nodepool-base
      - node-devstack
      - growroot
      - apt-conf
      - local-config
      - cache-bindep
      - simple-init

...

when having glean (via simple-init dib element) enabled in the image, I see the below at systemd startup causing no interfaces to be brought up (all are as DOWN):

[ 79.954114] cloud-init[773]: Cloud-init v. 0.7.8 running 'init-local' at Tue, 29 Nov 2016 15:39:12 +0000. Up 79.43 seconds.
         Starting udev Kernel Device Manager...
[ OK ] Started Journal Service.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Started udev Wait for Complete Device Initialization.
[ SKIP ] Ordering cycle found, skipping Network (Pre)
[ SKIP ] Ordering cycle found, skipping Raise network interfaces
[ SKIP ] Ordering cycle found, skipping Network (Pre)
[ SKIP ] Ordering cycle found, skipping Raise network interfaces
[ SKIP ] Ordering cycle found, skipping Raise network interfaces
[ SKIP ] Ordering cycle found, skipping Network (Pre)
[ SKIP ] Ordering cycle found, skipping Raise network interfaces
[ SKIP ] Ordering cycle found, skipping Network (Pre)
[ SKIP ] Ordering cycle found, skipping Raise network interfaces
[ SKIP ] Ordering cycle found, skipping Network (Pre)
[ SKIP ] Ordering cycle found, skipping Raise network interfaces
[ SKIP ] Ordering cycle found, skipping Network (Pre)
[ OK ] Found device /dev/ttyS0.
[ SKIP ] Ordering cycle found, skipping Raise network interfaces
[ SKIP ] Ordering cycle found, skipping Network (Pre)
[ SKIP ] Ordering cycle found, skipping Raise network interfaces
[ SKIP ] Ordering cycle found, skipping Network (Pre)
[ SKIP ] Ordering cycle found, skipping Raise network interfaces
[ SKIP ] Ordering cycle found, skipping Network (Pre)
[ SKIP ] Ordering cycle found, skipping Raise network interfaces
[ SKIP ] Ordering cycle found, skipping Network (Pre)
[ SKIP ] Ordering cycle found, skipping Raise network interfaces
[ SKIP ] Ordering cycle found, skipping Network (Pre)
[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.

removing
Before=network-pre.target

from
/usr/lib/systemd/system/glean@.service

seems to fix the problem at boot

Changed in diskimage-builder:
assignee: nobody → Waldemar Znoinski (wznoinsk)
Revision history for this message
Paul Belanger (pabelanger) wrote :

We need to be careful here, as changing this order in the past has caused problems. I suspect there is a problem with the ubuntu element.

If you switch to ubuntu-minimal, is this an issue?

Revision history for this message
Waldemar Znoinski (wznoinsk) wrote :

 cat /usr/lib/systemd/system/glean@.service
[Unit]
Description=Glean for interface %I
Before=network-pre.target
Wants=network-pre.target

ConditionPathExists=!/etc/sysconfig/network-scripts/ifcfg-%I

[Service]
Type=oneshot
User=root
ExecStartPre=/usr/local/bin/glean.sh %I
ExecStart=/sbin/ifup %I
RemainAfterExit=true

[Install]
WantedBy=multi-user.target

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.