From suporte at logicworks.pt Wed Feb 28 12:14:05 2018 Content-Type: multipart/mixed; boundary="===============9079057146075663981==" MIME-Version: 1.0 From: suporte at logicworks.pt To: users at ovirt.org Subject: [ovirt-users] Backup & Restore Date: Wed, 28 Feb 2018 12:10:59 +0000 Message-ID: <1044341911.20329570.1519819859027.JavaMail.zimbra@logicworks.pt> --===============9079057146075663981== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ------=3D_Part_20329569_1409874801.1519819859027 Content-Type: text/plain; charset=3Dutf-8 Content-Transfer-Encoding: 7bit Hi, = I'm testing backup & restore on Ovirt 4.2. = I follow this doc https://www.ovirt.org/documentation/admin-guide/chap-Back= ups_and_Migration/ = Try to restore to a fresh installation but always get this error message: = restore-permissions = Preparing to restore: = - Unpacking file 'back_file' = Restoring: = - Files = Provisioning PostgreSQL users/databases: = - user 'engine', database 'engine' = Restoring: = FATAL: Can't connect to database 'ovirt_engine_history'. Please see '/usr/b= in/engine-backup --help'. = On the live engine I run # engine-backup --scope=3Dall --mode=3Dbackup --fi= le=3Dfile_name --log=3Dlog_file_name = And try to restore on a fresh installation: = # engine-backup --mode=3Drestore --file=3Dfile_name --log=3Dlog_file_name -= -provision-db --restore-permissions = Any Idea? = Thanks = -- = Jose Ferradeira = http://www.logicworks.pt = ------=3D_Part_20329569_1409874801.1519819859027 Content-Type: text/html; charset=3Dutf-8 Content-Transfer-Encoding: quoted-printable
H=3D i,

I'm testing backup & restore on Ovirt 4.2.
I follow this doc ht= tp=3D s://www.ovirt.org/documentation/admin-guide/chap-Backups_and_Migration/
T=3D ry to restore to a fresh installation but always get this error message:

restore-permissions
Preparing to restore:
- Unpacking file 'back_file'
Restoring:
- Files
Provisioning PostgreSQL us= =3D ers/databases:
- user 'engine', database 'engine'
Restoring:
FATAL: Can't connect to database 'ovirt_e= =3D ngine_history'. Please see '/usr/bin/engine-backup --help'.

On the = li=3D ve engine I run # engine-backup --scope=3D3Dall --mode=3D3Dbackup --fi= le=3D =3D3Dfile_name --log=3D3Dlog_file_name

And try to resto= re=3D on a fresh installation:
# engine-backup --mode=3D3Drestore --file=3D3Df= ile_=3D name --log=3D3Dlog_file_name --provision-db --restore-permissions

Any Idea?

Than= ks=3D


=

--

Jose Ferradeira
http:/= /w=3D ww.logicworks.pt

------=3D_Part_20329569_1409874801.1519819859027-- --===============9079057146075663981== Content-Type: multipart/alternative MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.bin" LS0tLS0tPV9QYXJ0XzIwMzI5NTY5XzE0MDk4NzQ4MDEuMTUxOTgxOTg1OTAyNwpDb250ZW50LVR5 cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9dXRmLTgKQ29udGVudC1UcmFuc2Zlci1FbmNvZGluZzog N2JpdAoKSGksIAoKSSdtIHRlc3RpbmcgYmFja3VwICYgcmVzdG9yZSBvbiBPdmlydCA0LjIuIApJ IGZvbGxvdyB0aGlzIGRvYyBodHRwczovL3d3dy5vdmlydC5vcmcvZG9jdW1lbnRhdGlvbi9hZG1p bi1ndWlkZS9jaGFwLUJhY2t1cHNfYW5kX01pZ3JhdGlvbi8gClRyeSB0byByZXN0b3JlIHRvIGEg ZnJlc2ggaW5zdGFsbGF0aW9uIGJ1dCBhbHdheXMgZ2V0IHRoaXMgZXJyb3IgbWVzc2FnZTogCgpy ZXN0b3JlLXBlcm1pc3Npb25zIApQcmVwYXJpbmcgdG8gcmVzdG9yZTogCi0gVW5wYWNraW5nIGZp bGUgJ2JhY2tfZmlsZScgClJlc3RvcmluZzogCi0gRmlsZXMgClByb3Zpc2lvbmluZyBQb3N0Z3Jl U1FMIHVzZXJzL2RhdGFiYXNlczogCi0gdXNlciAnZW5naW5lJywgZGF0YWJhc2UgJ2VuZ2luZScg ClJlc3RvcmluZzogCkZBVEFMOiBDYW4ndCBjb25uZWN0IHRvIGRhdGFiYXNlICdvdmlydF9lbmdp bmVfaGlzdG9yeScuIFBsZWFzZSBzZWUgJy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xkaXY+PHNwYW4gc3R5bGU9M0QiZm9udC1zaXplOiAxMXB0OyA9CmZvbnQtZmFtaWx5OiB0ZXJt aW5hbCwgbW9uYWNvOyIgZGF0YS1tY2Utc3R5bGU9M0QiZm9udC1zaXplOiAxMXB0OyBmb250LWZh bT0KaWx5OiB0ZXJtaW5hbCwgbW9uYWNvOyI+PGJyIGRhdGEtbWNlLWJvZ3VzPTNEIjEiPjwvc3Bh bj48L2Rpdj48ZGl2PjxzcGFuIHN0PQp5bGU9M0QiZm9udC1zaXplOiAxMXB0OyBmb250LWZhbWls eTogdGVybWluYWwsIG1vbmFjbzsiIGRhdGEtbWNlLXN0eWxlPTNEImY9Cm9udC1zaXplOiAxMXB0 OyBmb250LWZhbWlseTogdGVybWluYWwsIG1vbmFjbzsiPjxiciBkYXRhLW1jZS1ib2d1cz0zRCIx Ij48Lz0Kc3Bhbj48L2Rpdj48YnI+PGRpdj4tLSA8YnI+PC9kaXY+PGRpdj48aHIgc3R5bGU9M0Qi d2lkdGg6IDEwMCU7IGhlaWdodDogMnB4PQo7IiBkYXRhLW1jZS1zdHlsZT0zRCJ3aWR0aDogMTAw JTsgaGVpZ2h0OiAycHg7Ij5Kb3NlIEZlcnJhZGVpcmE8YnI+aHR0cDovL3c9Cnd3LmxvZ2ljd29y a3MucHQ8L2Rpdj48L2Rpdj48YnI+PC9kaXY+PC9kaXY+PC9ib2R5PjwvaHRtbD4KLS0tLS0tPV9Q YXJ0XzIwMzI5NTY5XzE0MDk4NzQ4MDEuMTUxOTgxOTg1OTAyNy0tCg== --===============9079057146075663981==-- From didi at redhat.com Wed Feb 28 12:24:53 2018 Content-Type: multipart/mixed; boundary="===============4371279087828630563==" MIME-Version: 1.0 From: Yedidyah Bar David To: users at ovirt.org Subject: Re: [ovirt-users] Backup & Restore Date: Wed, 28 Feb 2018 14:24:50 +0200 Message-ID: In-Reply-To: 1044341911.20329570.1519819859027.JavaMail.zimbra@logicworks.pt --===============4371279087828630563== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, Feb 28, 2018 at 2:10 PM, wrote: > Hi, > > I'm testing backup & restore on Ovirt 4.2. > I follow this doc > https://www.ovirt.org/documentation/admin-guide/chap-Backups_and_Migratio= n/ > Try to restore to a fresh installation but always get this error message: > > restore-permissions > Preparing to restore: > - Unpacking file 'back_file' > Restoring: > - Files > Provisioning PostgreSQL users/databases: > - user 'engine', database 'engine' > Restoring: > FATAL: Can't connect to database 'ovirt_engine_history'. Please see > '/usr/bin/engine-backup --help'. > > On the live engine I run # engine-backup --scope=3Dall --mode=3Dbackup > --file=3Dfile_name --log=3Dlog_file_name > > And try to restore on a fresh installation: > # engine-backup --mode=3Drestore --file=3Dfile_name --log=3Dlog_file_name > --provision-db --restore-permissions > > Any Idea? Please try adding to restore command '--providion-dwh-db'. Thanks. -- = Didi --===============4371279087828630563==-- From suporte at logicworks.pt Wed Feb 28 12:45:09 2018 Content-Type: multipart/mixed; boundary="===============5854441623495726282==" MIME-Version: 1.0 From: suporte at logicworks.pt To: users at ovirt.org Subject: Re: [ovirt-users] Backup & Restore Date: Wed, 28 Feb 2018 12:45:04 +0000 Message-ID: <1513265050.20337674.1519821904171.JavaMail.zimbra@logicworks.pt> In-Reply-To: CAHRwYXvD18f1WiciEcAoJw6kcSJrwJYsO6qeTTR30anKci-Jhg@mail.gmail.com --===============5854441623495726282== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ------=3D_Part_20337673_1603009670.1519821904170 Content-Type: text/plain; charset=3Dutf-8 Content-Transfer-Encoding: 7bit Still no luck: = # engine-backup --mode=3Drestore --file=3Dback_futur --log=3Dlog_futur --pr= ovision-db --restore-permissions --provision-dwh-db = Preparing to restore: = - Unpacking file 'back_futur' = Restoring: = - Files = Provisioning PostgreSQL users/databases: = - user 'engine', database 'engine' = - user 'ovirt_engine_history', database 'ovirt_engine_history' = Restoring: = - Engine database 'engine' = FATAL: Errors while restoring database engine = I did a engine-cleanup, try it again but still the same error. = De: "Yedidyah Bar David" = Para: suporte(a)logicworks.pt = Cc: "ovirt users" = Enviadas: Quarta-feira, 28 De Fevereiro de 2018 12:24:50 = Assunto: Re: [ovirt-users] Backup & Restore = On Wed, Feb 28, 2018 at 2:10 PM, wrote: = > Hi, = > = > I'm testing backup & restore on Ovirt 4.2. = > I follow this doc = > https://www.ovirt.org/documentation/admin-guide/chap-Backups_and_Migratio= n/ = > Try to restore to a fresh installation but always get this error message: = > = > restore-permissions = > Preparing to restore: = > - Unpacking file 'back_file' = > Restoring: = > - Files = > Provisioning PostgreSQL users/databases: = > - user 'engine', database 'engine' = > Restoring: = > FATAL: Can't connect to database 'ovirt_engine_history'. Please see = > '/usr/bin/engine-backup --help'. = > = > On the live engine I run # engine-backup --scope=3Dall --mode=3Dbackup = > --file=3Dfile_name --log=3Dlog_file_name = > = > And try to restore on a fresh installation: = > # engine-backup --mode=3Drestore --file=3Dfile_name --log=3Dlog_file_name = > --provision-db --restore-permissions = > = > Any Idea? = Please try adding to restore command '--providion-dwh-db'. Thanks. = -- = Didi = ------=3D_Part_20337673_1603009670.1519821904170 Content-Type: text/html; charset=3Dutf-8 Content-Transfer-Encoding: quoted-printable
Still no luck:

# engine-backup --mode=3D3Drestore --file=3D3Dback_futu= r --lo=3D g=3D3Dlog_futur --provision-db --restore-permissions --provision-dwh-db
= Pr=3D eparing to restore:
- Unpacking file 'back_futur'
Restoring:
- Fil= =3D es
Provisioning PostgreSQL users/databases:
- user 'engine', database= =3D 'engine'
- user 'ovirt_engine_history', database 'ovirt_engine_history'= =3D
Restoring:
- Engine database 'engine'
FATAL: Errors while restori= =3D ng database engine

I di= d =3D a engine-cleanup, try it again but still the same error.


De: "Yedidyah Bar David" <didi(a= )red=3D hat.com>
Para: suporte(a)logicworks.pt
Cc: "ovirt us= er=3D s" <users(a)ovirt.org>
Enviadas: Quarta-feira, 28 De Fevere= ir=3D o de 2018 12:24:50
Assunto: Re: [ovirt-users] Backup & Restor= =3D e

On Wed, Feb 28, 2018 = at=3D 2:10 PM,  <suporte(a)logicworks.pt> wrote:
> Hi,
><= br=3D >> I'm testing backup & restore on Ovirt 4.2.
> I follow this = =3D doc
> https://www.ovirt.org/documentation/admin-guide/chap-Backups_an= =3D d_Migration/
> Try to restore to a fresh installation but always get = =3D this error message:
>
> restore-permissions
> Preparing t= =3D o restore:
> - Unpacking file 'back_file'
> Restoring:
> = =3D - Files
> Provisioning PostgreSQL users/databases:
> - user 'en= =3D gine', database 'engine'
> Restoring:
> FATAL: Can't connect to= =3D database 'ovirt_engine_history'. Please see
> '/usr/bin/engine-backu= =3D p --help'.
>
> On the live engine I run # engine-backup --scope= =3D =3D3Dall --mode=3D3Dbackup
> --file=3D3Dfile_name --log=3D3Dlog_file_= name
=3D >
> And try to restore on a fresh installation:
> # engine-b= =3D ackup --mode=3D3Drestore --file=3D3Dfile_name --log=3D3Dlog_file_name
&g= t; --p=3D rovision-db --restore-permissions
>
> Any Idea?

Please t= =3D ry adding to restore command '--providion-dwh-db'. Thanks.
--
Didi
------=3D_Part_20337673_1603009670.1519821904170-- --===============5854441623495726282== Content-Type: multipart/alternative MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.bin" LS0tLS0tPV9QYXJ0XzIwMzM3NjczXzE2MDMwMDk2NzAuMTUxOTgyMTkwNDE3MApDb250ZW50LVR5 cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9dXRmLTgKQ29udGVudC1UcmFuc2Zlci1FbmNvZGluZzog N2JpdAoKU3RpbGwgbm8gbHVjazogCgojIGVuZ2luZS1iYWNrdXAgLS1tb2RlPXJlc3RvcmUgLS1m aWxlPWJhY2tfZnV0dXIgLS1sb2c9bG9nX2Z1dHVyIC0tcHJvdmlzaW9uLWRiIC0tcmVzdG9yZS1w ZXJtaXNzaW9ucyAtLXByb3Zpc2lvbi1kd2gtZGIgClByZXBhcmluZyB0byByZXN0b3JlOiAKLSBV bnBhY2tpb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Npb25z PGJyPiZndDs8YnI+Jmd0OyBBbnkgSWRlYT88YnI+PGJyPlBsZWFzZSB0PQpyeSBhZGRpbmcgdG8g cmVzdG9yZSBjb21tYW5kICctLXByb3ZpZGlvbi1kd2gtZGInLiBUaGFua3MuPGJyPi0tIDxicj5E aWRpPGI9CnI+PC9kaXY+PC9kaXY+PC9ib2R5PjwvaHRtbD4KLS0tLS0tPV9QYXJ0XzIwMzM3Njcz XzE2MDMwMDk2NzAuMTUxOTgyMTkwNDE3MC0tCg== --===============5854441623495726282==-- From suporte at logicworks.pt Wed Feb 28 14:44:47 2018 Content-Type: multipart/mixed; boundary="===============6883151370600243154==" MIME-Version: 1.0 From: suporte at logicworks.pt To: users at ovirt.org Subject: Re: [ovirt-users] Backup & Restore Date: Wed, 28 Feb 2018 14:44:39 +0000 Message-ID: <1229669542.20349654.1519829079176.JavaMail.zimbra@logicworks.pt> In-Reply-To: 1513265050.20337674.1519821904171.JavaMail.zimbra@logicworks.pt --===============6883151370600243154== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ------=3D_Part_20349653_1465707940.1519829079176 Content-Type: text/plain; charset=3Dutf-8 Content-Transfer-Encoding: 7bit If I run = # engine-backup --mode=3Drestore --file=3Dback_futur --log=3Dlog_futur --pr= ovision-db --restore-permissions --provision-dwh-db --log=3D/root/rest-log = to create a log, I found these errors: = 2018-02-28 14:36:31 6339: pg_cmd running: psql -w -U ovirt_engine_history -= h localhost -p 5432 ovirt_engine_history -t -c show lc_messages = 2018-02-28 14:36:31 6339: pg_cmd running: pg_dump -w -U ovirt_engine_histor= y -h localhost -p 5432 ovirt_engine_history -s = 2018-02-28 14:36:31 6339: OUTPUT: - Engine database 'engine' = 2018-02-28 14:36:31 6339: Restoring engine database backup at /tmp/engine-b= ackup.VVkcNuYAkV/db/engine_backup.db = 2018-02-28 14:36:31 6339: restoreDB: backupfile /tmp/engine-backup.VVkcNuYA= kV/db/engine_backup.db user engine host localhost port 5432 database engine= orig_user compressor format custom jobsnum 2 = 2018-02-28 14:36:31 6339: pg_cmd running: pg_restore -w -U engine -h localh= ost -p 5432 -d engine -j 2 /tmp/engine-backup.VVkcNuYAkV/db/engine_backup.d= b = pg_restore: [archiver (db)] Error while PROCESSING TOC: = pg_restore: [archiver (db)] Error from TOC entry 7314; 0 0 COMMENT EXTENSIO= N plpgsql = pg_restore: [archiver (db)] could not execute query: ERROR: must be owner o= f extension plpgsql = Command was: COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'= ; = pg_restore: [archiver (db)] Error from TOC entry 693; 1255 211334 FUNCTION = uuid_generate_v1() engine = pg_restore: [archiver (db)] could not execute query: ERROR: function "uuid_= generate_v1" already exists with same argument types = Command was: CREATE FUNCTION uuid_generate_v1() RETURNS uuid = LANGUAGE plpgsql STABLE = AS ' = DECLARE = v_val BIGINT; = v_4_1_par... = pg_restore: [archiver (db)] could not execute query: ERROR: must be owner o= f function uuid_generate_v1 = Command was: ALTER FUNCTION public.uuid_generate_v1() OWNER TO engine; = pg_restore: WARNING: column "user_role_title" has type "unknown" = DETAIL: Proceeding with relation creation anyway. = pg_restore: WARNING: no privileges could be revoked for "public" = pg_restore: WARNING: no privileges could be revoked for "public" = pg_restore: WARNING: no privileges were granted for "public" = pg_restore: WARNING: no privileges were granted for "public" = WARNING: errors ignored on restore: 3 = 2018-02-28 14:37:23 6339: FATAL: Errors while restoring database engine = De: suporte(a)logicworks.pt = Para: "Yedidyah Bar David" = Cc: "ovirt users" = Enviadas: Quarta-feira, 28 De Fevereiro de 2018 12:45:04 = Assunto: Re: [ovirt-users] Backup & Restore = Still no luck: = # engine-backup --mode=3Drestore --file=3Dback_futur --log=3Dlog_futur --pr= ovision-db --restore-permissions --provision-dwh-db = Preparing to restore: = - Unpacking file 'back_futur' = Restoring: = - Files = Provisioning PostgreSQL users/databases: = - user 'engine', database 'engine' = - user 'ovirt_engine_history', database 'ovirt_engine_history' = Restoring: = - Engine database 'engine' = FATAL: Errors while restoring database engine = I did a engine-cleanup, try it again but still the same error. = De: "Yedidyah Bar David" = Para: suporte(a)logicworks.pt = Cc: "ovirt users" = Enviadas: Quarta-feira, 28 De Fevereiro de 2018 12:24:50 = Assunto: Re: [ovirt-users] Backup & Restore = On Wed, Feb 28, 2018 at 2:10 PM, wrote: = > Hi, = > = > I'm testing backup & restore on Ovirt 4.2. = > I follow this doc = > https://www.ovirt.org/documentation/admin-guide/chap-Backups_and_Migratio= n/ = > Try to restore to a fresh installation but always get this error message: = > = > restore-permissions = > Preparing to restore: = > - Unpacking file 'back_file' = > Restoring: = > - Files = > Provisioning PostgreSQL users/databases: = > - user 'engine', database 'engine' = > Restoring: = > FATAL: Can't connect to database 'ovirt_engine_history'. Please see = > '/usr/bin/engine-backup --help'. = > = > On the live engine I run # engine-backup --scope=3Dall --mode=3Dbackup = > --file=3Dfile_name --log=3Dlog_file_name = > = > And try to restore on a fresh installation: = > # engine-backup --mode=3Drestore --file=3Dfile_name --log=3Dlog_file_name = > --provision-db --restore-permissions = > = > Any Idea? = Please try adding to restore command '--providion-dwh-db'. Thanks. = -- = Didi = _______________________________________________ = Users mailing list = Users(a)ovirt.org = http://lists.ovirt.org/mailman/listinfo/users = ------=3D_Part_20349653_1465707940.1519829079176 Content-Type: text/html; charset=3Dutf-8 Content-Transfer-Encoding: quoted-printable
If I run

# engine-backup --mode=3D3Drestore --file=3D3Dback_futur --log= =3D3Dlo=3D g_futur --provision-db --restore-permissions --provision-dwh-db --log=3D3D/= ro=3D ot/rest-log

to create a log= , =3D I found these errors:

2018-02-28 14:36:31 6339: pg_cmd running: psql -w -U ov= ir=3D t_engine_history -h localhost -p 5432 ovirt_engine_history -t -c show lc_me= =3D ssages
2018-02-28 14:36:31 6339: pg_cmd running: pg_dump -w -U ovirt_eng= =3D ine_history -h localhost -p 5432 ovirt_engine_history -s
2018-02-28 14:3= =3D 6:31 6339: OUTPUT: - Engine database 'engine'
2018-02-28 14:36:31 6339: = =3D Restoring engine database backup at /tmp/engine-backup.VVkcNuYAkV/db/engine= =3D _backup.db
2018-02-28 14:36:31 6339: restoreDB: backupfile /tmp/engine-b= =3D ackup.VVkcNuYAkV/db/engine_backup.db user engine host localhost port 5432 d= =3D atabase engine orig_user compressor format custom jobsnum 2
2018-02-28 1= =3D 4:36:31 6339: pg_cmd running: pg_restore -w -U engine -h localhost -p 5432 = =3D -d engine -j 2 /tmp/engine-backup.VVkcNuYAkV/db/engine_backup.db
pg_rest= =3D ore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (= =3D db)] Error from TOC entry 7314; 0 0 COMMENT EXTENSION plpgsql
pg_restor= =3D e: [archiver (db)] could not execute query: ERROR: must be owner of extensi= =3D on plpgsql
Command was: COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL proce= =3D dural language';



pg_restore: [archiver (db)] Error from TOC = =3D entry 693; 1255 211334 FUNCTION uuid_generate_v1() engine
pg_restore: [a= =3D rchiver (db)] could not execute query: ERROR: function "uuid_generate_v1" a= =3D lready exists with same argument types
Command was: CREATE FUNCTION uui= =3D d_generate_v1() RETURNS uuid
LANGUAGE plpgsql STABLE
AS '
DECLAR= =3D E
v_val BIGINT;
v_4_1_par...
pg_restore: [archiver (db)] could n= =3D ot execute query: ERROR: must be owner of function uuid_generate_v1
Com= =3D mand was: ALTER FUNCTION public.uuid_generate_v1() OWNER TO engine;

= =3D
pg_restore: WARNING: column "user_role_title" has type "unknown"
DET= =3D AIL: Proceeding with relation creation anyway.
pg_restore: WARNING: no p= =3D rivileges could be revoked for "public"
pg_restore: WARNING: no privileg= =3D es could be revoked for "public"
pg_restore: WARNING: no privileges were= =3D granted for "public"
pg_restore: WARNING: no privileges were granted fo= =3D r "public"
WARNING: errors ignored on restore: 3
2018-02-28 14:37:23 = =3D 6339: FATAL: Errors while restoring database engine


De: suporte(a)logicworks.pt
Para: "Yedidyah Bar David"= &=3D lt;didi(a)redhat.com>
Cc: "ovirt users" <users(a)ovirt.org&= gt;<=3D br>Enviadas: Quarta-feira, 28 De Fevereiro de 2018 12:45:04
As= =3D sunto: Re: [ovirt-users] Backup & Restore

Still no luck:

# = =3D engine-backup --mode=3D3Drestore --file=3D3Dback_futur --log=3D3Dlog_futur = --prov=3D ision-db --restore-permissions --provision-dwh-db
Preparing to restore:<= =3D br>- Unpacking file 'back_futur'
Restoring:
- Files
Provisioning P= =3D ostgreSQL users/databases:
- user 'engine', database 'engine'
- user = =3D 'ovirt_engine_history', database 'ovirt_engine_history'
Restoring:
- = =3D Engine database 'engine'
FATAL: Errors while restoring database engine

I did a engine-cleanup, try it again but still the same er= =3D ror.


De: "Yedidyah Bar David" &= lt=3D ;didi(a)redhat.com>
Para: suporte(a)logicworks.pt
Cc: "o=3D virt users" <users(a)ovirt.org>
Enviadas: Quarta-feira, 28 = De=3D Fevereiro de 2018 12:24:50
Assunto: Re: [ovirt-users] Backup &am= =3D p; Restore

On Wed, Feb 28, 2018 at 2:10 PM,  <sup= =3D orte(a)logicworks.pt> wrote:
> Hi,
>
> I'm testing bac= ku=3D p & restore on Ovirt 4.2.
> I follow this doc
> https://www= =3D .ovirt.org/documentation/admin-guide/chap-Backups_and_Migration/
> Tr= =3D y to restore to a fresh installation but always get this error message:
= =3D >
> restore-permissions
> Preparing to restore:
> - Un= =3D packing file 'back_file'
> Restoring:
> - Files
> Provisi= =3D oning PostgreSQL users/databases:
> - user 'engine', database 'engine= =3D '
> Restoring:
> FATAL: Can't connect to database 'ovirt_engine= =3D _history'. Please see
> '/usr/bin/engine-backup --help'.
>
&= =3D gt; On the live engine I run # engine-backup --scope=3D3Dall --mode=3D3Dbac= kup<=3D br>> --file=3D3Dfile_name --log=3D3Dlog_file_name
>
> And tr= y to=3D restore on a fresh installation:
> # engine-backup --mode=3D3Drestor= e =3D --file=3D3Dfile_name --log=3D3Dlog_file_name
> --provision-db --resto= re-p=3D ermissions
>
> Any Idea?

Please try adding to restore co= =3D mmand '--providion-dwh-db'. Thanks.
--
Didi

