From vitor.lima at eldorado.org.br Tue Aug 27 11:46:27 2013 Content-Type: multipart/mixed; boundary="===============8958751035761291053==" MIME-Version: 1.0 From: Vitor de Lima To: devel at ovirt.org Subject: [Engine-devel] Questions about database changes Date: Tue, 27 Aug 2013 13:18:12 +0000 Message-ID: --===============8958751035761291053== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable --_000_B2CAFC4D5E2D574A883EF61ACD5ADE3301810A60SERV070corpeldo_ Content-Type: text/plain; charset=3D"us-ascii" Content-Transfer-Encoding: quoted-printable Hi everyone, I would like some feedback about how to create the upgrade script that crea= =3D tes columns for the architecture of each VM, template and cluster in the en= =3D gine database. The changes #17853 and #16700 introduce a field (and the respective Enum) u= =3D sed to store the target architecture of a cluster, VM or template (which cu= =3D rrently can be either x86_64, ppc64 or undefined). In their current state, these changes introduce a VARCHAR column storing th= =3D e architecture, but now I wanted to implement an autocompleter for this fie= =3D ld in the search backend, and it would be massively cleaner and easier to u= =3D se the architecture field as an integer (since Enums that implement the Ide= =3D ntifiable interface can use the EnumValueAutoCompleter class). Considering that these two changes are already in review, should I modify t= =3D hem directly to use an integer or should I create another patch that change= =3D s the column in the database? If I create another patch, should it modify t= =3D he upgrade script from change #16700 or it must create another script that = =3D migrates the column from a VARCHAR to an INTEGER? Thanks, Vitor de Lima --_000_B2CAFC4D5E2D574A883EF61ACD5ADE3301810A60SERV070corpeldo_ Content-Type: text/html; charset=3D"us-ascii" Content-Transfer-Encoding: quoted-printable

Hi everyone,<=3D /p>

 

I would like some feedback = abou=3D t how to create the upgrade script that creates columns for the architectur= =3D e of each VM, template and cluster in the engine database.

 

The changes #17853 and #167= 00 i=3D ntroduce a field (and the respective Enum) used to store the target archite= =3D cture of a cluster, VM or template (which currently can be either x86_64, p= =3D pc64 or undefined).

In their current state, the= se c=3D hanges introduce a VARCHAR column storing the architecture, but now I wante= =3D d to implement an autocompleter for this field in the search backend, and i= =3D t would be massively cleaner and easier to use the architecture field as an integer (since Enums that implement th= =3D e Identifiable interface can use the EnumValueAutoCompleter class).

 

Considering that these two = chan=3D ges are already in review, should I modify them directly to use an integer = =3D or should I create another patch that changes the column in the database? I= =3D f I create another patch, should it modify the upgrade script from change #16700 or it must create another scr= =3D ipt that migrates the column from a VARCHAR to an INTEGER?

 

Thanks,

Vitor de Lima

 

