Bug 1763484 - python-pyvmomi: FTBFS in Fedora rawhide
Summary: python-pyvmomi: FTBFS in Fedora rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pyvmomi
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Raphael Groner
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: 1759878 1770851
TreeView+ depends on / blocked
 
Reported: 2019-10-20 09:01 UTC by Raphael Groner
Modified: 2019-11-15 03:39 UTC (History)
4 users (show)

Fixed In Version: python-pyvmomi-6.7.3-3.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-15 03:39:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
python-pyvmomi-spec proposal (9.07 KB, text/x-matlab)
2019-11-14 10:08 UTC, Raphael Groner
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github vmware pyvmomi issues 735 0 'None' closed vcrpy 1.13 2020-08-04 19:05:01 UTC

Description Raphael Groner 2019-10-20 09:01:22 UTC
Description of problem:
Package python-pyvmomi fails to build from source in Fedora rawhide.

Version-Release number of selected component (if applicable):
6.7.3-1.fc32

Steps to Reproduce:
koji build --scratch f32 python-pyvmomi-6.7.3-1.fc32.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-pyvmomi

Comment 1 Raphael Groner 2019-10-20 09:05:56 UTC
Relevant snippet from build.log:
+ /usr/bin/python3 setup.py test
running test
Searching for vcrpy<2
Reading https://pypi.org/simple/vcrpy/
Download error on https://pypi.org/simple/vcrpy/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't retrieve index page for 'vcrpy'
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for vcrpy<2
error: Could not find suitable distribution for Requirement.parse('vcrpy<2')

This needs to get discussed with upstream.
https://github.com/vmware/pyvmomi/issues/735

Comment 2 Raphael Groner 2019-11-14 10:08:07 UTC
Created attachment 1636081 [details]
python-pyvmomi-spec proposal

please review and explain why explicit Requires has no effect

Comment 3 Miro Hrončok 2019-11-14 12:57:55 UTC
because it is: vcrpy<2 and we have 2.1.0

