Project

Profile

Help

Issue #7394

closed

Can't list distribution trees with bindings

Added by ppicka over 4 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
API Bindings
Sprint:
Sprint 80
Quarter:

Description

Using python pulp_rpm bindings.

Initialized same way as in the tests:

dist_tree_api = ContentDistributionTreesApi(cls.client)

Other content as packages and comps content initialized same way works ok.

dist_tree_api.list()

fails

Traceback (most recent call last):
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/IPython/core/interactiveshell.py", line 3417, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-4-ad9fb754f7d6>", line 1, in <module>
    self.dist_tree_api.list()
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api/content_distribution_trees_api.py", line 174, in list
    return self.list_with_http_info(**kwargs)  # noqa: E501
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api/content_distribution_trees_api.py", line 260, in list_with_http_info
    return self.api_client.call_api(
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 349, in call_api
    return self.__call_api(resource_path, method,
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 193, in __call_api
    return_data = self.deserialize(response_data, response_type)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 265, in deserialize
    return self.__deserialize(data, response_type)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 304, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 640, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 281, in __deserialize
    return [self.__deserialize(sub_data, sub_kls)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 281, in <listcomp>
    return [self.__deserialize(sub_data, sub_kls)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 304, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 640, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 281, in __deserialize
    return [self.__deserialize(sub_data, sub_kls)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 281, in <listcomp>
    return [self.__deserialize(sub_data, sub_kls)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 304, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/api_client.py", line 642, in __deserialize_model
    instance = klass(**kwargs)
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/models/variant_response.py", line 85, in __init__
    self.source_packages = source_packages
  File "/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/client/pulp_rpm/models/variant_response.py", line 237, in source_packages
    raise ValueError("Invalid value for `source_packages`, must not be `None`")  # noqa: E501
ValueError: Invalid value for `source_packages`, must not be `None`

rpm_bindings.version '3.7.0.dev0' pulp_rpm.version '3.7.0.dev'

Actions #1

Updated by ttereshc over 4 years ago

  • Subject changed from As user I can list distribution trees with api to Can't list distribution trees with bindings
  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89
  • Triaged changed from No to Yes
  • Sprint set to Sprint 80
Actions #2

Updated by pulpbot over 4 years ago

  • Status changed from ASSIGNED to POST

Added by Fabricio Aguiar over 4 years ago

Revision 515057f6 | View on GitHub

Matched DistributionTree serializers with the models

https://pulp.plan.io/issues/7394 closes #7394

[nocoverage]

Actions #3

Updated by Anonymous over 4 years ago

  • Status changed from POST to MODIFIED

Added by Fabricio Aguiar over 4 years ago

Revision ee707508 | View on GitHub

Matched DistributionTree serializers with the models

https://pulp.plan.io/issues/7394 closes #7394

[nocoverage]

(cherry picked from commit 515057f61ebd4c4ef6e2d21c45608b940c3492e8)

Actions #4

Updated by fao89 over 4 years ago

  • Sprint/Milestone set to 3.6.2
Actions #5

Updated by pulpbot over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF