Skip to content

DLPX-70169 cloud-init and related services need override.conf to prevent them from running within upgrade container#15

Merged
prakashsurya merged 1 commit into
delphix:masterfrom
prakashsurya:DLPX-70169
May 28, 2020
Merged

DLPX-70169 cloud-init and related services need override.conf to prevent them from running within upgrade container#15
prakashsurya merged 1 commit into
delphix:masterfrom
prakashsurya:DLPX-70169

Conversation

@prakashsurya
Copy link
Copy Markdown
Contributor

This is a continuation of 144e73f.

As described in 144e73f, we don't want the cloud-init related services
to run within an upgrade container. Unfortunately, that prior commit
does not ensure the services don't run, when there's another service
that depend on a cloud-init service. In our case, when running on GCP,
the "google-startup-scripts" services has a depdency on "cloud-final",

$ systemctl cat google-startup-scripts | grep Wants
Wants=cloud-final.service

causing the cloud-init service to run even though it should have
otherwise been disabled (due to the changes in 144e73f).

This change adds configuration to all of the cloud-init services such
that they won't run in the upgrade container; even if they're
inadvertently started due to a dependency, as was our case on GCP.

…ent them from running within upgrade container

This is a continuation of 144e73f.

As described in 144e73f, we don't want the cloud-init related services
to run within an upgrade container. Unfortunately, that prior commit
does not ensure the services don't run, when there's another service
that depend on a cloud-init service. In our case, when running on GCP,
the "google-startup-scripts" services has a depdency on "cloud-final",

    $ systemctl cat google-startup-scripts | grep Wants
    Wants=cloud-final.service

causing the cloud-init service to run even though it should have
otherwise been disabled (due to the changes in 144e73f).

This change adds configuration to all of the cloud-init services such
that they won't run in the upgrade container; even if they're
inadvertently started due to a dependency, as was our case on GCP.
@prakashsurya
Copy link
Copy Markdown
Contributor Author

git-ab-pre-push is here

@pzakha
Copy link
Copy Markdown
Contributor

pzakha commented May 28, 2020

Change LGTM, does it fix the GCP upgrade issue?

@prakashsurya
Copy link
Copy Markdown
Contributor Author

does it fix the GCP upgrade issue?

It helps, but I think there's still a lingering issue to be root caused; the "systemd-logind" service appears to fail sometimes when booting the upgrade container. So we plan to land this, and delphix/delphix-platform#224, and then continue the investigation into the "systemd-logind" service.

@prakashsurya prakashsurya merged commit 61f2f79 into delphix:master May 28, 2020
grwilson pushed a commit to grwilson/cloud-init that referenced this pull request Jan 18, 2023
… to prevent them from running within upgrade container (delphix#15)"

This reverts commit 61f2f79.
grwilson pushed a commit that referenced this pull request Jan 19, 2023
… to prevent them from running within upgrade container (#15)"

This reverts commit 61f2f79.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants