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

Migration tool fixes and enhancements #48

Merged
merged 12 commits into from Nov 30, 2023
Merged

Migration tool fixes and enhancements #48

merged 12 commits into from Nov 30, 2023

Conversation

DavidePrincipi
Copy link
Member

@DavidePrincipi DavidePrincipi commented Nov 28, 2023

Refs

Additionally:

  • do not run agent any more: it is not used at all
  • change the storage of wg secret: make it persistent
  • replace the node in the cluster, if already present
  • avoid false ui alarms, if connection is down

Use a different interface name, ns8, to avoid naming confilicts with
existing Wireguard setups.
@DavidePrincipi DavidePrincipi self-assigned this Nov 28, 2023
Rename the DB record, once, if it's found in configuration DB.
The agent is useless in ns7, only API client requests are needed.
@NethServer NethServer deleted a comment from nethbot Nov 28, 2023
@NethServer NethServer deleted a comment from nethbot Nov 28, 2023
@NethServer NethServer deleted a comment from nethbot Nov 28, 2023
@NethServer NethServer deleted a comment from nethbot Nov 28, 2023
@NethServer NethServer deleted a comment from nethbot Nov 28, 2023
@NethServer NethServer deleted a comment from nethbot Nov 28, 2023
@nethbot

This comment was marked as outdated.

The API must return the full error if response payload has some issue.
@DavidePrincipi DavidePrincipi changed the title Fix wg Migration tool fixes and enhancements Nov 28, 2023
@DavidePrincipi DavidePrincipi added the bug Something isn't working label Nov 28, 2023
@nethbot

This comment was marked as outdated.

@DavidePrincipi DavidePrincipi marked this pull request as ready for review November 28, 2023 18:26
- Remove the node if already present
- Remove the external LDAP domain, if already present
@nethbot
Copy link
Member

nethbot commented Nov 28, 2023

in 7.9.2009/autobuild:

  • nethserver-ns8-migration-1.0.4-1.24.pr48.gebf16e3.ns7.x86_64.rpm x86_64

root/etc/e-smith/db/configuration/migrate/delete_agent Outdated Show resolved Hide resolved
$oldRecord->delete();
system('systemctl', 'disable', '--now', 'wg-quick@wg0');
rename('/etc/wireguard/wg0.conf', '/etc/wireguard/ns8.conf');
system('systemctl', 'enable', '--now', 'wg-quick@ns8');
Copy link
Member

Choose a reason for hiding this comment

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

This should not be needed: let's the system handle it

ui/src/views/Dashboard.vue Outdated Show resolved Hide resolved
ui/src/views/Dashboard.vue Outdated Show resolved Hide resolved
DavidePrincipi and others added 2 commits November 29, 2023 15:31
Co-authored-by: Andrea Leardini <andrea.leardini@nethesis.it>
Co-authored-by: Giacomo Sanchietti <giacomo.sanchietti@nethesis.it>
@nethbot
Copy link
Member

nethbot commented Nov 29, 2023

in 7.9.2009/autobuild:

  • nethserver-ns8-migration-1.0.4-1.26.pr48.ge53d60d.ns7.x86_64.rpm x86_64

@nethbot
Copy link
Member

nethbot commented Nov 30, 2023

in 7.9.2009/autobuild:

  • nethserver-ns8-migration-1.0.4-1.27.pr48.g0e11605.ns7.x86_64.rpm x86_64

@nethbot
Copy link
Member

nethbot commented Nov 30, 2023

in 7.9.2009/autobuild:

  • nethserver-ns8-migration-1.0.4-1.28.pr48.gdc5f0f3.ns7.x86_64.rpm x86_64

@nethbot
Copy link
Member

nethbot commented Nov 30, 2023

in 7.9.2009/autobuild:

  • nethserver-ns8-migration-1.0.4-1.29.pr48.gc0618c5.ns7.x86_64.rpm x86_64

@DavidePrincipi DavidePrincipi merged commit 90e157e into master Nov 30, 2023
1 check passed
@DavidePrincipi DavidePrincipi deleted the fix-wg branch November 30, 2023 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants