On Wed, May 27, 2020 at 2:33 PM Oliver Leinfelder
<oliver.leinfel...@gmail.com> wrote:
>
> Hi,
>
> Yedidyah Bar David wrote:
> >
> > In any case (perhaps not relevant to you right now, if indeed engine-setup
> > succeeded), usually the engine vm is left running at the end of a failed
> > deploy. If it's still the local vm, you can find its IP address by searching
> > the ansible logs for local_vm_ip, then you can ssh to it from the host.
> >
> > For fixing the "empty engine-logs dirs", now pushed this:
> >
> > https://github.com/oVirt/ovirt-ansible-hosted-engine-setup/pull/325
> >
> > Didn't test yet, it's just a guess.
>
> I followed up on your remark that the engine may indeed be running. And
> it is, sorry for not seeing this earlier.
>
> Anyway, I was thus able to take a look in /var/log/ovirt-engine/setup in
> the HE VM and found the following error (I found a couple of more
> "suspicious" lines, but this one sticks out).
>
> 2020-05-27 00:17:09,660+0200 DEBUG otopi.context
> context._executeMethod:145 method exception
> Traceback (most recent call last):
>    File "/usr/lib64/python3.6/site-packages/M2Crypto/BIO.py", line 279,
> in openfile
>      f = open(filename, mode)
> FileNotFoundError: [Errno 2] No such file or directory:
> '/etc/pki/ovirt-engine/qemu-ca.pem'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>    File "/usr/lib/python3.6/site-packages/otopi/context.py", line 132,
> in _executeMethod
>      method['method']()
>    File
> "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/pki/ca.py",
> line 699, in _miscUpgrade
>      if self._expired(self._x509_load_cert(ca_file)):
>    File
> "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/pki/ca.py",
> line 94, in _x509_load_cert
>      res = X509.load_cert(f)
>    File "/usr/lib64/python3.6/site-packages/M2Crypto/X509.py", line 802,
> in load_cert
>      with BIO.openfile(file) as bio:
>    File "/usr/lib64/python3.6/site-packages/M2Crypto/BIO.py", line 281,
> in openfile
>      raise BIOError(ex.args)
> M2Crypto.BIO.BIOError: (2, 'No such file or directory')
> 2020-05-27 00:17:09,663+0200 ERROR otopi.context
> context._executeMethod:154 Failed to execute stage 'Misc configuration':
> (2, 'No such file or directory')

I think I know (it's hard to tell without more logs, but anyway):

It's because your PKI was expired and thus renewed. If you used the
command line to restore/deploy, you were also asked:

                        'Renew engine CA on restore if needed? Please notice '
                        'that if you choose Yes, all hosts will have to be '
                        'later manually reinstalled from the engine. '
                        '(@VALUES@)[@DEFAULT@]: '

and probably replied Yes.

You have two options:

1. Try again, and reply No.
2. Run first engine-setup (can add --offline to prevent it from
upgrading) on your old engine. You should be prompted there, and reply
Yes, and then take a backup after it finishes and try again to restore
with that backup.

In any case, that's a bug. Can you please open one? Preferably after
verifying my guesses?

Thanks and best regards,
-- 
Didi
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/A5M5OECFZQVWMXU6WNOQODGTBMBQYOFE/

Reply via email to