<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body>
<span id="mailbox-conversation"><div>
<div>Hi guys,</div>
<div><br></div>
<div>I am experiencing problems with the unconfirmed repository bindings for a Pulp consumer.</div>
<div>I run Pulp server on CentOS 7.0.1406 and install Pulp from the upstream "stable" repository: <a href="https://repos.fedorapeople.org/repos/pulp/pulp/stable/2/7Server/x86_64/">https://repos.fedorapeople.org/repos/pulp/pulp/stable/2/7Server/x86_64/</a>, here are the details:</div>
<div><br></div>
<div>Pulp server: `2.5.3-1.el7` (`pulp-server-2.5.3-1.el7.noarch` and all relevant dependencies of the same version )</div>
<div>Quid: `qpid-cpp-server-0.28-5.el7.x86_64` </div>
<div>Pulp consumer: pulp-consumer-client-2.5.3-1.el7.noarch</div>
<div>Messaging client: </div>
<div>python-gofer-1.3.1-1.el7.noarch</div>
<div>python-gofer-qpid-1.3.1-1.el7.noarch</div>
<div>gofer-1.3.1-1.el7.noarch</div>
<div><br></div>
<div>I try to use SSL for all traffic between the Pulp and qpid with self-signed SSL certificates. The `/etc/qpid/qpidd.conf` config file from the Pulp server:</div>
<div><br></div>
<div>    port=5672</div>
<div>    max-connections=65530</div>
<div>    worker-threads=17</div>
<div>    connection-backlog=10</div>
<div>    auth=no</div>
<div>    realm=QPID</div>
<div>    data-dir=/var/lib/qpidd</div>
<div>    </div>
<div>    # Had to allow unencrypted traffic as otherwise was getting protocol</div>
<div>    # errors when trying to connect with qpid-queue-stats to the queue</div>
<div>    require-encryption=no </div>
<div>    ssl-require-client-authentication=yes</div>
<div>    ssl-cert-db=/etc/pki/pulp/qpid/nss</div>
<div>    ssl-cert-password-file=/etc/pki/pulp/qpid/nss/password</div>
<div>    ssl-cert-name=broker</div>
<div>    ssl-port=5671</div>
<div><br></div>
<div>And the [/etc/pulp/consumer/consumer.conf](<a href="https://gist.github.com/romanrev/e424c6640b5f01443e84">https://gist.github.com/romanrev/e424c6640b5f01443e84</a>).</div>
<div><br></div>
<div>I provide below here the process that I followed in order to register the consumer and try to bind it to a repository from the Pulp server. Confirming there are no consumers registered with the Pulp server as yet:</div>
<div><br></div>
<div>    [vagrant@centos7 ~]$ pulp-admin -u xxxxx -p 'xxxxx' consumer list</div>
<div>    +----------------------------------------------------------------------+</div>
<div>                                   Consumers</div>
<div>    +----------------------------------------------------------------------+</div>
<div><br></div>
<div>Now I register the consumer from the Pulp "client" `pcons1c7` machine:</div>
<div><br></div>
<div>    [vagrant@pcons1c7 pulp]$ sudo pulp-consumer -u xxxxx -p 'xxxxx' register --consumer-id pcons1c7</div>
<div>    Consumer [pcons1c7] successfully registered</div>
<div><br></div>
<div>Confirmed on the server:</div>
<div><br></div>
<div>    [vagrant@centos7 ~]$ pulp-admin -u xxxxx -p 'xxxxx' consumer list</div>
<div>    +----------------------------------------------------------------------+</div>
<div>                                   Consumers</div>
<div>    +----------------------------------------------------------------------+</div>
<div>    </div>
<div>    Id:            pcons1c7</div>
<div>    Display Name:  pcons1c7</div>
<div>    Description:   None</div>
<div>    Bindings:      </div>
<div>    Notes:         </div>
<div><br></div>
<div>Confirming existing repository on the Pulp server:</div>
<div><br></div>
<div>    [vagrant@centos7 ~]$ pulp-admin -u xxxxx -p 'xxxxx' rpm repo list</div>
<div>    +----------------------------------------------------------------------+</div>
<div>                                RPM Repositories</div>
<div>    +----------------------------------------------------------------------+</div>
<div>    </div>
<div>    Id:                  centos7-fasttrack</div>
<div>    Display Name:        centos7-fasttrack</div>
<div>    Description:         None</div>
<div>    Content Unit Counts: </div>
<div>      Drpm:                   152</div>
<div>      Rpm:                    155</div>
<div><br></div>
<div>Trying to bind the consumer to the existing `centos-fasttrack` repository:</div>
<div><br></div>
<div>    [vagrant@pcons1c7 pulp]$ sudo pulp-consumer rpm bind --repo-id centos7-fasttrack</div>
<div>    Bind tasks successfully created:</div>
<div>    </div>
<div>    Task Id: 218c4601-adc0-4fe3-b643-a455fd26ff9d</div>
<div><br></div>
<div>Can see the consumer binding on the server, however the binding is unconfirmed and remained so for indefinite time (have never observed it changing to "Confirmed")</div>
<div><br></div>
<div>    [vagrant@centos7 ~]$ pulp-admin -u xxxxx -p 'xxxxx' consumer list</div>
<div>    +----------------------------------------------------------------------+</div>
<div>                                   Consumers</div>
<div>    +----------------------------------------------------------------------+</div>
<div>    </div>
<div>    Id:            pcons1c7</div>
<div>    Display Name:  pcons1c7</div>
<div>    Description:   None</div>
<div>    Bindings:      </div>
<div>      Confirmed:   </div>
<div>      Unconfirmed: centos7-fasttrack</div>
<div>    Notes:         </div>
<div><br></div>
<div>I have also tried to bind the consumer to repository using `pulp-admin` on the server, however the command hung forever:</div>
<div><br></div>
<div>    [vagrant@centos7 ~]$ pulp-admin -u xxxxx -p 'xxxxx' rpm consumer bind --repo-id centos7-fasttrack --consumer-id pcons1c7</div>
<div>    This command may be exited via ctrl+c without affecting the request.</div>
<div>    </div>
<div>    </div>
<div>    [-]</div>
<div>    Running...</div>
<div>    [-]</div>
<div>    Waiting to begin...</div>
<div><br></div>
<div>I also observe the following errors in the `/var/log/messages`:</div>
<div><br></div>
<div>    Feb 12 16:05:58 centos7 qpidd: 2015-02-12 16:05:58 [System] error Error reading socket: Success(0)</div>
<div>    </div>
<div>I can see the messages in the qpid queue, running the following command on the Pulp server:</div>
<div><br></div>
<div>    qpid-queue-stats -a qpid://guest@centos7.localdomain:5672</div>
<div>    ...</div>
<div>    qmfc-v2-ui-centos7.18060.1                     9.99          0         0.10         0.10</div>
<div>    celeryev.5008aa02-e22b-488c-af22-c927b63b8cc4     10.00          0         0.80         0.80</div>
<div>    qmfc-v2-ui-centos7.18060.1                    10.00          0         0.10         0.10</div>
<div>    celeryev.5008aa02-e22b-488c-af22-c927b63b8cc4     10.00          0         0.80         0.80</div>
<div>    pulp.agent.pcons1c7                           60.00         16         0.02         0.00</div>
<div>    qmfc-v2-ui-centos7.18060.1                    10.00          0         0.10         0.10</div>
<div>    celeryev.5008aa02-e22b-488c-af22-c927b63b8cc4     10.00          0         0.80         0.80</div>
<div>    qmfc-v2-ui-centos7.18060.1                    10.00          0         0.10         0.10</div>
<div>    celeryev.5008aa02-e22b-488c-af22-c927b63b8cc4     10.00          0         0.80         0.80</div>
<div>    qmfc-v2-ui-centos7.18060.1                    10.00          0         0.10         0.10</div>
<div>    ...</div>
<div><br></div>
<div>Obviously all Pulp components are talking to qpid:</div>
<div><br></div>
<div>     pulp_resource_manager.service - Pulp Resource Manager</div>
<div>        Loaded: loaded (/usr/lib/systemd/system/pulp_resource_manager.service; enabled)</div>
<div>        Active: <b>active (running)</b> since Fri 2015-02-13 08:01:40 EST; 5s ago</div>
<div>      Main PID: 18669 (celery)</div>
<div>        CGroup: /system.slice/pulp_resource_manager.service</div>
<div>                ├─18669 /usr/bin/python /usr/bin/celery worker -A pulp.server.async.app -n resource_manager@%h -Q resource_manager -c 1 --events --umask 18</div>
<div>                └─18682 /usr/bin/python /usr/bin/celery worker -A pulp.server.async.app -n resource_manager@%h -Q resource_manager -c 1 --events --umask 18</div>
<div>     </div>
<div>     Feb 13 08:01:42 centos7 celery[18669]: - ** ---------- [config]</div>
<div>     Feb 13 08:01:42 centos7 celery[18669]: - ** ---------- .> app:         tasks:0x2a0ded0</div>
<div>     Feb 13 08:01:42 centos7 celery[18669]: - ** ---------- .> transport:   qpid://guest@centos7.localdomain:5671//</div>
<div>     Feb 13 08:01:42 centos7 celery[18669]: - ** ---------- .> results:     mongodb</div>
<div>     Feb 13 08:01:42 centos7 celery[18669]: - *** --- * --- .> concurrency: 1 (prefork)</div>
<div>     Feb 13 08:01:42 centos7 celery[18669]: -- ******* ----</div>
<div>     Feb 13 08:01:42 centos7 celery[18669]: --- ***** ----- [queues]</div>
<div>     Feb 13 08:01:42 centos7 celery[18669]: -------------- .> resource_manager exchange=resource_manager(direct) key=resource_manager</div>
<div>     Feb 13 08:01:42 centos7 celery[18669]: .> resource_manager@centos7.dq exchange=C.dq(direct) key=resource_manager@centos7</div>
<div>     Feb 13 08:01:42 centos7 pulp[18669]: celery.worker.consumer:INFO: Connected to qpid://guest@centos7.localdomain:5671//</div>
<div><br></div>
<div>pulp_celerybeat.service - Pulp's Celerybeat</div>
<div>   Loaded: loaded (/usr/lib/systemd/system/pulp_celerybeat.service; enabled)</div>
<div>   Active: <b>active (running)</b> since Fri 2015-02-13 08:02:44 EST; 3s ago</div>
<div> Main PID: 18712 (celery)</div>
<div>   CGroup: /system.slice/pulp_celerybeat.service</div>
<div>           └─18712 /usr/bin/python /usr/bin/celery beat --scheduler=pulp.server.async.scheduler.Scheduler</div>
<div><br></div>
<div>     Feb 13 08:02:44 centos7 systemd[1]: Started Pulp's Celerybeat.</div>
<div>     Feb 13 08:02:44 centos7 pulp[18712]: celery.beat:INFO: beat: Starting...</div>
<div>     Feb 13 08:02:44 centos7 pulp[18712]: pulp.server.async.scheduler:INFO: Worker Timeout Monitor Started</div>
<div>     Feb 13 08:02:44 centos7 pulp[18712]: pulp.server.db.connection:INFO: Database authentication enabled, attempting username/passwordauthentication.</div>
<div>     Feb 13 08:02:44 centos7 pulp[18712]: pulp.server.async.scheduler:INFO: Event Monitor Starting</div>
<div>     Feb 13 08:02:44 centos7 pulp[18712]: pulp.server.db.connection:INFO: Database connection established with: seeds = centos7:27017, name = pulp</div>
<div>     Feb 13 08:02:44 centos7 pulp[18712]: kombu.mixins:INFO: Connected to qpid://guest@centos7.localdomain:5671//</div>
<div><br></div>
<div>I am sure I am doing something wrong, just cannot put my finger on what exactly. I would appreciate any help or hint with that regard.</div>
<div id="mb-reply"><br></div>
<div id="mb-reply">Thank you!</div>
<div id="mb-reply"><br></div>
<div>With kind regards,</div>
<div>Roman</div>
</div></span><div class="mailbox_signature">
<br><br>
</div>
</body></html>