Comment 4 Raphael Groner 2019-11-14 15:04:59 UTC
(In reply to Miro Hrončok from comment #3)
> because it is: vcrpy<2 and we have 2.1.0

That's clear to me. But I'm explicitly truncating requirements.txt incl. vcrpy version.

Comment 5 Miro Hrončok 2019-11-14 16:04:38 UTC
It doesn't reproduce for me:

+ /usr/bin/python3 setup.py test
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info
writing pyvmomi.egg-info/PKG-INFO
writing dependency_links to pyvmomi.egg-info/dependency_links.txt
writing requirements to pyvmomi.egg-info/requires.txt
writing top-level names to pyvmomi.egg-info/top_level.txt
reading manifest file 'pyvmomi.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pyvmomi.egg-info/SOURCES.txt'
running build_ext
/builddir/build/BUILD/pyvmomi-6.7.3/pyVmomi/Version.py:26: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if isLegacy or ns is "":
test_iso8601_set_datetime (tests.test_iso8601.Iso8601Tests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVim/connect.py:641: ResourceWarning: unclosed <socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  tree = __GetElementTree(protocol, server, port,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  super(VCRConnection, self).__setattr__(name, value)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  super(VCRConnection, self).__setattr__(name, value)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_vm_config_iso8601 (tests.test_iso8601.Iso8601Tests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVim/connect.py:641: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  tree = __GetElementTree(protocol, server, port,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  super(VCRConnection, self).__setattr__(name, value)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_request_context_serializer_global (tests.test_serializer.SerializerTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/tests/test_serializer.py:109: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  self._base_serialize_test(soap_creator, request_matcher)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_request_context_serializer_instance (tests.test_serializer.SerializerTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/tests/test_serializer.py:100: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  self._base_serialize_test(soap_creator, request_matcher)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_serialize_float (tests.test_serializer.SerializerTests) ... ok
test_serialize_integer (tests.test_serializer.SerializerTests) ... ok
test_serialize_object (tests.test_serializer.SerializerTests) ... ok
test_serialize_unicode (tests.test_serializer.SerializerTests) ... ok
test_simple_request_serializer (tests.test_serializer.SerializerTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/tests/test_serializer.py:93: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  self._base_serialize_test(soap_creator, self._body_request_matcher)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_vm_nic_data (tests.test_virtual_machine_object.VirtualMachineTests) ... /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  super(VCRConnection, self).__setattr__(name, value)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_basic_connection (tests.test_connect.ConnectionTests) ... /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  super(VCRConnection, self).__setattr__(name, value)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_basic_connection_bad_password (tests.test_connect.ConnectionTests) ... /usr/lib64/python3.8/traceback.py:220: ResourceWarning: unclosed <socket.socket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  tb.tb_frame.clear()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_disconnect_on_no_connection (tests.test_connect.ConnectionTests) ... ok
test_http_proxy (tests.test_connect.ConnectionTests) ... /usr/lib/python3.8/site-packages/vcr/cassette.py:117: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  return function(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_http_proxy_with_cert_file (tests.test_connect.ConnectionTests) ... /usr/lib64/python3.8/unittest/mock.py:2042: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  setattr(_type, entry, MagicProxy(entry, self))
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_smart_connection (tests.test_connect.ConnectionTests) ... ok
test_ssl_tunnel (tests.test_connect.ConnectionTests) ... ok
test_ssl_tunnel_http_failure (tests.test_connect.ConnectionTests) ... ok
test_sspi_connection (tests.test_connect.ConnectionTests) ... /usr/lib64/python3.8/site-packages/yaml/nodes.py:38: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  self.tag = tag
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_json_datacenter_explode (tests.test_json.JSONTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVim/connect.py:641: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  tree = __GetElementTree(protocol, server, port,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  super(VCRConnection, self).__setattr__(name, value)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/builddir/build/BUILD/pyvmomi-6.7.3/pyVmomi/VmomiSupport.py:625: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  for info in self._GetPropertyList():
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_json_datastore_explode (tests.test_json.JSONTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVim/connect.py:641: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  tree = __GetElementTree(protocol, server, port,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_json_host_explode (tests.test_json.JSONTests) ... /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  super(VCRConnection, self).__setattr__(name, value)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/builddir/build/BUILD/pyvmomi-6.7.3/pyVmomi/VmomiSupport.py:656: ResourceWarning: unclosed <socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  result = [info for info in cls._propList
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/builddir/build/BUILD/pyvmomi-6.7.3/pyVmomi/VmomiSupport.py:656: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  result = [info for info in cls._propList
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/builddir/build/BUILD/pyvmomi-6.7.3/pyVmomi/VmomiSupport.py:656: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  result = [info for info in cls._propList
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_json_network_explode (tests.test_json.JSONTests) ... ok
test_json_vm_explode_default (tests.test_json.JSONTests) ... ok
test_json_vm_explode_objs_match (tests.test_json.JSONTests) ... ok
test_json_vm_explode_strip_dynamic (tests.test_json.JSONTests) ... /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  super(VCRConnection, self).__setattr__(name, value)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_json_vm_explode_type_match (tests.test_json.JSONTests) ... /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  super(VCRConnection, self).__setattr__(name, value)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_basic_container_view (tests.test_container_view.ContainerViewTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVim/connect.py:641: ResourceWarning: unclosed <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  tree = __GetElementTree(protocol, server, port,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  super(VCRConnection, self).__setattr__(name, value)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_root_folder_parent (tests.test_managed_object.ManagedObjectTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVim/connect.py:641: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  tree = __GetElementTree(protocol, server, port,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=13, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  super(VCRConnection, self).__setattr__(name, value)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_invoke_method_login_session_exception (tests.test_vim_session_oriented_stub.SoapAdapterTests) ... ok
test_pbm_check_compatibility (tests.test_pbm_check_compatibility.PBMTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVmomi/VmomiSupport.py:512: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  return self._stub.InvokeMethod(self, info, args)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok

----------------------------------------------------------------------
Ran 31 tests in 3.884s

OK
+ RPM_EC=0
++ jobs -p
+ exit 0

Comment 6 Raphael Groner 2019-11-14 17:03:28 UTC
(In reply to Miro Hrončok from comment #5)
> It doesn't reproduce for me:
…

Then it seems to be an issue related to my local mock environment. No idea.

Comment 7 Raphael Groner 2019-11-14 17:09:17 UTC
No. Did you verify correct dependencies? I fail to find both request and six.

Comment 8 Miro Hrončok 2019-11-14 17:18:02 UTC
I am afraid i don't understand the question. I have downloaded the specfile, the sources, and crated a SRPM with rpmbuilds -bs. I've built the SRPM in rawhide mock. It built.

Comment 11 Raphael Groner 2019-11-14 17:45:10 UTC
(In reply to Miro Hrončok from comment #9)
> https://koji.fedoraproject.org/koji/taskinfo?taskID=38997098

Nothing about six neither requests:

Provides: python-pyvmomi = 6.7.3-3.fc32 python3-pyvim python3-pyvmomi = 6.7.3-3.fc32 python3.8dist(pyvmomi) = 6.7.3 python3dist(pyvmomi) = 6.7.3
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: python(abi) = 3.8
Obsoletes: python-pyvmomi < 6.7.3-3.fc32

Comment 12 Miro Hrončok 2019-11-14 17:58:57 UTC
$ rpm -qp --requires python3-pyvmomi-6.7.3-3.fc32.noarch.rpm 
python(abi) = 3.8
python3-requests
python3-six
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1

Comment 13 Raphael Groner 2019-11-15 02:43:55 UTC
(In reply to Miro Hrončok from comment #12)
> $ rpm -qp --requires python3-pyvmomi-6.7.3-3.fc32.noarch.rpm 
> python(abi) = 3.8
> python3-requests
> python3-six
> rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(FileDigests) <= 4.6.0-1
> rpmlib(PartialHardlinkSets) <= 4.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> rpmlib(PayloadIsZstd) <= 5.4.18-1

Thanks. Then it seems to be a bug within build.log.


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