Bug 1010015 - permission error on node sync
permission error on node sync
Status: CLOSED NOTABUG
Product: Pulp
Classification: Community
Component: nodes (Show other bugs)
Master
Unspecified Unspecified
high Severity high
: ---
: ---
Assigned To: pulp-bugs
pulp-qe-list
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-19 13:21 EDT by Preethi Thomas
Modified: 2013-09-19 15:51 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-09-19 15:51:40 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Preethi Thomas 2013-09-19 13:21:07 EDT
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 15:51:40 EDT
So this issue was used to pulp nodes authentication having changed. closing

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