Bug 2049224 - Failure on copy template disk to ceph domain
Summary: Failure on copy template disk to ceph domain
Keywords:
Status: CLOSED DUPLICATE of bug 2006745
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.4.10.6
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: Avihai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-01 18:50 UTC by Ricardo Alonso
Modified: 2022-02-01 19:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-01 19:27:06 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-44593 0 None None None 2022-02-01 18:54:33 UTC

Description Ricardo Alonso 2022-02-01 18:50:15 UTC
Description of problem:
Ovirt fails to copy disk to Ceph (cinderlib) domain. 

Version-Release number of selected component (if applicable):
[root@ovirt cinderlib]# rpm -aq | grep ovirt
ovirt-openvswitch-ovn-2.11-1.el8.noarch
ovirt-engine-dwh-setup-4.4.10-1.el8.noarch
ovirt-engine-webadmin-portal-4.4.10.6-1.el8.noarch
ovirt-engine-extension-aaa-jdbc-1.2.0-1.el8.noarch
ovirt-engine-extension-aaa-ldap-setup-1.4.5-1.el8.noarch
ovirt-imageio-daemon-2.3.0-1.el8.x86_64
ovirt-engine-setup-plugin-imageio-4.4.10.6-1.el8.noarch
ovirt-engine-tools-backup-4.4.10.6-1.el8.noarch
ovirt-python-openvswitch-2.11-1.el8.noarch
ovirt-web-ui-1.7.2-1.el8.noarch
ovirt-engine-ui-extensions-1.2.7-1.el8.noarch
ovirt-engine-wildfly-23.0.2-1.el8.x86_64
ovirt-engine-vmconsole-proxy-helper-4.4.10.6-1.el8.noarch
ovirt-engine-wildfly-overlay-23.0.2-1.el8.noarch
ovirt-openvswitch-ovn-common-2.11-1.el8.noarch
ovirt-cockpit-sso-0.1.4-2.el8.noarch
ovirt-engine-setup-base-4.4.10.6-1.el8.noarch
ovirt-engine-setup-plugin-cinderlib-4.4.10.6-1.el8.noarch
ovirt-engine-setup-4.4.10.6-1.el8.noarch
ovirt-engine-restapi-4.4.10.6-1.el8.noarch
ovirt-engine-dwh-4.4.10-1.el8.noarch
ovirt-provider-ovn-1.2.34-1.el8.noarch
python3-ovirt-engine-lib-4.4.10.6-1.el8.noarch
python3-ovirt-setup-lib-1.3.2-1.el8.noarch
ovirt-engine-dwh-grafana-integration-setup-4.4.10-1.el8.noarch
ovirt-engine-setup-plugin-ovirt-engine-4.4.10.6-1.el8.noarch
ovirt-engine-websocket-proxy-4.4.10.6-1.el8.noarch
ovirt-engine-dbscripts-4.4.10.6-1.el8.noarch
ovirt-engine-4.4.10.6-1.el8.noarch
ovirt-vmconsole-proxy-1.0.9-1.el8.noarch
ovirt-openvswitch-ovn-central-2.11-1.el8.noarch
ovirt-openvswitch-2.11-1.el8.noarch
ovirt-dependencies-4.4.2-1.el8.noarch
ovirt-engine-metrics-1.4.4-1.el8.noarch
ovirt-engine-extensions-api-1.0.1-1.el8.noarch
ovirt-engine-extension-aaa-ldap-1.4.5-1.el8.noarch
ovirt-release44-4.4.10-1.el8.noarch
ovirt-vmconsole-1.0.9-1.el8.noarch
ovirt-engine-setup-plugin-vmconsole-proxy-helper-4.4.10.6-1.el8.noarch
ovirt-engine-backend-4.4.10.6-1.el8.noarch
ovirt-imageio-common-2.3.0-1.el8.x86_64
ovirt-engine-setup-plugin-ovirt-engine-common-4.4.10.6-1.el8.noarch
ovirt-engine-setup-plugin-websocket-proxy-4.4.10.6-1.el8.noarch
ovirt-engine-tools-4.4.10.6-1.el8.noarch
ovirt-engine-extension-aaa-misc-1.1.0-1.el8.noarch
python3-ovirt-engine-sdk4-4.4.15-1.el8.x86_64
ovirt-ansible-collection-1.6.6-1.el8.noarch


