Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1717978

Summary: EL8: SDK fails to build on RHEL 8 with AttributeError: 'VmsService' object has no attribute 'add_from_scratch'
Product: [oVirt] ovirt-engine-sdk-python Reporter: Sandro Bonazzola <sbonazzo>
Component: BuildAssignee: Ondra Machacek <omachace>
Status: CLOSED WORKSFORME QA Contact: Lukas Svaty <lsvaty>
Severity: urgent Docs Contact:
Priority: urgent    
Version: ---CC: bugs, juan.hernandez, mperina
Target Milestone: ---Keywords: DevelBlocker, TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-26 14:01:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1701464    

Description Sandro Bonazzola 2019-06-06 15:05:03 UTC
4.3.1.dev20190606+git50a0097
running nosetests
running egg_info
writing lib/ovirt_engine_sdk_python.egg-info/PKG-INFO
writing dependency_links to lib/ovirt_engine_sdk_python.egg-info/dependency_links.txt
writing requirements to lib/ovirt_engine_sdk_python.egg-info/requires.txt
writing top-level names to lib/ovirt_engine_sdk_python.egg-info/top_level.txt
reading manifest file 'lib/ovirt_engine_sdk_python.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'lib/ovirt_engine_sdk_python.egg-info/SOURCES.txt'
building 'ovirtsdk4.xml' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/ext
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/libxml2 -I/usr/include/python3.6m -c ext/ov_xml_module.c -o build/temp.linux-x86_64-3.6/ext/ov_xml_module.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/libxml2 -I/usr/include/python3.6m -c ext/ov_xml_reader.c -o build/temp.linux-x86_64-3.6/ext/ov_xml_reader.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/libxml2 -I/usr/include/python3.6m -c ext/ov_xml_utils.c -o build/temp.linux-x86_64-3.6/ext/ov_xml_utils.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/libxml2 -I/usr/include/python3.6m -c ext/ov_xml_writer.c -o build/temp.linux-x86_64-3.6/ext/ov_xml_writer.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/libxml2 -I/usr/include/python3.6m -c ext/xml.c -o build/temp.linux-x86_64-3.6/ext/xml.o
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/ovirtsdk4
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.6/ext/ov_xml_module.o build/temp.linux-x86_64-3.6/ext/ov_xml_reader.o build/temp.linux-x86_64-3.6/ext/ov_xml_utils.o build/temp.linux-x86_64-3.6/ext/ov_xml_writer.o build/temp.linux-x86_64-3.6/ext/xml.o -L/usr/lib64 -lxml2 -lpython3.6m -o build/lib.linux-x86_64-3.6/ovirtsdk4/xml.cpython-36m-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.6/ovirtsdk4/xml.cpython-36m-x86_64-linux-gnu.so -> lib/ovirtsdk4
/usr/lib/python3.6/site-packages/nose/config.py:435: DeprecationWarning: Use of multiple -w arguments is deprecated and support may be removed in a future release. You can get the same behavior by passing directories without the -w argument on the command line, or by using the --tests argument in a configuration file.
  DeprecationWarning)
.....................................................................................................EE....................................................
======================================================================
ERROR: Test when adding vm clone and clone_permissions from scarch
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/ovirt-engine-sdk/sdk/tests/test_vm_service.py", line 124, in test_add_vm_from_scratch_with_clone_and_clone_permissions_parameters
    self.vms_service.add_from_scratch(
AttributeError: 'VmsService' object has no attribute 'add_from_scratch'

======================================================================
ERROR: Test when adding clone vm from scratch the query with this
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/ovirt-engine-sdk/sdk/tests/test_vm_service.py", line 115, in test_add_vm_from_scratch_with_clone_parameter
    self.vms_service.add_from_scratch(types.Vm(), clone=True)
AttributeError: 'VmsService' object has no attribute 'add_from_scratch'

Comment 1 Ondra Machacek 2019-06-12 13:02:15 UTC
I cannot reproduce:

~~~~~~~~~~~
 [root@omachace-rhel8 sdk]# python3 setup.py nosetests
4.3.1.dev20190612+git73f8f42
running nosetests
running egg_info
writing lib/ovirt_engine_sdk_python.egg-info/PKG-INFO
writing dependency_links to lib/ovirt_engine_sdk_python.egg-info/dependency_links.txt
writing requirements to lib/ovirt_engine_sdk_python.egg-info/requires.txt
writing top-level names to lib/ovirt_engine_sdk_python.egg-info/top_level.txt
reading manifest file 'lib/ovirt_engine_sdk_python.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'lib/ovirt_engine_sdk_python.egg-info/SOURCES.txt'
copying build/lib.linux-x86_64-3.6/ovirtsdk4/xml.cpython-36m-x86_64-linux-gnu.so -> lib/ovirtsdk4
/usr/local/lib/python3.6/site-packages/nose/config.py:435: DeprecationWarning: Use of multiple -w arguments is deprecated and support may be removed in a future release. You can get the same behavior by passing directories without the -w argument on the command line, or by using the --tests argument in a configuration file.
  DeprecationWarning)
...........................................................................................................................................................
----------------------------------------------------------------------
Ran 155 tests in 5.339s

OK
~~~~~~~~~~~

Can you please try again. Maybe it fixed some recent changes?

Comment 2 Martin Perina 2019-06-26 14:01:21 UTC
Feel free to reopen if reproduced