--_000_B2CAFC4D5E2D574A883EF61ACD5ADE3301810A60SERV070corpeldo_-- --===============8958751035761291053== Content-Type: multipart/alternative MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.bin" LS1fMDAwX0IyQ0FGQzRENUUyRDU3NEE4ODNFRjYxQUNENUFERTMzMDE4MTBBNjBTRVJWMDcwY29y cGVsZG9fCkNvbnRlbnQtVHlwZTogdGV4dC9wbGFpbjsgY2hhcnNldD0idXMtYXNjaWkiCkNvbnRl bnQtVHJhbnNmZXItRW5jb2Rpbmc6IHF1b3RlZC1wcmludGFibGUKCkhpIGV2ZXJ5b25lLAoKSSB3 b3VsZCBsaWtlIHNvbWUgZmVlZGJhY2sgYWJvdXQgaG93IHRvIGNyZWF0ZSB0aGUgdXBncmFkZSBz Y3JpcHQgdGhhdCBjcmVhPQp0ZXMgY29sdW1ucyBmb3IgdGhlIGFyY2hpdGVjdHVyZSBvZiBlYWNo IFZNLCB0ZW1wbGF0ZSBhbmQgY2x1c3RlciBpbiB0aGUgZW49CmdpbmUgZGF0YWJhc2UuCgpUaGUg Y2hhbmdlcyAjMTc4NTMgYW5kICMxNjcwMCBpbnRyb2R1Y2UgYSBmaWVsZCAoYW5kIHRoZSByZXNw ZWN0aXZlIEVudW0pIHU9CnNlZCB0byBzdG9yZSB0aGUgdGFyZ2V0IGFyY2hpdGVjdHVyZSBvZiBh IGNsdXN0ZXIsIFZNIG9yIHRlbXBsYXRlICh3aGljaCBjdT0KcnJlbnRseSBjYW4gYmUgZWl0aGVy IHg4Nl82NCwgcHBjNjQgb3IgdW5kZWZpbmVkKS4KSW4gdGhlaXI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GUgY29sdW1uIGluIHRoZSBkYXRhYmFz ZT8gST0KZiBJIGNyZWF0ZSBhbm90aGVyIHBhdGNoLCBzaG91bGQgaXQKIG1vZGlmeSB0aGUgdXBn cmFkZSBzY3JpcHQgZnJvbSBjaGFuZ2UgIzE2NzAwIG9yIGl0IG11c3QgY3JlYXRlIGFub3RoZXIg c2NyPQppcHQgdGhhdCBtaWdyYXRlcyB0aGUgY29sdW1uIGZyb20gYSBWQVJDSEFSIHRvIGFuIElO VEVHRVI/PG86cD48L286cD48L3NwYW49Cj48L3A+CjxwIGNsYXNzPTNEIk1zb05vcm1hbCI+PHNw YW4gbGFuZz0zRCJFTi1VUyI+PG86cD4mbmJzcDs8L286cD48L3NwYW4+PC9wPgo8cCBjbGFzcz0z RCJNc29Ob3JtYWwiPlRoYW5rcyw8bzpwPjwvbzpwPjwvcD4KPHAgY2xhc3M9M0QiTXNvTm9ybWFs Ij5WaXRvciBkZSBMaW1hPG86cD48L286cD48L3A+CjxwIGNsYXNzPTNEIk1zb05vcm1hbCI+PG86 cD4mbmJzcDs8L286cD48L3A+CjwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4KCi0tXzAwMF9CMkNBRkM0 RDVFMkQ1NzRBODgzRUY2MUFDRDVBREUzMzAxODEwQTYwU0VSVjA3MGNvcnBlbGRvXy0tCg== --===============8958751035761291053==-- From yzaslavs at redhat.com Wed Aug 28 02:56:30 2013 Content-Type: multipart/mixed; boundary="===============7102940187924662263==" MIME-Version: 1.0 From: Yair Zaslavsky To: devel at ovirt.org Subject: Re: [Engine-devel] Questions about database changes Date: Wed, 28 Aug 2013 02:56:26 -0400 Message-ID: <280797646.4816097.1377672986447.JavaMail.root@redhat.com> In-Reply-To: B2CAFC4D5E2D574A883EF61ACD5ADE3301810A60@SERV070.corp.eldorado.org.br --===============7102940187924662263== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----- Original Message ----- > From: "Vitor de Lima" > To: engine-devel(a)ovirt.org > Sent: Tuesday, August 27, 2013 4:18:12 PM > Subject: [Engine-devel] Questions about database changes > = > Hi everyone, > = > I would like some feedback about how to create the upgrade script that > creates columns for the architecture of each VM, template and cluster in = the > engine database. > = > The changes #17853 and #16700 introduce a field (and the respective Enum) > used to store the target architecture of a cluster, VM or template (which > currently can be either x86_64, ppc64 or undefined). > In their current state, these changes introduce a VARCHAR column storing = the > architecture, but now I wanted to implement an autocompleter for this fie= ld > in the search backend, and it would be massively cleaner and easier to use > the architecture field as an integer (since Enums that implement the > Identifiable interface can use the EnumValueAutoCompleter class). > = > Considering that these two changes are already in review, should I modify > them directly to use an integer or should I create another patch that > changes the column in the database? If I create another patch, should it > modify the upgrade script from change #16700 or it must create another > script that migrates the column from a VARCHAR to an INTEGER? > = > Thanks, > Vitor de Lima If still under review, why not modify the existing patches for review? (i.e= - use the same change-id where needed) Cheers, Yair > = > = > _______________________________________________ > Engine-devel mailing list > Engine-devel(a)ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel >=20 --===============7102940187924662263==-- From lhornyak at redhat.com Wed Aug 28 03:04:45 2013 Content-Type: multipart/mixed; boundary="===============0211325400165200710==" MIME-Version: 1.0 From: Laszlo Hornyak To: devel at ovirt.org Subject: Re: [Engine-devel] Questions about database changes Date: Wed, 28 Aug 2013 03:04:36 -0400 Message-ID: <2061536701.6327409.1377673476006.JavaMail.root@redhat.com> In-Reply-To: 280797646.4816097.1377672986447.JavaMail.root@redhat.com --===============0211325400165200710== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Vitor, Just one more note, use an int stored in the enum and ignore the ordinal wh= en storing/reading from the DB, so when adding new members and re-ordering = the enum, the DB will still be ok. ----- Original Message ----- > From: "Yair Zaslavsky" > To: "Vitor de Lima" > Cc: engine-devel(a)ovirt.org > Sent: Wednesday, August 28, 2013 8:56:26 AM > Subject: Re: [Engine-devel] Questions about database changes > = > = > = > ----- Original Message ----- > > From: "Vitor de Lima" > > To: engine-devel(a)ovirt.org > > Sent: Tuesday, August 27, 2013 4:18:12 PM > > Subject: [Engine-devel] Questions about database changes > > = > > Hi everyone, > > = > > I would like some feedback about how to create the upgrade script that > > creates columns for the architecture of each VM, template and cluster in > > the > > engine database. > > = > > The changes #17853 and #16700 introduce a field (and the respective Enu= m) > > used to store the target architecture of a cluster, VM or template (whi= ch > > currently can be either x86_64, ppc64 or undefined). > > In their current state, these changes introduce a VARCHAR column storing > > the > > architecture, but now I wanted to implement an autocompleter for this f= ield > > in the search backend, and it would be massively cleaner and easier to = use > > the architecture field as an integer (since Enums that implement the > > Identifiable interface can use the EnumValueAutoCompleter class). > > = > > Considering that these two changes are already in review, should I modi= fy > > them directly to use an integer or should I create another patch that > > changes the column in the database? If I create another patch, should it > > modify the upgrade script from change #16700 or it must create another > > script that migrates the column from a VARCHAR to an INTEGER? > > = > > Thanks, > > Vitor de Lima > = > If still under review, why not modify the existing patches for review? (i= .e - > use the same change-id where needed) > = > Cheers, > Yair > = > > = > > = > > _______________________________________________ > > Engine-devel mailing list > > Engine-devel(a)ovirt.org > > http://lists.ovirt.org/mailman/listinfo/engine-devel > > = > _______________________________________________ > Engine-devel mailing list > Engine-devel(a)ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel >=20 --===============0211325400165200710==-- From emesika at redhat.com Wed Aug 28 16:14:30 2013 Content-Type: multipart/mixed; boundary="===============4325917147367114135==" MIME-Version: 1.0 From: Eli Mesika To: devel at ovirt.org Subject: Re: [Engine-devel] Questions about database changes Date: Wed, 28 Aug 2013 16:14:21 -0400 Message-ID: <2077345788.5926220.1377720861671.JavaMail.root@redhat.com> In-Reply-To: 280797646.4816097.1377672986447.JavaMail.root@redhat.com --===============4325917147367114135== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----- Original Message ----- > From: "Yair Zaslavsky" > To: "Vitor de Lima" > Cc: engine-devel(a)ovirt.org > Sent: Wednesday, August 28, 2013 9:56:26 AM > Subject: Re: [Engine-devel] Questions about database changes > = > = > = > ----- Original Message ----- > > From: "Vitor de Lima" > > To: engine-devel(a)ovirt.org > > Sent: Tuesday, August 27, 2013 4:18:12 PM > > Subject: [Engine-devel] Questions about database changes > > = > > Hi everyone, > > = > > I would like some feedback about how to create the upgrade script that > > creates columns for the architecture of each VM, template and cluster in > > the > > engine database. > > = > > The changes #17853 and #16700 introduce a field (and the respective Enu= m) > > used to store the target architecture of a cluster, VM or template (whi= ch > > currently can be either x86_64, ppc64 or undefined). > > In their current state, these changes introduce a VARCHAR column storing > > the > > architecture, but now I wanted to implement an autocompleter for this f= ield > > in the search backend, and it would be massively cleaner and easier to = use > > the architecture field as an integer (since Enums that implement the > > Identifiable interface can use the EnumValueAutoCompleter class). > > = > > Considering that these two changes are already in review, should I modi= fy > > them directly to use an integer or should I create another patch that > > changes the column in the database? If I create another patch, should it > > modify the upgrade script from change #16700 or it must create another > > script that migrates the column from a VARCHAR to an INTEGER? > > = > > Thanks, > > Vitor de Lima > = > If still under review, why not modify the existing patches for review? (i= .e - > use the same change-id where needed) I agree , patches are not merged yet , so change should be in original upgr= ade it will not affect anyone except of the specific developer that tested = that.... > = > Cheers, > Yair > = > > = > > = > > _______________________________________________ > > Engine-devel mailing list > > Engine-devel(a)ovirt.org > > http://lists.ovirt.org/mailman/listinfo/engine-devel > > = > _______________________________________________ > Engine-devel mailing list > Engine-devel(a)ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel >=20 --===============4325917147367114135==--