How reproducible:
Always

Steps to Reproduce:
1. Create a template on a second domain.
2. Try to copy the template disk to a ceph domain (cinderlib)


Actual results:
Copy fails. Those are the cinderlib logs:

2022-02-01 15:44:59,275 - cinder.volume.driver - INFO - Driver hasn't implemented _init_vendor_properties()
2022-02-01 15:44:59,275 - cinderlib-client - INFO - Creating volume '086605e0-92ed-4718-8bd2-64750a8d9d38', with size '80' GB [1afebcec]
2022-02-01 15:45:00,605 - cinderlib-client - ERROR - Failure occurred when trying to run command 'create_volume': Entity '<class 'cinder.db.sqlalchemy.models.Volume'>' has no property 'glance_metadata' [1afebcec]
2022-02-01 15:45:00,606 - cinder - CRITICAL - Unhandled error
Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/base.py", line 399, in _entity_descriptor
    return getattr(entity, key)
AttributeError: type object 'Volume' has no attribute 'glance_metadata'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./cinderlib-client.py", line 170, in main
    args.command(args)
  File "./cinderlib-client.py", line 208, in create_volume
    backend.create_volume(int(args.size), id=args.volume_id)
  File "/usr/lib/python3.6/site-packages/cinderlib/cinderlib.py", line 175, in create_volume
    vol.create()
  File "/usr/lib/python3.6/site-packages/cinderlib/objects.py", line 457, in create
    self.save()
  File "/usr/lib/python3.6/site-packages/cinderlib/objects.py", line 628, in save
    self.persistence.set_volume(self)
  File "/usr/lib/python3.6/site-packages/cinderlib/persistence/dbms.py", line 254, in set_volume
    self.db.volume_update(objects.CONTEXT, volume.id, changed)
  File "/usr/lib/python3.6/site-packages/cinder/db/sqlalchemy/api.py", line 236, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/cinder/db/sqlalchemy/api.py", line 184, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/cinder/db/sqlalchemy/api.py", line 2570, in volume_update
    result = query.filter_by(id=volume_id).update(values)
  File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/query.py", line 3818, in update
    update_op.exec_()
  File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/persistence.py", line 1670, in exec_
    self._do_pre_synchronize()
  File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/persistence.py", line 1743, in _do_pre_synchronize
    self._additional_evaluators(evaluator_compiler)
  File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/persistence.py", line 1912, in _additional_evaluators
    values = self._resolved_values_keys_as_propnames
  File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/persistence.py", line 1831, in _resolved_values_keys_as_propnames
    for k, v in self._resolved_values:
  File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/persistence.py", line 1818, in _resolved_values
    desc = _entity_descriptor(self.mapper, k)
  File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/base.py", line 402, in _entity_descriptor
    "Entity '%s' has no property '%s'" % (description, key)
sqlalchemy.exc.InvalidRequestError: Entity '<class 'cinder.db.sqlalchemy.models.Volume'>' has no property 'glance_metadata'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./cinderlib-client.py", line 390, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./cinderlib-client.py", line 176, in main
    sys.stderr.write(traceback.format_exc(e))
  File "/usr/lib64/python3.6/traceback.py", line 167, in format_exc
    return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
  File "/usr/lib64/python3.6/traceback.py", line 121, in format_exception
    type(value), value, tb, limit=limit).format(chain=chain))
  File "/usr/lib64/python3.6/traceback.py", line 498, in __init__
    _seen=_seen)
  File "/usr/lib64/python3.6/traceback.py", line 509, in __init__
    capture_locals=capture_locals)
  File "/usr/lib64/python3.6/traceback.py", line 338, in extract
    if limit >= 0:
TypeError: '>=' not supported between instances of 'InvalidRequestError' and 'int'


Expected results:
Copy successful

Comment 1 Ricardo Alonso 2022-02-01 19:27:06 UTC

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


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