juju nova-compute charm occasionally errors due to missing /etc/init
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Compute Charm |
Fix Released
|
Medium
|
James Page |
Bug Description
When using Juju to deploy openstack using nova-compute charm revision 287, approximately 10% of the time, the deployment fails with nova-compute/0 going into error state (hook failed: "config-changed". This was specifically tested deploying nova-compute into an LXD container.
This appears to be because /etc/init is not created due to a race condition intermittedly. Note that logging onto the offending LXD container and manually creating the directory (sudo mkdir /etc/init) and resolving the charm state is sufficient to continue deployment.
Extract from /var/log/
2018-11-26 17:21:51 DEBUG config-changed ERROR no relation id specified
2018-11-26 17:21:51 INFO juju-log CPU architecture: x86_64
2018-11-26 17:21:51 INFO juju-log Loaded template from templates/qemu.conf
2018-11-26 17:21:51 INFO juju-log Rendering from template: /etc/libvirt/
2018-11-26 17:21:51 INFO juju-log Wrote template /etc/libvirt/
2018-11-26 17:21:51 INFO juju-log Loaded template from templates/qemu-kvm
2018-11-26 17:21:51 INFO juju-log Rendering from template: /etc/default/
2018-11-26 17:21:51 INFO juju-log Wrote template /etc/default/
2018-11-26 17:21:52 INFO juju-log Loaded template from templates/
2018-11-26 17:21:52 INFO juju-log Rendering from template: /etc/libvirt/
2018-11-26 17:21:52 INFO juju-log Wrote template /etc/libvirt/
2018-11-26 17:21:52 INFO juju-log Loaded template from templates/
2018-11-26 17:21:52 INFO juju-log Rendering from template: /etc/default/
2018-11-26 17:21:52 INFO juju-log Wrote template /etc/default/
2018-11-26 17:21:52 INFO juju-log Loaded template from templates/
2018-11-26 17:21:52 INFO juju-log Rendering from template: /etc/init/
2018-11-26 17:21:52 DEBUG config-changed Traceback (most recent call last):
2018-11-26 17:21:52 DEBUG config-changed File "/var/lib/
2018-11-26 17:21:52 DEBUG config-changed main()
2018-11-26 17:21:52 DEBUG config-changed File "/var/lib/
2018-11-26 17:21:52 DEBUG config-changed hooks.execute(
2018-11-26 17:21:52 DEBUG config-changed File "/var/lib/
2018-11-26 17:21:52 DEBUG config-changed self._hooks[
2018-11-26 17:21:52 DEBUG config-changed File "/var/lib/
2018-11-26 17:21:52 DEBUG config-changed restart_functions)
2018-11-26 17:21:52 DEBUG config-changed File "/var/lib/
2018-11-26 17:21:52 DEBUG config-changed r = lambda_f()
2018-11-26 17:21:52 DEBUG config-changed File "/var/lib/
2018-11-26 17:21:52 DEBUG config-changed (lambda: f(*args, **kwargs)), restart_map, stopstart,
2018-11-26 17:21:52 DEBUG config-changed File "/var/lib/
2018-11-26 17:21:52 DEBUG config-changed return f(*args, **kwargs)
2018-11-26 17:21:52 DEBUG config-changed File "/var/lib/
2018-11-26 17:21:52 DEBUG config-changed CONFIGS.write_all()
2018-11-26 17:21:52 DEBUG config-changed File "/var/lib/
2018-11-26 17:21:52 DEBUG config-changed [self.write(k) for k in six.iterkeys(
2018-11-26 17:21:52 DEBUG config-changed File "/var/lib/
2018-11-26 17:21:52 DEBUG config-changed [self.write(k) for k in six.iterkeys(
2018-11-26 17:21:52 DEBUG config-changed File "/var/lib/
2018-11-26 17:21:52 DEBUG config-changed with open(config_file, 'wb') as out:
2018-11-26 17:21:52 DEBUG config-changed FileNotFoundError: [Errno 2] No such file or directory: '/etc/init/
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: nova-compute 2:18.0.
ProcVersionSign
Uname: Linux 4.15.0-1024-gcp x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
CrashDB:
{
}
Date: Mon Nov 26 17:19:27 2018
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: nova
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in charm-nova-compute: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → James Page (james-page) |
status: | Triaged → In Progress |
no longer affects: | cloud-archive |
Changed in charm-nova-compute: | |
milestone: | none → 19.04 |
Changed in charm-nova-compute: | |
status: | Fix Committed → Fix Released |
Moving to charm as this is where the problem is.