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

Backup restore doesn't set correct transport ports #7196

Closed
Stell0 opened this issue Dec 3, 2024 · 5 comments
Closed

Backup restore doesn't set correct transport ports #7196

Stell0 opened this issue Dec 3, 2024 · 5 comments
Labels
nethvoice Bug or features releted to the NethVoice project verified All test cases were verified successfully
Milestone

Comments

@Stell0
Copy link

Stell0 commented Dec 3, 2024

Steps to reproduce

  • Migrate a NethVoice instance from a cluster to another one
  • Make sure that the 2nd cluster has different number of instances installed (for example if you are migrating 3rd nethvoice on cluster 1, on cluster 2 the bug appears if you are installing 1st, 2nd, 4th... but not the third!
  • check where asterisk transport is listening

Expected behavior

  • transport should listen at the port defined in ASTERISK_SIP_PORT envrionment variable

Actual behavior

  • transport listens at old instance port

Components

ns8-nethvoice

@Stell0 Stell0 added the nethvoice Bug or features releted to the NethVoice project label Dec 3, 2024
@Stell0 Stell0 added this to the NethVoice 1.2 milestone Dec 3, 2024
@Stell0 Stell0 self-assigned this Dec 3, 2024
@Stell0 Stell0 added this to NethVoice Dec 3, 2024
@github-project-automation github-project-automation bot moved this to Todo in NethVoice Dec 3, 2024
@Stell0
Copy link
Author

Stell0 commented Dec 3, 2024

Also test module clone, looking at the code, same issue should be present

@Stell0
Copy link
Author

Stell0 commented Dec 4, 2024

Workaround: in FreePBX interface -> Asterisk sip settings -> chan_pjsip set transport ports to the ones defined in ASTERISK_SIP_PORT and ASTERIS_SIPS_PORT environment variables

@Stell0 Stell0 modified the milestones: NethVoice 1.2, NethVoice 1.1 Dec 4, 2024
@Amygos Amygos moved this from Todo to In Progress in NethVoice Dec 4, 2024
@Amygos
Copy link
Member

Amygos commented Dec 5, 2024

Testing release nethesis/ns8-nethvoice 1.1.2-testing.4

@Amygos Amygos added the testing Packages are available from testing repositories label Dec 5, 2024
@nethbot nethbot moved this from In Progress to Testing in NethVoice Dec 5, 2024
@Amygos
Copy link
Member

Amygos commented Dec 5, 2024

Feature Title: NethVoice Module Backup and Restore

Test Case 1: Backup and Restore NethVoice Instance and Verify Asterisk Transport Port

  • Objective: To verify that the Asterisk transport port is correctly restored after backing up and restoring a NethVoice instance.
  • Preconditions:
    • A two-node NethServer 8 cluster with a NethVoice instance installed on one of the nodes.
    • The ASTERISK_SIP_PORT environment variable is set to a specific port number.
  • Steps:
    1. Backup the NethVoice instance on the first node of the cluster.
    2. Restore the backup on the second node of the cluster.
    3. Verify that the restore is successful and the NethVoice instance is functional on the second node.
    4. Check the Asterisk transport configuration on both nodes to determine which port it is listening on.
  • Expected Results:
    • The Asterisk transport should be listening on the port defined in the ASTERISK_SIP_PORT environment variable on both nodes.
    • The port number should be the same as the original port number used by the source instance on the first node.

Test Case 2: Backup and Restore NethVoice Instance with Different Instance Numbers and Verify Asterisk Transport Port

  • Objective: To verify that the Asterisk transport port is correctly restored after backing up and restoring a NethVoice instance with different instance numbers.
  • Preconditions:
    • A two-node NethServer 8 cluster with a NethVoice instance installed on one of the nodes.
    • The ASTERISK_SIP_PORT environment variable is set to a specific port number.
    • The restore instance number is different from the source instance number.
  • Steps:
    1. Backup the NethVoice instance on the first node of the cluster.
    2. Restore the backup on the second node of the cluster with a different instance number.
    3. Verify that the restore is successful and the NethVoice instance is functional on the second node.
    4. Check the Asterisk transport configuration on both nodes to determine which port it is listening on.
  • Expected Results:
    • The Asterisk transport should be listening on the port defined in the ASTERISK_SIP_PORT environment variable on both nodes.
    • The port number should be the same as the original port number used by the source instance on the first node.

Test Case 3: Backup and Restore NethVoice Instance with Same Instance Number and Verify Asterisk Transport Port

  • Objective: To verify that the Asterisk transport port is correctly restored after backing up and restoring a NethVoice instance with the same instance number.

  • Preconditions:

    • A two-node NethServer 8 cluster with a NethVoice instance installed on one of the nodes.
    • The ASTERISK_SIP_PORT environment variable is set to a specific port number.
    • The restore instance number is the same as the source instance number.
  • Steps:

    1. Backup the NethVoice instance on the first node of the cluster.
    2. Restore the backup on the second node of the cluster with the same instance number.
    3. Verify that the restore is successful and the NethVoice instance is functional on the second node.
    4. Check the Asterisk transport configuration on both nodes to determine which port it is listening on.
  • Expected Results:

    • The Asterisk transport should be listening on the port defined in the ASTERISK_SIP_PORT environment variable on both nodes.
    • The port number should be the same as the original port number used by the source instance on the first node.

    Here are the same tests, but with the added detail that the clone procedure is performed on a cluster with two nodes:

Feature Title: NethVoice Module Clone

Test Case 1: Clone NethVoice Instance and Verify Asterisk Transport Port

  • Objective: To verify that the Asterisk transport port is correctly updated after cloning a NethVoice instance on a two-node cluster.
  • Preconditions:
    • A two-node NethServer 8 cluster with a NethVoice instance installed on one of the nodes.
    • The ASTERISK_SIP_PORT environment variable is set to a specific port number.
  • Steps:
    1. Clone the NethVoice instance on the second node of the cluster.
    2. Verify that the cloning is successful and the new NethVoice instance is functional on the second node.
    3. Check the Asterisk transport configuration on both nodes to determine which port it is listening on.
  • Expected Results:
    • The Asterisk transport should be listening on the port defined in the ASTERISK_SIP_PORT environment variable on both nodes.
    • The port number should be different from the original port number used by the source instance on the first node.

Test Case 2: Clone NethVoice Instance with Different Instance Numbers and Verify Asterisk Transport Port

  • Objective: To verify that the Asterisk transport port is correctly updated after cloning a NethVoice instance with different instance numbers on a two-node cluster.
  • Preconditions:
    • A two-node NethServer 8 cluster with a NethVoice instance installed on one of the nodes.
    • The ASTERISK_SIP_PORT environment variable is set to a specific port number.
    • The clone instance number is different from the source instance number.
  • Steps:
    1. Clone the NethVoice instance on the second node of the cluster with a different instance number.
    2. Verify that the cloning is successful and the new NethVoice instance is functional on the second node.
    3. Check the Asterisk transport configuration on both nodes to determine which port it is listening on.
  • Expected Results:
    • The Asterisk transport should be listening on the port defined in the ASTERISK_SIP_PORT environment variable on both nodes.
    • The port number should be different from the original port number used by the source instance on the first node.

Test Case 3: Clone NethVoice Instance with Same Instance Number and Verify Asterisk Transport Port

  • Objective: To verify that the Asterisk transport port is correctly updated after cloning a NethVoice instance with the same instance number on a two-node cluster.
  • Preconditions:
    • A two-node NethServer 8 cluster with a NethVoice instance installed on one of the nodes.
    • The ASTERISK_SIP_PORT environment variable is set to a specific port number.
    • The clone instance number is the same as the source instance number.
  • Steps:
    1. Clone the NethVoice instance on the second node of the cluster with the same instance number.
    2. Verify that the cloning is successful and the new NethVoice instance is functional on the second node.
    3. Check the Asterisk transport configuration on both nodes to determine which port it is listening on.
  • Expected Results:
    • The Asterisk transport should be listening on the port defined in the ASTERISK_SIP_PORT environment variable on both nodes.
    • The port number should be different from the original port number used by the source instance on the first node.

@andrea-marchionni andrea-marchionni added the verified All test cases were verified successfully label Dec 9, 2024
@github-actions github-actions bot removed the testing Packages are available from testing repositories label Dec 9, 2024
@nethbot nethbot moved this from Testing to Verified in NethVoice Dec 9, 2024
@andrea-marchionni andrea-marchionni added testing Packages are available from testing repositories and removed verified All test cases were verified successfully labels Dec 9, 2024
@nethbot nethbot moved this from Verified to In Progress in NethVoice Dec 9, 2024
@nethbot nethbot moved this from In Progress to Testing in NethVoice Dec 9, 2024
@andrea-marchionni andrea-marchionni added verified All test cases were verified successfully and removed testing Packages are available from testing repositories labels Dec 10, 2024
@nethbot nethbot moved this from Testing to In Progress in NethVoice Dec 10, 2024
@nethbot nethbot moved this from In Progress to Verified in NethVoice Dec 10, 2024
@Amygos
Copy link
Member

Amygos commented Dec 12, 2024

Release nethesis/ns8-nethvoice 1.1.2

@Amygos Amygos closed this as completed Dec 12, 2024
@github-project-automation github-project-automation bot moved this from Verified to Done in NethVoice Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nethvoice Bug or features releted to the NethVoice project verified All test cases were verified successfully
Projects
Archived in project
Development

No branches or pull requests

3 participants