debug-log does not work with local provider on xenial + 1.25.0

Bug #1531589 reported by Ryan Harper
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Invalid
Low
Unassigned
1.25
Won't Fix
Undecided
Unassigned

Bug Description

Broken for me on Xenial amd64 with 1.25.0

I'm in a Xenial lxd container:

apt-get install juju-local
su - ubuntu
juju init
juju switch local
juju bootstrap
juju debug-log

ERROR

ubuntu@nestc1:~$ juju init
A boilerplate environment configuration file has been written to /home/ubuntu/.juju/environments.yaml.
Edit the file to configure your juju environment and run bootstrap.
ubuntu@nestc1:~$ juju switch local
-> local
ubuntu@nestc1:~$ juju bootstrap
Bootstrapping environment "local"
Starting new instance for initial state server
Building tools to upload (1.25.0.1-xenial-amd64)
Installing Juju agent on bootstrap instance
sudo: unable to resolve host nestc1
Logging to /home/ubuntu/.juju/local/cloud-init-output.log on remote host
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Installing package: cloud-utils
Installing package: cloud-image-utils
Installing package: tmux
Bootstrapping Juju machine agent
Starting Juju machine agent (juju-agent-ubuntu-local)
Bootstrap agent installed
Waiting for API to become available
Waiting for API to become available
Bootstrap complete
ubuntu@nestc1:~$ juju status
environment: local
machines:
  "0":
    agent-state: started
    agent-version: 1.25.0.1
    dns-name: localhost
    instance-id: localhost
    series: xenial
    state-server-member-status: has-vote
services: {}
ubuntu@nestc1:~$ juju deploy ubuntu
Added charm "cs:trusty/ubuntu-5" to the environment.
ubuntu@nestc1:~$ juju debug-log
ERROR cannot open log file: open /var/log/juju-ubuntu-local/all-machines.log: no such file or directory

Revision history for this message
Ryan Harper (raharper) wrote :
Revision history for this message
Ryan Harper (raharper) wrote :
Revision history for this message
Cheryl Jennings (cherylj) wrote :

Looks to be a regression of bug #1464335

Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
importance: Medium → High
tags: added: debug-log local-provider regression xenial
tags: added: juju-release-support
tags: removed: juju-release-support
Revision history for this message
Ursula Junque (ursinha) wrote :

I can confirm this problem in wily with juju 1.25.3-wily-amd64, can reproduce consistently with the exact same steps as OP.

Curtis Hovey (sinzui)
Changed in juju-core:
importance: High → Low
Revision history for this message
Anastasia (anastasia-macmood) wrote :

1.25 is in Critial-bugs only mode.

Juju 2.0 has had considerable improvements in the area. This bug is no longer applicable there.

Changed in juju-core:
status: Triaged → Invalid
tags: removed: regression
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.