Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,17 @@ def _get_data(self):


class DataSourceEc2KubernetesLocal(DataSourceEc2Kubernetes):
# init-local runs before networking is available. The parent
# DataSourceEc2._get_data() crawls the IMDS, which requires network.
# Without it the TCP connection retries for ~232s before timing out.
# Return False so cloud-init moves quickly to the init-network phase
# where DataSourceEc2Kubernetes runs with full network access.
def _get_data(self):
return super(DataSourceEc2KubernetesLocal, self)._get_data()
LOG.debug(
"Skipping metadata crawl in init-local phase (no network). "
"DataSourceEc2Kubernetes will run in init-network phase."
)
return False


# Used to match classes to dependencies
Expand Down