Bug 1010015

Summary: permission error on node sync
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: nodesAssignee: pulp-bugs
Status: CLOSED NOTABUG QA Contact: pulp-qe-list
Severity: high Docs Contact:
Priority: high    
Version: Master   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-19 19:51:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Preethi Thomas 2013-09-19 17:21:07 UTC
Description of problem:
Running a node sync ends up with permission error in agent log

Version-Release number of selected component (if applicable):

[root@pulp-v2-server ~]# rpm -q pulp-nodes-parent
pulp-nodes-parent-2.3.0-0.14.alpha.el6.noarch
[root@pulp-v2-server ~]# 
[root@pulp-v2-node ~]# rpm -q pulp-consumer-client
pulp-consumer-client-2.3.0-0.14.alpha.fc18.noarch
[root@pulp-v2-node ~]# 

How reproducible:


Steps to Reproduce:

1. enable a node parent & node-child
2. setup repos to node sync

[root@pulp-v2-server ~]# pulp-admin node list
+----------------------------------------------------------------------+
                              Child Nodes
+----------------------------------------------------------------------+

Id:               node1
Display Name:     node1
Description:      None
Bindings:         
  Additive: upload, test-upload, zoo1
Update Strategy:  additive
Notes:            

[root@pulp-v2-server ~]# pulp-admin node sync run --node-id node1
This command may be exited via ctrl+c without affecting the request.

[-]
Waiting to begin...


An unexpected error has occurred. More information can be found in the client
log file ~/.pulp/admin.log.



Actual results:


Expected results:


Additional info:

From agent.log

download_concurrency': None, 'max_download_bandwidth': None}], 'method': 'update', 'cntr': None}
2013-09-19 14:30:04,508 [ERROR][worker-0] update() @ dispatcher.py:112 - handler failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulp/agent/lib/dispatcher.py", line 108, in update
    report = handler.update(conduit, units, dict(options))
  File "/usr/lib/python2.7/site-packages/pulp_node/handlers/handler.py", line 88, in update
    bindings = RepositoryBinding.fetch_all(pulp_bindings, conduit.consumer_id)
  File "/usr/lib/python2.7/site-packages/pulp_node/handlers/model.py", line 511, in fetch_all
    http = bindings.bind.find_by_id(node_id)
  File "/usr/lib/python2.7/site-packages/pulp/bindings/consumer.py", line 154, in find_by_id
    return self.server.GET(path)
  File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 100, in GET
    return self._request('GET', path, queries)
  File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 158, in _request
    self._handle_exceptions(response_code, response_body)
  File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 199, in _handle_exceptions
    raise code_class_mappings[response_code](response_body)
PermissionsException: RequestException: GET request on /pulp/api/v2/consumers/node1/bindings/ failed with 401 - Pulp exception occurred: AuthenticationFailed
2013-09-19 14:30:04,512 [INFO][worker-0] sendreply() @ rmi.py:172 - dcc47789-112e-4997-9d02-0d8756af1dda processed in: 108 (ms)


from admin.log
2013-09-19 14:32:44,947 - ERROR - Client-side exception occurred
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pulp/client/extensions/core.py", line 478, in run
    exit_code = Cli.run(self, args)
  File "/usr/lib/python2.6/site-packages/okaara/cli.py", line 974, in run
    exit_code = command_or_section.execute(self.prompt, remaining_args)
  File "/usr/lib/python2.6/site-packages/pulp/client/extensions/extensions.py", line 224, in execute
    return self.method(*arg_list, **clean_kwargs)
  File "/usr/lib/python2.6/site-packages/pulp_node/extensions/admin/commands.py", line 515, in run
    self.poll([task], kwargs)
  File "/usr/lib/python2.6/site-packages/pulp/client/commands/polling.py", line 143, in poll
    self.succeeded(task)
  File "/usr/lib/python2.6/site-packages/pulp_node/extensions/admin/commands.py", line 530, in succeeded
    r = UpdateRenderer(self.context.prompt, report)
  File "/usr/lib/python2.6/site-packages/pulp_node/extensions/admin/rendering.py", line 168, in __init__
    self.errors = self.details['errors']
KeyError: 'errors'

Comment 1 Preethi Thomas 2013-09-19 19:51:40 UTC
So this issue was used to pulp nodes authentication having changed. closing