Giter VIP home page Giter VIP logo

ovirt-hosted-engine-ha's Introduction

ovirt-hosted-engine-ha -- ovirt hosted engine high availability

Copr build status

Copyright (C) 2013 Red Hat, Inc.

In order to build the project, the following dependencies are needed:

  • autoconf
  • automake
  • all dependencies in .spec file's BuildRequires section

To build:

 $ ./autogen.sh --system

Then choose one of the following:

$ make         # compile only
$ make install # compile and install
$ make dist    # compile and create distribution tarball
$ make rpm     # compile and create rpm

Cleanup:

 $ make distclean  # clean files from compilation and automake

-or-

 $ make clean      # clean only files from compilation

Patches are welcome: https://github.com/oVirt/ovirt-hosted-engine-ha/

Before sending one, please configure the commit template:

 # from project root directory
 $ git config commit.template commit-template.txt

ovirt-hosted-engine-ha's People

Contributors

akrejcir avatar arachmani avatar david-caro avatar didib avatar dougsland avatar eslutsky avatar fabiand avatar gpadgett avatar irosenzw avatar jake2184 avatar jtokar avatar lveyde avatar marsik avatar mz-pdm avatar pcbailey avatar pkliczewski avatar reivaj84 avatar rgolangh avatar rmohr avatar sandrobonazzola avatar tiraboschi avatar yanirq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ovirt-hosted-engine-ha's Issues

Host deactivation causes vdsm.error Removing VG mapping failed (HE setup with iscsi/FC HostedStorage)

Imported from Bug 1895863

Description of problem:

Every time (each HE setup with blocked HostedStorage (iscsi or FC), I sent host deactivation to any host in HE env I see in vdsm.log

error [storage.LVM] Removing VG mapping failed: Could not remove mapping:

Version-Release number of selected component (if applicable):

ovirt-engine-4.4.3.8
vdsm-4.40.35

How reproducible:

100% on HE env with blocked HostedStorage (iscsi or FC)

Steps to Reproduce:

POST https://{{host}}/ovirt-engine/api/hosts/6c3b8522-8ea8-4e6e-a331-3bcd334db6df/deactivate
<action>
    <async>true</async>
    <grace_period>
        <expiry>10</expiry>
    </grace_period>
</action>

See Bug 1895863 for more details and attached logs.

hosted-engine deploy fails at lockspace volume initialization (FC Storage)

OS: CentOS 8
oVirt: nightly.

hosted-engine deployment fails at the step: Initialize lockspace volume
(i think, at hosted-engine --reinitialize-lockspace :) )

[ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 5, "changed": true, "cmd": ["hosted-engine", "--reinitialize-lockspace", "--force"], "delta": "0:00:00.315076", "end": "2023-11-25 00:31:19.175840", "msg": "non-zero return code", "rc": 1, "start": "2023-11-25 00:31:18.860764", "stderr": "Traceback (most recent call last):
  File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_setup/reinitialize_lockspace.py", line 30, in <module>
    ha_cli.reset_lockspace(force)
  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/client/client.py", line 286, in reset_lockspace
    stats = broker.get_stats_from_storage()
  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py", line 148, in get_stats_from_storage
    result = self._proxy.get_stats()
  File "/usr/lib64/python3.6/xmlrpc/client.py", line 1112, in __call__
    return sel$.__send(self.__name, args)
  File "/usr/lib64/python3.6/xmlrpc/client.py", line 1452, in __request
    verbose=self.__verbose
  File "/usr/lib64/pyth$n3.6/xmlrpc/client.py", line 1154, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python3.6/xmlrpc/$lient.py", line 1166, in single_request
    http_conn = self.send_request(host, handler, request_body, verbose)
  File "/usr/lib64/python3.6/xmlrpc/cli$nt.py", line 1279, in send_request
    self.send_content(connection, request_body)
  File "/usr/lib64/python3.6/xmlrpc/client.py", line 1309, in send_$ontent
    connection.endheaders(request_body)
  File "/usr/lib64/python3.6/http/client.py", line 1268, in endheaders
    self._send_output(message_bo$y, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1044, in _send_output
    self.send(msg)
  File "/usr/lib64/pyth$n3.6/http/client.py", line 982, in send
    self.connect()
  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/lib/unixrpc.py", line 76, in connect
    self.sock.connect(base64.b16decode(self.host))
FileNotFoundError: [Errno 2] No such file or directory", "stderr_lines": ["Traceback (most re$ent call last):", "  File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main", "    "__main__", mod_spec)", "  File "/usr/lib64/python3$6/runpy.py", line 85, in _run_code", "    exec(code, run_globals)", "  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_setup/reinitialize_lock$pace.py", line 30, in <module>", "    ha_cli.reset_lockspace(force)", "  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/client/client.py"$ line 286, in reset_lockspace", "    stats = broker.get_stats_from_storage()", "  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/lib/broker$ink.py", line 148, in get_stats_from_storage", "    result = self._proxy.get_stats()", "  File "/usr/lib64/python3.6/xmlrpc/client.py", line 1112, in __$all__", "    return self.__send(self.__name, args)", "  File "/usr/lib64/python3.6/xmlrpc/client.py", line 1452, in __request", "    verbose=self.__verbo$e", "  File "/usr/lib64/python3.6/xmlrpc/client.py", line 1154, in request", "    return self.single_request(host, handler, request_body, verbose)", "  F$le "/usr/lib64/python3.6/xmlrpc/client.py", line 1166, in single_request", "    http_conn = self.send_request(host, handler, request_body, verbose)", "  $ile "/usr/lib64/python3.6/xmlrpc/client.py", line 1279, in send_request", "    self.send_content(connection, request_body)", "  File "/usr/lib64/python3$6/xmlrpc/client.py", line 1309, in send_content", "    connection.endheaders(request_body)", "  File "/usr/lib64/python3.6/http/client.py", line 1268, i$ endheaders", "    self._send_output(message_body, encode_chunked=encode_chunked)", "  File "/usr/lib64/python3.6/http/client.py", line 1044, in _send_ou$put", "    self.send(msg)", "  File "/usr/lib64/python3.6/http/client.py", line 982, in send", "    self.connect()", "  File "/usr/lib/python3.6/site-pa$kages/ovirt_hosted_engine_ha/lib/unixrpc.py", line 76, in connect", "    self.sock.connect(base64.b16decode(self.host))", "FileNotFoundError: [Errno 2] No\r
such file or directory"], "stdout": "", "stdout_lines": []}

it's trying to open the /var/run/ovirt-hosted-engine-ha/broker.socket file which doesn't exist.

even if the ovirt-ha-broker is running.

In the ovirt-ha-broker logfile i found some error messages:

StatusStorageThread::ERROR::2023-11-25 01:20:41,001::storage_broker::167::ovirt_hosted_engine_ha.broker.storage_broker.StorageBroker::(get_raw_stats) Corrupted metadata from /run/vdsm/storage/b1c01f9c-0534-4e24-980a-f57a840469cd/a58fa5c6-03ec-41b7-97c3-9ac84eab5362/c1f5a6ce-9426-4da0-af04-23e21fdec67a
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/broker/storage_broker.py", line 163, in get_raw_stats
    data = bdata.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 1048576: invalid start byte
StatusStorageThread::ERROR::2023-11-25 01:20:41,002::status_broker::98::ovirt_hosted_engine_ha.broker.status_broker.StatusBroker.Update::(run) Failed to read state.
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/broker/storage_broker.py", line 163, in get_raw_stats
    data = bdata.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 1048576: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/broker/status_broker.py", line 94, in run
    self._storage_broker.get_raw_stats()
  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/broker/storage_broker.py", line 169, in get_raw_stats
    .format(str(e)))
ovirt_hosted_engine_ha.lib.exceptions.RequestError: Corrupted read metadata: 'utf-8' codec can't decode byte 0xa0 in position 1048576: invalid start byte
StatusStorageThread::ERROR::2023-11-25 01:20:41,002::status_broker::70::ovirt_hosted_engine_ha.broker.status_broker.StatusBroker.Update::(trigger_restart) Trying to restart the broker

/run/vdsm/storage/b1c01f9c-0534-4e24-980a-f57a840469cd/a58fa5c6-03ec-41b7-97c3-9ac84eab5362/c1f5a6ce-9426-4da0-af04-23e21fdec67a is the symlink to /dev/b1c01f9c-0534-4e24-980a-f57a840469cd/c1f5a6ce-9426-4da0-af04-23e21fdec67a which is

b1c01f9c--0534--4e24--980a--f57a840469cd-c1f5a6ce--9426--4da0--af04--23e21fdec67a
│ 253:24 0 128M 0 lvm
└─3600c0ff00012158dd030616501000000 253:12 0 18.2T 0 mpath
└─sdb 8:16 0 18.2T 0 disk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.