Red Hat Bugzilla – Bug 988123
ovirt-host-deploy fails because yum api is enabled
Last modified: 2013-11-27 04:57:46 EST
Created attachment 777927 [details]
Description of problem:
add host fails on ovirt-node with the following error:
Traceback (most recent call last):
File "/tmp/ovirt-y11bhKvuuF/pythonlib/otopi/context.py", line 122, in _executeMethod
File "/tmp/ovirt-y11bhKvuuF/otopi-plugins/otopi/packagers/yumpackager.py", line 203, in _setup
File "/tmp/ovirt-y11bhKvuuF/pythonlib/otopi/miniyum.py", line 326, in __enter__
File "/tmp/ovirt-y11bhKvuuF/pythonlib/otopi/miniyum.py", line 628, in beginTransaction
self._transactionBase = self._yb.history.last()
File "/usr/lib/python2.6/site-packages/yum/history.py", line 1257, in last
File "/usr/lib/python2.6/site-packages/yum/history.py", line 1176, in old
File "/usr/lib/python2.6/site-packages/yum/history.py", line 725, in _get_cursor
AttributeError: YumHistory instance has no attribute '_db_file'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2.set root password and enable ssh password auth
3.add host from ovirt-engine
There are some unrelated bugs with the version of ovirt-node-iso used related to setting the root password and enabling ssh password authentication. They can be worked around by doing the following:
drop a shell (F2) and run /usr/libexec/ovirt-config-password
Run the following commands and follow prompts:
This is a new behavior of yum at ovirt-node, I will need to work this out somehow....
(In reply to Alon Bar-Lev from comment #1)
> This is a new behavior of yum at ovirt-node, I will need to work this out
Why do you need to do anything with yum? you can't run yum on a live ovirt-node.
Can we install ovirt-host-deploy-offline package on the node? This will probably solve this issue properly.
posted patch to gerrit to change the dependency of ovirt-node-plugin-vdsm to ovirt-host-deploy-offline instead of ovirt-host-deploy
Created attachment 778241 [details]
the patch to vdsm-plugin fixed the initial issue, but an issue comes up further in the process.
(In reply to Mike Burns from comment #5)
> Created attachment 778241 [details]
> the patch to vdsm-plugin fixed the initial issue, but an issue comes up
> further in the process.
which issue? I see success:
I think it was setupNetworks, but I need to reproduce (my environment is remote and currently inaccessible)
I'll file a separate bug for the setupnetworks issue
A new node iso has been released with oVirt 3.3.1, closing.