<div dir="ltr"><div>Brian and Michael,</div><div>Sorry I didn't get a chance to review sooner.</div><div><br></div><div>The part that tripped me up (and I think the person who submitted the original bug) was "The agent on the child node uses the local pulp REST API which is secured using OAuth. The child node must have OAuth enabled and configured." Even after I got it working, it wasn't clear to me why - now I understand.</div><div><br></div><div>Your updates to both the "Child" and "Quick Start" sections clarify this, so thank you!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 13, 2016 at 12:11 PM, Brian Bouterse <span dir="ltr"><<a href="mailto:bbouters@redhat.com" target="_blank">bbouters@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Today I merged a fix for the incorrect nodes quickstart docs. You'll see this in the GA docs for 2.10.1+.<br>
<br>
In the meantime, you can see the updated quickstart in the nightly docs for 2.10 here [0].<br>
<br>
Thanks for identifying the importance of that bug. We want the docs to be right so we don't waste the time of users.<br>
<br>
[0]: <a href="http://docs.pulpproject.org/en/2.10/nightly/user-guide/nodes.html#quick-start" target="_blank" rel="noreferrer">http://docs.pulpproject.org/<wbr>en/2.10/nightly/user-guide/<wbr>nodes.html#quick-start</a><br>
<span class="HOEnZb"><font color="#888888"><br>
-Brian<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
----- Original Message -----<br>
> From: "Michael Hrivnak" <<a href="mailto:mhrivnak@redhat.com">mhrivnak@redhat.com</a>><br>
> To: "Christina Plummer" <<a href="mailto:cplummer@gmail.com">cplummer@gmail.com</a>><br>
> Cc: "pulp-list" <<a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a>><br>
> Sent: Friday, October 7, 2016 5:17:42 PM<br>
> Subject: Re: [Pulp-list] pulp child - master sync not working<br>
><br>
> Christina, thanks for reporting back with the solution. Brian opened a PR<br>
> today to update those docs. If you have a moment to look over those changes<br>
> and make sure they match the experience you had, that would be greatly<br>
> appreciated.<br>
><br>
> <a href="https://github.com/pulp/pulp/pull/2780" target="_blank" rel="noreferrer">https://github.com/pulp/pulp/<wbr>pull/2780</a><br>
><br>
> Thanks!<br>
> Michael<br>
><br>
> On Fri, Oct 7, 2016 at 10:23 AM, Brian Bouterse < <a href="mailto:bbouters@redhat.com">bbouters@redhat.com</a> ><br>
> wrote:<br>
><br>
><br>
> Thank you so much for posting the info for others.<br>
><br>
> Regarding the future of nodes, the current plan is to deprecate nodes with<br>
> Pulp 2.11 and remove it entirely from Pulp 3. The recommendation to users is<br>
> to replace their nodes usage with a "natural sync" where one pulp server<br>
> sync's content from a feed URL published by another pulp server.<br>
><br>
> This should improve the setup and usage experience for pulp users who need to<br>
> move content between pulp servers. It should also reduce issues from bugs<br>
> because the natural sync codepaths receive large amounts of testing. Any<br>
> feedback on using natural sync as a nodes replacement would be great.<br>
><br>
> -Brian<br>
><br>
><br>
> On 10/06/2016 06:03 PM, Christina Plummer wrote:<br>
><br>
><br>
> I finally discovered the issue - the documentation<br>
> <a href="https://docs.pulpproject.org/user-guide/nodes.html" target="_blank" rel="noreferrer">https://docs.pulpproject.org/<wbr>user-guide/nodes.html</a><br>
> < <a href="https://docs.pulpproject.org/user-guide/nodes.html?highlight=nodes#child" target="_blank" rel="noreferrer">https://docs.pulpproject.org/<wbr>user-guide/nodes.html?<wbr>highlight=nodes#child</a> ><br>
> was<br>
> missing a critical step. It is necessary to configure the [oauth]<br>
> section of server.conf on BOTH the parent and the child nodes, not just<br>
> on the parent as indicated.<br>
><br>
> There was a previous bugs opened related to this (where I ultimately<br>
> found my answer), but apparently the devs decided that they don't want<br>
> people using this functionality anymore so they are leaving the<br>
> documentation broken:<br>
> <a href="https://pulp.plan.io/issues/1392" target="_blank" rel="noreferrer">https://pulp.plan.io/issues/<wbr>1392</a><br>
><br>
> Posting here in case others run into the same problem.<br>
><br>
> On Thu, Sep 15, 2016 at 7:36 PM, Christina Plummer < <a href="mailto:cplummer@gmail.com">cplummer@gmail.com</a><br>
> <mailto: <a href="mailto:cplummer@gmail.com">cplummer@gmail.com</a> >> wrote:<br>
><br>
> I am having the same problem with pulp-2.9.2, syncing from a RHEL7<br>
> parent to a RHEL6 child.<br>
><br>
> I see that several folks have reached out to the list over the years<br>
> (and I saw several instances on pastebin), but I didn't see any good<br>
> answers.<br>
><br>
> This is what I have in /var/log/messages on the child:<br>
><br>
> Sep 15 23:32:08 my-child goferd: [INFO][pulp.agent.child-01]<br>
> gofer.messaging.adapter.<wbr>connect:28 - connecting:<br>
> qpid+amqp://my-parent:5672<br>
> Sep 15 23:32:08 my-child goferd: [INFO][pulp.agent.child-01]<br>
> gofer.messaging.adapter.<wbr>connect:30 - connected:<br>
> qpid+amqp://my-parent:5672<br>
> Sep 15 23:32:08 my-child goferd: [INFO][worker-0]<br>
> gofer.messaging.adapter.<wbr>connect:28 - connecting:<br>
> qpid+amqp://my-parent:5672<br>
> Sep 15 23:32:08 my-child goferd: [INFO][worker-0]<br>
> gofer.messaging.adapter.qpid.<wbr>connection:106 - open: URL:<br>
> amqp://my-parent|SSL: ca: None|key: None|certificate:<br>
> /etc/pki/pulp/consumer/<wbr>consumer-cert.pem|host-<wbr>validation: None<br>
> Sep 15 23:32:09 my-child goferd: [INFO][worker-0]<br>
> gofer.messaging.adapter.qpid.<wbr>connection:118 - opened:<br>
> qpid+amqp://my-parent:5672<br>
> Sep 15 23:32:09 my-child goferd: [INFO][worker-0]<br>
> gofer.messaging.adapter.<wbr>connect:30 - connected:<br>
> qpid+amqp://my-parent:5672<br>
> Sep 15 23:32:09 my-child goferd: [INFO][worker-0]<br>
> gofer.rmi.dispatcher:603 - call: Content.update()<br>
> sn=8c5dae0f-988e-41bc-bcbd-<wbr>c63fbcef1331 data={'task_id':<br>
> 'c23271f5-c6c1-45e7-af99-<wbr>cd61fc208192', 'consumer_id': 'child-01'}<br>
> Sep 15 23:32:09 my-child pulp:<br>
> pulp.server.webservices.<wbr>middleware.exception:INFO: Authentication<br>
> with username None failed: invalid SSL certificate.<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - synchronization failed<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - Traceback (most recent call last):<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - File<br>
> "/usr/lib/python2.6/site-<wbr>packages/pulp_node/handlers/<wbr>strategies.py",<br>
> line 99, in synchronize<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 -<br>
> validator.validate(request.<wbr>bindings)<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - File<br>
> "/usr/lib/python2.6/site-<wbr>packages/pulp_node/handlers/<wbr>validation.py",<br>
> line 38, in validate<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 -<br>
> self.report.errors.extend(<wbr>self._validate_plugins(<wbr>bindings))<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - File<br>
> "/usr/lib/python2.6/site-<wbr>packages/pulp_node/handlers/<wbr>validation.py",<br>
> line 54, in _validate_plugins<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - child = ChildServer()<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - File<br>
> "/usr/lib/python2.6/site-<wbr>packages/pulp_node/handlers/<wbr>validation.py",<br>
> line 72, in __init__<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - self.importers =<br>
> self._importers()<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - File<br>
> "/usr/lib/python2.6/site-<wbr>packages/pulp_node/handlers/<wbr>validation.py",<br>
> line 83, in _importers<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - http =<br>
> bindings.server_info.get_<wbr>importers()<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - File<br>
> "/usr/lib/python2.6/site-<wbr>packages/pulp/bindings/server_<wbr>info.py",<br>
> line 31, in get_importers<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - return self.server.GET(path)<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - File<br>
> "/usr/lib/python2.6/site-<wbr>packages/pulp/bindings/server.<wbr>py", line 92,<br>
> in GET<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - return self._request('GET',<br>
> path, queries, ignore_prefix=ignore_prefix)<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - File<br>
> "/usr/lib/python2.6/site-<wbr>packages/pulp/bindings/server.<wbr>py", line<br>
> 166, in _request<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 -<br>
> self._handle_exceptions(<wbr>response_code, response_body)<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - File<br>
> "/usr/lib/python2.6/site-<wbr>packages/pulp/bindings/server.<wbr>py", line<br>
> 207, in _handle_exceptions<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - raise<br>
> code_class_mappings[response_<wbr>code](response_body)<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.strategies:<wbr>112 - PermissionsException:<br>
> RequestException: GET request on /pulp/api/v2/plugins/<wbr>importers/<br>
> failed with 401 - Authentication with username None failed: invalid<br>
> SSL certificate.<br>
> Sep 15 23:32:09 my-child goferd: [ERROR][worker-0]<br>
> pulp_node.handlers.handler:92 - An unexpected error occurred.<br>
> repo_id=None<br>
> Sep 15 23:32:09 my-child goferd: [INFO][worker-0]<br>
> gofer.agent.rmi:193 - Request: 8c5dae0f-988e-41bc-bcbd-<wbr>c63fbcef1331,<br>
> committed<br>
> Sep 15 23:32:09 my-child goferd: [INFO][worker-0]<br>
> gofer.agent.rmi:147 - Request: 8c5dae0f-988e-41bc-bcbd-<wbr>c63fbcef1331<br>
> processed in: 1.019 (seconds)<br>
> Sep 15 23:32:10 my-child goferd: [INFO][worker-0]<br>
> gofer.messaging.adapter.qpid.<wbr>connection:136 - closed:<br>
> qpid+amqp://my-parent:5672<br>
><br>
><br>
> On Tue, Jun 21, 2016 at 3:47 PM, Jo De Troy < <a href="mailto:jo.de.troy@gmail.com">jo.de.troy@gmail.com</a><br>
> <mailto: <a href="mailto:jo.de.troy@gmail.com">jo.de.troy@gmail.com</a> >> wrote:<br>
><br>
> Hello,<br>
><br>
> I've setup 2 pulp servers on CentOS 7.2 each of them is running<br>
> Pulp 2.8.3.<br>
> On the master I've synced some rpm repositories. When I try to<br>
> sync these to the child pulp server I keep getting the same error.<br>
><br>
> Error occurred during synchronization, check the child node logs<br>
> for details<br>
><br>
> +-----------------------------<wbr>------------------------------<wbr>-----------+<br>
> Child Node Synchronization<br>
> +-----------------------------<wbr>------------------------------<wbr>-----------+<br>
><br>
> Repository:<br>
> Action: Pending<br>
> Content Sources:<br>
> Downloads:<br>
> Id: updates-repo<br>
> Units:<br>
> Added: 0<br>
> Removed: 0<br>
> Updated: 0<br>
><br>
><br>
> +-----------------------------<wbr>------------------------------<wbr>-----------+<br>
> The following [1] errors were reported<br>
> +-----------------------------<wbr>------------------------------<wbr>-----------+<br>
><br>
> - 01: An unexpected error occurred. repo_id=None<br>
><br>
> I've found the same error via Google multiple times, but I<br>
> didn't find a working solution. I've set verify_ssl = False in<br>
> several config files<br>
><br>
> In the /var/log/messages I get<br>
> pulp: pulp.server.agent.direct.<wbr>services:INFO: (9547-83232)<br>
> {'reboot': {'scheduled': False, 'details': {}}, 'details':<br>
> {'node': {'details': {'errors': [{'error_id': 'exception',<br>
> 'details': {'message': 'RequestException: GET request on<br>
> /pulp/api/v2/plugins/<wbr>importers/ failed with 401 - Authentication<br>
> with username None failed: invalid SSL certificate.', 'repo_id':<br>
> None}}], ...<br>
><br>
> Any idea what could be wrong? I've put the logging level to<br>
> debug, hoping to find the reason<br>
><br>
> Best Regards,<br>
> Jo<br>
><br>
> ______________________________<wbr>_________________<br>
> Pulp-list mailing list<br>
> <a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a> <mailto: <a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a> ><br>
> <a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank" rel="noreferrer">https://www.redhat.com/<wbr>mailman/listinfo/pulp-list</a><br>
> < <a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank" rel="noreferrer">https://www.redhat.com/<wbr>mailman/listinfo/pulp-list</a> ><br>
><br>
><br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Pulp-list mailing list<br>
> <a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank" rel="noreferrer">https://www.redhat.com/<wbr>mailman/listinfo/pulp-list</a><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Pulp-list mailing list<br>
> <a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank" rel="noreferrer">https://www.redhat.com/<wbr>mailman/listinfo/pulp-list</a><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Pulp-list mailing list<br>
> <a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank" rel="noreferrer">https://www.redhat.com/<wbr>mailman/listinfo/pulp-list</a><br>
</div></div></blockquote></div><br></div>