yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #88850
[Bug 1972969] Re: cloud-init error in opensuse
It looks like you have no /etc/cloud/cloud.cfg . If I launch a standard openSUSE 15.3 cloud image (using 'lxc launch images:opensuse/15.3/cloud'), I have this in /etc/cloud/cloud.cfg:
https://paste.ubuntu.com/p/CQn29SBTMj/
If I remove that file, I get the same traceback that you're seeing, so I
think that should solve your issue. Given this, I'm going to set this
bug as Invalid. If there's still a problem here that needs to be
addressed, please do set it back to New.
** Changed in: cloud-init
Status: New => Invalid
--
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/1972969
Title:
cloud-init error in opensuse
Status in cloud-init:
Invalid
Bug description:
When running cloud-init (version 21.4-150100.8.58.1) in an openSUSE
15.3 VM using NoCloud as datasource with the following configuration:
I am setting the meta-data file and user-data file in
/var/lib/cloud/seed/nocloud/ directory.
meta-data file:
instance-id: intance-id
local-hostname: localhostname
hostname: hostname
dsmode: local
user-data file:
#cloud-config
write_files:
- content: |
"Does cloud-init work?"
owner: root:root
permissions: '0644'
path: /srv/foo
- content: |
"IT SURE DOES!"
owner: root:root
permissions: '0644'
path: /srv/bar
And the datasource information in /etc/cloud/cloud.cfg.d/10_datasource.cfg.
10_datasource.cfg file:
datasource_list: [ NoCloud, None ]
I am enabling the cloud-init services, rebooting the system and getting the following error:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/cloudinit/cmd/main.py", line 689, in status_wrapper
ret = functor(name, args)
File "/usr/lib/python3.6/site-packages/cloudinit/cmd/main.py", line 398, in main_init
init.apply_network_config(bring_up=bring_up_interfaces)
File "/usr/lib/python3.6/site-packages/cloudinit/stages.py", line 836, in apply_network_config
netcfg, bring_up=bring_up)
File "/usr/lib/python3.6/site-packages/cloudinit/distros/__init__.py", line 222, in apply_network_config
self._write_network_state(network_state)
File "/usr/lib/python3.6/site-packages/cloudinit/distros/debian.py", line 116, in _write_network_state
return super()._write_network_state(network_state)
File "/usr/lib/python3.6/site-packages/cloudinit/distros/__init__.py", line 125, in _write_network_state
renderer.render_network_state(network_state)
File "/usr/lib/python3.6/site-packages/cloudinit/net/sysconfig.py", line 915, in render_network_state
templates=templates).items():
File "/usr/lib/python3.6/site-packages/cloudinit/net/sysconfig.py", line 881, in _render_sysconfig
iface_cfg = NetInterface(iface_name, base_sysconf_dir, templates)
File "/usr/lib/python3.6/site-packages/cloudinit/net/sysconfig.py", line 234, in __init__
ipv4_tpl=route_tpl.get('ipv4'),
AttributeError: 'NoneType' object has no attribute 'get'
Not sure why it's using debian.py instead of opensuse.py.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1972969/+subscriptions
References