Failed to read conf from systemd for service

Bug #1572059 reported by Dariusz Gadomski on 2016-04-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core-1 (Ubuntu)
Undecided
Unassigned

Bug Description

I installed juju-local from scratch according to the documentation at [1]

After successful bootstrap of lxc-based local environment I've added the following to the environments.yaml:
    kvm:
        type: local
        container: kvm
        state-port: 37019
        storage-port: 8041
        api-port: 17072

After switching to this environment and running juju bootstrap I get:
2016-04-19 10:12:20 INFO juju.utils.packaging.manager utils.go:57 Running: apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install juju-mongodb
2016-04-19 10:12:21 INFO juju.util.exec exec.go:182 run result: exit status 1
2016-04-19 10:12:21 ERROR juju.service.systemd service.go:149 failed to read conf from systemd for service "juju-db-dgd-kvm": get conf failed (cat /var/lib/juju/init/juju-db-dgd-kvm/juju-db-dgd-kvm.service): error executing "/bin/systemctl": cat: /var/lib/juju/init/juju-db-dgd-kvm/juju-db-dgd-kvm.service: No such file or directory;
2016-04-19 10:12:21 ERROR juju.cmd supercommand.go:429 failed to read conf from systemd for service "juju-db-dgd-kvm": get conf failed (cat /var/lib/juju/init/juju-db-dgd-kvm/juju-db-dgd-kvm.service): error executing "/bin/systemctl": cat: /var/lib/juju/init/juju-db-dgd-kvm/juju-db-dgd-kvm.service: No such file or directory;
ERROR failed to bootstrap environment: exit status 1

After this error every juju command targeted toward this environment make juju freeze without any response (including juju debug-log which also hangs).

I checked /var/lib/juju/init and I can see the directories and service file for the lxc-based environment, but not for KVM.

I was able to try to bootstrap it again after removing ~/.juju/environments/kvm.jenv and ~/.juju/kvm. The issue is reproducible every time.

[1] https://jujucharms.com/docs/1.25/config-local

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: juju-local 1.25.5-0ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-18.34-generic 4.4.6
Uname: Linux 4.4.0-18-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Apr 19 12:13:00 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-04-03 (15 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
PackageArchitecture: all
SourcePackage: juju-core-1
UpgradeStatus: Upgraded to xenial on 2016-04-03 (15 days ago)

Dariusz Gadomski (dgadomski) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers