Project

Profile

Help

Issue #1604

Having Issues applying errata to a consumer

Added by paji@redhat.com almost 6 years ago. Updated over 2 years ago.

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

Description

We are running into this issue while testing 2.8, basically applying errata to a consumer . I ve tried my best to categorize calls to pulp. Note it is fake consumer if you will. But I think the call record below covers all the transactions.

 Running:

1) Create Repo

path = /pulp/api/v2/repositories/, args = post,{"id":"Fedora_17","display_name":"Fedora 17 x86_64","importer_type_id":"yum_importer","importer_config":{"feed":"file:///var/www/test_repos/zoo","ssl_ca_cert":null,"ssl_client_cert":null,"ssl_client_key":null},"notes":{"_repo-type":"rpm-repo"},"distributors":[{"distributor_type_id":"yum_distributor","distributor_config":{"relative_url":"test_path","http":false,"https":true,"protected":true},"auto_publish":true,"distributor_id":"Fedora_17"},{"distributor_type_id":"yum_clone_distributor","distributor_config":{"destination_distributor_id":"Fedora_17"},"auto_publish":false,"distributor_id":"Fedora_17_clone"},{"distributor_type_id":"nodes_http_distributor","distributor_config":{},"auto_publish":true,"distributor_id":"Fedora_17_nodes"},{"distributor_type_id":"export_distributor","distributor_config":{"http":false,"https":false},"auto_publish":false,"distributor_id":"export_distributor"}]},{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_body_hash=\"2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D\", oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"PPGadg5Xzn7yNvu0Trgp9JBqgmK6SR2jQcL8VEF3I\", oauth_signature=\"GzbRa9iHtG3PGArJLAXE0FJyMGs%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115968\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

2) Sync Repo
path = /pulp/api/v2/repositories/Fedora_17/actions/sync/, args = post,{"override_config":{"num_threads":4,"validate":true}},{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_body_hash=\"2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D\", oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"KY8BOzzqWzG06QS2AryaxNcw8dDYaDLjpIVQVrNRM\", oauth_signature=\"eU8qopx54BPBVldkZAdHmpZ7WjI%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115969\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

path = /pulp/api/v2/tasks/94738482-125b-47ab-b4ca-6e32013f72d3/, args = get,{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"gReit04NTCxyqCIEoMHZEMLJX0AOAAvLdOKY9jp3Sro\", oauth_signature=\"DfDnC3mWM4YRA%2BGHi5Vpz54BFTA%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115969\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

path = /pulp/api/v2/tasks/94738482-125b-47ab-b4ca-6e32013f72d3/, args = get,{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"QiEzdOFSQFe5unsXcR3jVeqbIXkdHseslBsyOc1eA\", oauth_signature=\"%2BAjoi7ZXNQR%2FyC1T0QMsgfCDg7M%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115969\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

path = /pulp/api/v2/tasks/d9df6edb-4288-418f-8cb3-00550407c54c/, args = get,{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"ozADnDpybzAQOjo4jJ2doRXtDhZUl86RoHwxUHIjzYU\", oauth_signature=\"OrJgBWKDPzi5pZ%2FUoLiyEKAycZM%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115969\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

path = /pulp/api/v2/tasks/b2355d2f-befa-4e5c-a216-46e7bcec8067/, args = get,{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"3LI2I97zX0lw633khre8C3alVju9kkXIiNT9oqWPrI\", oauth_signature=\"AMysPSnAIEm%2FXwxH1uIVhq8mkHc%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115970\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

3) Create Consumer

path = /pulp/api/v2/consumers/, args = post,{"id":"010E99C0-3276-11E2-81C1-0800200C9A66","display_name":"010E99C0-3276-11E2-81C1-0800200C9A66"},{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_body_hash=\"2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D\", oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"GMrdyFIXxOLZ1pNAFT0H9NW5tuYRRrXwDj1JYZXpzA\", oauth_signature=\"qrTCGwfeIz730i0OUoCsUr02GiU%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115970\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

path = /pulp/api/v2/consumers/010E99C0-3276-11E2-81C1-0800200C9A66/bindings//, args = get,{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"05pr92xoRfXLsPsxCS3pAamsELWdETwClBVGh1U1l0\", oauth_signature=\"QbwSE2%2FBJJ9s0jmm%2FtMRAxqWA%2FE%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115970\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}
path = /pulp/api/v2/repositories/Fedora_17/?details=true, args = get,{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"Cx7VoM8ihSi3L7QraUElBmUNX4SGJk1u6IAEdoN82Ww\", oauth_signature=\"66vIgzaEf7JZDz4Mv6mZagCmB2w%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115970\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

path = /pulp/api/v2/consumers/010E99C0-3276-11E2-81C1-0800200C9A66/bindings//, args = post,{"repo_id":"Fedora_17","distributor_id":"Fedora_17","notify_agent":false},{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_body_hash=\"2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D\", oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"4Cg3sz4KcrXv0RAs1q5CfUAklKSFAqAS0Tqap4QQM\", oauth_signature=\"8ZoXdOiMbIrFXMR2UzCPk99sftM%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115970\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

4) Find all errata in created repo

path = /pulp/api/v2/repositories/Fedora_17/search/units/, args = post,{"criteria":{"type_ids":["erratum"],"fields":{"unit":[],"association":["unit_id"]}}},{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_body_hash=\"2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D\", oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"NaANn5Ke6oEWp9sMQA4IEoZt2rpwM9HsVj7DE16sI\", oauth_signature=\"Fps4WVz3fd5no9183M36cB5vAL4%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115970\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

path = /pulp/api/v2/content/units/erratum/search/, args = post,{"criteria":{"filters":{"_id":{"$in":["4b48ae8d-4095-44f2-a517-1bb99b98b51d","e2a34e0a-eb38-4d38-8c39-730282f8df83","e485bc7d-0856-4b8d-8218-2466a7fe3868"]}}},"include_repos":true},{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_body_hash=\"2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D\", oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"VPDfnoO5E93bKx7hCaRZQVOQSEfV2cJLBzbuvCsOQ\", oauth_signature=\"JtqfHwgTMIc4J8CCjOMDiMLmA%2Fo%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115970\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

5) Upload a new Package Profile to the consumer

path = /pulp/api/v2/consumers/010E99C0-3276-11E2-81C1-0800200C9A66/profiles//, args = post,{"content_type":"rpm","profile":[{"vendor":"FedoraHosted","name":"elephant","version":"0.3","release":"0.8","arch":"noarch","epoch":""}]},{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_body_hash=\"2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D\", oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"nyTAh4SBT55Ix59OBORIQFPA3RuiTP5b5ZxhTLrp90\", oauth_signature=\"75I4Tq9bf%2F7jOgj9YzNTKBSTtu8%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115971\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

6) Regenerate Applicable errata on the consumer
path = /pulp/api/v2/consumers/actions/content/regenerate_applicability//, args = post,{"consumer_criteria":{"filters":{"id":{"$in":["010E99C0-3276-11E2-81C1-0800200C9A66"]}}}},{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_body_hash=\"2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D\", oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"pADOpIKFBrTzOKo1J4zcNvhWS4kxQEqU9x5SMMwnAo\", oauth_signature=\"Aw%2BEdNRuIhJSFGnevNOgDvEvoc4%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115971\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

path = /pulp/api/v2/tasks/9954077c-39a1-45f5-9bd9-8c08623d98b1/, args = get,{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"mCR9M8KvZhKyGOLRjV6MiE13ie2rNnpCjUac1ZPaGc\", oauth_signature=\"M4%2F7qfr9ocl25yLKoSN0FELLd9w%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115971\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

path = /pulp/api/v2/tasks/9954077c-39a1-45f5-9bd9-8c08623d98b1/, args = get,{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"ywMvjU4JEx8ckAz1ZSO7tqPqHwMC3zvonJzYZ664\", oauth_signature=\"AqW4UP0rxIK0YuVFDxr%2BQQXL3JU%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454115971\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

7) Install new errata

path = /pulp/api/v2/consumers/010E99C0-3276-11E2-81C1-0800200C9A66/actions/content/install//, args = post,{"units":[{"type_id":"erratum","unit_key":{"id":"RHEA-2010:0002"}}],"options":{"importkeys":true}},{"content_type"=>"application/json", "accept"=>"application/json", "Authorization"=>"OAuth oauth_body_hash=\"2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D\", oauth_consumer_key=\"5N52BJQuADMGfHKMhzRV8NUfKUZvePw4\", oauth_nonce=\"eGBeSJWYk9qVBFB0SLjXOrw17rD0ZMaJU7FwX46ixo\", oauth_signature=\"zVMi3LPDyv4blqZBd4llvgnyUvo%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1454116108\", oauth_version=\"1.0\"", "pulp-user"=>"admin"}

Error after the 7 th step in /var/log/messages

an 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:INFO: Pulp exception occurred: PulpExecutionException
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944) Pulp exception occurred: PulpExecutionException
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944) Traceback (most recent call last):
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)     response = wrapped_callback(request, *callback_args, **callback_kwargs)
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)     return self.dispatch(request, *args, **kwargs)
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)     return handler(request, *args, **kwargs)
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py", line 241, in _auth_decorator
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)     return _verify_auth(self, operation, super_user_only, method, *args, **kwargs)
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py", line 195, in _verify_auth
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)     value = method(self, *args, **kwargs)
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/util.py", line 130, in wrapper
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)     return func(*args, **kwargs)
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/consumers.py", line 541, in post
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)     return method(request, consumer_id, units, options)
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/consumers.py", line 566, in install
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)     task = agent_manager.install_content(consumer_id, units, options)
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/consumer/agent.py", line 206, in install_content
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)     conduit)
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/consumer/agent.py", line 323, in _invoke_plugin
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)     return call(*args, **kwargs)
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/profilers/yum.py", line 102, in install_units
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)     unit, conduit.get_bindings(consumer.id), consumer, conduit)
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/profilers/yum.py", line 406, in _translate_erratum
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944)     "Errata <%%s> refers to %%s updated rpms of: %%s" %% (errata.unit_key['id'],
Jan 29 19:53:08 katello-yoda pulp: pulp.server.webservices.middleware.exception:ERROR: (13779-02944) PulpExecutionException: Pulp exception occurred: PulpExecutionException

History

#1 Updated by amacdona@redhat.com almost 6 years ago

  • Project changed from Pulp to RPM Support
  • Status changed from NEW to POST
  • Assignee set to amacdona@redhat.com
  • Platform Release set to 2.8.0

#2 Updated by amacdona@redhat.com almost 6 years ago

  • Status changed from POST to MODIFIED

#3 Updated by jortel@redhat.com almost 6 years ago

  • Triaged changed from No to Yes

#4 Updated by dkliban@redhat.com almost 6 years ago

  • Status changed from MODIFIED to 5

#5 Updated by dkliban@redhat.com over 5 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#6 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF