MAAS + LXC containers == unable to upgrade charms due to git hostname resolution issues

Bug #1329282 reported by James Page
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
1.18
Won't Fix
Medium
Unassigned

Bug Description

I know that git has disappeared from use by juju on service units for 1.19.x, but I still see issues upgrading charms running in LXC containers in MAAS environments under 1.18.x; specifically I get:

2014-06-12 10:15:26 ERROR juju.worker.uniter.charm git.go:211 git command failed: exit status 128
path: /var/lib/juju/agents/unit-nova-cloud-controller-0/state/deployer/update-20140612-101526680418371
args: []string{"commit", "--allow-empty", "-m", "Imported charm \"local:trusty/nova-cloud-controller-315\"."}

*** Please tell me who you are.

Run

  git config --global user.email "<email address hidden>"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'root@juju-machine-0-lxc-6.(none)')

2014-06-12 10:15:26 ERROR juju.worker.uniter.filter filter.go:116 tomb: dying

Revision history for this message
James Page (james-page) wrote :

I worked around this by adding an entry to /etc/hosts for 127.0.1.1 so that git was able to resolve a full hostname.

Curtis Hovey (sinzui)
tags: added: lxc maas-provider
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
no longer affects: juju-core
Revision history for this message
Curtis Hovey (sinzui) wrote :

Juju 1.20.0 doesn't use git, so there is no plans to fix this bug in 1.18.

Revision history for this message
James Page (james-page) wrote :

Bearing in mind that 1.18 is the current stable release shipping in 14.04 and its taking a while for 1.20 to stablize in full, please can this bug be re-assessed for inclusion in 1.18.4.

It's not a great feeling watching your message broker being restarted continually in an 1.18.4 deployed OpenStack when you try to upgrade the charm.

For anyone hitting this, setting a fully qualified hostname in /etc/hostname and /etc/hosts resolves the problem.

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

perhaps configure the info git is requesting to avoid the implicit fqdn host lookup failure, ie. juju run --all git config --global user.email "<email address hidden>"

JuanJo Ciarlante (jjo)
tags: added: canonical-is
Revision history for this message
Anastasia (anastasia-macmood) wrote :

targeted against old milestone

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.