local provider lxc and kvm deploys appear stuck pending, waiting for template/image download

Bug #1400193 reported by mahmoh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Low
Unassigned

Bug Description

Clean Trusty install of Juju from ppa:juju/stable appears to fail, manually adding a lxc template appears to fix the problem.

Symptom:

$ juju status
environment: local
machines:
  "0":
    agent-state: started
    agent-version: 1.20.13.1
    dns-name: localhost
    instance-id: localhost
    series: trusty
    state-server-member-status: has-vote
  "1":
    agent-state: pending
    instance-id: m-local-machine-1
    series: trusty
    hardware: arch=amd64
services:
  juju-gui:
    charm: cs:trusty/juju-gui-16
    exposed: false
    units:
      juju-gui/0:
        agent-state: pending
        machine: "1"

^appears to stay in that state forever; if I execute the following (from another bug), it now appears to work:

$ sudo lxc-create -n juju-trusty-lxc-template -t ubuntu-cloud -f /var/lib/juju/containers/juju-trusty-lxc-template/lxc.conf -- --debug --userdata /var/lib/juju/containers/juju-trusty-lxc-template/cloud-init --hostid juju-trusty-lxc-template -r trusty

$ juju status
environment: local
machines:
  "0":
    agent-state: started
    agent-version: 1.20.13.1
    dns-name: localhost
    instance-id: localhost
    series: trusty
    state-server-member-status: has-vote
  "1":
    agent-state: started
    agent-version: 1.20.13.1
    dns-name: 10.0.3.60
    instance-id: m-local-machine-1
    series: trusty
    hardware: arch=amd64
services:
  juju-gui:
    charm: cs:trusty/juju-gui-16
    exposed: false
    units:
      juju-gui/0:
        agent-state: started
        agent-version: 1.20.13.1
        machine: "1"
        open-ports:
        - 80/tcp
        - 443/tcp
        public-address: 10.0.3.60

Packages:

ii juju 1.20.13-0ubuntu1~14.04.1~juju1 all next generation service orchestration system
ii juju-core 1.20.13-0ubuntu1~14.04.1~juju1 amd64 Juju is devops distilled - client
ii juju-local 1.20.13-0ubuntu1~14.04.1~juju1 all dependency package for the Juju local provider
ii juju-mongodb 2.4.9-0ubuntu3 amd64 MongoDB object/document-oriented database for Juju
ii liblxc1 1.0.6-0ubuntu0.1 amd64 Linux Containers userspace tools (library)
ii lxc 1.0.6-0ubuntu0.1 amd64 Linux Containers userspace tools
ii lxc-templates 1.0.6-0ubuntu0.1 amd64 Linux Containers userspace tools (templates)
ii python3-lxc 1.0.6-0ubuntu0.1 amd64 Linux Containers userspace tools (Python 3.x bindings)

Question: minimally this is a documentation or process issue if I wasn't instruction to either wait [for the template to download fully the first time] or provided with an error [that the template was missing].

Revision history for this message
Curtis Hovey (sinzui) wrote :

The first time juju creates a container, it will create the template. The time is largely network dependant. How long did you wait? do you have fast network to download the OS image? wonder if Juju did get stuck because I have never waited more than 10 minutes to build the templates.

Changed in juju-core:
status: New → Incomplete
tags: added: deploy local-provider lxc
Revision history for this message
mahmoh (mahmoh) wrote :

There is no indication to the user that there will be a significant delay, minimally a message like "Please be patient while LXC is creating the initial template ..." or similar if not a progress bar.

When I created the template manually it took between 5-10m. I also tried with precise and either didn't wait long enough or it didn't work but I created it manually in the end. I'll have to cleanup and retry.

In the meantime, do we make this bug a messaging bug until I can attempt a clean setup reproduction? Thank you.

Changed in juju-core:
status: Incomplete → New
Curtis Hovey (sinzui)
tags: added: ui
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
mahmoh (mahmoh) wrote :

This also applies to KVM (container: kvm), I had to wait for what seemed like ages but knowing the problem I checked lsof and my traffic stats to finally notice that /tmp/ files were being downloaded for images. Without a status message it just seems as though everything's broken to new users.

summary: - local provider deploys remain pending, missing clone template
+ local provider lxc and kvm deploys appear stuck pending, waiting for
+ template/image download
Revision history for this message
mahmoh (mahmoh) wrote :

^ manual sync for kvm: uvt-simplestreams-libvirt -v sync release=trusty arch=amd64

Curtis Hovey (sinzui)
Changed in juju-core:
importance: Medium → Low
Changed in juju-core:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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