This bug is believed to be fixed in cloud-init in version 22.3. If this is still a problem for you, please make a comment and set the state back to New
Thank you.
** Changed in: cloud-init
Status: Fix Committed => Fix Released
--
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/1975907
Title:
cloud-init devel net-convert crash when --debug is enabled
Status in cloud-init:
Fix Released
Bug description:
Since 22.2 enabling "--debug" for "cloud-init devel net-convert" will
make cloud-init crash.
Probably linked to 3e5938c6ae22b9f158f1404f41e3e43738cadff0 and the
use of safe dumper.
Stack trace shows:
Traceback (most recent call last):
File "/xyz/git/cloud-init/bin/cloud-init", line 8, in <module>
sys.exit(main())
File
"/xyz/git/cloud-init/lib/python3.8/site-packages/cloudinit/cmd/main.py", line
1059, in main
retval = util.log_time(
File "/xyz/git/cloud-init/lib/python3.8/site-packages/cloudinit/util.py",
line 2637, in log_time
ret = func(*args, **kwargs)
File
"/xyz/git/cloud-init/lib/python3.8/site-packages/cloudinit/cmd/devel/net_convert.py",
line 136, in handle_args
"\n".join(["", "Internal State", safeyaml.dumps(ns, noalias=True), ""])
File
"/xyz/git/cloud-init/lib/python3.8/site-packages/cloudinit/safeyaml.py", line
161, in dumps
return yaml.dump(
File "/xyz/git/cloud-init/lib/python3.8/site-packages/yaml/__init__.py",
line 253, in dump
return dump_all([data], stream, Dumper=Dumper, **kwds)
File "/xyz/git/cloud-init/lib/python3.8/site-packages/yaml/__init__.py",
line 241, in dump_all
dumper.represent(data)
File "/xyz/git/cloud-init/lib/python3.8/site-packages/yaml/representer.py",
line 27, in represent
node = self.represent_data(data)
File "/xyz/git/cloud-init/lib/python3.8/site-packages/yaml/representer.py",
line 58, in represent_data
node = self.yaml_representers[None](self, data)
File "/xyz/git/cloud-init/lib/python3.8/site-packages/yaml/representer.py",
line 231, in represent_undefined
raise RepresenterError("cannot represent an object", data)
yaml.representer.RepresenterError: ('cannot represent an object',
<cloudinit.net.network_state.NetworkState object at 0x7fa7979ec340>)
i tried to replace to dumper with the unsafe version and it was
working again
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1975907/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp

