Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1696988 - Syncing Red Hat Enterprise Linux Atomic Host Trees x86_64 from CDN gives PLP0000: Too many branch HEADs.
Summary: Syncing Red Hat Enterprise Linux Atomic Host Trees x86_64 from CDN gives PLP0...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Released
Assignee: satellite6-bugs
QA Contact: Nikhil Kathole
URL:
Whiteboard:
: 1699997 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-06 20:51 UTC by Nikhil Kathole
Modified: 2019-10-07 17:17 UTC (History)
2 users (show)

Fixed In Version: pulp-ostree-1.3.1-1.el7sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-14 19:57:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nikhil Kathole 2019-04-06 20:51:54 UTC
Description of problem:

Syncing Red Hat Enterprise Linux Atomic Host Trees x86_64 from CDN gives PLP0000: Too many branch HEADs.

 {"exception"=>nil,
    "task_type"=>"pulp.server.managers.repo.publish.publish",
    "_href"=>"/pulp/api/v2/tasks/b1952179-97da-407f-be06-5cfa344a6677/",
    "task_id"=>"b1952179-97da-407f-be06-5cfa344a6677",
    "tags"=>
     ["pulp:repository:fb97ae0c-8a6c-4461-909f-1f175e267b23",
      "pulp:action:publish"],
    "finish_time"=>"2019-04-06T20:45:06Z",
    "_ns"=>"task_status",
    "start_time"=>"2019-04-06T20:45:05Z",
    "traceback"=>
     "Traceback (most recent call last):\n" +
     "  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 367, in trace_task\n" +
     "    R = retval = fun(*args, **kwargs)\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 529, in __call__\n" +
     "    return super(Task, self).__call__(*args, **kwargs)\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 107, in __call__\n" +
     "    return super(PulpTask, self).__call__(*args, **kwargs)\n" +
     "  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 622, in __protected_call__\n" +
     "    return self.run(*args, **kwargs)\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1110, in publish\n" +
     "    result = check_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1207, in check_publish\n" +
     "    result = _do_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1259, in _do_publish\n" +
     "    publish_report = publish_repo(transfer_repo, conduit, call_config)\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 737, in wrap_f\n" +
     "    return f(*args, **kwargs)\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp_ostree/plugins/distributors/web.py\", line 87, in publish_repo\n" +
     "    return self._publisher.process_lifecycle()\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 572, in process_lifecycle\n" +
     "    super(PluginStep, self).process_lifecycle()\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 163, in process_lifecycle\n" +
     "    step.process()\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 256, in process\n" +
     "    self._process_block()\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 303, in _process_block\n" +
     "    self.process_main()\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp_ostree/plugins/distributors/steps.py\", line 87, in process_main\n" +
     "    for unit in self._get_units():\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp_ostree/plugins/distributors/steps.py\", line 131, in _get_units\n" +
     "    head = self._sort(units)[0]\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp_ostree/plugins/distributors/steps.py\", line 207, in _sort\n" +
     "    parent = push(parent)\n" +
     "  File \"/usr/lib/python2.7/site-packages/pulp_ostree/plugins/distributors/steps.py\", line 182, in push\n" +
     "    raise ValueError('Too many branch HEADs.')\n" +
     "ValueError: Too many branch HEADs.\n",


Version-Release number of selected component (if applicable):
Satellite 6.5 snap 23


How reproducible: On upgraded instance only.


Steps to Reproduce:
1. Enable Red Hat Enterprise Linux Atomic Host Trees x86_64
2. Try to sync

Actual results:
Sync failed with Error : PLP0000: Too many branch HEADs.


Expected results: Successful sync.


Additional info:
On fresh install, it syncs successfully.

Comment 5 Nikhil Kathole 2019-04-06 20:56:48 UTC
# rpm -qa| grep ostree
ostree-2017.1-2.atomic.el7.x86_64
pulp-ostree-plugins-1.4.0-2.el7sat.noarch
python-pulp-ostree-common-1.4.0-2.el7sat.noarch

Comment 9 Dennis Kliban 2019-04-15 15:04:45 UTC
*** Bug 1699997 has been marked as a duplicate of this bug. ***

Comment 11 Nikhil Kathole 2019-04-22 14:42:23 UTC
VERIFIED

Version tested:
satellite 6.5 snap 25

No longer seen this issue.

Also, the test case in automation passed: https://github.com/SatelliteQE/robottelo/blob/master/tests/foreman/api/test_contentview.py#L1823

Comment 12 Bryan Kearney 2019-05-14 19:57:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2019:1222


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