Skip to content

DLPX-67281 Network configuration not migrated because of multiple netplan files #159

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

Merged
merged 1 commit into from
Nov 13, 2019

Conversation

sdimitro
Copy link
Contributor

Commit Description

The root-cause of this issue is that the service that generates the
default netplan file for cloud-init (named cloud-init-local) can run
at the same time as delphix-migration which writes our own custom
netplan file on-disk (and potentially deletes the default one if the
timing is right). Unfortunately, timing is not always right and due
to the above raace between the two services we end up with two
netplan files that can have conflicting info.

This change ensures that the migration service runs after cloud-init-local
so the default netplan file is always generated before ouyr custom one
takes its place.

Note again that this is a migration-only issue that can happen on
first boot. We disable the cloud-init-local service from regenerating
its netplan file for subsequent boots.

Testing

(pending test results)

…plan files

The root-cause of this issue is that the service that generates the
default netplan file for cloud-init (named cloud-init-local) can run
at the same time as delphix-migration which writes our own custom
netplan file on-disk (and potentially deletes the default one if the
timing is right). Unfortunately, timing is not always right and due
to the above raace between the two services we end up with two
netplan files that can have conflicting info.

This change ensures that the migration service runs after cloud-init-local
so the default netplan file is always generated before ouyr custom one
takes its place.

Note again that this is a migration-only issue that can happen on
first boot. We disable the cloud-init-local service from regenerating
its netplan file for subsequent boots.
Copy link
Contributor

@pzakha pzakha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pending tests

@pzakha
Copy link
Contributor

pzakha commented Nov 13, 2019

bors r+

bors bot added a commit that referenced this pull request Nov 13, 2019
159: DLPX-67281 Network configuration not migrated because of multiple netplan files r=pzakha a=sdimitro

# Commit Description

The root-cause of this issue is that the service that generates the
default netplan file for cloud-init (named cloud-init-local) can run
at the same time as delphix-migration which writes our own custom
netplan file on-disk (and potentially deletes the default one if the
timing is right). Unfortunately, timing is not always right and due
to the above raace between the two services we end up with two
netplan files that can have conflicting info.

This change ensures that the migration service runs after cloud-init-local
so the default netplan file is always generated before ouyr custom one
takes its place.

Note again that this is a migration-only issue that can happen on
first boot. We disable the cloud-init-local service from regenerating
its netplan file for subsequent boots.

# Testing
 
(pending test results)

Co-authored-by: Serapheim Dimitropoulos <serapheim@delphix.com>
@bors
Copy link
Contributor

bors bot commented Nov 13, 2019

Build succeeded

  • continuous-integration/travis-ci/push

@bors bors bot merged commit 5fcc4ce into delphix:master Nov 13, 2019
@pzakha
Copy link
Contributor

pzakha commented Nov 13, 2019

That meant to be bors delegate+, my mistake.

@sdimitro
Copy link
Contributor Author

Discussed the event of s/bors r+/bors degelate+ with Pavel - I had done some preliminary testing but since this is a race I wanted to get a few more runs in to be sure that we don't hit this anymore. I'll update this PR with the results and in the first sight of a failure we can always revert

@sdimitro
Copy link
Contributor Author

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.

2 participants