[Bug 1365852] Re: Setting "timezone:" fails: NameError: global name 'set_etc_timezone' is not defined

2016-04-06 Thread Scott Moser
this is fix-released in any thing newere than revision 1008.

** Changed in: cloud-init (Ubuntu)
   Status: New => Fix Released

** Changed in: cloud-init (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1365852

Title:
  Setting "timezone:" fails: NameError: global name 'set_etc_timezone'
  is not defined

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1365852/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1365852] Re: Setting "timezone:" fails: NameError: global name 'set_etc_timezone' is not defined

2014-09-05 Thread Martin Pitt
** Description changed:

  Current utopic's cloud-init fails to set a proper timezone. In my
  userdata I have "timezone: Europe/Berlin", but in the generated VM
  /etc/timezone has the default "Etc/UTC", and /etc/localtime is also just
  UTC.
  
  A look at the log files shows that the timezone plugin crashes. cloud-
  init-output.log:
  
  2014-09-05 04:46:27,281 - util.py[WARNING]: Running module timezone
  () failed
  
  cloud-init.log:
  
  Sep  5 04:46:27 autopkgtest [CLOUDINIT] stages.py[DEBUG]: Running module 
timezone () with 
frequency once-per-instance
  Sep  5 04:46:27 autopkgtest [CLOUDINIT] util.py[DEBUG]: Writing to 
/var/lib/cloud/instances/nocloud/sem/config_timezone - wb: [420] 19 bytes
  Sep  5 04:46:27 autopkgtest [CLOUDINIT] helpers.py[DEBUG]: Running 
config-timezone using lock ()
  Sep  5 04:46:27 autopkgtest [CLOUDINIT] util.py[WARNING]: Running module 
timezone () failed
  Sep  5 04:46:27 autopkgtest [CLOUDINIT] util.py[DEBUG]: Running module 
timezone () 
failed#012Traceback (most recent call last):#012  File 
"/usr/lib/python2.7/dist-packages/cloudinit/stages.py", line 660, in 
_run_modules#012cc.run(run_name, mod.handle, func_args, freq=freq)#012  
File "/usr/lib/python2.7/dist-packages/cloudinit/cloud.py", line 63, in run#012 
   return self._runners.run(name, functor, args, freq, clear_on_fail)#012  File 
"/usr/lib/python2.7/dist-packages/cloudinit/helpers.py", line 197, in run#012   
 results = functor(*args)#012  File 
"/usr/lib/python2.7/dist-packages/cloudinit/config/cc_timezone.py", line 39, in 
handle#012cloud.distro.set_timezone(timezone)#012  File 
"/usr/lib/python2.7/dist-packages/cloudinit/distros/debian.py", line 134, in 
set_timezone#012set_etc_timezone(tz=tz, 
tz_file=self._find_tz_file(tz))#012NameError: global name 'set_e
 tc_timezone' is not defined
  
  I attach both complete files for reference.
  
  I noticed this in VMs generated by "adt-buildvm-ubuntu-cloud -v".
+ 
+ Current utopic's cloud-init version is 0.7.6~bzr992-0ubuntu1.
+ 0.7.5-0ubuntu1 works fine (e. g. with "adt-buildvm-ubuntu-cloud -v -r
+ trusty").

** Tags added: regression-release utopic

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1365852

Title:
  Setting "timezone:" fails: NameError: global name 'set_etc_timezone'
  is not defined

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1365852/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1365852] Re: Setting "timezone:" fails: NameError: global name 'set_etc_timezone' is not defined

2014-09-05 Thread Martin Pitt
** Attachment added: "cloud-init-output.log"
   
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1365852/+attachment/4196000/+files/cloud-init-output.log

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1365852

Title:
  Setting "timezone:" fails: NameError: global name 'set_etc_timezone'
  is not defined

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1365852/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs