https://pulp.plan.io/https://pulp.plan.io/favicon.ico2016-08-09T19:52:04ZPulpPulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=135702016-08-09T19:52:04ZIchimonji10jerebear@protonmail.com
<ul></ul><p><a href="https://github.com/PulpQE/pulp-smash/pull/351" class="external">https://github.com/PulpQE/pulp-smash/pull/351</a></p> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=135832016-08-10T14:17:26Zjcline@redhat.comjcline@redhat.com
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>ASSIGNED</i></li><li><strong>Assignee</strong> set to <i>jcline@redhat.com</i></li></ul> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=135842016-08-10T15:27:46Zjcline@redhat.comjcline@redhat.com
<ul><li><strong>Status</strong> changed from <i>ASSIGNED</i> to <i>POST</i></li></ul><p><a href="https://github.com/pulp/pulp/pull/2692" class="external">https://github.com/pulp/pulp/pull/2692</a></p> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=135902016-08-10T16:20:10ZAnonymous
<ul><li><strong>Status</strong> changed from <i>POST</i> to <i>MODIFIED</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Instantiate the PulpHTTPAdapter fixes #2144" href="https://pulp.plan.io/projects/pulp/repository/pulp/revisions/0856178a950e18096fc803acb01e9de764c87e98">pulp:pulp|0856178a950e18096fc803acb01e9de764c87e98</a>.</p> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=135912016-08-10T16:23:07Zsemyerssean.myers@redhat.com
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>Urgent</i></li><li><strong>Platform Release</strong> set to <i>2.8.7</i></li><li><strong>Triaged</strong> changed from <i>No</i> to <i>Yes</i></li></ul><p>This will be included in 2.8.7. I'm also including this in the 2.9.2 hotfix, and it will be automatically included in the next 2.10 beta.</p> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=137422016-08-11T19:18:39Zsemyerssean.myers@redhat.com
<ul><li><strong>Project</strong> changed from <i>Nectar</i> to <i>Pulp</i></li></ul> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=137772016-08-15T13:54:18Zsemyerssean.myers@redhat.com
<ul><li><strong>Status</strong> changed from <i>MODIFIED</i> to <i>5</i></li></ul> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=137832016-08-15T17:49:00ZIchimonji10jerebear@protonmail.com
<ul><li><strong>Status</strong> changed from <i>5</i> to <i>ASSIGNED</i></li></ul><p>Issue is still present in a current build of 2.8.7. Here's the command used: (The test also fails for the other two test cases in the module.)</p>
<pre><code>python -m unittest2 pulp_smash.tests.rpm.api_v2.test_download_policies.BackgroundTestCase
</code></pre>
<p>Here's some entries from journalctl:</p>
<pre><code>Aug 15 19:43:40 example.com pulp_streamer[14756]: nectar.downloaders.threaded:ERROR: (14756-73984) unbound method send() must be called with PulpHTTPAdapter instance as first argument (got PreparedRequest instance instead)
Aug 15 19:43:40 example.com pulp_streamer[14756]: nectar.downloaders.threaded:ERROR: (14756-73984) Traceback (most recent call last):
Aug 15 19:43:40 example.com pulp_streamer[14756]: nectar.downloaders.threaded:ERROR: (14756-73984) File "/usr/lib/python2.7/site-packages/nectar/downloaders/threaded.py", line 221, in _fetch
Aug 15 19:43:40 example.com pulp_streamer[14756]: nectar.downloaders.threaded:ERROR: (14756-73984) self.config.read_timeout))
Aug 15 19:43:40 example.com pulp_streamer[14756]: nectar.downloaders.threaded:ERROR: (14756-73984) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 476, in get
Aug 15 19:43:40 example.com pulp_streamer[14756]: nectar.downloaders.threaded:ERROR: (14756-73984) return self.request('GET', url, **kwargs)
Aug 15 19:43:40 example.com pulp_streamer[14756]: nectar.downloaders.threaded:ERROR: (14756-73984) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 464, in request
Aug 15 19:43:40 example.com pulp_streamer[14756]: nectar.downloaders.threaded:ERROR: (14756-73984) resp = self.send(prep, **send_kwargs)
Aug 15 19:43:40 example.com pulp_streamer[14756]: nectar.downloaders.threaded:ERROR: (14756-73984) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
Aug 15 19:43:40 example.com pulp_streamer[14756]: nectar.downloaders.threaded:ERROR: (14756-73984) r = adapter.send(request, **kwargs)
Aug 15 19:43:40 example.com pulp_streamer[14756]: nectar.downloaders.threaded:ERROR: (14756-73984) TypeError: unbound method send() must be called with PulpHTTPAdapter instance as first argument (got PreparedRequest instance instead)
Aug 15 19:43:40 example.com pulp_streamer[14756]: [-] 127.0.0.1 - - [15/Aug/2016:17:43:39 +0000] "GET /var/lib/pulp/content/units/rpm/62/7c493152b5de3cfccb681fb98b0f56089425db3030328767c0cc031b2235b3/bear-4.1-1.noarch.rpm HTTP/1.1" 503 - "-" "python-requests/2.11.0"
</code></pre>
<p>Here's some relevant package manager information:</p>
<pre><code>$ ssh $hostname rpm -qa | grep -i nectar
python-nectar-1.5.2-1.el7.noarch
$ ssh $hostname rpm -qa | sort | grep -i pulp
pulp-admin-client-2.8.7-0.3.beta.el7.noarch
pulp-docker-admin-extensions-2.0.3-1.el7.noarch
pulp-docker-plugins-2.0.3-1.el7.noarch
pulp-ostree-admin-extensions-1.1.3-1.el7.noarch
pulp-ostree-plugins-1.1.3-1.el7.noarch
pulp-puppet-admin-extensions-2.8.7-0.2.beta.el7.noarch
pulp-puppet-plugins-2.8.7-0.2.beta.el7.noarch
pulp-python-admin-extensions-1.1.3-1.el7.noarch
pulp-python-plugins-1.1.3-1.el7.noarch
pulp-rpm-admin-extensions-2.8.7-0.2.beta.el7.noarch
pulp-rpm-plugins-2.8.7-0.2.beta.el7.noarch
pulp-selinux-2.8.7-0.3.beta.el7.noarch
pulp-server-2.8.7-0.3.beta.el7.noarch
python-isodate-0.5.0-4.pulp.el7.noarch
python-kombu-3.0.33-6.pulp.el7.noarch
python-pulp-bindings-2.8.7-0.3.beta.el7.noarch
python-pulp-client-lib-2.8.7-0.3.beta.el7.noarch
python-pulp-common-2.8.7-0.3.beta.el7.noarch
python-pulp-docker-common-2.0.3-1.el7.noarch
python-pulp-oid_validation-2.8.7-0.3.beta.el7.noarch
python-pulp-ostree-common-1.1.3-1.el7.noarch
python-pulp-puppet-common-2.8.7-0.2.beta.el7.noarch
python-pulp-python-common-1.1.3-1.el7.noarch
python-pulp-repoauth-2.8.7-0.3.beta.el7.noarch
python-pulp-rpm-common-2.8.7-0.2.beta.el7.noarch
python-pulp-streamer-2.8.7-0.3.beta.el7.noarch
</code></pre> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=138012016-08-15T20:14:18Zsemyerssean.myers@redhat.com
<ul></ul><p>I did a manual install and smash on f23 and could not reproduce the failure.</p>
<pre><code>$ python -m unittest2 pulp_smash.tests.rpm.api_v2.test_download_policies.BackgroundTestCase
....
----------------------------------------------------------------------
Ran 4 tests in 31.083s
OK
</code></pre>
<pre><code>$ rpm -qa |grep nectar
python-nectar-1.5.2-1.fc23.noarch
$ rpm -qa |grep pulp|sort
pulp-admin-client-2.8.7-0.3.beta.fc23.noarch
pulp-docker-admin-extensions-2.0.3-1.fc23.noarch
pulp-docker-plugins-2.0.3-1.fc23.noarch
pulp-puppet-admin-extensions-2.8.7-0.2.beta.fc23.noarch
pulp-puppet-plugins-2.8.7-0.2.beta.fc23.noarch
pulp-rpm-admin-extensions-2.8.7-0.2.beta.fc23.noarch
pulp-rpm-plugins-2.8.7-0.2.beta.fc23.noarch
pulp-selinux-2.8.7-0.3.beta.fc23.noarch
pulp-server-2.8.7-0.3.beta.fc23.noarch
python-kombu-3.0.33-5.pulp.fc23.noarch
python-pulp-bindings-2.8.7-0.3.beta.fc23.noarch
python-pulp-client-lib-2.8.7-0.3.beta.fc23.noarch
python-pulp-common-2.8.7-0.3.beta.fc23.noarch
python-pulp-docker-common-2.0.3-1.fc23.noarch
python-pulp-oid_validation-2.8.7-0.3.beta.fc23.noarch
python-pulp-puppet-common-2.8.7-0.2.beta.fc23.noarch
python-pulp-repoauth-2.8.7-0.3.beta.fc23.noarch
python-pulp-rpm-common-2.8.7-0.2.beta.fc23.noarch
python-pulp-streamer-2.8.7-0.3.beta.fc23.noarch
</code></pre>
<p>Here's a package diff with the dist and arches stripped, you can see that I don't have ostree or python plugins installed, and the python-isodate package comes straight out of fedora:</p>
<pre><code>$ diff -u el7 f23
--- el7 2016-08-15 16:03:12.229475638 -0400
+++ f23 2016-08-15 16:03:35.483611393 -0400
@@ -2,26 +2,19 @@
pulp-admin-client-2.8.7-0.3.beta
pulp-docker-admin-extensions-2.0.3-1
pulp-docker-plugins-2.0.3-1
-pulp-ostree-admin-extensions-1.1.3-1
-pulp-ostree-plugins-1.1.3-1
pulp-puppet-admin-extensions-2.8.7-0.2.beta
pulp-puppet-plugins-2.8.7-0.2.beta
-pulp-python-admin-extensions-1.1.3-1
-pulp-python-plugins-1.1.3-1
pulp-rpm-admin-extensions-2.8.7-0.2.beta
pulp-rpm-plugins-2.8.7-0.2.beta
pulp-selinux-2.8.7-0.3.beta
pulp-server-2.8.7-0.3.beta
-python-isodate-0.5.0-4.pulp
python-kombu-3.0.33-6.pulp
python-pulp-bindings-2.8.7-0.3.beta
python-pulp-client-lib-2.8.7-0.3.beta
python-pulp-common-2.8.7-0.3.beta
python-pulp-docker-common-2.0.3-1
python-pulp-oid_validation-2.8.7-0.3.beta
-python-pulp-ostree-common-1.1.3-1
python-pulp-puppet-common-2.8.7-0.2.beta
-python-pulp-python-common-1.1.3-1
python-pulp-repoauth-2.8.7-0.3.beta
python-pulp-rpm-common-2.8.7-0.2.beta
python-pulp-streamer-2.8.7-0.3.beta
</code></pre>
<p>I doubt that the difference in platform explains the different results, but am at a loss as to what else might be causing it.</p> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=138042016-08-15T20:30:37Zsemyerssean.myers@redhat.com
<ul></ul><p>I unpacked the el7 rpm specifically, and the fix for this issue is applied. Here's line 150 of usr/lib/python2.7/site-packages/pulp/streamer/server.py in the RPM:</p>
<pre><code> self.session.mount('https://', pulp_adapters.PulpHTTPAdapter())
</code></pre> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=138162016-08-16T13:17:26Zelyezererezende@redhat.com
<ul></ul><p>I have commented the Pulp Smash lines that was skipping the tests and ran them:</p>
<pre><code>$ py.test pulp_smash/tests/rpm/api_v2/test_download_policies.py::BackgroundTestCase
========================== test session starts ===========================
platform linux -- Python 3.4.3, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /home/elyezer/code/pulp-smash, inifile:
collected 4 items
pulp_smash/tests/rpm/api_v2/test_download_policies.py ....
======================= 4 passed in 262.51 seconds =======================
</code></pre>
<p>All succeeded on the following Pulp packages on RHEL 7:</p>
<pre><code># rpm -qa | grep pulp | sort
pulp-admin-client-2.8.7-0.3.beta.el7.noarch
pulp-docker-admin-extensions-2.0.3-1.el7.noarch
pulp-docker-plugins-2.0.3-1.el7.noarch
pulp-ostree-admin-extensions-1.1.3-1.el7.noarch
pulp-ostree-plugins-1.1.3-1.el7.noarch
pulp-puppet-admin-extensions-2.8.7-0.2.beta.el7.noarch
pulp-puppet-plugins-2.8.7-0.2.beta.el7.noarch
pulp-python-admin-extensions-1.1.3-1.el7.noarch
pulp-python-plugins-1.1.3-1.el7.noarch
pulp-rpm-admin-extensions-2.8.7-0.2.beta.el7.noarch
pulp-rpm-plugins-2.8.7-0.2.beta.el7.noarch
pulp-selinux-2.8.7-0.3.beta.el7.noarch
pulp-server-2.8.7-0.3.beta.el7.noarch
python-isodate-0.5.0-4.pulp.el7.noarch
python-kombu-3.0.33-6.pulp.el7.noarch
python-pulp-bindings-2.8.7-0.3.beta.el7.noarch
python-pulp-client-lib-2.8.7-0.3.beta.el7.noarch
python-pulp-common-2.8.7-0.3.beta.el7.noarch
python-pulp-docker-common-2.0.3-1.el7.noarch
python-pulp-oid_validation-2.8.7-0.3.beta.el7.noarch
python-pulp-ostree-common-1.1.3-1.el7.noarch
python-pulp-puppet-common-2.8.7-0.2.beta.el7.noarch
python-pulp-python-common-1.1.3-1.el7.noarch
python-pulp-repoauth-2.8.7-0.3.beta.el7.noarch
python-pulp-rpm-common-2.8.7-0.2.beta.el7.noarch
python-pulp-streamer-2.8.7-0.3.beta.el7.noarch
# rpm -qa | grep -i nectar
python-nectar-1.5.2-1.el7.noarch
</code></pre>
<p>I have not tested on Fedora 23, but it should work.</p>
<p>Furthermore I ran the entire test_download_policies.py and got the following:</p>
<pre><code>$ py.test pulp_smash/tests/rpm/api_v2/test_download_policies.py
========================== test session starts ===========================
platform linux -- Python 3.4.3, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /home/elyezer/code/pulp-smash, inifile:
collected 17 items
pulp_smash/tests/rpm/api_v2/test_download_policies.py .................
====================== 17 passed in 585.62 seconds =======================
</code></pre>
<p>The Pulp Smash diff used to test this is the following:</p>
<pre><code>diff --git a/pulp_smash/tests/rpm/api_v2/test_download_policies.py b/pulp_smash/tests/rpm/api_v2/test_download_policies.py
index 5884b02..fab6b46 100644
--- a/pulp_smash/tests/rpm/api_v2/test_download_policies.py
+++ b/pulp_smash/tests/rpm/api_v2/test_download_policies.py
@@ -42,8 +42,8 @@ def setUpModule(): # pylint:disable=invalid-name
cfg = config.get_config()
if cfg.version < Version('2.8'):
raise unittest2.SkipTest('This module requires Pulp 2.8 or greater.')
- if selectors.bug_is_untestable(2144, cfg.version):
- raise unittest2.SkipTest('https://pulp.plan.io/issues/2144')
+ # if selectors.bug_is_untestable(2144, cfg.version):
+ # raise unittest2.SkipTest('https://pulp.plan.io/issues/2144')
def _create_repo(server_config, download_policy):
</code></pre> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=138182016-08-16T13:25:32Zpthomas@redhat.com
<ul><li><strong>Status</strong> changed from <i>ASSIGNED</i> to <i>5</i></li></ul> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=138192016-08-16T13:26:19Zpthomas@redhat.com
<ul><li><strong>Status</strong> changed from <i>5</i> to <i>6</i></li></ul><p>As per the last two comments, moving the issue to verified.</p> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=139362016-08-19T13:57:16Zsemyerssean.myers@redhat.com
<ul><li><strong>Status</strong> changed from <i>6</i> to <i>CLOSED - CURRENTRELEASE</i></li></ul> Pulp - Issue #2144: unbound method send()https://pulp.plan.io/issues/2144?journal_id=387122019-04-15T20:26:21Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> <i>Pulp 2</i> added</li></ul>