'password' setting broken by usergroup changes

Bug #1044553 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
High
Unassigned
cloud-init (Ubuntu)
Fix Released
High
Unassigned

Bug Description

I've posted this little snippet of cloud-config syntax different places:
      #cloud-config
      password: passw0rd
      chpasswd: { expire: False }
      ssh_pwauth: True

And I'd like for it to continue to work. It was broken by the user-group changes and currently gives a stack trace in the cc_set_passwords module. That exception also breaks the 'ssh_pwauth'.

basically, I think we should do the following:

 * if 'password' appears in cloud-config, then apply it to the 'default' user if that user does not have a password set.
 * if there is no default user, just complain (log warn) and do not do anything.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: cloud-init 0.7.0~bzr639-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-13.13-generic 3.5.3
Uname: Linux 3.5.0-13-generic x86_64
Architecture: amd64
Date: Fri Aug 31 21:08:28 2012
PackageArchitecture: all
ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

Submitted MP.

Scott Moser (smoser)
Changed in cloud-init:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Ben Howard (utlemming)
Changed in cloud-init (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Ben Howard (utlemming)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.7.0~bzr644-0ubuntu1

---------------
cloud-init (0.7.0~bzr644-0ubuntu1) quantal; urgency=low

  * New upstream snapshot.
    * fix cloud-archives (LP: #1044594)
    * fix set_passwords for usergroups as a list (LP: #1044553)
  * fix 'failed to setup apt-pipelining' warning on install due to
    old 0.6 style usage of cloud-init.
 -- Scott Moser <email address hidden> Sat, 01 Sep 2012 20:11:34 -0400

Changed in cloud-init (Ubuntu):
status: In Progress → Fix Released
Scott Moser (smoser)
Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
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.