Skip to content

Nethvoice clone fails when a module is moved two times #7616

@Stell0

Description

@Stell0

When a nethvoice is moved two times, the second one fails

Steps to reproduce

  • move a nethvoice from one node to another
  • move it again

Expected behavior

module should be cloned

Actual behavior

<7>podman exec mariadb mysql asterisk -u root -pvncrKp2j60ryZUuFns48XUI4YN8POzKq -e '
UPDATE `kvstore_Sipsettings`
SET `val` = CASE
    WHEN `key` = '"'"'bindport'"'"' THEN '"'"'20468'"'"'
    WHEN `key` = '"'"'tlsbindport'"'"' THEN '"'"'20469'"'"'
END
WHERE `key` IN ('"'"'bindport'"'"', '"'"'tlsbindport'"'"');
'
<7>podman exec mariadb mysql asterisk -u root -pvncrKp2j60ryZUuFns48XUI4YN8POzKq -e '
UPDATE `iaxsettings`
SET `data` = '"'"'20470'"'"',
    `seq` = 1,
    `type` = 0
WHERE `keyword` = '"'"'bindport'"'"';
'
ERROR 1062 (23000) at line 2: Duplicate entry 'bindport-1-0' for key 'PRIMARY'
Traceback (most recent call last):
  File "/home/nethvoice18/.config/actions/clone-module/22set_db_services_ports", line 66, in <module>

See also

https://mattermost.nethesis.it/nethesis/pl/irhfqrfa1pdy7n6t8ge5upn8yh
https://helpdesk.nethesis.it/a/tickets/191647

Metadata

Metadata

Assignees

No one assigned

    Labels

    nethvoiceBug or features releted to the NethVoice project

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions