[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] AssertionError when binding




----- Original Message -----
> Hello,
> 
> I have installed clean pulp on f14:
> 
> [root dea ~]# rpm -q pulp
> pulp-0.0.223-4.fc14.noarch
> [root dea ~]# rpm -q pulp-consumer
> pulp-consumer-0.0.223-4.fc14.noarch
> 
> I registered a consumer, but when I try to bind a repo I get this
> error:
> 
> [root dea ~]# pulp-consumer consumer bind --repoid
> 1314617091528-repo_85605-ACME_Corporation
> Traceback (most recent call last):
> File "/usr/bin/pulp-consumer", line 37, in <module>
> client.main()
> File "/usr/lib/python2.7/site-packages/pulp/client/lib/cli.py", line
> 151, in main
> command = self.setup(self.args)
> File "/usr/lib/python2.7/site-packages/pulp/client/consumer/cli.py",
> line 77, in setup
> if not bundle.getid():
> File
> "/usr/lib/python2.7/site-packages/pulp/client/consumer/credentials.py",
> line 43, in getid
> if self.valid():
> File "/usr/lib/python2.7/site-packages/pulp/common/bundle.py", line
> 126, in valid
> s = self.read()
> File "/usr/lib/python2.7/site-packages/pulp/common/bundle.py", line
> 140, in read
> assert(self.hasboth(bundle))
> AssertionError
> 

The solution to this issue was to delete '/etc/pki/consumer/cert.pem' and re-register the consumer with pulp-consumer.

The file: /etc/pki/consumer/cert.pem only contained the certificate when lzap saw this exception.  Pulp expects it to be both key and certificate in cert.pem.

Issue was that subscription-manager was run on the same box as pulp-consumer and they both share the same filepath for their cert, /etc/pki/consumer/cert.pem

We entered this RFE to allow pulp-consumer to use a different filepath for development setups that will run subscription-manager and pulp-consumer on same box.
https://bugzilla.redhat.com/show_bug.cgi?id=734126


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]