Bug 679800 - consumer create produces traceback
Summary: consumer create produces traceback
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: Sprint 21
Assignee: Jeff Ortel
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-02-23 14:33 UTC by dgao
Modified: 2013-09-09 16:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:10:32 UTC


Attachments (Terms of Use)

Description dgao 2011-02-23 14:33:41 UTC
[root@pulp-nightly ~]# pulp-client -u admin -p admin consumer create --id=fred 
warning: this client is not registered; please register to continue
Traceback (most recent call last):
  File "/usr/bin/pulp-client", line 63, in <module>
    client.main()
  File "/usr/lib/python2.6/site-packages/pulp/client/cli/base.py", line 137, in main
    command.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 118, in main
    action.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 224, in main
    self.run()
  File "/usr/lib/python2.6/site-packages/pulp/client/core/consumer.py", line 155, in run
    self.consumer_api.profile(id, pkginfo)
  File "/usr/lib/python2.6/site-packages/pulp/client/api/consumer.py", line 105, in profile
    return self.server.POST(path, profile)[1]
  File "/usr/lib/python2.6/site-packages/pulp/client/server.py", line 276, in POST
    return self._request('POST', path, body=body)
  File "/usr/lib/python2.6/site-packages/pulp/client/server.py", line 232, in _request
    connection.request(method, url, body=body, headers=self.headers)
  File "/usr/lib64/python2.6/httplib.py", line 898, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib64/python2.6/httplib.py", line 938, in _send_request
    self.send(body)
  File "/usr/lib64/python2.6/httplib.py", line 743, in send
    self.sock.sendall(str)
  File "/usr/lib64/python2.6/ssl.py", line 203, in sendall
    v = self.send(data[count:])
  File "/usr/lib64/python2.6/ssl.py", line 94, in <lambda>
    self.send = lambda data, flags=0: SSLSocket.send(self, data, flags)
  File "/usr/lib64/python2.6/ssl.py", line 174, in send
    v = self._sslobj.write(data)
TypeError: write() argument 1 must be string or read-only buffer, not list


[root@pulp-nightly ~]# pulp-admin -u admin -p admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+

Id                 	fred                     
Description        	None                     
Subscribed Repos   	[]                       
Additional info

Comment 1 Jeff Ortel 2011-02-23 17:41:32 UTC
Fixed. 98a3583a2d00f910dee8d7fee8bb08b2c4acc84f

Comment 2 Jeff Ortel 2011-02-23 17:59:51 UTC
Build: 0.141

Comment 3 Preethi Thomas 2011-02-25 18:12:39 UTC
[root@preethi iso]# rpm -q pulp
pulp-0.0.142-1.fc14.noarch


[root@preethi iso]# pulp-client -u admin -p admin consumer create --id=test
Successfully created consumer [ test ]

Comment 4 Preethi Thomas 2011-08-16 12:10:32 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:22:29 UTC
Closing with Community Release 15

pulp-0.0.223-4.


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