<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/systemd/cloud-init.service, branch crux</title>
<subtitle> (mirror of https://github.com/marekm72/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=crux</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=crux'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/'/>
<updated>2017-07-19T21:52:32+00:00</updated>
<entry>
<title>Templatize systemd unit files for cross distro deltas.</title>
<updated>2017-07-19T21:52:32+00:00</updated>
<author>
<name>Ryan Harper</name>
<email>ryan.harper@canonical.com</email>
</author>
<published>2017-06-13T14:06:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=dcbe479575fac9f293c5c4089f4bcb46ab887206'/>
<id>urn:sha1:dcbe479575fac9f293c5c4089f4bcb46ab887206</id>
<content type='text'>
Under el7, cloud-init systemd files need some unit tweaks to ensure
they run at the right time. Pull in current el7 downstream systemd unit
changes.
</content>
</entry>
<entry>
<title>cloudinit.net: add network config v2 parsing and rendering</title>
<updated>2017-03-20T19:59:03+00:00</updated>
<author>
<name>Ryan Harper</name>
<email>ryan.harper@canonical.com</email>
</author>
<published>2017-03-19T13:39:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=ef18b8ac4cf7e3dfd98830fbdb298380a192a0fc'/>
<id>urn:sha1:ef18b8ac4cf7e3dfd98830fbdb298380a192a0fc</id>
<content type='text'>
Network configuration version 2 format is implemented in a package
called netplan (nplan)[1] which allows consolidated network config
for multiple network controllers.

- Add a new netplan renderer
- Update default policy, placing eni and sysconfig first
  This requires explicit policy to enable netplan over eni
  on systems which have both (Yakkety, Zesty, UC16)
- Allow any network state (parsed from any format cloud-init supports) to
  render to v2 if system supports netplan.
- Move eni's _subnet_is_ipv6 to common code for use by other renderers
- Make sysconfig renderer always emit /etc/syconfig/network configuration
- Update cloud-init.service systemd unit to also wait on
  systemd-networkd-wait-online.service

1. https://lists.ubuntu.com/archives/ubuntu-devel/2016-July/039464.html
</content>
</entry>
<entry>
<title>systemd: cloud-init remove After=systemd-networkd-wait-online</title>
<updated>2016-11-15T22:17:59+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2016-11-15T22:02:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=b6561a134936ba48eaccc447c3fe2526f0b84bb9'/>
<id>urn:sha1:b6561a134936ba48eaccc447c3fe2526f0b84bb9</id>
<content type='text'>
cloud-init.service cannot currently run
  After=systemd-networkd-wait-online.service
as systemd-networkd.service is After dbus.service, but
cloud-init.service is:
  Before=sysinit.target
and sysinit.target is before dbus.service.

The result is that we are temporarily preferring for cases
where there is systemd-networkd in place to have cloud-init.service run
without networking properly configured.

See bug 1636912 for more information.
</content>
</entry>
<entry>
<title>systemd: drop both Wants and After local-fs.target</title>
<updated>2016-11-10T22:09:29+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2016-11-10T15:49:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=bf4010a9c379e2109b030af558033014f9137f47'/>
<id>urn:sha1:bf4010a9c379e2109b030af558033014f9137f47</id>
<content type='text'>
Drop mention of local-fs.target from both cloud-init-local.service
and cloud-init.service.  This could actually could cause a loop in
ordering due to cc_mounts writing mount points with:
  x-systemd.requires=cloud-init.service

Rather, we specifically list /var/lib/ and systemd-remount-fs.service
in cloud-init-local.service.   cloud-init.service will run after
cloud-init-local and thus will have these satisfied.
</content>
</entry>
<entry>
<title>systemd: networking service adjustments.</title>
<updated>2016-11-10T22:09:29+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2016-11-10T15:41:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=f7d6bfadf4c84e702e950851e8001ee8f4e3c4b4'/>
<id>urn:sha1:f7d6bfadf4c84e702e950851e8001ee8f4e3c4b4</id>
<content type='text'>
Here we drop the Requires=networking.service but keep the
After=networking.service.  The change there is that we no longer
force networking.service to run, as the system may not have it or
be configured to use it.

Second, we add After=systemd-networkd-wait-online.service.
That causes us to run after systemd-networkd has brought networking
up.

The end result is that we now run after both ifupdown or
systemd-networkd (if they were going to run) but do not force either
to run.

One other change is that by dropping Requires=networking.service
cloud-init will now run even if networking failed to come up.

LP: #1636912
</content>
</entry>
<entry>
<title>systemd: replace Before=basic.target, dbus.target with sysinit.target</title>
<updated>2016-11-10T22:09:29+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2016-11-10T15:29:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=e568aec31051674901047ee577f6e229785cbfc3'/>
<id>urn:sha1:e568aec31051674901047ee577f6e229785cbfc3</id>
<content type='text'>
Per discussion on bug 1636912 and subsequent feedback on bug 1629797,
using:
  Before=sysinit.target
is a simpler solution than what we had implemented:
  Before=basic.target
  Before=dbus.target

LP: #1629797
</content>
</entry>
<entry>
<title>systemd: Run cloud-init.service Before dbus.socket not dbus.target</title>
<updated>2016-10-07T16:28:07+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>daniel.watkins@canonical.com</email>
</author>
<published>2016-10-07T10:33:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=6e45ffb21e9622780585b4fe15890f009ca8fa71'/>
<id>urn:sha1:6e45ffb21e9622780585b4fe15890f009ca8fa71</id>
<content type='text'>
The change reported to fix bug 1629797 was incorrect.  It added:
  Before=dbus.target
and its commit message referenced dbus.service.
dbus.target does not exist, and dbus.service would not solve the
problem.  The change did not fix the problem nor actually make any
difference.

The fix here is just to use Before=dbus.socket.

LP: #1629797
</content>
</entry>
<entry>
<title>systemd: run cloud-init.service Before dbus.service</title>
<updated>2016-10-04T20:40:12+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2016-10-04T20:40:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=94fd35eeb3f53bc82fb9ddcad60c1e605890fd53'/>
<id>urn:sha1:94fd35eeb3f53bc82fb9ddcad60c1e605890fd53</id>
<content type='text'>
This is the best work around we have for an issue seen when dns is used
during cloud-init.service on a system that is configured in nsswitch
to use systemd-resolved.  The problem is that cloud-init.service was
blocking basic.target, and dbus would not be available until after
cloud-init.service finished.

LP: #1629797
</content>
</entry>
<entry>
<title>Adjust mounts and disk configuration for systemd.</title>
<updated>2016-09-20T17:42:29+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2016-09-19T15:48:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=80f5ec4be0f781b26eca51d90d51abfab396b3f6'/>
<id>urn:sha1:80f5ec4be0f781b26eca51d90d51abfab396b3f6</id>
<content type='text'>
The end result of all of these changes is to get mounts managed by
cloud-init to occur only after cloud-init.service is done.  We need to do
that so that filesystems that are set up by cloud-init (in disk_setup)
do not get mounted by stale entries in /etc/fstab before
the setup occurs.

This can occur in 2 ways:
 a.) new instance with old /etc/fstab
 b.) same instance where disk needs adjusting (Azure resize will re-format
     the ephemeral disk).

The list of changes here is:
 - move mounts and disk_setup module to cloud-init.service rather
   than config.  cloud-init.service runs earlier in boot so it
   can get those mount points done earlier.
 - on systemd add 'x-systemd.requires=cloud-init.service' to fstab options
 - cloud-init-local.service: add Before=basic.target
 - cloud-init.service:
   - extend After, Before, and Wants to multiple lines rather than one
     long line.
   - sort consistently with cloud-init-local.service
   - add DefaultDependencies=no
   - add Before=default.target
   - add Conflicts=shutdown.target

LP: #1611074
</content>
</entry>
<entry>
<title>initial systemd service suggestions provided by pitti</title>
<updated>2016-03-10T15:32:08+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2016-03-10T15:32:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=2eb86ca13cb658b51440bb28cab47205b641d0ee'/>
<id>urn:sha1:2eb86ca13cb658b51440bb28cab47205b641d0ee</id>
<content type='text'>
This should mean that cloud-init-local is running earlier now
(DefaultDependencies=no). And also blocking networking coming up
(Before=network-pre.target)

cloud-init.service should now actually block network-online.target
from being made (meaning it will run before anything that expects
that) but after networking.service, which is what actually does
the bringup on ifupdown / ubuntu.
</content>
</entry>
</feed>
