~josvaz/ubuntu/+source/rax-openstack-guest-agents/+git/rax-openstack-guest-agents:fix-resetnetwork-waiting

Last commit made on 2017-02-21
Get this branch:
git clone -b fix-resetnetwork-waiting https://git.launchpad.net/~josvaz/ubuntu/+source/rax-openstack-guest-agents/+git/rax-openstack-guest-agents
Only Jose L. VG can upload to this branch. If you are Jose L. VG please log in for upload directions.

Branch merges

Branch information

Recent commits

4928886... by Jose L. VG

Fix resetnetwork waiting

Do "xenstore-read name" only once per script, and outside the waiting loop.

1daef4e... by Jose L. VG

(1.39.1-0ubuntu1.6) zesty; Fix for LP #1657223

SSH host keys were not being generated by cloud-init after it
changed to run earlier in systemd boot and that generated dependency
loops with nova-agent and xe-daemon services.

Also nova-agent being a daemon, and running a network configuration
task at the same time, meant it was impossible to make systemd boot
dependencies deterministically, ensuring nova-agent had completed
network configuration BEFORE network-pre target or cloud-init were
started.

As a result systemd was breaking such dependencies by killing random
services, cloud-init most often.

To avoid that we needed to make nova-agent notify when it was done
with network configuration and setup systemd dependencies to avoid loops.

In order to achieve this, the changes in this release are:

- Disable cloud-init network configuration, as nova-agent will do it.

- Make resetnetwork touch
  /var/lib/nova-agent/{instance uuid}-networkreset.done
  when completed succesfully. Also cleanup foreign marker files, left by
  other instances.

- Make nova-agent config re-issue resetnetwork command when the above
  marker file is missing, to avoid lock ups when the Xen host doesn't
  issue it.

- Remove systemd's rax-cloud.service dummy waiter service.

- Add systemd's nova-resetnetwork.service that waits on the marker
  file to appear. That way we cam make cloud-init & network-pre.target
  wait on nova-agent to complete network configuration.

- Make nova-agent.service avoid default dependencies creating
  systemd's dependency loops with cloud-init. Also remove sleep and
  dependency on removed rax-cloud.service in favor of network-pre.target

- Override xe-daemon.service unit so that it also avoids default
  dependencies creating systemd's dependency loops with cloud-init.

9905783... by Robert C Jennings

Imported Debian patch 1.39.1-0ubuntu1.5

e504ca5... by Ben Howard

Imported Debian patch 1.39.1-0ubuntu1.4

e53a05e... by Ben Howard

Imported Debian patch 1.39.1-0ubuntu1.3

7c7e31e... by Jose L. VG

Imported Upstream version 1.39.1