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

init: T5239: configure system hostname prior to FRR startup #2289

Merged
merged 2 commits into from Sep 19, 2023

Conversation

c-po
Copy link
Member

@c-po c-po commented Sep 19, 2023

Change Summary

On first boot after an upgrade /etc/hostname and FRR configuration is not
populated. FRR determines the system hostname once during startup and does not
repect changes of the hostname CLI value.

Thus after an upgrade of VyOS FRR started with a hostname of debian that was
propagated to peers.

The commit retrieves the hostname from the CLI and presets this before FRR is
initially started.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

Proposed changes

Startup sequence extended for system hostname

How to test

Smoketest result

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

@vyosbot vyosbot requested review from a team, dmbaturin, sarthurdev, zdc and jestabro and removed request for a team September 19, 2023 16:46
src/init/vyos-router Outdated Show resolved Hide resolved
On first boot after an upgrade /etc/hostname and FRR configuration is not
populated. FRR determines the system hostname once during startup and does not
repect changes of the hostname CLI value.

Thus after an upgrade of VyOS FRR started with a hostname of debian that was
propagated to peers.

The commit retrieves the hostname from the CLI and presets this before FRR is
initially started.
@c-po c-po merged commit 483482f into vyos:current Sep 19, 2023
5 checks passed
@c-po
Copy link
Member Author

c-po commented Sep 19, 2023

@Mergifyio backport sagitta

@mergify
Copy link

mergify bot commented Sep 19, 2023

backport sagitta

✅ Backports have been created

@c-po c-po deleted the t5239-frr branch September 19, 2023 18:40
c-po added a commit that referenced this pull request Sep 22, 2023
init: T5239: configure system hostname prior to FRR startup (backport #2289)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants