Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when no activator found #3917

Closed
ubuntu-server-builder opened this issue May 12, 2023 · 3 comments
Closed

Exception when no activator found #3917

ubuntu-server-builder opened this issue May 12, 2023 · 3 comments
Labels
launchpad Migrated from Launchpad priority Fix soon

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1948681

Launchpad details
affected_projects = []
assignee = falcojr
assignee_name = James Falcon
date_closed = 2022-02-15T21:54:23.282635+00:00
date_created = 2021-10-25T14:57:19.679453+00:00
date_fix_committed = 2021-12-03T04:46:15.191729+00:00
date_fix_released = 2022-02-15T21:54:23.282635+00:00
id = 1948681
importance = high
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1948681
milestone = None
owner = falcojr
owner_name = James Falcon
private = False
status = fix_released
submitter = falcojr
submitter_name = James Falcon
tags = []
duplicates = []

Launchpad user James Falcon(falcojr) wrote on 2021-10-25T14:57:19.679453+00:00

On FreeBSD system:

2021-10-24 14:00:10,707 - util.py[WARNING]: failed stage init
failed run of stage init

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/cloudinit/cmd/main.py", line 682, in status_wrapper
ret = functor(name, args)
File "/usr/local/lib/python3.8/site-packages/cloudinit/cmd/main.py", line 391, in main_init
init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))
File "/usr/local/lib/python3.8/site-packages/cloudinit/stages.py", line 824, in apply_network_config
return self.distro.apply_network_config(
File "/usr/local/lib/python3.8/site-packages/cloudinit/distros/init.py", line 230, in apply_network_config
network_activator = activators.select_activator()
File "/usr/local/lib/python3.8/site-packages/cloudinit/net/activators.py", line 274, in select_activator
raise RuntimeError(
RuntimeError: No available network activators found. Searched through list: [<class 'cloudinit.net.activators.IfUpDownActivator'>, <class 'cloudinit.net.activators.NetworkManagerActivator'>, <class 'cloudinit.net.activators.NetplanActivator'>, <class 'cloudinit.net.activators.NetworkdActivator'>]

Given that there are additional network management tools that we haven't yet supported with activators, we should log a warning and continue without network activation here, especially since this was a no-op for years.

@ubuntu-server-builder ubuntu-server-builder added launchpad Migrated from Launchpad priority Fix soon labels May 12, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user James Falcon(falcojr) wrote on 2021-12-02T20:16:00.707988+00:00

See #1129

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Chad Smith(chad.smith) wrote on 2021-12-03T04:46:11.082875+00:00

upstream commit added fixing this issue
ffa6fc8

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Brett Holman(holmanb) wrote on 2022-02-15T21:54:24.707649+00:00

This bug is believed to be fixed in cloud-init in version 22.1. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
launchpad Migrated from Launchpad priority Fix soon
Projects
None yet
Development

No branches or pull requests

1 participant