_____= =3D __________________________________________
Users mailing list
Users(a= )o=3D virt.org
http://lists.ovirt.org/mailman/listinfo/users
------=3D_Part_20349653_1465707940.1519829079176-- --===============6883151370600243154== Content-Type: multipart/alternative MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.bin" LS0tLS0tPV9QYXJ0XzIwMzQ5NjUzXzE0NjU3MDc5NDAuMTUxOTgyOTA3OTE3NgpDb250ZW50LVR5 cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9dXRmLTgKQ29udGVudC1UcmFuc2Zlci1FbmNvZGluZzog N2JpdAoKSWYgSSBydW4gCgojIGVuZ2luZS1iYWNrdXAgLS1tb2RlPXJlc3RvcmUgLS1maWxlPWJh Y2tfZnV0dXIgLS1sb2c9bG9nX2Z1dHVyIC0tcHJvdmlzaW9uLWRiIC0tcmVzdG9yZS1wZXJtaXNz aW9ucyAtLXByb3Zpc2lvbi1kd2gtZGIgLS1sb2c9L3Jvb3QvcmVzdC1sb2cgCgp0byBjcmVhdGUg YSBsb2csIEkgZm91bmQgdGhlc2UgZXJyb3JzOiAKCjIwMTgtMDItMjggMTQ6MzY6MzEgNjMzOTog cGdfY21kIHJ1bm5pbmc6IHBzcWwgLXcgLVUgb3ZpcnRfZW5naW5lX2hpc3RvcnkgLWggbG9jYWxo b3N0IC1wIDU0MzIgb3ZpcnRfZW5naW5lX2hpc3RvcnkgLXQgLWMgc2hvdyBsY19tZXNzYWdlcyAK MjAxOC0wMi0yOCAxNDozNjozMSA2MzM5OiBwZ19jbWQgcnVubmluZzogcGdfZHVtcCAtdyAtVSBv dmlydF9lbmdpbmVfaGlzdG9yeSAtaCBsb2NhbGhvc3QgLXAgNTQzMiBvdmlydF9lbmdpbmVfaGlz dG9yeSAtcyAKMjAxOC0wMi0yOCAxNDozNjozMSA2MzM5OiBPVVRQVVQ6IC0gRW5naW5lIGRhdGFi YXNlICdlbmdpbmUnIAoyMDE4LTAyLTI4IDE0OjM2OjMxIDYzMzk6IFJlc3RvcmluZyBlbmdpbmU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NlcnM8YnI+PC9kaXY+PC9kaXY+PC89CmJvZHk+PC9odG1sPgotLS0tLS09X1BhcnRf MjAzNDk2NTNfMTQ2NTcwNzk0MC4xNTE5ODI5MDc5MTc2LS0K --===============6883151370600243154==-- From didi at redhat.com Thu Mar 1 07:28:16 2018 Content-Type: multipart/mixed; boundary="===============5666731851949014369==" MIME-Version: 1.0 From: Yedidyah Bar David To: users at ovirt.org Subject: Re: [ovirt-users] Backup & Restore Date: Thu, 01 Mar 2018 09:28:13 +0200 Message-ID: In-Reply-To: 1229669542.20349654.1519829079176.JavaMail.zimbra@logicworks.pt --===============5666731851949014369== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, Feb 28, 2018 at 4:44 PM, wrote: > If I run > > # engine-backup --mode=3Drestore --file=3Dback_futur --log=3Dlog_futur > --provision-db --restore-permissions --provision-dwh-db --log=3D/root/res= t-log > > to create a log, I found these errors: > > 2018-02-28 14:36:31 6339: pg_cmd running: psql -w -U ovirt_engine_history= -h > localhost -p 5432 ovirt_engine_history -t -c show lc_messages > 2018-02-28 14:36:31 6339: pg_cmd running: pg_dump -w -U ovirt_engine_hist= ory > -h localhost -p 5432 ovirt_engine_history -s > 2018-02-28 14:36:31 6339: OUTPUT: - Engine database 'engine' > 2018-02-28 14:36:31 6339: Restoring engine database backup at > /tmp/engine-backup.VVkcNuYAkV/db/engine_backup.db > 2018-02-28 14:36:31 6339: restoreDB: backupfile > /tmp/engine-backup.VVkcNuYAkV/db/engine_backup.db user engine host localh= ost > port 5432 database engine orig_user compressor format custom jobsnum 2 > 2018-02-28 14:36:31 6339: pg_cmd running: pg_restore -w -U engine -h > localhost -p 5432 -d engine -j 2 > /tmp/engine-backup.VVkcNuYAkV/db/engine_backup.db > pg_restore: [archiver (db)] Error while PROCESSING TOC: > pg_restore: [archiver (db)] Error from TOC entry 7314; 0 0 COMMENT EXTENS= ION > plpgsql > pg_restore: [archiver (db)] could not execute query: ERROR: must be owner= of > extension plpgsql > Command was: COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural languag= e'; > > > > pg_restore: [archiver (db)] Error from TOC entry 693; 1255 211334 FUNCTION > uuid_generate_v1() engine > pg_restore: [archiver (db)] could not execute query: ERROR: function > "uuid_generate_v1" already exists with same argument types This is the error that fails you. I have a pending patch to make this more visible in the log [1], need to find time to verify it... Does this happen on a clean machine? Perhaps 'engine-cleanup' after such a failed restore is not enough. Please try reinstalling the OS and trying again. If it's not an important machine (test/dev/etc), this will probably be enough, as a faster replacement for a full OS reinstall: engine-cleanup systemctl stop postgresql systemctl stop rh-postgresql95-postgresql rm -rf /var/lib/pgsql/data /var/opt/rh/rh-postgresql95/lib/pgsql/data Then try restore again. [1] https://gerrit.ovirt.org/86395 > Command was: CREATE FUNCTION uuid_generate_v1() RETURNS uuid > LANGUAGE plpgsql STABLE > AS ' > DECLARE > v_val BIGINT; > v_4_1_par... > pg_restore: [archiver (db)] could not execute query: ERROR: must be owner= of > function uuid_generate_v1 > Command was: ALTER FUNCTION public.uuid_generate_v1() OWNER TO engine; Adding also Eli. Eli - perhaps we need to patch engine-backup to ignore also this error? I think the minimal flow to reproduce is: engine-setup engine-backup --mode=3Dbackup --file=3Df1 --log=3Dl1 engine-cleanup engine-backup --mode=3Drestore --file=3Df1 --provision-db --provision-dwh-db --log=3Dl2 Didn't try this myself. > > > pg_restore: WARNING: column "user_role_title" has type "unknown" > DETAIL: Proceeding with relation creation anyway. > pg_restore: WARNING: no privileges could be revoked for "public" > pg_restore: WARNING: no privileges could be revoked for "public" > pg_restore: WARNING: no privileges were granted for "public" > pg_restore: WARNING: no privileges were granted for "public" > WARNING: errors ignored on restore: 3 > 2018-02-28 14:37:23 6339: FATAL: Errors while restoring database engine > > ________________________________ > De: suporte(a)logicworks.pt > Para: "Yedidyah Bar David" > Cc: "ovirt users" > Enviadas: Quarta-feira, 28 De Fevereiro de 2018 12:45:04 > > Assunto: Re: [ovirt-users] Backup & Restore > > Still no luck: > > # engine-backup --mode=3Drestore --file=3Dback_futur --log=3Dlog_futur > --provision-db --restore-permissions --provision-dwh-db > Preparing to restore: > - Unpacking file 'back_futur' > Restoring: > - Files > Provisioning PostgreSQL users/databases: > - user 'engine', database 'engine' > - user 'ovirt_engine_history', database 'ovirt_engine_history' > Restoring: > - Engine database 'engine' > FATAL: Errors while restoring database engine > > I did a engine-cleanup, try it again but still the same error. > > ________________________________ > De: "Yedidyah Bar David" > Para: suporte(a)logicworks.pt > Cc: "ovirt users" > Enviadas: Quarta-feira, 28 De Fevereiro de 2018 12:24:50 > Assunto: Re: [ovirt-users] Backup & Restore > > On Wed, Feb 28, 2018 at 2:10 PM, wrote: >> Hi, >> >> I'm testing backup & restore on Ovirt 4.2. >> I follow this doc >> >> https://www.ovirt.org/documentation/admin-guide/chap-Backups_and_Migrati= on/ >> Try to restore to a fresh installation but always get this error message: >> >> restore-permissions >> Preparing to restore: >> - Unpacking file 'back_file' >> Restoring: >> - Files >> Provisioning PostgreSQL users/databases: >> - user 'engine', database 'engine' >> Restoring: >> FATAL: Can't connect to database 'ovirt_engine_history'. Please see >> '/usr/bin/engine-backup --help'. >> >> On the live engine I run # engine-backup --scope=3Dall --mode=3Dbackup >> --file=3Dfile_name --log=3Dlog_file_name >> >> And try to restore on a fresh installation: >> # engine-backup --mode=3Drestore --file=3Dfile_name --log=3Dlog_file_name >> --provision-db --restore-permissions >> >> Any Idea? > > Please try adding to restore command '--providion-dwh-db'. Thanks. > -- > Didi > > _______________________________________________ > Users mailing list > Users(a)ovirt.org > http://lists.ovirt.org/mailman/listinfo/users -- = Didi --===============5666731851949014369==-- From suporte at logicworks.pt Thu Mar 1 12:08:07 2018 Content-Type: multipart/mixed; boundary="===============2183825340960443521==" MIME-Version: 1.0 From: suporte at logicworks.pt To: users at ovirt.org Subject: Re: [ovirt-users] Backup & Restore Date: Thu, 01 Mar 2018 12:07:58 +0000 Message-ID: <1803853344.20566967.1519906078677.JavaMail.zimbra@logicworks.pt> In-Reply-To: CAHRwYXvAjWicB17=GCJgWMQBFLvued8Ayh9G1U2NKeKY9YFaNQ@mail.gmail.com --===============2183825340960443521== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ------=3D_Part_20566966_39555052.1519906078677 Content-Type: text/plain; charset=3Dutf-8 Content-Transfer-Encoding: 7bit Yes, it happens in a clean machine. I try it twice and restore always fails= . = From: "Yedidyah Bar David" = To: suporte(a)logicworks.pt, "Eli Mesika" = Cc: "ovirt users" = Sent: Thursday, March 1, 2018 7:28:13 AM = Subject: Re: [ovirt-users] Backup & Restore = On Wed, Feb 28, 2018 at 4:44 PM, wrote: = > If I run = > = > # engine-backup --mode=3Drestore --file=3Dback_futur --log=3Dlog_futur = > --provision-db --restore-permissions --provision-dwh-db --log=3D/root/res= t-log = > = > to create a log, I found these errors: = > = > 2018-02-28 14:36:31 6339: pg_cmd running: psql -w -U ovirt_engine_history= -h = > localhost -p 5432 ovirt_engine_history -t -c show lc_messages = > 2018-02-28 14:36:31 6339: pg_cmd running: pg_dump -w -U ovirt_engine_hist= ory = > -h localhost -p 5432 ovirt_engine_history -s = > 2018-02-28 14:36:31 6339: OUTPUT: - Engine database 'engine' = > 2018-02-28 14:36:31 6339: Restoring engine database backup at = > /tmp/engine-backup.VVkcNuYAkV/db/engine_backup.db = > 2018-02-28 14:36:31 6339: restoreDB: backupfile = > /tmp/engine-backup.VVkcNuYAkV/db/engine_backup.db user engine host localh= ost = > port 5432 database engine orig_user compressor format custom jobsnum 2 = > 2018-02-28 14:36:31 6339: pg_cmd running: pg_restore -w -U engine -h = > localhost -p 5432 -d engine -j 2 = > /tmp/engine-backup.VVkcNuYAkV/db/engine_backup.db = > pg_restore: [archiver (db)] Error while PROCESSING TOC: = > pg_restore: [archiver (db)] Error from TOC entry 7314; 0 0 COMMENT EXTENS= ION = > plpgsql = > pg_restore: [archiver (db)] could not execute query: ERROR: must be owner= of = > extension plpgsql = > Command was: COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural languag= e'; = > = > = > = > pg_restore: [archiver (db)] Error from TOC entry 693; 1255 211334 FUNCTIO= N = > uuid_generate_v1() engine = > pg_restore: [archiver (db)] could not execute query: ERROR: function = > "uuid_generate_v1" already exists with same argument types = This is the error that fails you. I have a pending patch to make this more = visible in the log [1], need to find time to verify it... = Does this happen on a clean machine? Perhaps 'engine-cleanup' after such = a failed restore is not enough. Please try reinstalling the OS and trying = again. = If it's not an important machine (test/dev/etc), this will probably be = enough, as a faster replacement for a full OS reinstall: = engine-cleanup = systemctl stop postgresql = systemctl stop rh-postgresql95-postgresql = rm -rf /var/lib/pgsql/data /var/opt/rh/rh-postgresql95/lib/pgsql/data = Then try restore again. = [1] https://gerrit.ovirt.org/86395 = > Command was: CREATE FUNCTION uuid_generate_v1() RETURNS uuid = > LANGUAGE plpgsql STABLE = > AS ' = > DECLARE = > v_val BIGINT; = > v_4_1_par... = > pg_restore: [archiver (db)] could not execute query: ERROR: must be owner= of = > function uuid_generate_v1 = > Command was: ALTER FUNCTION public.uuid_generate_v1() OWNER TO engine; = Adding also Eli. Eli - perhaps we need to patch engine-backup to ignore = also this error? I think the minimal flow to reproduce is: = engine-setup = engine-backup --mode=3Dbackup --file=3Df1 --log=3Dl1 = engine-cleanup = engine-backup --mode=3Drestore --file=3Df1 --provision-db = --provision-dwh-db --log=3Dl2 = Didn't try this myself. = > = > = > pg_restore: WARNING: column "user_role_title" has type "unknown" = > DETAIL: Proceeding with relation creation anyway. = > pg_restore: WARNING: no privileges could be revoked for "public" = > pg_restore: WARNING: no privileges could be revoked for "public" = > pg_restore: WARNING: no privileges were granted for "public" = > pg_restore: WARNING: no privileges were granted for "public" = > WARNING: errors ignored on restore: 3 = > 2018-02-28 14:37:23 6339: FATAL: Errors while restoring database engine = > = > ________________________________ = > De: suporte(a)logicworks.pt = > Para: "Yedidyah Bar David" = > Cc: "ovirt users" = > Enviadas: Quarta-feira, 28 De Fevereiro de 2018 12:45:04 = > = > Assunto: Re: [ovirt-users] Backup & Restore = > = > Still no luck: = > = > # engine-backup --mode=3Drestore --file=3Dback_futur --log=3Dlog_futur = > --provision-db --restore-permissions --provision-dwh-db = > Preparing to restore: = > - Unpacking file 'back_futur' = > Restoring: = > - Files = > Provisioning PostgreSQL users/databases: = > - user 'engine', database 'engine' = > - user 'ovirt_engine_history', database 'ovirt_engine_history' = > Restoring: = > - Engine database 'engine' = > FATAL: Errors while restoring database engine = > = > I did a engine-cleanup, try it again but still the same error. = > = > ________________________________ = > De: "Yedidyah Bar David" = > Para: suporte(a)logicworks.pt = > Cc: "ovirt users" = > Enviadas: Quarta-feira, 28 De Fevereiro de 2018 12:24:50 = > Assunto: Re: [ovirt-users] Backup & Restore = > = > On Wed, Feb 28, 2018 at 2:10 PM, wrote: = >> Hi, = >> = >> I'm testing backup & restore on Ovirt 4.2. = >> I follow this doc = >> = >> https://www.ovirt.org/documentation/admin-guide/chap-Backups_and_Migrati= on/ = >> Try to restore to a fresh installation but always get this error message= : = >> = >> restore-permissions = >> Preparing to restore: = >> - Unpacking file 'back_file' = >> Restoring: = >> - Files = >> Provisioning PostgreSQL users/databases: = >> - user 'engine', database 'engine' = >> Restoring: = >> FATAL: Can't connect to database 'ovirt_engine_history'. Please see = >> '/usr/bin/engine-backup --help'. = >> = >> On the live engine I run # engine-backup --scope=3Dall --mode=3Dbackup = >> --file=3Dfile_name --log=3Dlog_file_name = >> = >> And try to restore on a fresh installation: = >> # engine-backup --mode=3Drestore --file=3Dfile_name --log=3Dlog_file_nam= e = >> --provision-db --restore-permissions = >> = >> Any Idea? = > = > Please try adding to restore command '--providion-dwh-db'. Thanks. = > -- = > Didi = > = > _______________________________________________ = > Users mailing list = > Users(a)ovirt.org = > http://lists.ovirt.org/mailman/listinfo/users = -- = Didi = ------=3D_Part_20566966_39555052.1519906078677 Content-Type: text/html; charset=3Dutf-8 Content-Transfer-Encoding: quoted-printable
Yes, it happens in a clean machine. I try it twi= =3D ce and restore always fails.


From: "Yedid= yah =3D Bar David" <didi(a)redhat.com>
To: suporte(a)logicworks.pt,= "El=3D i Mesika" <emesika(a)redhat.com>
Cc: "ovirt users" <user= s@=3D ovirt.org>
Sent: Thursday, March 1, 2018 7:28:13 AM
Subj= =3D ect: Re: [ovirt-users] Backup & Restore

