Comment # 5 on bug 1064854 from
I ran some more tests with cloud-init.

This time I was able to get the cloud-init package from Tumbleweed repository
and installed cloud-init version 0.7.8 on a freshly upgraded Leap-42.3
instance.
When I restarted the cloud-init services this error occurs:

---cut here---
Cloud-init v. 0.7.8 running 'init-local' at Thu, 02 Nov 2017 11:31:19 +0000. Up
95.77 seconds.
2017-11-02 12:31:19,934 - util.py[WARNING]: Failed loading pickled blob from
/var/lib/cloud/instance/obj.pkl
2017-11-02 12:31:19,948 - util.py[WARNING]: failed stage init-local
failed run of stage init-local
------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/cloudinit/cmd/main.py", line 521, in
status_wrapper
    ret = functor(name, args)
  File "/usr/lib/python3.6/site-packages/cloudinit/cmd/main.py", line 247, in
main_init
    init.fetch(existing=existing)
  File "/usr/lib/python3.6/site-packages/cloudinit/stages.py", line 358, in
fetch
    return self._get_data_source(existing=existing)
  File "/usr/lib/python3.6/site-packages/cloudinit/stages.py", line 268, in
_get_data_source
    pkg_list, self.reporter)
  File "/usr/lib/python3.6/site-packages/cloudinit/sources/__init__.py", line
295, in find_source
    ds_list = list_sources(cfg_list, ds_deps, pkg_list)
  File "/usr/lib/python3.6/site-packages/cloudinit/sources/__init__.py", line
335, in list_sources
    ['get_datasource_list'])
  File "/usr/lib/python3.6/site-packages/cloudinit/importer.py", line 47, in
find_module
    mod = import_module(full_path)
  File "/usr/lib/python3.6/site-packages/cloudinit/importer.py", line 27, in
import_module
    __import__(module_name)
  File
"/usr/lib/python3.6/site-packages/cloudinit/sources/DataSourceOpenNebula.py",
line 133
    list = self.REG_DEV_MAC.findall(self.ip)
                                           ^
TabError: inconsistent use of tabs and spaces in indentation
---cut here---

I fixed the indentation and successfully restarted the services. (A diff of the
file will be attached to this bug.) Snapshotting this instance and launching a
new VM in an external network was successful, the instance's network was
configured correctly via config-drive. 

I figured the indentation errors don't require a separate bug report. If you
disagree I'll file a new report, of course.

test:~ # rpm -qa | grep cloud-init
cloud-init-0.7.8-12.1.x86_64
cloud-init-config-suse-0.7.8-33.1.x86_64

test:~ # cat /etc/os-release
NAME="openSUSE Leap"
VERSION="42.3"

This topic is also an issue in the opensuse-cloud mailing-list [1].

[1] https://lists.opensuse.org/opensuse-cloud/2017-11/msg00000.html


You are receiving this mail because: