dbscripts-duplicate_upgrade_scripts.sh and 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql problem

Hi all, I can't compile engine master, following message is printed Found duplicate upgrade scripts with version 03_06_1210, please resolve and retry make[1]: *** [validations] Error 1 make[1]: Leaving directory `/home/jakub/src/ovirt-engine' make: *** [all-dev] Error 2 It seems that command in dbscripts-duplicate_upgrade_scripts.sh OUT="$(find "$(dirname "$0")/../packaging/dbscripts" | grep -P '\d{2}_\d{2}_\d{2,8}' -o | sort | uniq -d)" is too dummy to handle '..._revert_03_06_1210_...' upgrade script name. Anyone experiencing this problem too? Jakub

----- Original Message -----
From: "Jakub Niedermertl" <jniederm@redhat.com> To: devel@ovirt.org Sent: Thursday, April 16, 2015 1:16:18 PM Subject: [ovirt-devel] dbscripts-duplicate_upgrade_scripts.sh and 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql problem
Hi all,
I can't compile engine master, following message is printed
Found duplicate upgrade scripts with version 03_06_1210, please resolve and retry make[1]: *** [validations] Error 1 make[1]: Leaving directory `/home/jakub/src/ovirt-engine' make: *** [all-dev] Error 2
It seems that command in dbscripts-duplicate_upgrade_scripts.sh
OUT="$(find "$(dirname "$0")/../packaging/dbscripts" | grep -P '\d{2}_\d{2}_\d{2,8}' -o | sort | uniq -d)"
is too dummy to handle '..._revert_03_06_1210_...' upgrade script name.
Anyone experiencing this problem too?
Eli? -- Didi

Hi, ----- Original Message -----
From: "Yedidyah Bar David" <didi@redhat.com> To: "Jakub Niedermertl" <jniederm@redhat.com> Cc: devel@ovirt.org Sent: Thursday, April 16, 2015 12:28:49 PM Subject: Re: [ovirt-devel] dbscripts-duplicate_upgrade_scripts.sh and 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql problem
----- Original Message -----
From: "Jakub Niedermertl" <jniederm@redhat.com> To: devel@ovirt.org Sent: Thursday, April 16, 2015 1:16:18 PM Subject: [ovirt-devel] dbscripts-duplicate_upgrade_scripts.sh and 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql problem
Hi all,
I can't compile engine master, following message is printed
Found duplicate upgrade scripts with version 03_06_1210, please resolve and retry make[1]: *** [validations] Error 1 make[1]: Leaving directory `/home/jakub/src/ovirt-engine' make: *** [all-dev] Error 2
It seems that command in dbscripts-duplicate_upgrade_scripts.sh
OUT="$(find "$(dirname "$0")/../packaging/dbscripts" | grep -P '\d{2}_\d{2}_\d{2,8}' -o | sort | uniq -d)"
is too dummy to handle '..._revert_03_06_1210_...' upgrade script name.
I believe is grep being too smart. It matches the pattern twice in 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql and this introduce a false duplicate. Quick fix, maybe too hackish to be the definitive one: grep -P '/\d{2}_\d{2}_\d{2,8}' -o (note the leading slash in the pattern being searched) Bests, -- Francesco Romani RedHat Engineering Virtualization R & D Phone: 8261328 IRC: fromani

Hi, here is the fix: https://gerrit.ovirt.org/39942 Martin ----- Original Message -----
From: "Francesco Romani" <fromani@redhat.com> To: "Yedidyah Bar David" <didi@redhat.com> Cc: devel@ovirt.org Sent: Thursday, April 16, 2015 12:37:21 PM Subject: Re: [ovirt-devel] dbscripts-duplicate_upgrade_scripts.sh and 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql problem
Hi,
----- Original Message -----
From: "Yedidyah Bar David" <didi@redhat.com> To: "Jakub Niedermertl" <jniederm@redhat.com> Cc: devel@ovirt.org Sent: Thursday, April 16, 2015 12:28:49 PM Subject: Re: [ovirt-devel] dbscripts-duplicate_upgrade_scripts.sh and 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql problem
----- Original Message -----
From: "Jakub Niedermertl" <jniederm@redhat.com> To: devel@ovirt.org Sent: Thursday, April 16, 2015 1:16:18 PM Subject: [ovirt-devel] dbscripts-duplicate_upgrade_scripts.sh and 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql problem
Hi all,
I can't compile engine master, following message is printed
Found duplicate upgrade scripts with version 03_06_1210, please resolve and retry make[1]: *** [validations] Error 1 make[1]: Leaving directory `/home/jakub/src/ovirt-engine' make: *** [all-dev] Error 2
It seems that command in dbscripts-duplicate_upgrade_scripts.sh
OUT="$(find "$(dirname "$0")/../packaging/dbscripts" | grep -P '\d{2}_\d{2}_\d{2,8}' -o | sort | uniq -d)"
is too dummy to handle '..._revert_03_06_1210_...' upgrade script name.
I believe is grep being too smart. It matches the pattern twice in
03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql
and this introduce a false duplicate.
Quick fix, maybe too hackish to be the definitive one:
grep -P '/\d{2}_\d{2}_\d{2,8}' -o
(note the leading slash in the pattern being searched)
Bests,
-- Francesco Romani RedHat Engineering Virtualization R & D Phone: 8261328 IRC: fromani _______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel

Hi, previous fix assumes that output of find "$(dirname "$0")/../packaging/dbscripts" are just file names but they are relative paths. So no duplicates are reported. New fix: https://gerrit.ovirt.org/39947 Jakub ----- Original Message -----
From: "Martin Perina" <mperina@redhat.com> To: "Francesco Romani" <fromani@redhat.com> Cc: "Yedidyah Bar David" <didi@redhat.com>, devel@ovirt.org, "Eli Mesika" <emesika@redhat.com>, "Jakub Niedermertl" <jniederm@redhat.com> Sent: Thursday, April 16, 2015 12:41:07 PM Subject: Re: [ovirt-devel] dbscripts-duplicate_upgrade_scripts.sh and 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql problem
Hi,
here is the fix:
https://gerrit.ovirt.org/39942
Martin
----- Original Message -----
From: "Francesco Romani" <fromani@redhat.com> To: "Yedidyah Bar David" <didi@redhat.com> Cc: devel@ovirt.org Sent: Thursday, April 16, 2015 12:37:21 PM Subject: Re: [ovirt-devel] dbscripts-duplicate_upgrade_scripts.sh and 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql problem
Hi,
----- Original Message -----
From: "Yedidyah Bar David" <didi@redhat.com> To: "Jakub Niedermertl" <jniederm@redhat.com> Cc: devel@ovirt.org Sent: Thursday, April 16, 2015 12:28:49 PM Subject: Re: [ovirt-devel] dbscripts-duplicate_upgrade_scripts.sh and 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql problem
----- Original Message -----
From: "Jakub Niedermertl" <jniederm@redhat.com> To: devel@ovirt.org Sent: Thursday, April 16, 2015 1:16:18 PM Subject: [ovirt-devel] dbscripts-duplicate_upgrade_scripts.sh and 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql problem
Hi all,
I can't compile engine master, following message is printed
Found duplicate upgrade scripts with version 03_06_1210, please resolve and retry make[1]: *** [validations] Error 1 make[1]: Leaving directory `/home/jakub/src/ovirt-engine' make: *** [all-dev] Error 2
It seems that command in dbscripts-duplicate_upgrade_scripts.sh
OUT="$(find "$(dirname "$0")/../packaging/dbscripts" | grep -P '\d{2}_\d{2}_\d{2,8}' -o | sort | uniq -d)"
is too dummy to handle '..._revert_03_06_1210_...' upgrade script name.
I believe is grep being too smart. It matches the pattern twice in
03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql
and this introduce a false duplicate.
Quick fix, maybe too hackish to be the definitive one:
grep -P '/\d{2}_\d{2}_\d{2,8}' -o
(note the leading slash in the pattern being searched)
Bests,
-- Francesco Romani RedHat Engineering Virtualization R & D Phone: 8261328 IRC: fromani _______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel

----- Original Message -----
From: "Yedidyah Bar David" <didi@redhat.com> To: "Jakub Niedermertl" <jniederm@redhat.com> Cc: devel@ovirt.org Sent: Thursday, April 16, 2015 1:28:49 PM Subject: Re: [ovirt-devel] dbscripts-duplicate_upgrade_scripts.sh and 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql problem
----- Original Message -----
From: "Jakub Niedermertl" <jniederm@redhat.com> To: devel@ovirt.org Sent: Thursday, April 16, 2015 1:16:18 PM Subject: [ovirt-devel] dbscripts-duplicate_upgrade_scripts.sh and 03_06_1240_revert_03_06_1210_add_vm_host_device_commands.sql problem
Hi all,
I can't compile engine master, following message is printed
Found duplicate upgrade scripts with version 03_06_1210, please resolve and retry make[1]: *** [validations] Error 1 make[1]: Leaving directory `/home/jakub/src/ovirt-engine' make: *** [all-dev] Error 2
It seems that command in dbscripts-duplicate_upgrade_scripts.sh
OUT="$(find "$(dirname "$0")/../packaging/dbscripts" | grep -P '\d{2}_\d{2}_\d{2,8}' -o | sort | uniq -d)"
is too dummy to handle '..._revert_03_06_1210_...' upgrade script name.
Anyone experiencing this problem too?
Eli? -- Didi
until that is fixed, i sent a patch to change the name: https://gerrit.ovirt.org/#/c/39941/
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
participants (5)
-
Francesco Romani
-
Jakub Niedermertl
-
Martin Perina
-
Omer Frenkel
-
Yedidyah Bar David