[ovirt-users] oVirt 4.2 hosted-engine command damaged
Yedidyah Bar David
didi at redhat.com
Sun Oct 1 06:56:26 UTC 2017
On Sat, Sep 30, 2017 at 10:59 PM, Julián Tete <danteconrad14 at gmail.com> wrote:
> I updated my lab environment from oVirt 4.1.x to oVirt 4.2 Alpha
>
> The hosted-engine command has been corrupted
>
> An example:
>
> hosted-engine --vm-status
>
> Traceback (most recent call last):
> File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
> "__main__", fname, loader, pkg_name)
> File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
> exec code in run_globals
> File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/vm_status.py",
> line 213, in <module>
> if not status_checker.print_status ():
> File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/vm_status.py",
> line 110, in print_status
> all_host_stats = self._get_all_host_stats ()
> File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/vm_status.py",
> line 75, in _get_all_host_stats
> all_host_stats = ha_cli.get_all_host_stats ()
> File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/client/client.py",
> line 154, in get_all_host_stats
> return self.get_all_stats (self.StatModes.HOST)
> File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/client/client.py",
> line 99, in get_all_stats
> stats = broker.get_stats_from_storage (service)
> File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py",
> line 147, in get_stats_from_storage
> for host_id, data in six.iteritems (result):
> File "/usr/lib/python2.7/site-packages/six.py", line 599, in iteritems
> return d.iteritems (** kw)
> AttributeError: 'NoneType' object has no attribute 'iteritems'
>
> hosted-engine --set-maintenance --mode = none
>
> Traceback (most recent call last):
> File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
> "__main__", fname, loader, pkg_name)
> File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
> exec code in run_globals
> File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/set_maintenance.py",
> line 88, in <module>
> if not maintenance.set_mode (sys.argv [1]):
> File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/set_maintenance.py",
> line 76, in set_mode
> value = m_global,
> File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/client/client.py",
> line 240, in set_maintenance_mode
> str (value))
> File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/client/client.py",
> line 187, in set_global_md_flag
> all_stats = broker.get_stats_from_storage (service)
> File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py",
> line 147, in get_stats_from_storage
> for host_id, data in six.iteritems (result):
> File "/usr/lib/python2.7/site-packages/six.py", line 599, in iteritems
> return d.iteritems (** kw)
> AttributeError: 'NoneType' object has no attribute 'iteritems'
Can you please check/share your ha logs? /var/log/ovirt-hosted-engine-ha/*
It seems like it fails to read stuff from your shared storage.
>
> hosted-engine --vm-start
>
> VM exists and its status is Up
>
> Hardware
>
> Manufacturer: HP
> Family: ProLiant
> Product Name: ProLiant BL460c Gen8
> CPU Model Name: Intel (R) Xeon (R) CPU E5-2667 v2 @ 3.30GHz
> CPU Type: Intel SandyBridge Family
> CPU Sockets: 2
> CPU Cores per Socket: 8
> CPU Threads per Core: 2 (SMT Enabled)
>
> Software:
>
> OS Version: RHEL - 7 - 4.1708.el7.centos
> OS Description: CentOS Linux 7 (Core)
> Kernel Version: 4.12.0 - 1.el7.elrepo.x86_64
Do you have anything else from elrepo, or other repos?
Generally speaking, this isn't supported.
Regards,
> KVM Version: 2.9.0 - 16.el7_4.5.1
> LIBVIRT Version: libvirt-3.2.0-14.el7_4.3
> VDSM Version: vdsm-4.20.3-95.git0813890.el7.centos
> SPICE Version: 0.12.8 - 2.el7.1
> GlusterFS Version: glusterfs-3.12.1-2.el7
> CEPH Version: librbd1-0.94.5-2.el7
>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
--
Didi
More information about the Users
mailing list