← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1866640] Re: failed run of stage modules-final: AttributeError: 'Paths' object has no attribute 'run_dir'

 

[Expired for cloud-init because there has been no activity for 60 days.]

** Changed in: cloud-init
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1866640

Title:
  failed run of stage modules-final: AttributeError: 'Paths' object has
  no attribute 'run_dir'

Status in cloud-init:
  Expired

Bug description:
  When attempting to deploy a CentOS7 machine that upt to know has
  deployed successfully with no issues, we now see the following error
  when provisioning below.

  The version of cloud-init running is this:

  Mar  9 15:01:16 localhost cloud-init: Cloud-init v. 0.7.5 running 'init-local' at Mon, 09 Mar 2020 15:01:16 +0000. Up 10.09 seconds.
  Mar  9 15:01:29 localhost cloud-init: Cloud-init v. 0.7.5 running 'init' at Mon, 09 Mar 2020 15:01:29 +0000. Up 23.31 seconds.

  Here is the error log:

  Mar  9 15:07:36 ldap01 systemd: Started Apply the settings specified in cloud-config.
  Mar  9 15:07:36 ldap01 systemd: Starting Execute cloud user/final scripts...
  Mar  9 15:07:38 ldap01 cloud-init: failed run of stage modules-final
  Mar  9 15:07:38 ldap01 cloud-init: ------------------------------------------------------------
  Mar  9 15:07:38 ldap01 cloud-init: Traceback (most recent call last):
  Mar  9 15:07:38 ldap01 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 652, in status_wrapper
  Mar  9 15:07:38 ldap01 cloud-init: ret = functor(name, args)
  Mar  9 15:07:38 ldap01 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 494, in main_modules
  Mar  9 15:07:38 ldap01 cloud-init: _maybe_persist_instance_data(init)
  Mar  9 15:07:38 ldap01 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 694, in _maybe_persist_instance_data
  Mar  9 15:07:38 ldap01 cloud-init: init.datasource.persist_instance_data()
  Mar  9 15:07:38 ldap01 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/sources/__init__.py", line 304, in persist_instance_data
  Mar  9 15:07:38 ldap01 cloud-init: json_file = os.path.join(self.paths.run_dir, INSTANCE_JSON_FILE)
  Mar  9 15:07:38 ldap01 cloud-init: AttributeError: 'Paths' object has no attribute 'run_dir'
  Mar  9 15:07:38 ldap01 cloud-init: ------------------------------------------------------------
  Mar  9 15:07:38 ldap01 cloud-init: Traceback (most recent call last):
  Mar  9 15:07:38 ldap01 cloud-init: File "/usr/bin/cloud-init", line 9, in <module>
  Mar  9 15:07:38 ldap01 cloud-init: load_entry_point('cloud-init==18.5', 'console_scripts', 'cloud-init')()
  Mar  9 15:07:38 ldap01 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 892, in main
  Mar  9 15:07:38 ldap01 cloud-init: get_uptime=True, func=functor, args=(name, args))
  Mar  9 15:07:38 ldap01 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 2520, in log_time
  Mar  9 15:07:38 ldap01 systemd: cloud-final.service: main process exited, code=exited, status=1/FAILURE
  Mar  9 15:07:38 ldap01 systemd: Failed to start Execute cloud user/final scripts.
  Mar  9 15:07:38 ldap01 systemd: Unit cloud-final.service entered failed state.
  Mar  9 15:07:38 ldap01 systemd: cloud-final.service failed.
  Mar  9 15:07:38 ldap01 systemd: Reached target Multi-User System.
  Mar  9 15:07:38 ldap01 systemd: Starting Update UTMP about System Runlevel Changes...
  Mar  9 15:07:38 ldap01 cloud-init: ret = func(*args, **kwargs)
  Mar  9 15:07:38 ldap01 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 676, in status_wrapper
  Mar  9 15:07:38 ldap01 cloud-init: if v1[m]['errors']:
  Mar  9 15:07:38 ldap01 cloud-init: KeyError: 'modules-init'
  Mar  9 15:07:38 ldap01 systemd: Started Update UTMP about System Runlevel Changes.
  Mar  9 15:07:38 ldap01 systemd: Startup finished in 1.488s (kernel) + 2.698s (initrd) + 6min 28.092s (userspace) = 6min 32.279s.

  This problem seems to be related to the following deleted bug:

  https://www.mail-archive.com/yahoo-eng-
  team@xxxxxxxxxxxxxxxxxxx/msg75935.html

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


References