Bug 1869173 - ValueError: 'metadata_image_UUID can't be 'None' is detected in ovirt_hosted_engine_ha.broker during hosted engine deployment
Summary: ValueError: 'metadata_image_UUID can't be 'None' is detected in ovirt_hosted_...
Keywords:
Status: CLOSED DUPLICATE of bug 1868571
Alias: None
Product: cockpit-ovirt
Classification: oVirt
Component: Hosted Engine
Version: 0.14.10
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Aviv Turgeman
QA Contact: Wei Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-17 07:23 UTC by Wei Wang
Modified: 2020-08-17 07:37 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-08-17 07:37:07 UTC
oVirt Team: Node
Embargoed:
weiwang: testing_ack+


Attachments (Terms of Use)
issue picture (166.17 KB, image/png)
2020-08-17 07:23 UTC, Wei Wang
no flags Details
issue log files (2.49 MB, application/gzip)
2020-08-17 07:24 UTC, Wei Wang
no flags Details

Description Wei Wang 2020-08-17 07:23:55 UTC
Created attachment 1711561 [details]
issue picture

Description of problem:
Deploy hosted engine via UI, issue ValueError: 'metadata_image_UUID can't be 'None' is detected in ovirt_hosted_engine_ha.broker since Permission of '/etc/ovirt-hosted-engine/hosted-engine.conf' is denied.

broker.log
MainThread::ERROR::2020-08-17 11:28:52,751::config_file::60::ovirt_hosted_engine_ha.broker.storage_broker.StorageBroker.config.he_local::(load) Configuration file '/etc/ovirt-hosted-engine/hosted-engine.conf' not available [[Errno 13] Permission denied: '/etc/ovirt-hosted-engine/hosted-engine.conf']
MainThread::WARNING::2020-08-17 11:28:52,752::storage_broker::100::ovirt_hosted_engine_ha.broker.storage_broker.StorageBroker::(__init__) Can't connect vdsm storage: 'metadata_image_UUID can't be 'None'
MainThread::ERROR::2020-08-17 11:28:52,752::broker::69::ovirt_hosted_engine_ha.broker.broker.Broker::(run) Failed initializing the broker: 'metadata_image_UUID can't be 'None'
MainThread::ERROR::2020-08-17 11:28:52,770::broker::71::ovirt_hosted_engine_ha.broker.broker.Broker::(run) Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/broker/broker.py", line 64, in run
    self._storage_broker_instance = self._get_storage_broker()
  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/broker/broker.py", line 143, in _get_storage_broker
    return storage_broker.StorageBroker()
  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/broker/storage_broker.py", line 80, in __init__
    raise_on_none=True),
  File "/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/env/config.py", line 87, in get
    "'{0} can't be '{1}'".format(key, val)
ValueError: 'metadata_image_UUID can't be 'None'

ovirt-hosted-engine-setup-ansible-create_target_vm-20200817112315-9wqdjd.log
2020-08-17 11:30:44,312+0800 ERROR ansible failed {
    "ansible_host": "localhost",
    "ansible_playbook": "/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml",
    "ansible_result": {
        "_ansible_no_log": false,
        "attempts": 5,
        "changed": true,
        "cmd": [
            "hosted-engine",
            "--reinitialize-lockspace",
            "--force"
        ],

        ....

        "msg": "non-zero return code",
        "rc": 1,
        "start": "2020-08-17 11:30:43.185789",
        "stderr": "Traceback (most recent call last):\n  File \"/usr/lib64/python3.6/runpy.py\", line 193, in _run_module_as_main\n    \"__main__\", mod_spec)\n  File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\n    exec(code, run_globals)\n  File \"/usr/lib/python3.6/site-packages/ovirt_hosted_engine_setup/reinitialize_lockspace.py\", line 30, in <module>\n    ha_cli.reset_lockspace(force)\n  File \"/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/client/client.py\", line 286, in reset_lockspace\n    stats = broker.get_stats_from_storage()\n  File \"/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py\", line 148, in get_stats_from_storage\n    result = self._proxy.get_stats()\n  File \"/usr/lib64/python3.6/xmlrpc/client.py\", line 1112, in __call__\n    return self.__send(self.__name, args)\n  File \"/usr/lib64/python3.6/xmlrpc/client.py\", line 1452, in __request\n    verbose=self.__verbose\n  File \"/usr/lib64/python3.6/xmlrpc/client.py\", line 1154, in request\n    return self.single_request(host, handler, request_body, verbose)\n  File \"/usr/lib64/python3.6/xmlrpc/client.py\", line 1166, in single_request\n    http_conn = self.send_request(host, handler, request_body, verbose)\n  File \"/usr/lib64/python3.6/xmlrpc/client.py\", line 1279, in send_request\n    self.send_content(connection, request_body)\n  File \"/usr/lib64/python3.6/xmlrpc/client.py\", line 1309, in send_content\n    connection.endheaders(request_body)\n  File \"/usr/lib64/python3.6/http/client.py\", line 1249, in endheaders\n    self._send_output(message_body, encode_chunked=encode_chunked)\n  File \"/usr/lib64/python3.6/http/client.py\", line 1036, in _send_output\n    self.send(msg)\n  File \"/usr/lib64/python3.6/http/client.py\", line 974, in send\n    self.connect()\n  File \"/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/lib/unixrpc.py\", line 74, in connect\n    self.sock.connect(base64.b16decode(self.host))\nFileNotFoundError: [Errno 2] No such file or directory",

    ....
 
Version-Release number of selected component (if applicable):
RHVH-4.4-20200812.4-RHVH-x86_64-dvd1.iso
cockpit-ws-211.3-1.el8.x86_64
cockpit-bridge-211.3-1.el8.x86_64
cockpit-ovirt-dashboard-0.14.10-1.el8ev.noarch
cockpit-system-211.3-1.el8.noarch
cockpit-211.3-1.el8.x86_64
cockpit-storaged-211.3-1.el8.noarch
subscription-manager-cockpit-1.26.18-1.el8_2.noarch
cockpit-dashboard-211.3-1.el8.noarch
ovirt-hosted-engine-setup-2.4.6-1.el8ev.noarch
ovirt-hosted-engine-ha-2.4.4-1.el8ev.noarch
rhvm-appliance-4.4-20200722.0.el8ev.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Clean install RHVH-4.4-20200812.4-RHVH-x86_64-dvd1.iso
2. Deploy hosted engine via cockpit UI
3.

Actual results:
ValueError: 'metadata_image_UUID can't be 'None' is detected in ovirt_hosted_engine_ha.broker during hoseted engine deployment

Expected results:
Hosted engine deploy successfully.

Additional info:

Comment 1 Wei Wang 2020-08-17 07:24:52 UTC
Created attachment 1711562 [details]
issue log files

Comment 2 Wei Wang 2020-08-17 07:28:53 UTC
[root@hp-dlxxxgx-xx log]# ll /etc/ovirt-hosted-engine/hosted-engine.conf 
-rw-------. 1 root root 1100 Aug 17 11:26 /etc/ovirt-hosted-engine/hosted-engine.conf

Comment 3 Asaf Rachmani 2020-08-17 07:37:07 UTC

*** This bug has been marked as a duplicate of bug 1868571 ***


Note You need to log in before you can comment on or make changes to this bug.