On Wed, Feb 28, 2018 at 4:44 PM,  = &l=3D t;suporte(a)logicworks.pt> wrote:
> If I run
>
> # eng= in=3D e-backup --mode=3D3Drestore --file=3D3Dback_futur --log=3D3Dlog_futur
&g= t; --p=3D rovision-db --restore-permissions --provision-dwh-db --log=3D3D/root/rest-l= og=3D
>
> to create a log, I found these errors:
>
> 201= =3D 8-02-28 14:36:31 6339: pg_cmd running: psql -w -U ovirt_engine_history -h> localhost -p 5432 ovirt_engine_history -t -c show lc_messages
>= =3D ; 2018-02-28 14:36:31 6339: pg_cmd running: pg_dump -w -U ovirt_engine_hist= =3D ory
> -h localhost -p 5432 ovirt_engine_history -s
> 2018-02-28= =3D 14:36:31 6339: OUTPUT: - Engine database 'engine'
> 2018-02-28 14:36= =3D :31 6339: Restoring engine database backup at
> /tmp/engine-backup.VV= =3D kcNuYAkV/db/engine_backup.db
> 2018-02-28 14:36:31 6339: restoreDB: b= =3D ackupfile
> /tmp/engine-backup.VVkcNuYAkV/db/engine_backup.db user en= =3D gine host localhost
> port 5432 database engine orig_user compressor = =3D format custom jobsnum 2
> 2018-02-28 14:36:31 6339: pg_cmd running: p= =3D g_restore -w -U engine -h
> localhost -p 5432 -d engine -j 2
> = =3D /tmp/engine-backup.VVkcNuYAkV/db/engine_backup.db
> pg_restore: [arch= =3D iver (db)] Error while PROCESSING TOC:
> pg_restore: [archiver (db)] = =3D Error from TOC entry 7314; 0 0 COMMENT EXTENSION
> plpgsql
> pg= =3D _restore: [archiver (db)] could not execute query: ERROR: must be owner of<= =3D br>> extension plpgsql
> Command was: COMMENT ON EXTENSION plpgsql= =3D IS 'PL/pgSQL procedural language';
>
>
>
> pg_rest= =3D ore: [archiver (db)] Error from TOC entry 693; 1255 211334 FUNCTION
>= =3D uuid_generate_v1() engine
> pg_restore: [archiver (db)] could not ex= =3D ecute query: ERROR: function
> "uuid_generate_v1" already exists with= =3D same argument types

This is the error that fails you. I have a pend= =3D ing patch to make this more
visible in the log [1], need to find time to= =3D verify it...

Does this happen on a clean machine? Perhaps 'engine-c= =3D leanup' after such
a failed restore is not enough. Please try reinstalli= =3D ng the OS and trying
again.

If it's not an important machine (tes= =3D t/dev/etc), this will probably be
enough, as a faster replacement for a = =3D full OS reinstall:

engine-cleanup
systemctl stop postgresql
sy= =3D stemctl stop rh-postgresql95-postgresql
rm -rf /var/lib/pgsql/data /var/= =3D opt/rh/rh-postgresql95/lib/pgsql/data

Then try restore again.
[1] https://gerrit.ovirt.org/86395

> Command was: CREATE FUNCTIO= =3D N uuid_generate_v1() RETURNS uuid
> LANGUAGE plpgsql STABLE
> A= =3D S '
> DECLARE
> v_val BIGINT;
> v_4_1_par...
> pg_r= =3D estore: [archiver (db)] could not execute query: ERROR: must be owner of> function uuid_generate_v1
> Command was: ALTER FUNCTION public.= =3D uuid_generate_v1() OWNER TO engine;

Adding also Eli. Eli - perhaps w= =3D e need to patch engine-backup to ignore
also this error? I think the min= =3D imal flow to reproduce is:

engine-setup
engine-backup --mode=3D3D= ba=3D ckup --file=3D3Df1 --log=3D3Dl1
engine-cleanup
engine-backup --mode= =3D3Dres=3D tore --file=3D3Df1 --provision-db
--provision-dwh-db --log=3D3Dl2
Did=3D n't try this myself.

>
>
> pg_restore: WARNING: colum= =3D n "user_role_title" has type "unknown"
> DETAIL: Proceeding with rela= =3D tion creation anyway.
> pg_restore: WARNING: no privileges could be r= =3D evoked for "public"
> pg_restore: WARNING: no privileges could be rev= =3D oked for "public"
> pg_restore: WARNING: no privileges were granted f= =3D or "public"
> pg_restore: WARNING: no privileges were granted for "pu= =3D blic"
> WARNING: errors ignored on restore: 3
> 2018-02-28 14:3= =3D 7:23 6339: FATAL: Errors while restoring database engine
>
> __= =3D ______________________________
> De: suporte(a)logicworks.pt
> = Pa=3D ra: "Yedidyah Bar David" <didi(a)redhat.com>
> Cc: "ovirt users= " =3D <users(a)ovirt.org>
> Enviadas: Quarta-feira, 28 De Fevereiro d= e =3D 2018 12:45:04
>
> Assunto: Re: [ovirt-users] Backup & Resto= =3D re
>
> Still no luck:
>
> # engine-backup --mode=3D= 3D=3D restore --file=3D3Dback_futur --log=3D3Dlog_futur
> --provision-db --= rest=3D ore-permissions --provision-dwh-db
> Preparing to restore:
> - = =3D Unpacking file 'back_futur'
> Restoring:
> - Files
> Prov= =3D isioning PostgreSQL users/databases:
> - user 'engine', database 'eng= =3D ine'
> - user 'ovirt_engine_history', database 'ovirt_engine_history'= =3D
> Restoring:
> - Engine database 'engine'
> FATAL: Error= =3D s while restoring database engine
>
> I did a engine-cleanup, t= =3D ry it again but still the same error.
>
> _____________________= =3D ___________
> De: "Yedidyah Bar David" <didi(a)redhat.com>
&= gt=3D ; Para: suporte(a)logicworks.pt
> Cc: "ovirt users" <users(a)ovirt= .org=3D >
> Enviadas: Quarta-feira, 28 De Fevereiro de 2018 12:24:50
&g= =3D t; Assunto: Re: [ovirt-users] Backup & Restore
>
> On Wed, = =3D Feb 28, 2018 at 2:10 PM,  <suporte(a)logicworks.pt> wrote:
&g= t;=3D > Hi,
>>
>> I'm testing backup & restore on Ovirt = =3D 4.2.
>> I follow this doc
>>
>> https://www.ovir= =3D t.org/documentation/admin-guide/chap-Backups_and_Migration/
>> Try= =3D to restore to a fresh installation but always get this error message:
&= =3D gt;>
>> restore-permissions
>> Preparing to restore:>> - Unpacking file 'back_file'
>> Restoring:
>> = =3D - Files
>> Provisioning PostgreSQL users/databases:
>> - = =3D user 'engine', database 'engine'
>> Restoring:
>> FATAL: = =3D Can't connect to database 'ovirt_engine_history'. Please see
>> '/= =3D usr/bin/engine-backup --help'.
>>
>> On the live engine I= =3D run # engine-backup --scope=3D3Dall --mode=3D3Dbackup
>> --file= =3D3Dfil=3D e_name --log=3D3Dlog_file_name
>>
>> And try to restore o= n =3D a fresh installation:
>> # engine-backup --mode=3D3Drestore --file= =3D =3D3Dfile_name --log=3D3Dlog_file_name
>> --provision-db --restore= -per=3D missions
>>
>> Any Idea?
>
> Please try addin= =3D g to restore command '--providion-dwh-db'. Thanks.
> --
> Didi<= =3D br>>
> _______________________________________________
> Use= =3D rs mailing list
> Users(a)ovirt.org
> http://lists.ovirt.org/ma= il=3D man/listinfo/users



