Pulp: Issueshttps://pulp.plan.io/https://pulp.plan.io/favicon.ico2021-08-19T14:09:05ZPulp
Planio RPM Support - Task #9259 (CLOSED - DUPLICATE): workflow-docs should use pulp-cli instead of httpiehttps://pulp.plan.io/issues/92592021-08-19T14:09:05Zggainey
<p><strong>Ticket moved to GitHub</strong>: "pulp/pulp_rpm/2314":<a href="https://github.com/pulp/pulp_rpm/issues/2314" class="external">https://github.com/pulp/pulp_rpm/issues/2314</a></p>
<hr>
<p>Probably shouldn't do this unless/until <strong>all</strong> workflows are supported by pulp-cli commands - mixing pulp-cli and httpie is Very Confusing to the user.</p>
<p>Putting this up as a placeholder for docs-day</p> Migration Plugin - Issue #6935 (CLOSED - WONTFIX): Validation failure reports incorrect resources...https://pulp.plan.io/issues/69352020-06-09T12:05:08Zttereshcttereshc@redhat.com
<p><code>rpm_unsigned</code> repo exists, <code>drpm</code> does not.</p>
<p>Migration Plan:</p>
<pre><code class="json syntaxhl" data-language="json"><span class="p">{</span><span class="w"> </span><span class="nl">"plan"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w">
</span><span class="nl">"plugins"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w">
</span><span class="p">{</span><span class="w">
</span><span class="nl">"type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"rpm"</span><span class="p">,</span><span class="w">
</span><span class="nl">"repositories"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w">
</span><span class="p">{</span><span class="w">
</span><span class="nl">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"rpm_unsigned"</span><span class="p">,</span><span class="w">
</span><span class="nl">"repository_versions"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w">
</span><span class="p">{</span><span class="w">
</span><span class="nl">"pulp2_repository_id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"rpm_unsigned"</span><span class="p">,</span><span class="w">
</span><span class="nl">"pulp2_distributor_repository_ids"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="s2">"rpm_unsigned"</span><span class="p">,</span><span class="w"> </span><span class="s2">"drpm"</span><span class="w"> </span><span class="p">]</span><span class="w">
</span><span class="p">}</span><span class="w">
</span><span class="p">]</span><span class="w">
</span><span class="p">}</span><span class="w">
</span><span class="p">]</span><span class="w">
</span><span class="p">}</span><span class="w">
</span><span class="p">]</span><span class="w">
</span><span class="p">}}</span><span class="w">
</span></code></pre>
<p>Result (see the description, it should have onlt <code>drpm</code> there):</p>
<pre><code>$ http :/pulp/api/v3/tasks/7bf152e9-971e-48c4-82a7-9bd8a0ce80fe/
HTTP/1.1 200 OK
Allow: GET, PATCH, DELETE, HEAD, OPTIONS
Connection: Keep-Alive
Content-Length: 1250
Content-Type: application/json
Date: Tue, 09 Jun 2020 10:48:03 GMT
Keep-Alive: timeout=5, max=10000
Server: gunicorn/20.0.4
Vary: Accept,Cookie
X-Frame-Options: SAMEORIGIN
{
"child_tasks": [],
"created_resources": [],
"error": {
"description": "Validation failed: resources missing {'repositories_missing_distributors': ['drpm', 'rpm_unsigned']}",
"traceback": " File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py\", line 886, in perform_job\n rv = job.perform()\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 664, in perform\n self._result = self._execute()\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 670, in _execute\n return self.func(*self.args, **self.kwargs)\n File \"/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/tasks/migrate.py\", line 102, in migrate_from_pulp2\n \"Validation failed: resources missing {}\".format(missing_resources)\n"
},
"finished_at": "2020-06-09T10:47:56.137359Z",
"name": "pulp_2to3_migration.app.tasks.migrate.migrate_from_pulp2",
"parent_task": null,
"progress_reports": [],
"pulp_created": "2020-06-09T10:47:55.933361Z",
"pulp_href": "/pulp/api/v3/tasks/7bf152e9-971e-48c4-82a7-9bd8a0ce80fe/",
"reserved_resources_record": [
"pulp_2to3_migration"
],
"started_at": "2020-06-09T10:47:56.090277Z",
"state": "failed",
"task_group": null,
"worker": "/pulp/api/v3/workers/1b7a3c5f-86f6-4da7-922f-2a61cf6eac56/"
}
</code></pre> Pulp - Task #6588 (CLOSED - WONTFIX): Verify our systemd unit files in pulp_installer CIhttps://pulp.plan.io/issues/65882020-04-28T14:02:35Zmdepaulo@redhat.com
<p>We should run:</p>
<p><code>systemd-analyze verify /path/to/each/unit_file.service</code></p>
<p><a href="https://github.com/systemd/systemd/issues/3677#issuecomment-552143097" class="external">https://github.com/systemd/systemd/issues/3677#issuecomment-552143097</a></p>
<p>However, it will complain about other unit files. Perhaps the dependencies? So we'd have to parse the output.</p> Pulp - Issue #6243 (CLOSED - CURRENTRELEASE): When pip_version_specifier is set to null, broken c...https://pulp.plan.io/issues/62432020-02-28T18:40:00Zttereshcttereshc@redhat.com
<p>One can specify a pip_version_specifier to point to a specific plugin release.
There is also a pulpcore_pip_version_specifier which points to a specific pulpcore release.</p>
<p>On the master branch it makes sense to unset those and have them set only for releases.</p>
<p>Their behaviour is inconsistent when they are unset and might lead to a broken config.
To use the latest PyPI release, one can set pulpcore_pip_version_specifier to 'null'.
To use the latest PyPI release for plugins, one must remove it from the config, because setting it to 'null' will generate a broken config, it adds 'None' to the plugin name.</p>
<pre><code class="diff syntaxhl" data-language="diff"> - pulp-2to3-migration-${TAG}:
image_name: pulp-2to3-migration
tag: $TAG
<span class="gd">- pulpcore: pulpcore~=3.0.0
</span><span class="gi">+ pulpcore: pulpcore
</span> plugins:
- ./pulp-2to3-migration
<span class="gd">- - pulp_file~=0.1.0
- - pulp_container~=1.0.0
</span><span class="gi">+ - pulp_fileNone
+ - pulp_containerNone
+ - pulp_rpmNone
</span></code></pre> Pulp - Task #3930 (CLOSED - CURRENTRELEASE): Validate commit messageshttps://pulp.plan.io/issues/39302018-08-23T15:27:20Zdaviddavis
<a name="The-Problem"></a>
<h2 >The Problem<a href="#The-Problem" class="wiki-anchor">¶</a></h2>
<p>Two problems we have dealt with recently:</p>
<ul>
<li>A commit was attached to an issue that was already released. Thus the commit was left out of the build it was intended for.</li>
<li>A commit for an issue got merged that was not attached to the issue. This commit was also left out of a build.</li>
</ul>
<a name="Solution"></a>
<h2 >Solution<a href="#Solution" class="wiki-anchor">¶</a></h2>
<p>The solution we'd like to propose is to validate that each commit message is:</p>
<ul>
<li>attached to an issue</li>
<li>the issue is in the correct state (NEW, ASSIGNED, POST, or MODIFIED)</li>
</ul>
<p>We discussed that this should be non-blocking as sometimes commits for small items (fixing typos) don't need an issue. However, this is tricky as Travis can only pass/fail PRs.</p>
<p>I'd propose that commit messages that aren't attached to issues have the tag "#noissue" in them. This would exclude them from this validation.</p> Python Support - Issue #3429 (CLOSED - NOTABUG): Use the field "pulpcore.app.fields.JSONField" pr...https://pulp.plan.io/issues/34292018-03-05T19:27:26Zdalleydalley@redhat.com
<p>The field "projects" on the PythonImporter model, and "requires_dist", "provides_dist", "obsoletes_dist", and "requires_external" on the PythonPackageContent model currently use TextFields to store JSON.</p>
<p>Pulpcore has created it's own JSON field which uses normal text fields on the backend. We should use this, and we should these fields as JSON instead of as strings.</p> Pulp - Issue #3095 (CLOSED - WONTFIX): Unable to cancel pending unstarted taskshttps://pulp.plan.io/issues/30952017-10-23T21:46:31ZAnonymous
<p>1. Created some consumers<br>
2. Created some consumer groups for patching<br>
3. Deleted some consumers<br>
4. Run some package group updates<br>
5. Task lists look Unstarted.</p>
<p>I am not able to cancel the tasks by running</p>
<p>pulp-admin tasks cancel --task-id <task-id></p>
<p>Is there a workaround to remove those orphan tasks?</p> Pulp - Refactor #2963 (CLOSED - CURRENTRELEASE): Use the new lower case celery config settingshttps://pulp.plan.io/issues/29632017-08-08T14:28:15Zdaviddavis
<p>Celery 4 introduces new config settings with better naming. More info:</p>
<p><a href="http://docs.celeryproject.org/en/latest/userguide/configuration.html#new-lowercase-settings" class="external">http://docs.celeryproject.org/en/latest/userguide/configuration.html#new-lowercase-settings</a></p> Python Support - Issue #2838 (CLOSED - WONTFIX): Updating/Adding a sync schedule does not trigger...https://pulp.plan.io/issues/28382017-06-24T04:42:30Zmikea
<p>In the RPM/Yum plugin whenever you add a sync schedule without a start time in the future (for example, P1D) it starts a sync task immediately.</p>
<p>The Python plugin does not do this. It should be consistent.</p> Pulp - Task #2138 (CLOSED - WONTFIX): Tweet Stuff!https://pulp.plan.io/issues/21382016-08-08T14:07:25Zsemyerssean.myers@redhat.com
<p>We have a twitter account now, and should tweet stuff!</p>
<p><a href="https://twitter.com/pulpdevs" class="external">https://twitter.com/pulpdevs</a></p> RPM Support - Issue #422 (CLOSED - WONTFIX): Upload resume fails ungracefully if the file to be u...https://pulp.plan.io/issues/4222015-02-28T22:05:27Zrbarlow
<p>If you start an upload, interrupt it, remove the file you were uploading, and then remove it, pulp-admin will fail ungracefully:</p>
<p>% pulp-admin rpm repo uploads resume<br>
<span><del>--------------------------------------------------------------------</del></span><br>
Upload Requests<br>
<span><del>--------------------------------------------------------------------</del></span></p>
<p>Select one or more uploads to resume:<br>
- 1 : gofer-system-1.0.5-1.el7.noarch.rpm<br>
- 2 : python-gofer-amqplib-1.0.5-1.el7.noarch.rpm<br>
- 3 : python-amqp-doc-1.4.4-1.el7.noarch.rpm<br>
- 4 : d8b6b437-6f50-46ed-a795-f896141de377<br>
- 5 : ruby-gofer-1.0.5-1.el7.noarch.rpm<br>
- 6 : python-gofer-1.0.5-1.el7.noarch.rpm<br>
- 7 : d8b6b437-6f50-46ed-a795-f896141de377<br>
- 8 : d8b6b437-6f50-46ed-a795-f896141de377<br>
- 9 : d8b6b437-6f50-46ed-a795-f896141de377<br>
- 10: python-semantic-version-2.2.0-3.el7.noarch.rpm<br>
- 11: d8b6b437-6f50-46ed-a795-f896141de377<br>
- 12: python-kombu-3.0.13-1.pulp.el7.noarch.rpm<br>
- 13: python-amqp-1.4.4-1.el7.noarch.rpm<br>
- 14: d8b6b437-6f50-46ed-a795-f896141de377<br>
- 15: python-simplejson-3.2.0-1.el7.x86_64.rpm<br>
- 16: gofer-virt-1.0.5-1.el7.noarch.rpm<br>
- 17: python-celery-3.1.9-1.el7.noarch.rpm<br>
- 18: d8b6b437-6f50-46ed-a795-f896141de377<br>
- 19: gofer-package-1.0.5-1.el7.noarch.rpm<br>
- 20: python-nectar-1.2.1-1.el7.noarch.rpm<br>
- 21: d8b6b437-6f50-46ed-a795-f896141de377<br>
- 22: d8b6b437-6f50-46ed-a795-f896141de377<br>
- 23: python-isodate-0.5.0-1.pulp.el7.noarch.rpm<br>
- 24: python-requests-2.2.1-1.el7.noarch.rpm<br>
- 25: gofer-1.0.5-1.el7.noarch.rpm<br>
- 26: python-gofer-qpid-1.0.5-1.el7.noarch.rpm<br>
- 27: d8b6b437-6f50-46ed-a795-f896141de377<br>
- 28: python-requests-2.2.1-1.git.0.3e8cef0.el7.noarch.rpm<br>
- 29: d8b6b437-6f50-46ed-a795-f896141de377<br>
Enter value (1-29) to toggle selection, 'c' to confirm selections, or '?' for<br>
more commands: 28</p>
<p>Select one or more uploads to resume:<br>
- 1 : gofer-system-1.0.5-1.el7.noarch.rpm<br>
- 2 : python-gofer-amqplib-1.0.5-1.el7.noarch.rpm<br>
- 3 : python-amqp-doc-1.4.4-1.el7.noarch.rpm<br>
- 4 : d8b6b437-6f50-46ed-a795-f896141de377<br>
- 5 : ruby-gofer-1.0.5-1.el7.noarch.rpm<br>
- 6 : python-gofer-1.0.5-1.el7.noarch.rpm<br>
- 7 : d8b6b437-6f50-46ed-a795-f896141de377<br>
- 8 : d8b6b437-6f50-46ed-a795-f896141de377<br>
- 9 : d8b6b437-6f50-46ed-a795-f896141de377<br>
- 10: python-semantic-version-2.2.0-3.el7.noarch.rpm<br>
- 11: d8b6b437-6f50-46ed-a795-f896141de377<br>
- 12: python-kombu-3.0.13-1.pulp.el7.noarch.rpm<br>
- 13: python-amqp-1.4.4-1.el7.noarch.rpm<br>
- 14: d8b6b437-6f50-46ed-a795-f896141de377<br>
- 15: python-simplejson-3.2.0-1.el7.x86_64.rpm<br>
- 16: gofer-virt-1.0.5-1.el7.noarch.rpm<br>
- 17: python-celery-3.1.9-1.el7.noarch.rpm<br>
- 18: d8b6b437-6f50-46ed-a795-f896141de377<br>
- 19: gofer-package-1.0.5-1.el7.noarch.rpm<br>
- 20: python-nectar-1.2.1-1.el7.noarch.rpm<br>
- 21: d8b6b437-6f50-46ed-a795-f896141de377<br>
- 22: d8b6b437-6f50-46ed-a795-f896141de377<br>
- 23: python-isodate-0.5.0-1.pulp.el7.noarch.rpm<br>
- 24: python-requests-2.2.1-1.el7.noarch.rpm<br>
- 25: gofer-1.0.5-1.el7.noarch.rpm<br>
- 26: python-gofer-qpid-1.0.5-1.el7.noarch.rpm<br>
- 27: d8b6b437-6f50-46ed-a795-f896141de377<br>
x 28: python-requests-2.2.1-1.git.0.3e8cef0.el7.noarch.rpm<br>
- 29: d8b6b437-6f50-46ed-a795-f896141de377<br>
Enter value (1-29) to toggle selection, 'c' to confirm selections, or '?' for<br>
more commands: c</p>
<p>Resuming upload for: python-requests-2.2.1-1.git.0.3e8cef0.el7.noarch.rpm</p>
<p>Starting upload of selected units. If this process is stopped through ctrl+c,<br>
the uploads will be paused and may be resumed later using the resume command or<br>
cancelled entirely using the cancel command.</p>
<p>Uploading: python-requests-2.2.1-1.git.0.3e8cef0.el7.noarch.rpm<br>
An unexpected error has occurred. More information can be found in the client<br>
log file ~/.pulp/admin.log.</p>
<p>From the admin.log:</p>
<p>2014-04-30 15:14:32,826 - ERROR - Client-side exception occurred<br>
Traceback (most recent call last):<br>
File "/home/rbarlow/devel/pulp/client_lib/pulp/client/commands/repo/upload.py", line 149, in perform_upload<br>
upload_manager.upload(upload_id, progress_callback)<br>
File "/home/rbarlow/devel/pulp/client_lib/pulp/client/upload/manager.py", line 247, in upload<br>
source_file_size = os.path.getsize(tracker_file.source_filename)<br>
File "/usr/lib64/python2.7/genericpath.py", line 49, in getsize<br>
return os.stat(filename).st_size<br>
OSError: [Errno 2] No such file or directory: '/tmp/tito/noarch/python-requests-2.2.1-1.git.0.3e8cef0.el7.noarch.rpm'</p>
<p>+ This bug was cloned from <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1093169" class="external">Bugzilla Bug #1093169</a> +</p> Pulp - Issue #419 (CLOSED - WONTFIX): Unassociation of units from non existent repo should return...https://pulp.plan.io/issues/4192015-02-28T22:05:11Zipanova@redhat.comipanova@redhat.com
<p>Description of problem:<br>
<a href="https://pulp-dev-guide.readthedocs.org/en/latest/integration/rest-api/content/associate.html#unassociating-content-units-from-a-repository" class="external">https://pulp-dev-guide.readthedocs.org/en/latest/integration/rest-api/content/associate.html#unassociating-content-units-from-a-repository</a></p>
<p>Unassociation of content units from repo that does not exist should return 404(like in case of unit association to non existant repo) and not call report with task creation.</p>
<p>$ curl <del>H "Accept: application/json" -X POST -k -u admin:admin -d '{"criteria": {"type_ids": ["rpm"], "filters": {"unit": {"name": "cat"}}}}' '<a href="https://example.com/pulp/api/v2/repositories/invalidrepo/actions/unassociate/'%7C" class="external">https://example.com/pulp/api/v2/repositories/invalidrepo/actions/unassociate/'|</a> python -m json.tool<br>
% Total % Received % Xferd Average Speed Time Time Time Current<br>
Dload Upload Total Spent Left Speed<br>
100 245 100 172 100 73 110 46 0:00:01 0:00:01 -</del>:--:-- 110<br>
{<br>
"error": null,<br>
"result": null,<br>
"spawned_tasks": [<br>
{<br>
"_href": "/pulp/api/v2/tasks/610fff11-3076-4528-83a4-fa150ea66239/",<br>
"task_id": "610fff11-3076-4528-83a4-fa150ea66239"<br>
}<br>
]<br>
}</p>
<p>Compare with unit association to non existent repo:</p>
<p>$ curl <del>H "Accept: application/json" -X POST -k -u admin:admin -d '{"source_repo_id": "xxx", "override_config": {}, "criteria": {"type_ids": ["rpm"], "filters": {"unit": {}}}}' '<a href="https://example.com/pulp/api/v2/repositories/invalidrepo/actions/associate/'%7Cpython" class="external">https://example.com/pulp/api/v2/repositories/invalidrepo/actions/associate/'|python</a> -m json.tool<br>
% Total % Received % Xferd Average Speed Time Time Time Current<br>
Dload Upload Total Spent Left Speed<br>
100 526 100 418 100 108 459 118 -</del>:--:-- --:--:-- --:--:-- 459<br>
{<br>
"_href": "/pulp/api/v2/repositories/invalidrepo/actions/associate/",<br>
"error": {<br>
"code": "PLP0009",<br>
"data": {<br>
"resources": {<br>
"repo_id": "invalidrepo"<br>
}<br>
},<br>
"description": "Missing resource(s): repo_id=invalidrepo",<br>
"sub_errors": []<br>
},<br>
"error_message": "Missing resource(s): repo_id=invalidrepo",<br>
"exception": null,<br>
"http_request_method": "POST",<br>
"http_status": 404,<br>
"resources": {<br>
"repo_id": "invalidrepo"<br>
},<br>
"traceback": null</p>
<p>Version-Release number of selected component (if applicable):</p>
<p>How reproducible:</p>
<p>Steps to Reproduce:<br>
1.<br>
2.<br>
3.</p>
<p>Actual results:</p>
<p>Expected results:</p>
<p>Additional info:</p>
<p>+ This bug was cloned from <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1092417" class="external">Bugzilla Bug #1092417</a> +</p> Pulp - Issue #416 (CLOSED - WONTFIX): unit removal cli help needs to updatedhttps://pulp.plan.io/issues/4162015-02-28T22:04:54Zpthomas@redhat.com
<p>Description of problem:</p>
<p>Now that unit removal is supported for synced repos as well, the cli help should generalize it as well.</p>
<p>[root@hp-dl380pgen8-02-vm-1 ~]# pulp-admin rpm repo<br>
Usage: pulp-admin [SUB_SECTION, ..] COMMAND<br>
Description: repository lifecycle commands</p>
<p>Available Sections:</p>
<pre><code>remove - remove copied or uploaded modules from a repository
</code></pre>
<p>[root@hp-dl380pgen8-02-vm-1 ~]# pulp-admin iso repo<br>
Usage: pulp-admin [SUB_SECTION, ..] COMMAND<br>
Description: repository lifecycle commands</p>
<p>Available Sections:<br>
publish - run publish tasks<br>
sync - run or schedule sync tasks<br>
uploads - upload ISOs into a repository</p>
<p>Available Commands:<br>
remove - remove copied or uploaded units from a repository<br>
update - changes metadata on an existing repository</p>
<p>Version-Release number of selected component (if applicable):</p>
<p>How reproducible:</p>
<p>Steps to Reproduce:<br>
1.<br>
2.<br>
3.</p>
<p>Actual results:</p>
<p>Expected results:</p>
<p>Additional info:</p>
<p>+ This bug was cloned from <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1087591" class="external">Bugzilla Bug #1087591</a> +</p> Pulp - Issue #365 (CLOSED - WONTFIX): wrong value in repoid when uninstalling using pulp-adminhttps://pulp.plan.io/issues/3652015-02-28T21:57:51Zpthomas@redhat.com
<p>Description of problem:</p>
<p>If you use pulp-admin to unistall, the repoid in the report has the value as installed</p>
<p>Version-Release number of selected component (if applicable):</p>
<p>[root@hp-dl380pgen8-02-vm-16 ~]# rpm -q pulp-server<br>
pulp-server-2.2.0-0.25.beta.fc19.noarch<br>
[root@hp-dl380pgen8-02-vm-16 ~]#</p>
<p>How reproducible:</p>
<p>Steps to Reproduce:<br>
[root@hp-dl380pgen8-02-vm-16 ~]# pulp-admin rpm consumer package uninstall run --consumer-id consumer1 --name zsh<br>
Uninstall task created with id [ 97d1c884-6e74-4c88-a0ce-cb7291edb9d0 ]</p>
<p>This command may be exited via ctrl+c without affecting the request.</p>
<p>[-]<br>
Waiting to begin...<br>
Refresh Repository Metadata [ OK ]<br>
Downloading Packages [ OK ]<br>
Running Test Transaction [ OK ]<br>
Running Transaction [ OK ]</p>
<p>Uninstall Completed</p>
<p><span><del>--------------------------------------------------------------------</del></span><br>
Uninstalled<br>
<span><del>--------------------------------------------------------------------</del></span></p>
<p>Name: zsh<br>
Version: 4.3.10<br>
Arch: x86_64<br>
Repoid: installed</p>
<p>[root@hp-dl380pgen8-02-vm-16 ~]#</p>
<p>Actual results:</p>
<p>Expected results:</p>
<p>Additional info:</p>
<p>+ This bug was cloned from <a href="https://bugzilla.redhat.com/show_bug.cgi?id=997411" class="external">Bugzilla Bug #997411</a> +</p> Pulp - Issue #347 (CLOSED - WONTFIX): user/role delete successfull for the user that is logged inhttps://pulp.plan.io/issues/3472015-02-28T21:54:42Zpthomas@redhat.com
<p>Description of problem:</p>
<p>logged in user or the role that the user belongs to can be deleted</p>
<p>Version-Release number of selected component (if applicable):<br>
[root@cloud-qe-8 ~]# rpm -q pulp-server<br>
pulp-server-2.1.0-0.26.beta.noarch<br>
[root@cloud-qe-8 ~]#</p>
<p>How reproducible:</p>
<p>Steps to Reproduce:</p>
<pre><code>1. Run role create for a new role
2. Give the role appropriate permissions
3. Create a a new user
4. Add the user to the role
5.Login as the above role
6. Run role delete on the role your are logged in as
</code></pre>
<p>This also true for user</p>
<p>[root@cloud-qe-8 ~]# pulp-admin auth role create --role-id role1<br>
Role [role1] successfully created</p>
<p>[root@cloud-qe-8 ~]# pulp-admin auth permission grant --resource / --role role1 -o create -o read -o update -o delete -o execute<br>
Permissions [/ : ['CREATE', 'READ', 'UPDATE', 'DELETE', 'EXECUTE']] successfully<br>
granted to role [role1]</p>
<p>[root@cloud-qe-8 ~]# pulp-admin auth role user add --role-id role1 --login user-1<br>
User [user-1] successfully added to role [role1]</p>
<p>[root@cloud-qe-8 ~]# pulp-admin login -u user-1 -p redhat<br>
Successfully logged in. Session certificate will expire at Apr 10 14:56:29 2013<br>
GMT.</p>
<p>[root@cloud-qe-8 ~]# pulp-admin auth user delete --login user-1<br>
User [user-1] successfully deleted</p>
<p>Actual results:</p>
<p>Expected results:</p>
<p>Additional info:</p>
<p>+ This bug was cloned from <a href="https://bugzilla.redhat.com/show_bug.cgi?id=947937" class="external">Bugzilla Bug #947937</a> +</p>