--
Didi
------=3D_Part_20566966_39555052.1519906078677-- --===============2183825340960443521== Content-Type: multipart/alternative MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.bin" LS0tLS0tPV9QYXJ0XzIwNTY2OTY2XzM5NTU1MDUyLjE1MTk5MDYwNzg2NzcKQ29udGVudC1UeXBl OiB0ZXh0L3BsYWluOyBjaGFyc2V0PXV0Zi04CkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IDdi aXQKClllcywgaXQgaGFwcGVucyBpbiBhIGNsZWFuIG1hY2hpbmUuIEkgdHJ5IGl0IHR3aWNlIGFu ZCByZXN0b3JlIGFsd2F5cyBmYWlscy4gCgoKRnJvbTogIlllZGlkeWFoIEJhciBEYXZpZCIgPGRp ZGlAcmVkaGF0LmNvbT4gClRvOiBzdXBvcnRlQGxvZ2ljd29ya3MucHQsICJFbGkgTWVzaWthIiA8 ZW1lc2lrYUByZWRoYXQuY29tPiAKQ2M6ICJvdmlydCB1c2VycyIgPHVzZXJzQG92aXJ0Lm9yZz4g ClNlbnQ6IFRodXJzZGF5LCBNYXJjaCAxLCAyMDE4IDc6Mjg6MTMgQU0gClN1YmplY3Q6IFJlOiBb b3ZpcnQtdXNlcnNdIEJhY2t1cCAmIFJlc3RvcmUgCgpPbiBXZWQsIEZlYiAyOCwgMjAxOCBhdCA0 OjQ0IFBNLCA8c3Vwb3J0ZUBsb2dpY3dvcmtzLnB0PiB3cm90ZTogCj4gSWYgSSBydW4gCj4gCj4g IyBlbmdpbmUtYmFja3VwIC0tbW9kZT1yZ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 2018 Content-Type: multipart/mixed; boundary="===============7475917538793603669==" MIME-Version: 1.0 From: emmanuel.thetas at obs-nancay.fr To: users at ovirt.org Subject: [ovirt-users] Re: Backup & Restore Date: Thu, 24 May 2018 09:32:33 +0000 Message-ID: <20180524093233.23217.93425@mail.ovirt.org> In-Reply-To: 1803853344.20566967.1519906078677.JavaMail.zimbra@logicworks.pt --===============7475917538793603669== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable hi, I have the same error when I try to restore on a new hosted VM (ovirt 4.2.3) Have you a solution ? Emmanuel --===============7475917538793603669==-- From torsten.stolpmann at verit.de Mon Dec 17 12:25:22 2018 Content-Type: multipart/mixed; boundary="===============8573867522399118449==" MIME-Version: 1.0 From: Torsten Stolpmann To: users at ovirt.org Subject: [ovirt-users] Re: Backup & Restore Date: Mon, 17 Dec 2018 13:16:15 +0100 Message-ID: In-Reply-To: 20180524093233.23217.93425@mail.ovirt.org --===============8573867522399118449== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable I experienced the same issue while restoring a full backup (engine & = dwh) on a clean machine. Both machines are running CentOS 7.6 and oVirt 4.2.7. The issue went away when adding the following line to the IGNORED_ERRORS = list starting at 1944 in engine-backup: must be owner of function uuid_generate_v1 Hope this helps, Torsten On 24.05.2018 11:32, emmanuel.thetas(a)obs-nancay.fr wrote: > hi, > = > I have the same error when I try to restore on a new hosted VM (ovirt 4.2= .3) > Have you a solution ? > = > Emmanuel > _______________________________________________ > Users mailing list -- users(a)ovirt.org > To unsubscribe send an email to users-leave(a)ovirt.org >=20 --===============8573867522399118449==-- From didi at redhat.com Tue Dec 18 06:55:05 2018 Content-Type: multipart/mixed; boundary="===============7731187314176235713==" MIME-Version: 1.0 From: Yedidyah Bar David To: users at ovirt.org Subject: [ovirt-users] Re: Backup & Restore Date: Tue, 18 Dec 2018 08:54:30 +0200 Message-ID: In-Reply-To: cd57a7b6-638e-6eb7-84c4-a324f57b7c79@verit.de --===============7731187314176235713== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Mon, Dec 17, 2018 at 2:26 PM Torsten Stolpmann wrote: > > I experienced the same issue while restoring a full backup (engine & > dwh) on a clean machine. Both machines are running CentOS 7.6 and > oVirt 4.2.7. > > The issue went away when adding the following line to the IGNORED_ERRORS > list starting at 1944 in engine-backup: > > must be owner of function uuid_generate_v1 > > Hope this helps, It does, and thanks for the report! Can you please share all of your setup logs (/var/log/ovirt-engine/setup/*)? Thanks! More details: This function should not normally be included in a 4.2 backup, and I do not yet understand why you get this error. If it's a clean 4.2 setup, it should never have been defined. Earlier versions did create it, and the upgrade process should have dropped it, if it's an upgraded setup. See also: https://bugzilla.redhat.com/show_bug.cgi?id=3D1515635 Best regards, > > Torsten > > On 24.05.2018 11:32, emmanuel.thetas(a)obs-nancay.fr wrote: > > hi, > > > > I have the same error when I try to restore on a new hosted VM (ovirt 4= .2.3) > > Have you a solution ? > > > > Emmanuel > > _______________________________________________ > > Users mailing list -- users(a)ovirt.org > > To unsubscribe send an email to users-leave(a)ovirt.org > > > _______________________________________________ > Users mailing list -- users(a)ovirt.org > To unsubscribe send an email to users-leave(a)ovirt.org > Privacy Statement: https://www.ovirt.org/site/privacy-policy/ > oVirt Code of Conduct: https://www.ovirt.org/community/about/community-gu= idelines/ > List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt.org/me= ssage/YMMFCYUMLCM47OJSTHXS2IMOIKEEFU27/ -- = Didi --===============7731187314176235713==-- From torsten.stolpmann at verit.de Tue Dec 18 15:18:17 2018 Content-Type: multipart/mixed; boundary="===============9112225799284878926==" MIME-Version: 1.0 From: Torsten Stolpmann To: users at ovirt.org Subject: [ovirt-users] Re: Backup & Restore Date: Tue, 18 Dec 2018 16:17:50 +0100 Message-ID: <26f03b4e-45c0-f554-09c6-572ef7c4abe6@verit.de> In-Reply-To: CAHRwYXsOcNscgn-Upde6JJDiGvL85vmOhG_CUKhY42acSn_x8A@mail.gmail.com --===============9112225799284878926== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Yedidyah, please find the logs at the following URL: = http://www.klaros-testmanagement.com/files/ovirt/ovirt-restore-logs.tar.gz Let me know once you received them safely so I can remove them again. I also added the restore.log containing the actual error which occured = during the restore. Since this was a clean system I restored on, the setup has been executed = after the database restore, so the setup logs probably contain nothing = of interest. I added them anyway. Please let me know if there is anything I can add to this. Cheers, Torsten On 18.12.2018 07:54, Yedidyah Bar David wrote: > On Mon, Dec 17, 2018 at 2:26 PM Torsten Stolpmann > wrote: >> >> I experienced the same issue while restoring a full backup (engine & >> dwh) on a clean machine. Both machines are running CentOS 7.6 and >> oVirt 4.2.7. >> >> The issue went away when adding the following line to the IGNORED_ERRORS >> list starting at 1944 in engine-backup: >> >> must be owner of function uuid_generate_v1 >> >> Hope this helps, > = > It does, and thanks for the report! > = > Can you please share all of your setup logs (/var/log/ovirt-engine/setup/= *)? > = > Thanks! > = > More details: > = > This function should not normally be included in a 4.2 backup, and I do > not yet understand why you get this error. > = > If it's a clean 4.2 setup, it should never have been defined. > Earlier versions did create it, and the upgrade process should have > dropped it, if it's an upgraded setup. See also: > = > https://bugzilla.redhat.com/show_bug.cgi?id=3D1515635 > = > Best regards, > = >> >> Torsten >> >> On 24.05.2018 11:32, emmanuel.thetas(a)obs-nancay.fr wrote: >>> hi, >>> >>> I have the same error when I try to restore on a new hosted VM (ovirt 4= .2.3) >>> Have you a solution ? >>> >>> Emmanuel >>> _______________________________________________ >>> Users mailing list -- users(a)ovirt.org >>> To unsubscribe send an email to users-leave(a)ovirt.org >>> >> _______________________________________________ >> Users mailing list -- users(a)ovirt.org >> To unsubscribe send an email to users-leave(a)ovirt.org >> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ >> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-g= uidelines/ >> List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt.org/m= essage/YMMFCYUMLCM47OJSTHXS2IMOIKEEFU27/ > = > = >=20 --===============9112225799284878926==-- From didi at redhat.com Wed Dec 19 07:02:23 2018 Content-Type: multipart/mixed; boundary="===============8268972851227782019==" MIME-Version: 1.0 From: Yedidyah Bar David To: users at ovirt.org Subject: [ovirt-users] Re: Backup & Restore Date: Wed, 19 Dec 2018 09:01:12 +0200 Message-ID: In-Reply-To: 26f03b4e-45c0-f554-09c6-572ef7c4abe6@verit.de --===============8268972851227782019== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Tue, Dec 18, 2018 at 5:20 PM Torsten Stolpmann wrote: > > Hi Yedidyah, > > please find the logs at the following URL: > http://www.klaros-testmanagement.com/files/ovirt/ovirt-restore-logs.tar.gz > > Let me know once you received them safely so I can remove them again. Done. > > I also added the restore.log containing the actual error which occured > during the restore. > > Since this was a clean system I restored on, the setup has been executed > after the database restore, so the setup logs probably contain nothing > of interest. I added them anyway. Sorry I wasn't clear enough. I meant the setup logs on the machine used to create the backup. So that I can try to see why your backup contained this function. Do you still have these by any chance? Indeed, I can't see anything wrong in the logs above. > > Please let me know if there is anything I can add to this. If you do not have setup logs from the original machine, at least try to think about its history and tell us notable points - including entire version history, setup/upgrade (or similar) problems you had there (and perhaps worked around), etc. If you, or anyone, manages to come up with a flow resulting in a 4.2 engine database that contains a function uuid_generate_v1 in the engine database schema, I'd definitely want to know about it. Re-adding others posting in this thread, in case someone has a clue. Perhaps one of you has setup logs of the machine on which the backup was generated? If so, please share. Thanks. That said, on a second thought, the implications of this are not that significant - mainly somewhat lower performance - so perhaps it's more important to fix your bug (by adding a line to IGNORED_ERRORS, as you suggested)... but it's still weird. Thanks and best regards, > > Cheers, > > Torsten > > > On 18.12.2018 07:54, Yedidyah Bar David wrote: > > On Mon, Dec 17, 2018 at 2:26 PM Torsten Stolpmann > > wrote: > >> > >> I experienced the same issue while restoring a full backup (engine & > >> dwh) on a clean machine. Both machines are running CentOS 7.6 and > >> oVirt 4.2.7. > >> > >> The issue went away when adding the following line to the IGNORED_ERRO= RS > >> list starting at 1944 in engine-backup: > >> > >> must be owner of function uuid_generate_v1 > >> > >> Hope this helps, > > > > It does, and thanks for the report! > > > > Can you please share all of your setup logs (/var/log/ovirt-engine/setu= p/*)? > > > > Thanks! > > > > More details: > > > > This function should not normally be included in a 4.2 backup, and I do > > not yet understand why you get this error. > > > > If it's a clean 4.2 setup, it should never have been defined. > > Earlier versions did create it, and the upgrade process should have > > dropped it, if it's an upgraded setup. See also: > > > > https://bugzilla.redhat.com/show_bug.cgi?id=3D1515635 > > > > Best regards, > > > >> > >> Torsten > >> > >> On 24.05.2018 11:32, emmanuel.thetas(a)obs-nancay.fr wrote: > >>> hi, > >>> > >>> I have the same error when I try to restore on a new hosted VM (ovirt= 4.2.3) > >>> Have you a solution ? > >>> > >>> Emmanuel > >>> _______________________________________________ > >>> Users mailing list -- users(a)ovirt.org > >>> To unsubscribe send an email to users-leave(a)ovirt.org > >>> > >> _______________________________________________ > >> Users mailing list -- users(a)ovirt.org > >> To unsubscribe send an email to users-leave(a)ovirt.org > >> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ > >> oVirt Code of Conduct: https://www.ovirt.org/community/about/community= -guidelines/ > >> List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt.org= /message/YMMFCYUMLCM47OJSTHXS2IMOIKEEFU27/ > > > > > > > _______________________________________________ > Users mailing list -- users(a)ovirt.org > To unsubscribe send an email to users-leave(a)ovirt.org > Privacy Statement: https://www.ovirt.org/site/privacy-policy/ > oVirt Code of Conduct: https://www.ovirt.org/community/about/community-gu= idelines/ > List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt.org/me= ssage/FCN5WVAJOGFBUTFV276O2RMCTMACAGTS/ -- = Didi --===============8268972851227782019==-- From torsten.stolpmann at verit.de Wed Dec 19 10:35:22 2018 Content-Type: multipart/mixed; boundary="===============6077690238902431679==" MIME-Version: 1.0 From: Torsten Stolpmann To: users at ovirt.org Subject: [ovirt-users] Re: Backup & Restore Date: Wed, 19 Dec 2018 11:34:19 +0100 Message-ID: In-Reply-To: CAHRwYXvfpV5B6Shfw5rUVF13nTtZG-HaB2EtqXsdt8FcTL2JgA@mail.gmail.com --===============6077690238902431679== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 19.12.2018 08:01, Yedidyah Bar David wrote: > On Tue, Dec 18, 2018 at 5:20 PM Torsten Stolpmann > wrote: >> >> Hi Yedidyah, >> >> please find the logs at the following URL: >> http://www.klaros-testmanagement.com/files/ovirt/ovirt-restore-logs.tar.= gz >> >> Let me know once you received them safely so I can remove them again. > = > Done. > = Thanks, removed. >> >> I also added the restore.log containing the actual error which occured >> during the restore. >> >> Since this was a clean system I restored on, the setup has been executed >> after the database restore, so the setup logs probably contain nothing >> of interest. I added them anyway. > = > Sorry I wasn't clear enough. I meant the setup logs on the machine used > to create the backup. So that I can try to see why your backup contained > this function. Do you still have these by any chance? > = > Indeed, I can't see anything wrong in the logs above. > = Sorry for misunderstanding, this totally makes sense. I added the setup logs i found at: = http://www.klaros-testmanagement.com/files/ovirt/ovirt-setup-logs.tar.gz Again, please let me know once I can remove them. >> >> Please let me know if there is anything I can add to this. > = > If you do not have setup logs from the original machine, at least try > to think about its history and tell us notable points - including entire > version history, setup/upgrade (or similar) problems you had there (and > perhaps worked around), etc. > = We started with one of the first 4.0 releases and updated the system on = a regular basis since then. We almost never skipped a release. There was indeed one glitch during updates which was connected to the = Postgres version in use: The initial install was (accidentally) done under Postgres 9.4 which = happened to be present on the machine at that point of time. oVirt 4.0 = was allowing this way back then. I think in 4.1 Postgres 9.2 has been = enforced, so there had been workarounds to allow updates under 9.4. This = got resolved with the migration to 4.2 which brought the Postgres 9.5 = installation (if I recall that correctly). Other than that I have no idea which might have introduced this. If you find something in the logs you need more information on, please = let me know. Best regards Torsten > If you, or anyone, manages to come up with a flow resulting in a 4.2 > engine database that contains a function uuid_generate_v1 in the engine > database schema, I'd definitely want to know about it. > = > Re-adding others posting in this thread, in case someone has a clue. > Perhaps one of you has setup logs of the machine on which the backup > was generated? If so, please share. Thanks. > = > That said, on a second thought, the implications of this are not that > significant - mainly somewhat lower performance - so perhaps it's more > important to fix your bug (by adding a line to IGNORED_ERRORS, as you > suggested)... but it's still weird. > = > Thanks and best regards, > = >> >> Cheers, >> >> Torsten >> >> >> On 18.12.2018 07:54, Yedidyah Bar David wrote: >>> On Mon, Dec 17, 2018 at 2:26 PM Torsten Stolpmann >>> wrote: >>>> >>>> I experienced the same issue while restoring a full backup (engine & >>>> dwh) on a clean machine. Both machines are running CentOS 7.6 and >>>> oVirt 4.2.7. >>>> >>>> The issue went away when adding the following line to the IGNORED_ERRO= RS >>>> list starting at 1944 in engine-backup: >>>> >>>> must be owner of function uuid_generate_v1 >>>> >>>> Hope this helps, >>> >>> It does, and thanks for the report! >>> >>> Can you please share all of your setup logs (/var/log/ovirt-engine/setu= p/*)? >>> >>> Thanks! >>> >>> More details: >>> >>> This function should not normally be included in a 4.2 backup, and I do >>> not yet understand why you get this error. >>> >>> If it's a clean 4.2 setup, it should never have been defined. >>> Earlier versions did create it, and the upgrade process should have >>> dropped it, if it's an upgraded setup. See also: >>> >>> https://bugzilla.redhat.com/show_bug.cgi?id=3D1515635 >>> >>> Best regards, >>> >>>> >>>> Torsten >>>> >>>> On 24.05.2018 11:32, emmanuel.thetas(a)obs-nancay.fr wrote: >>>>> hi, >>>>> >>>>> I have the same error when I try to restore on a new hosted VM (ovirt= 4.2.3) >>>>> Have you a solution ? >>>>> >>>>> Emmanuel >>>>> _______________________________________________ >>>>> Users mailing list -- users(a)ovirt.org >>>>> To unsubscribe send an email to users-leave(a)ovirt.org >>>>> >>>> _______________________________________________ >>>> Users mailing list -- users(a)ovirt.org >>>> To unsubscribe send an email to users-leave(a)ovirt.org >>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ >>>> oVirt Code of Conduct: https://www.ovirt.org/community/about/community= -guidelines/ >>>> List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt.org= /message/YMMFCYUMLCM47OJSTHXS2IMOIKEEFU27/ >>> >>> >>> >> _______________________________________________ >> Users mailing list -- users(a)ovirt.org >> To unsubscribe send an email to users-leave(a)ovirt.org >> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ >> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-g= uidelines/ >> List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt.org/m= essage/FCN5WVAJOGFBUTFV276O2RMCTMACAGTS/ > = > = >=20 --===============6077690238902431679==-- From didi at redhat.com Wed Dec 19 10:55:27 2018 Content-Type: multipart/mixed; boundary="===============3714717035290331165==" MIME-Version: 1.0 From: Yedidyah Bar David To: users at ovirt.org Subject: [ovirt-users] Re: Backup & Restore Date: Wed, 19 Dec 2018 12:54:56 +0200 Message-ID: In-Reply-To: bebbaf6f-2d88-7ec1-17a0-b5958a18b4c0@verit.de --===============3714717035290331165== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, Dec 19, 2018 at 12:34 PM Torsten Stolpmann wrote: > > On 19.12.2018 08:01, Yedidyah Bar David wrote: > > On Tue, Dec 18, 2018 at 5:20 PM Torsten Stolpmann > > wrote: > >> > >> Hi Yedidyah, > >> > >> please find the logs at the following URL: > >> http://www.klaros-testmanagement.com/files/ovirt/ovirt-restore-logs.ta= r.gz > >> > >> Let me know once you received them safely so I can remove them again. > > > > Done. > > > > Thanks, removed. > > >> > >> I also added the restore.log containing the actual error which occured > >> during the restore. > >> > >> Since this was a clean system I restored on, the setup has been execut= ed > >> after the database restore, so the setup logs probably contain nothing > >> of interest. I added them anyway. > > > > Sorry I wasn't clear enough. I meant the setup logs on the machine used > > to create the backup. So that I can try to see why your backup contained > > this function. Do you still have these by any chance? > > > > Indeed, I can't see anything wrong in the logs above. > > > Sorry for misunderstanding, this totally makes sense. > > I added the setup logs i found at: > http://www.klaros-testmanagement.com/files/ovirt/ovirt-setup-logs.tar.gz > > Again, please let me know once I can remove them. Done. > > >> > >> Please let me know if there is anything I can add to this. > > > > If you do not have setup logs from the original machine, at least try > > to think about its history and tell us notable points - including entire > > version history, setup/upgrade (or similar) problems you had there (and > > perhaps worked around), etc. > > > > We started with one of the first 4.0 releases and updated the system on > a regular basis since then. We almost never skipped a release. The last log there is ovirt-engine-setup-20171231170651-lb3q89.log , meaning it was last upgraded almost a year ago. Were there indeed no more upgrades since? The log indicates the machine was upgraded to ovirt-engine-4.2.0.2 , which didn't remove the uuid functions. The bug I linked at before, 1515635, was fixed in 4.2.1. Based on this, I think the best solution for now would be the patch you suggested. Would you like to open a bug for this and push a patch to gerrit? I can do this as well if you prefer. Bug summary line should probably be something like: engine-setup fails after restoring a backup taken with 4.2.0 Another solution would be to try using the same engine version during restore (4.2.0.2), and only upgrade later. This is a bit hard, because we do not have separate repos for each version, although they do include all released versions - so you can try e.g.: yum install ovirt-engine-4.2.0.2-1.el7 (meaning, after you remove existing 4.2.7, or you can try yum downgrade). I didn't try this myself, not sure how well it would work. There might be older dependencies to handle, and/or it might break due to too-new stuff. Obviously, the best solution is to upgrade more often and backup more often, and have a smaller difference between backup version and restore version, ideally no difference. But I realize this does not always work out for everyone... > > There was indeed one glitch during updates which was connected to the > Postgres version in use: > > The initial install was (accidentally) done under Postgres 9.4 which > happened to be present on the machine at that point of time. oVirt 4.0 > was allowing this way back then. I think in 4.1 Postgres 9.2 has been > enforced, so there had been workarounds to allow updates under 9.4. This > got resolved with the migration to 4.2 which brought the Postgres 9.5 > installation (if I recall that correctly). > > Other than that I have no idea which might have introduced this. All of this sounds irrelevant to current problem. Thanks for recalling :-) Best regards, > > If you find something in the logs you need more information on, please > let me know. > > Best regards > > Torsten > > > > If you, or anyone, manages to come up with a flow resulting in a 4.2 > > engine database that contains a function uuid_generate_v1 in the engine > > database schema, I'd definitely want to know about it. > > > > Re-adding others posting in this thread, in case someone has a clue. > > Perhaps one of you has setup logs of the machine on which the backup > > was generated? If so, please share. Thanks. > > > > That said, on a second thought, the implications of this are not that > > significant - mainly somewhat lower performance - so perhaps it's more > > important to fix your bug (by adding a line to IGNORED_ERRORS, as you > > suggested)... but it's still weird. > > > > Thanks and best regards, > > > >> > >> Cheers, > >> > >> Torsten > >> > >> > >> On 18.12.2018 07:54, Yedidyah Bar David wrote: > >>> On Mon, Dec 17, 2018 at 2:26 PM Torsten Stolpmann > >>> wrote: > >>>> > >>>> I experienced the same issue while restoring a full backup (engine & > >>>> dwh) on a clean machine. Both machines are running CentOS 7.6 and > >>>> oVirt 4.2.7. > >>>> > >>>> The issue went away when adding the following line to the IGNORED_ER= RORS > >>>> list starting at 1944 in engine-backup: > >>>> > >>>> must be owner of function uuid_generate_v1 > >>>> > >>>> Hope this helps, > >>> > >>> It does, and thanks for the report! > >>> > >>> Can you please share all of your setup logs (/var/log/ovirt-engine/se= tup/*)? > >>> > >>> Thanks! > >>> > >>> More details: > >>> > >>> This function should not normally be included in a 4.2 backup, and I = do > >>> not yet understand why you get this error. > >>> > >>> If it's a clean 4.2 setup, it should never have been defined. > >>> Earlier versions did create it, and the upgrade process should have > >>> dropped it, if it's an upgraded setup. See also: > >>> > >>> https://bugzilla.redhat.com/show_bug.cgi?id=3D1515635 > >>> > >>> Best regards, > >>> > >>>> > >>>> Torsten > >>>> > >>>> On 24.05.2018 11:32, emmanuel.thetas(a)obs-nancay.fr wrote: > >>>>> hi, > >>>>> > >>>>> I have the same error when I try to restore on a new hosted VM (ovi= rt 4.2.3) > >>>>> Have you a solution ? > >>>>> > >>>>> Emmanuel > >>>>> _______________________________________________ > >>>>> Users mailing list -- users(a)ovirt.org > >>>>> To unsubscribe send an email to users-leave(a)ovirt.org > >>>>> > >>>> _______________________________________________ > >>>> Users mailing list -- users(a)ovirt.org > >>>> To unsubscribe send an email to users-leave(a)ovirt.org > >>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ > >>>> oVirt Code of Conduct: https://www.ovirt.org/community/about/communi= ty-guidelines/ > >>>> List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt.o= rg/message/YMMFCYUMLCM47OJSTHXS2IMOIKEEFU27/ > >>> > >>> > >>> > >> _______________________________________________ > >> Users mailing list -- users(a)ovirt.org > >> To unsubscribe send an email to users-leave(a)ovirt.org > >> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ > >> oVirt Code of Conduct: https://www.ovirt.org/community/about/community= -guidelines/ > >> List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt.org= /message/FCN5WVAJOGFBUTFV276O2RMCTMACAGTS/ > > > > > > -- = Didi --===============3714717035290331165==-- From torsten.stolpmann at verit.de Wed Dec 19 11:35:43 2018 Content-Type: multipart/mixed; boundary="===============7148971807397845571==" MIME-Version: 1.0 From: Torsten Stolpmann To: users at ovirt.org Subject: [ovirt-users] Re: Backup & Restore Date: Wed, 19 Dec 2018 12:35:16 +0100 Message-ID: <65fa68fb-ed39-6ed8-debd-41af8ca76f3b@verit.de> In-Reply-To: CAHRwYXtV89SQrDGdeqXTJ2j6zpXOKmesA6SdnPKL6BCmwuORqg@mail.gmail.com --===============7148971807397845571== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 19.12.2018 11:54, Yedidyah Bar David wrote: > On Wed, Dec 19, 2018 at 12:34 PM Torsten Stolpmann > wrote: >> >> On 19.12.2018 08:01, Yedidyah Bar David wrote: >>> On Tue, Dec 18, 2018 at 5:20 PM Torsten Stolpmann >>> wrote: >>>> >>>> Hi Yedidyah, >>>> >>>> please find the logs at the following URL: >>>> http://www.klaros-testmanagement.com/files/ovirt/ovirt-restore-logs.ta= r.gz >>>> >>>> Let me know once you received them safely so I can remove them again. >>> >>> Done. >>> >> >> Thanks, removed. >> >>>> >>>> I also added the restore.log containing the actual error which occured >>>> during the restore. >>>> >>>> Since this was a clean system I restored on, the setup has been execut= ed >>>> after the database restore, so the setup logs probably contain nothing >>>> of interest. I added them anyway. >>> >>> Sorry I wasn't clear enough. I meant the setup logs on the machine used >>> to create the backup. So that I can try to see why your backup contained >>> this function. Do you still have these by any chance? >>> >>> Indeed, I can't see anything wrong in the logs above. >>> >> Sorry for misunderstanding, this totally makes sense. >> >> I added the setup logs i found at: >> http://www.klaros-testmanagement.com/files/ovirt/ovirt-setup-logs.tar.gz >> >> Again, please let me know once I can remove them. > = > Done. > Thanks, removed. >> >>>> >>>> Please let me know if there is anything I can add to this. >>> >>> If you do not have setup logs from the original machine, at least try >>> to think about its history and tell us notable points - including entire >>> version history, setup/upgrade (or similar) problems you had there (and >>> perhaps worked around), etc. >>> >> >> We started with one of the first 4.0 releases and updated the system on >> a regular basis since then. We almost never skipped a release. > = > The last log there is ovirt-engine-setup-20171231170651-lb3q89.log , > meaning it was last upgraded almost a year ago. Were there indeed no > more upgrades since? > = 20171231170651 is most probably the date when we installed the last = major release (4.2.0). We did a lot more updates since and I now have a = suspicion what went wrong here. We naively assumed that a yum update is sufficient for a minor upgrade = of the engine installation. Rereading the documentation I think we were = missing explicit engine-setup calls after each minor upgrade. It may be the case, that the extra call to engine-setup is required to = not be part of the yum update. I think in this case it would be a good = idea to warn users that this step has not yet been taken and the update = is not completed yet. Could this be the cause for the missing logs and behavior discrepancies? If yes, would another call to engine-setup in the current state fix this = and allow us to produce correct backups in the future? > The log indicates the machine was upgraded to ovirt-engine-4.2.0.2 , > which didn't remove the uuid functions. The bug I linked at before, > 1515635, was fixed in 4.2.1. > = > Based on this, I think the best solution for now would be the patch > you suggested. Would you like to open a bug for this and push a patch > to gerrit? I can do this as well if you prefer. Bug summary line > should probably be something like: > = > engine-setup fails after restoring a backup taken with 4.2.0 > = I currently fear that would only cure the symptom. > Another solution would be to try using the same engine version during > restore (4.2.0.2), and only upgrade later. This is a bit hard, because > we do not have separate repos for each version, although they do > include all released versions - so you can try e.g.: > = > yum install ovirt-engine-4.2.0.2-1.el7 > = > (meaning, after you remove existing 4.2.7, or you can try yum downgrade). > = > I didn't try this myself, not sure how well it would work. There might > be older dependencies to handle, and/or it might break due to too-new > stuff. > = I don't think this is necessary. > Obviously, the best solution is to upgrade more often and backup more > often, and have a smaller difference between backup version and restore > version, ideally no difference. But I realize this does not always > work out for everyone... > = You are right, we did this. Best regards Torsten >> >> There was indeed one glitch during updates which was connected to the >> Postgres version in use: >> >> The initial install was (accidentally) done under Postgres 9.4 which >> happened to be present on the machine at that point of time. oVirt 4.0 >> was allowing this way back then. I think in 4.1 Postgres 9.2 has been >> enforced, so there had been workarounds to allow updates under 9.4. This >> got resolved with the migration to 4.2 which brought the Postgres 9.5 >> installation (if I recall that correctly). >> >> Other than that I have no idea which might have introduced this. > = > All of this sounds irrelevant to current problem. Thanks for recalling :-) > = > Best regards, > = >> >> If you find something in the logs you need more information on, please >> let me know. >> >> Best regards >> >> Torsten >> >> >>> If you, or anyone, manages to come up with a flow resulting in a 4.2 >>> engine database that contains a function uuid_generate_v1 in the engine >>> database schema, I'd definitely want to know about it. >>> >>> Re-adding others posting in this thread, in case someone has a clue. >>> Perhaps one of you has setup logs of the machine on which the backup >>> was generated? If so, please share. Thanks. >>> >>> That said, on a second thought, the implications of this are not that >>> significant - mainly somewhat lower performance - so perhaps it's more >>> important to fix your bug (by adding a line to IGNORED_ERRORS, as you >>> suggested)... but it's still weird. >>> >>> Thanks and best regards, >>> >>>> >>>> Cheers, >>>> >>>> Torsten >>>> >>>> >>>> On 18.12.2018 07:54, Yedidyah Bar David wrote: >>>>> On Mon, Dec 17, 2018 at 2:26 PM Torsten Stolpmann >>>>> wrote: >>>>>> >>>>>> I experienced the same issue while restoring a full backup (engine & >>>>>> dwh) on a clean machine. Both machines are running CentOS 7.6 and >>>>>> oVirt 4.2.7. >>>>>> >>>>>> The issue went away when adding the following line to the IGNORED_ER= RORS >>>>>> list starting at 1944 in engine-backup: >>>>>> >>>>>> must be owner of function uuid_generate_v1 >>>>>> >>>>>> Hope this helps, >>>>> >>>>> It does, and thanks for the report! >>>>> >>>>> Can you please share all of your setup logs (/var/log/ovirt-engine/se= tup/*)? >>>>> >>>>> Thanks! >>>>> >>>>> More details: >>>>> >>>>> This function should not normally be included in a 4.2 backup, and I = do >>>>> not yet understand why you get this error. >>>>> >>>>> If it's a clean 4.2 setup, it should never have been defined. >>>>> Earlier versions did create it, and the upgrade process should have >>>>> dropped it, if it's an upgraded setup. See also: >>>>> >>>>> https://bugzilla.redhat.com/show_bug.cgi?id=3D1515635 >>>>> >>>>> Best regards, >>>>> >>>>>> >>>>>> Torsten >>>>>> >>>>>> On 24.05.2018 11:32, emmanuel.thetas(a)obs-nancay.fr wrote: >>>>>>> hi, >>>>>>> >>>>>>> I have the same error when I try to restore on a new hosted VM (ovi= rt 4.2.3) >>>>>>> Have you a solution ? >>>>>>> >>>>>>> Emmanuel >>>>>>> _______________________________________________ >>>>>>> Users mailing list -- users(a)ovirt.org >>>>>>> To unsubscribe send an email to users-leave(a)ovirt.org >>>>>>> >>>>>> _______________________________________________ >>>>>> Users mailing list -- users(a)ovirt.org >>>>>> To unsubscribe send an email to users-leave(a)ovirt.org >>>>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ >>>>>> oVirt Code of Conduct: https://www.ovirt.org/community/about/communi= ty-guidelines/ >>>>>> List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt.o= rg/message/YMMFCYUMLCM47OJSTHXS2IMOIKEEFU27/ >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> Users mailing list -- users(a)ovirt.org >>>> To unsubscribe send an email to users-leave(a)ovirt.org >>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ >>>> oVirt Code of Conduct: https://www.ovirt.org/community/about/community= -guidelines/ >>>> List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt.org= /message/FCN5WVAJOGFBUTFV276O2RMCTMACAGTS/ >>> >>> >>> > = > = >=20 --===============7148971807397845571==-- From didi at redhat.com Thu Dec 20 06:42:25 2018 Content-Type: multipart/mixed; boundary="===============2351612994097790819==" MIME-Version: 1.0 From: Yedidyah Bar David To: users at ovirt.org Subject: [ovirt-users] Re: Backup & Restore Date: Thu, 20 Dec 2018 08:41:45 +0200 Message-ID: In-Reply-To: 65fa68fb-ed39-6ed8-debd-41af8ca76f3b@verit.de --===============2351612994097790819== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, Dec 19, 2018 at 1:35 PM Torsten Stolpmann wrote: > > On 19.12.2018 11:54, Yedidyah Bar David wrote: > > On Wed, Dec 19, 2018 at 12:34 PM Torsten Stolpmann > > wrote: > >> > >> On 19.12.2018 08:01, Yedidyah Bar David wrote: > >>> On Tue, Dec 18, 2018 at 5:20 PM Torsten Stolpmann > >>> wrote: > >>>> > >>>> Hi Yedidyah, > >>>> > >>>> please find the logs at the following URL: > >>>> http://www.klaros-testmanagement.com/files/ovirt/ovirt-restore-logs.= tar.gz > >>>> > >>>> Let me know once you received them safely so I can remove them again. > >>> > >>> Done. > >>> > >> > >> Thanks, removed. > >> > >>>> > >>>> I also added the restore.log containing the actual error which occur= ed > >>>> during the restore. > >>>> > >>>> Since this was a clean system I restored on, the setup has been exec= uted > >>>> after the database restore, so the setup logs probably contain nothi= ng > >>>> of interest. I added them anyway. > >>> > >>> Sorry I wasn't clear enough. I meant the setup logs on the machine us= ed > >>> to create the backup. So that I can try to see why your backup contai= ned > >>> this function. Do you still have these by any chance? > >>> > >>> Indeed, I can't see anything wrong in the logs above. > >>> > >> Sorry for misunderstanding, this totally makes sense. > >> > >> I added the setup logs i found at: > >> http://www.klaros-testmanagement.com/files/ovirt/ovirt-setup-logs.tar.= gz > >> > >> Again, please let me know once I can remove them. > > > > Done. > > > Thanks, removed. > > >> > >>>> > >>>> Please let me know if there is anything I can add to this. > >>> > >>> If you do not have setup logs from the original machine, at least try > >>> to think about its history and tell us notable points - including ent= ire > >>> version history, setup/upgrade (or similar) problems you had there (a= nd > >>> perhaps worked around), etc. > >>> > >> > >> We started with one of the first 4.0 releases and updated the system on > >> a regular basis since then. We almost never skipped a release. > > > > The last log there is ovirt-engine-setup-20171231170651-lb3q89.log , > > meaning it was last upgraded almost a year ago. Were there indeed no > > more upgrades since? > > > > 20171231170651 is most probably the date when we installed the last > major release (4.2.0). We did a lot more updates since and I now have a > suspicion what went wrong here. > > We naively assumed that a yum update is sufficient for a minor upgrade > of the engine installation. :-( > Rereading the documentation I think we were > missing explicit engine-setup calls after each minor upgrade. Indeed > > It may be the case, that the extra call to engine-setup is required to > not be part of the yum update. engine-setup might need to ask the user questions, so we do not run it inside yum update. > I think in this case it would be a good > idea to warn users that this step has not yet been taken and the update > is not completed yet. Do you think you would have noticed? It's not that hard to add such a message during yum update, but not sure it's that helpful. Perhaps we can also make the engine check e.g. if the setup package is newer than itself, and warn the user in the admin ui. > > Could this be the cause for the missing logs and behavior discrepancies? > > If yes, would another call to engine-setup in the current state fix this > and allow us to produce correct backups in the future? If you still have the source machine, then yes, it should be enough. Run engine-setup, then engine-backup again to backup, then restore on the new machine. > > > The log indicates the machine was upgraded to ovirt-engine-4.2.0.2 , > > which didn't remove the uuid functions. The bug I linked at before, > > 1515635, was fixed in 4.2.1. > > > > Based on this, I think the best solution for now would be the patch > > you suggested. Would you like to open a bug for this and push a patch > > to gerrit? I can do this as well if you prefer. Bug summary line > > should probably be something like: > > > > engine-setup fails after restoring a backup taken with 4.2.0 > > > I currently fear that would only cure the symptom. > > > Another solution would be to try using the same engine version during > > restore (4.2.0.2), and only upgrade later. This is a bit hard, because > > we do not have separate repos for each version, although they do > > include all released versions - so you can try e.g.: > > > > yum install ovirt-engine-4.2.0.2-1.el7 > > > > (meaning, after you remove existing 4.2.7, or you can try yum downgrade= ). > > > > I didn't try this myself, not sure how well it would work. There might > > be older dependencies to handle, and/or it might break due to too-new > > stuff. > > > I don't think this is necessary. > > > Obviously, the best solution is to upgrade more often and backup more > > often, and have a smaller difference between backup version and restore > > version, ideally no difference. But I realize this does not always > > work out for everyone... > > > You are right, we did this. > OK. I assume this discussion is theoretical, right? That you already patched engine-backup manually and restored. Best regards, > Best regards > > Torsten > >> > >> There was indeed one glitch during updates which was connected to the > >> Postgres version in use: > >> > >> The initial install was (accidentally) done under Postgres 9.4 which > >> happened to be present on the machine at that point of time. oVirt 4.0 > >> was allowing this way back then. I think in 4.1 Postgres 9.2 has been > >> enforced, so there had been workarounds to allow updates under 9.4. Th= is > >> got resolved with the migration to 4.2 which brought the Postgres 9.5 > >> installation (if I recall that correctly). > >> > >> Other than that I have no idea which might have introduced this. > > > > All of this sounds irrelevant to current problem. Thanks for recalling = :-) > > > > Best regards, > > > >> > >> If you find something in the logs you need more information on, please > >> let me know. > >> > >> Best regards > >> > >> Torsten > >> > >> > >>> If you, or anyone, manages to come up with a flow resulting in a 4.2 > >>> engine database that contains a function uuid_generate_v1 in the engi= ne > >>> database schema, I'd definitely want to know about it. > >>> > >>> Re-adding others posting in this thread, in case someone has a clue. > >>> Perhaps one of you has setup logs of the machine on which the backup > >>> was generated? If so, please share. Thanks. > >>> > >>> That said, on a second thought, the implications of this are not that > >>> significant - mainly somewhat lower performance - so perhaps it's more > >>> important to fix your bug (by adding a line to IGNORED_ERRORS, as you > >>> suggested)... but it's still weird. > >>> > >>> Thanks and best regards, > >>> > >>>> > >>>> Cheers, > >>>> > >>>> Torsten > >>>> > >>>> > >>>> On 18.12.2018 07:54, Yedidyah Bar David wrote: > >>>>> On Mon, Dec 17, 2018 at 2:26 PM Torsten Stolpmann > >>>>> wrote: > >>>>>> > >>>>>> I experienced the same issue while restoring a full backup (engine= & > >>>>>> dwh) on a clean machine. Both machines are running CentOS 7.6 and > >>>>>> oVirt 4.2.7. > >>>>>> > >>>>>> The issue went away when adding the following line to the IGNORED_= ERRORS > >>>>>> list starting at 1944 in engine-backup: > >>>>>> > >>>>>> must be owner of function uuid_generate_v1 > >>>>>> > >>>>>> Hope this helps, > >>>>> > >>>>> It does, and thanks for the report! > >>>>> > >>>>> Can you please share all of your setup logs (/var/log/ovirt-engine/= setup/*)? > >>>>> > >>>>> Thanks! > >>>>> > >>>>> More details: > >>>>> > >>>>> This function should not normally be included in a 4.2 backup, and = I do > >>>>> not yet understand why you get this error. > >>>>> > >>>>> If it's a clean 4.2 setup, it should never have been defined. > >>>>> Earlier versions did create it, and the upgrade process should have > >>>>> dropped it, if it's an upgraded setup. See also: > >>>>> > >>>>> https://bugzilla.redhat.com/show_bug.cgi?id=3D1515635 > >>>>> > >>>>> Best regards, > >>>>> > >>>>>> > >>>>>> Torsten > >>>>>> > >>>>>> On 24.05.2018 11:32, emmanuel.thetas(a)obs-nancay.fr wrote: > >>>>>>> hi, > >>>>>>> > >>>>>>> I have the same error when I try to restore on a new hosted VM (o= virt 4.2.3) > >>>>>>> Have you a solution ? > >>>>>>> > >>>>>>> Emmanuel > >>>>>>> _______________________________________________ > >>>>>>> Users mailing list -- users(a)ovirt.org > >>>>>>> To unsubscribe send an email to users-leave(a)ovirt.org > >>>>>>> > >>>>>> _______________________________________________ > >>>>>> Users mailing list -- users(a)ovirt.org > >>>>>> To unsubscribe send an email to users-leave(a)ovirt.org > >>>>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ > >>>>>> oVirt Code of Conduct: https://www.ovirt.org/community/about/commu= nity-guidelines/ > >>>>>> List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt= .org/message/YMMFCYUMLCM47OJSTHXS2IMOIKEEFU27/ > >>>>> > >>>>> > >>>>> > >>>> _______________________________________________ > >>>> Users mailing list -- users(a)ovirt.org > >>>> To unsubscribe send an email to users-leave(a)ovirt.org > >>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ > >>>> oVirt Code of Conduct: https://www.ovirt.org/community/about/communi= ty-guidelines/ > >>>> List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt.o= rg/message/FCN5WVAJOGFBUTFV276O2RMCTMACAGTS/ > >>> > >>> > >>> > > > > > > -- = Didi --===============2351612994097790819==-- From torsten.stolpmann at verit.de Thu Dec 20 18:23:34 2018 Content-Type: multipart/mixed; boundary="===============5232317770719309289==" MIME-Version: 1.0 From: Torsten Stolpmann To: users at ovirt.org Subject: [ovirt-users] Re: Backup & Restore Date: Thu, 20 Dec 2018 19:23:06 +0100 Message-ID: <88e1ae1f-8af1-8a78-83e8-3bb097b8115c@verit.de> In-Reply-To: CAHRwYXvW=RnRCAAyGp8rqbNcQZrtJsmuDaTOWyKVxo+yzOH9rQ@mail.gmail.com --===============5232317770719309289== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 20.12.2018 07:41, Yedidyah Bar David wrote: > On Wed, Dec 19, 2018 at 1:35 PM Torsten Stolpmann > wrote: >> >> On 19.12.2018 11:54, Yedidyah Bar David wrote: >>> On Wed, Dec 19, 2018 at 12:34 PM Torsten Stolpmann >>> wrote: >>>> >>>> On 19.12.2018 08:01, Yedidyah Bar David wrote: >>>>> On Tue, Dec 18, 2018 at 5:20 PM Torsten Stolpmann >>>>> wrote: >>>>>> >>>>>> Hi Yedidyah, >>>>>> >>>>>> please find the logs at the following URL: >>>>>> http://www.klaros-testmanagement.com/files/ovirt/ovirt-restore-logs.= tar.gz >>>>>> >>>>>> Let me know once you received them safely so I can remove them again. >>>>> >>>>> Done. >>>>> >>>> >>>> Thanks, removed. >>>> >>>>>> >>>>>> I also added the restore.log containing the actual error which occur= ed >>>>>> during the restore. >>>>>> >>>>>> Since this was a clean system I restored on, the setup has been exec= uted >>>>>> after the database restore, so the setup logs probably contain nothi= ng >>>>>> of interest. I added them anyway. >>>>> >>>>> Sorry I wasn't clear enough. I meant the setup logs on the machine us= ed >>>>> to create the backup. So that I can try to see why your backup contai= ned >>>>> this function. Do you still have these by any chance? >>>>> >>>>> Indeed, I can't see anything wrong in the logs above. >>>>> >>>> Sorry for misunderstanding, this totally makes sense. >>>> >>>> I added the setup logs i found at: >>>> http://www.klaros-testmanagement.com/files/ovirt/ovirt-setup-logs.tar.= gz >>>> >>>> Again, please let me know once I can remove them. >>> >>> Done. >>> >> Thanks, removed. >> >>>> >>>>>> >>>>>> Please let me know if there is anything I can add to this. >>>>> >>>>> If you do not have setup logs from the original machine, at least try >>>>> to think about its history and tell us notable points - including ent= ire >>>>> version history, setup/upgrade (or similar) problems you had there (a= nd >>>>> perhaps worked around), etc. >>>>> >>>> >>>> We started with one of the first 4.0 releases and updated the system on >>>> a regular basis since then. We almost never skipped a release. >>> >>> The last log there is ovirt-engine-setup-20171231170651-lb3q89.log , >>> meaning it was last upgraded almost a year ago. Were there indeed no >>> more upgrades since? >>> >> >> 20171231170651 is most probably the date when we installed the last >> major release (4.2.0). We did a lot more updates since and I now have a >> suspicion what went wrong here. >> >> We naively assumed that a yum update is sufficient for a minor upgrade >> of the engine installation. > = > :-( > = >> Rereading the documentation I think we were >> missing explicit engine-setup calls after each minor upgrade. > = > Indeed > = >> >> It may be the case, that the extra call to engine-setup is required to >> not be part of the yum update. > = > engine-setup might need to ask the user questions, so we do not run it > inside yum update. > As long as it clear to users that this is required this is totally ok = for me. >> I think in this case it would be a good >> idea to warn users that this step has not yet been taken and the update >> is not completed yet. > = > Do you think you would have noticed? It's not that hard to add such a > message during yum update, but not sure it's that helpful. > = Yes, I would probably have noticed that. Sooner or later ... :) > Perhaps we can also make the engine check e.g. if the setup package is > newer than itself, and warn the user in the admin ui. > = I think that both is a good idea. Some applications even go the way to = lock out users from the GUI until a necessary database migration has = been executed by an administrator. Your mileage may vary here but this = is the solution I would favor. >> >> Could this be the cause for the missing logs and behavior discrepancies? >> >> If yes, would another call to engine-setup in the current state fix this >> and allow us to produce correct backups in the future? > = > If you still have the source machine, then yes, it should be enough. > Run engine-setup, then engine-backup again to backup, then restore > on the new machine. > = Thanks, will do. >> >>> The log indicates the machine was upgraded to ovirt-engine-4.2.0.2 , >>> which didn't remove the uuid functions. The bug I linked at before, >>> 1515635, was fixed in 4.2.1. >>> >>> Based on this, I think the best solution for now would be the patch >>> you suggested. Would you like to open a bug for this and push a patch >>> to gerrit? I can do this as well if you prefer. Bug summary line >>> should probably be something like: >>> >>> engine-setup fails after restoring a backup taken with 4.2.0 >>> >> I currently fear that would only cure the symptom. >> >>> Another solution would be to try using the same engine version during >>> restore (4.2.0.2), and only upgrade later. This is a bit hard, because >>> we do not have separate repos for each version, although they do >>> include all released versions - so you can try e.g.: >>> >>> yum install ovirt-engine-4.2.0.2-1.el7 >>> >>> (meaning, after you remove existing 4.2.7, or you can try yum downgrade= ). >>> >>> I didn't try this myself, not sure how well it would work. There might >>> be older dependencies to handle, and/or it might break due to too-new >>> stuff. >>> >> I don't think this is necessary. >> >>> Obviously, the best solution is to upgrade more often and backup more >>> often, and have a smaller difference between backup version and restore >>> version, ideally no difference. But I realize this does not always >>> work out for everyone... >>> >> You are right, we did this. >> > = > OK. I assume this discussion is theoretical, right? > That you already patched engine-backup manually and restored. Yes it is. Thanks a lot for your patience and support. Torsten > = > Best regards, > = >> Best regards >> >> Torsten >>>> >>>> There was indeed one glitch during updates which was connected to the >>>> Postgres version in use: >>>> >>>> The initial install was (accidentally) done under Postgres 9.4 which >>>> happened to be present on the machine at that point of time. oVirt 4.0 >>>> was allowing this way back then. I think in 4.1 Postgres 9.2 has been >>>> enforced, so there had been workarounds to allow updates under 9.4. Th= is >>>> got resolved with the migration to 4.2 which brought the Postgres 9.5 >>>> installation (if I recall that correctly). >>>> >>>> Other than that I have no idea which might have introduced this. >>> >>> All of this sounds irrelevant to current problem. Thanks for recalling = :-) >>> >>> Best regards, >>> >>>> >>>> If you find something in the logs you need more information on, please >>>> let me know. >>>> >>>> Best regards >>>> >>>> Torsten >>>> >>>> >>>>> If you, or anyone, manages to come up with a flow resulting in a 4.2 >>>>> engine database that contains a function uuid_generate_v1 in the engi= ne >>>>> database schema, I'd definitely want to know about it. >>>>> >>>>> Re-adding others posting in this thread, in case someone has a clue. >>>>> Perhaps one of you has setup logs of the machine on which the backup >>>>> was generated? If so, please share. Thanks. >>>>> >>>>> That said, on a second thought, the implications of this are not that >>>>> significant - mainly somewhat lower performance - so perhaps it's more >>>>> important to fix your bug (by adding a line to IGNORED_ERRORS, as you >>>>> suggested)... but it's still weird. >>>>> >>>>> Thanks and best regards, >>>>> >>>>>> >>>>>> Cheers, >>>>>> >>>>>> Torsten >>>>>> >>>>>> >>>>>> On 18.12.2018 07:54, Yedidyah Bar David wrote: >>>>>>> On Mon, Dec 17, 2018 at 2:26 PM Torsten Stolpmann >>>>>>> wrote: >>>>>>>> >>>>>>>> I experienced the same issue while restoring a full backup (engine= & >>>>>>>> dwh) on a clean machine. Both machines are running CentOS 7.6 and >>>>>>>> oVirt 4.2.7. >>>>>>>> >>>>>>>> The issue went away when adding the following line to the IGNORED_= ERRORS >>>>>>>> list starting at 1944 in engine-backup: >>>>>>>> >>>>>>>> must be owner of function uuid_generate_v1 >>>>>>>> >>>>>>>> Hope this helps, >>>>>>> >>>>>>> It does, and thanks for the report! >>>>>>> >>>>>>> Can you please share all of your setup logs (/var/log/ovirt-engine/= setup/*)? >>>>>>> >>>>>>> Thanks! >>>>>>> >>>>>>> More details: >>>>>>> >>>>>>> This function should not normally be included in a 4.2 backup, and = I do >>>>>>> not yet understand why you get this error. >>>>>>> >>>>>>> If it's a clean 4.2 setup, it should never have been defined. >>>>>>> Earlier versions did create it, and the upgrade process should have >>>>>>> dropped it, if it's an upgraded setup. See also: >>>>>>> >>>>>>> https://bugzilla.redhat.com/show_bug.cgi?id=3D1515635 >>>>>>> >>>>>>> Best regards, >>>>>>> >>>>>>>> >>>>>>>> Torsten >>>>>>>> >>>>>>>> On 24.05.2018 11:32, emmanuel.thetas(a)obs-nancay.fr wrote: >>>>>>>>> hi, >>>>>>>>> >>>>>>>>> I have the same error when I try to restore on a new hosted VM (o= virt 4.2.3) >>>>>>>>> Have you a solution ? >>>>>>>>> >>>>>>>>> Emmanuel >>>>>>>>> _______________________________________________ >>>>>>>>> Users mailing list -- users(a)ovirt.org >>>>>>>>> To unsubscribe send an email to users-leave(a)ovirt.org >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Users mailing list -- users(a)ovirt.org >>>>>>>> To unsubscribe send an email to users-leave(a)ovirt.org >>>>>>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ >>>>>>>> oVirt Code of Conduct: https://www.ovirt.org/community/about/commu= nity-guidelines/ >>>>>>>> List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt= .org/message/YMMFCYUMLCM47OJSTHXS2IMOIKEEFU27/ >>>>>>> >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> Users mailing list -- users(a)ovirt.org >>>>>> To unsubscribe send an email to users-leave(a)ovirt.org >>>>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ >>>>>> oVirt Code of Conduct: https://www.ovirt.org/community/about/communi= ty-guidelines/ >>>>>> List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt.o= rg/message/FCN5WVAJOGFBUTFV276O2RMCTMACAGTS/ >>>>> >>>>> >>>>> >>> >>> >>> > = > = >=20 --===============5232317770719309289==-- From didi at redhat.com Thu Dec 27 08:08:34 2018 Content-Type: multipart/mixed; boundary="===============2466129337610573442==" MIME-Version: 1.0 From: Yedidyah Bar David To: users at ovirt.org Subject: [ovirt-users] Re: Backup & Restore Date: Thu, 27 Dec 2018 10:07:55 +0200 Message-ID: In-Reply-To: 88e1ae1f-8af1-8a78-83e8-3bb097b8115c@verit.de --===============2466129337610573442== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, Dec 20, 2018 at 8:23 PM Torsten Stolpmann wrote: > > On 20.12.2018 07:41, Yedidyah Bar David wrote: > > On Wed, Dec 19, 2018 at 1:35 PM Torsten Stolpmann > > wrote: > >> > >> On 19.12.2018 11:54, Yedidyah Bar David wrote: > >>> On Wed, Dec 19, 2018 at 12:34 PM Torsten Stolpmann > >>> wrote: > >>>> > >>>> On 19.12.2018 08:01, Yedidyah Bar David wrote: > >>>>> On Tue, Dec 18, 2018 at 5:20 PM Torsten Stolpmann > >>>>> wrote: > >>>>>> > >>>>>> Hi Yedidyah, > >>>>>> > >>>>>> please find the logs at the following URL: > >>>>>> http://www.klaros-testmanagement.com/files/ovirt/ovirt-restore-log= s.tar.gz > >>>>>> > >>>>>> Let me know once you received them safely so I can remove them aga= in. > >>>>> > >>>>> Done. > >>>>> > >>>> > >>>> Thanks, removed. > >>>> > >>>>>> > >>>>>> I also added the restore.log containing the actual error which occ= ured > >>>>>> during the restore. > >>>>>> > >>>>>> Since this was a clean system I restored on, the setup has been ex= ecuted > >>>>>> after the database restore, so the setup logs probably contain not= hing > >>>>>> of interest. I added them anyway. > >>>>> > >>>>> Sorry I wasn't clear enough. I meant the setup logs on the machine = used > >>>>> to create the backup. So that I can try to see why your backup cont= ained > >>>>> this function. Do you still have these by any chance? > >>>>> > >>>>> Indeed, I can't see anything wrong in the logs above. > >>>>> > >>>> Sorry for misunderstanding, this totally makes sense. > >>>> > >>>> I added the setup logs i found at: > >>>> http://www.klaros-testmanagement.com/files/ovirt/ovirt-setup-logs.ta= r.gz > >>>> > >>>> Again, please let me know once I can remove them. > >>> > >>> Done. > >>> > >> Thanks, removed. > >> > >>>> > >>>>>> > >>>>>> Please let me know if there is anything I can add to this. > >>>>> > >>>>> If you do not have setup logs from the original machine, at least t= ry > >>>>> to think about its history and tell us notable points - including e= ntire > >>>>> version history, setup/upgrade (or similar) problems you had there = (and > >>>>> perhaps worked around), etc. > >>>>> > >>>> > >>>> We started with one of the first 4.0 releases and updated the system= on > >>>> a regular basis since then. We almost never skipped a release. > >>> > >>> The last log there is ovirt-engine-setup-20171231170651-lb3q89.log , > >>> meaning it was last upgraded almost a year ago. Were there indeed no > >>> more upgrades since? > >>> > >> > >> 20171231170651 is most probably the date when we installed the last > >> major release (4.2.0). We did a lot more updates since and I now have a > >> suspicion what went wrong here. > >> > >> We naively assumed that a yum update is sufficient for a minor upgrade > >> of the engine installation. > > > > :-( > > > >> Rereading the documentation I think we were > >> missing explicit engine-setup calls after each minor upgrade. > > > > Indeed > > > >> > >> It may be the case, that the extra call to engine-setup is required to > >> not be part of the yum update. > > > > engine-setup might need to ask the user questions, so we do not run it > > inside yum update. > > > As long as it clear to users that this is required this is totally ok > for me. > > >> I think in this case it would be a good > >> idea to warn users that this step has not yet been taken and the update > >> is not completed yet. > > > > Do you think you would have noticed? It's not that hard to add such a > > message during yum update, but not sure it's that helpful. > > > Yes, I would probably have noticed that. Sooner or later ... :) OK, now finished verifying this patch in CI: https://gerrit.ovirt.org/96446 https://jenkins.ovirt.org/view/oVirt%20system%20tests/job/ovirt-system-test= s_manual/3834/ https://jenkins.ovirt.org/view/oVirt%20system%20tests/job/ovirt-system-test= s_manual/3834/artifact/exported-artifacts/test_logs/upgrade-from-release-su= ite-master/post-001_upgrade_engine.py/lago_logs/lago.log Total output of: 2018-12-27 06:58:03,392::ssh.py::ssh::58::lago.ssh::DEBUG::Running c14e276c on lago-upgrade-from-release-suite-master-engine: yum -y update ovirt-*setup* Is 220 lines. Among these, line 134-136 are: Updating : ovirt-engine-setup-4.3.0-0.4.master.20181226121322.gitfe 1= 7/33 Updating ovirt-engine-setup. To update the engine, you need to run: engine-= setup Updating : ovirt-engine-setup-plugin-websocket-proxy-4.3.0-0.4.mast 1= 8/33 and lines 151-153 are: Erasing : ovirt-engine-lib-4.2.8.2-0.0.master.20181220151741.git31 3= 3/33 Updated ovirt-engine-setup. To update the engine, you need to run: engine-s= etup Verifying : ovirt-engine-dwh-setup-4.3.0-0.4.master.20181210085817.e = 1/33 I looked at yum's sources, and do not see a way to make it output something closer to the end. Comments are welcome (here or on gerrit). > > > Perhaps we can also make the engine check e.g. if the setup package is > > newer than itself, and warn the user in the admin ui. > > > I think that both is a good idea. Some applications even go the way to > lock out users from the GUI until a necessary database migration has > been executed by an administrator. Your mileage may vary here but this > is the solution I would favor. Also filed (but am not going to try working on, it's not my expertise): https://bugzilla.redhat.com/show_bug.cgi?id=3D1662109 Best regards, > > >> > >> Could this be the cause for the missing logs and behavior discrepancie= s? > >> > >> If yes, would another call to engine-setup in the current state fix th= is > >> and allow us to produce correct backups in the future? > > > > If you still have the source machine, then yes, it should be enough. > > Run engine-setup, then engine-backup again to backup, then restore > > on the new machine. > > > Thanks, will do. > > >> > >>> The log indicates the machine was upgraded to ovirt-engine-4.2.0.2 , > >>> which didn't remove the uuid functions. The bug I linked at before, > >>> 1515635, was fixed in 4.2.1. > >>> > >>> Based on this, I think the best solution for now would be the patch > >>> you suggested. Would you like to open a bug for this and push a patch > >>> to gerrit? I can do this as well if you prefer. Bug summary line > >>> should probably be something like: > >>> > >>> engine-setup fails after restoring a backup taken with 4.2.0 > >>> > >> I currently fear that would only cure the symptom. > >> > >>> Another solution would be to try using the same engine version during > >>> restore (4.2.0.2), and only upgrade later. This is a bit hard, because > >>> we do not have separate repos for each version, although they do > >>> include all released versions - so you can try e.g.: > >>> > >>> yum install ovirt-engine-4.2.0.2-1.el7 > >>> > >>> (meaning, after you remove existing 4.2.7, or you can try yum downgra= de). > >>> > >>> I didn't try this myself, not sure how well it would work. There might > >>> be older dependencies to handle, and/or it might break due to too-new > >>> stuff. > >>> > >> I don't think this is necessary. > >> > >>> Obviously, the best solution is to upgrade more often and backup more > >>> often, and have a smaller difference between backup version and resto= re > >>> version, ideally no difference. But I realize this does not always > >>> work out for everyone... > >>> > >> You are right, we did this. > >> > > > > OK. I assume this discussion is theoretical, right? > > That you already patched engine-backup manually and restored. > > Yes it is. > > Thanks a lot for your patience and support. > > Torsten > > > > > Best regards, > > > >> Best regards > >> > >> Torsten > >>>> > >>>> There was indeed one glitch during updates which was connected to the > >>>> Postgres version in use: > >>>> > >>>> The initial install was (accidentally) done under Postgres 9.4 which > >>>> happened to be present on the machine at that point of time. oVirt 4= .0 > >>>> was allowing this way back then. I think in 4.1 Postgres 9.2 has been > >>>> enforced, so there had been workarounds to allow updates under 9.4. = This > >>>> got resolved with the migration to 4.2 which brought the Postgres 9.5 > >>>> installation (if I recall that correctly). > >>>> > >>>> Other than that I have no idea which might have introduced this. > >>> > >>> All of this sounds irrelevant to current problem. Thanks for recallin= g :-) > >>> > >>> Best regards, > >>> > >>>> > >>>> If you find something in the logs you need more information on, plea= se > >>>> let me know. > >>>> > >>>> Best regards > >>>> > >>>> Torsten > >>>> > >>>> > >>>>> If you, or anyone, manages to come up with a flow resulting in a 4.2 > >>>>> engine database that contains a function uuid_generate_v1 in the en= gine > >>>>> database schema, I'd definitely want to know about it. > >>>>> > >>>>> Re-adding others posting in this thread, in case someone has a clue. > >>>>> Perhaps one of you has setup logs of the machine on which the backup > >>>>> was generated? If so, please share. Thanks. > >>>>> > >>>>> That said, on a second thought, the implications of this are not th= at > >>>>> significant - mainly somewhat lower performance - so perhaps it's m= ore > >>>>> important to fix your bug (by adding a line to IGNORED_ERRORS, as y= ou > >>>>> suggested)... but it's still weird. > >>>>> > >>>>> Thanks and best regards, > >>>>> > >>>>>> > >>>>>> Cheers, > >>>>>> > >>>>>> Torsten > >>>>>> > >>>>>> > >>>>>> On 18.12.2018 07:54, Yedidyah Bar David wrote: > >>>>>>> On Mon, Dec 17, 2018 at 2:26 PM Torsten Stolpmann > >>>>>>> wrote: > >>>>>>>> > >>>>>>>> I experienced the same issue while restoring a full backup (engi= ne & > >>>>>>>> dwh) on a clean machine. Both machines are running CentOS 7.6 and > >>>>>>>> oVirt 4.2.7. > >>>>>>>> > >>>>>>>> The issue went away when adding the following line to the IGNORE= D_ERRORS > >>>>>>>> list starting at 1944 in engine-backup: > >>>>>>>> > >>>>>>>> must be owner of function uuid_generate_v1 > >>>>>>>> > >>>>>>>> Hope this helps, > >>>>>>> > >>>>>>> It does, and thanks for the report! > >>>>>>> > >>>>>>> Can you please share all of your setup logs (/var/log/ovirt-engin= e/setup/*)? > >>>>>>> > >>>>>>> Thanks! > >>>>>>> > >>>>>>> More details: > >>>>>>> > >>>>>>> This function should not normally be included in a 4.2 backup, an= d I do > >>>>>>> not yet understand why you get this error. > >>>>>>> > >>>>>>> If it's a clean 4.2 setup, it should never have been defined. > >>>>>>> Earlier versions did create it, and the upgrade process should ha= ve > >>>>>>> dropped it, if it's an upgraded setup. See also: > >>>>>>> > >>>>>>> https://bugzilla.redhat.com/show_bug.cgi?id=3D1515635 > >>>>>>> > >>>>>>> Best regards, > >>>>>>> > >>>>>>>> > >>>>>>>> Torsten > >>>>>>>> > >>>>>>>> On 24.05.2018 11:32, emmanuel.thetas(a)obs-nancay.fr wrote: > >>>>>>>>> hi, > >>>>>>>>> > >>>>>>>>> I have the same error when I try to restore on a new hosted VM = (ovirt 4.2.3) > >>>>>>>>> Have you a solution ? > >>>>>>>>> > >>>>>>>>> Emmanuel > >>>>>>>>> _______________________________________________ > >>>>>>>>> Users mailing list -- users(a)ovirt.org > >>>>>>>>> To unsubscribe send an email to users-leave(a)ovirt.org > >>>>>>>>> > >>>>>>>> _______________________________________________ > >>>>>>>> Users mailing list -- users(a)ovirt.org > >>>>>>>> To unsubscribe send an email to users-leave(a)ovirt.org > >>>>>>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ > >>>>>>>> oVirt Code of Conduct: https://www.ovirt.org/community/about/com= munity-guidelines/ > >>>>>>>> List Archives: https://lists.ovirt.org/archives/list/users(a)ovi= rt.org/message/YMMFCYUMLCM47OJSTHXS2IMOIKEEFU27/ > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> _______________________________________________ > >>>>>> Users mailing list -- users(a)ovirt.org > >>>>>> To unsubscribe send an email to users-leave(a)ovirt.org > >>>>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ > >>>>>> oVirt Code of Conduct: https://www.ovirt.org/community/about/commu= nity-guidelines/ > >>>>>> List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt= .org/message/FCN5WVAJOGFBUTFV276O2RMCTMACAGTS/ > >>>>> > >>>>> > >>>>> > >>> > >>> > >>> > > > > > > -- = Didi --===============2466129337610573442==--