Description of problem:pulp consumer bind --consumerid --repoid not working Additional info:http://pastebin.test.redhat.com/25711 [root@shveta noarch]# pulp consumer bind consumer id required. Try --help [root@shveta noarch]# pulp consumer bind --help Usage: pulp consumer bind [OPTIONS] Options: -h, --help show this help message and exit --repoid=REPOID Repo Identifier --consumerid=CONSUMERID Consumer Identifier [root@shveta noarch]# pulp consumer bind --id=10.65.193.89 --repoid=rhel-i386-server-5 Usage: pulp consumer bind [OPTIONS] pulp: error: no such option: --id [root@shveta noarch]# pulp consumer bind --consumerid=10.65.193.89 --repoid=rhel-i386-server-5 Traceback (most recent call last): File "/usr/bin/pulp", line 26, in <module> pulpcli.PulpCore().main() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/pulpcli.py", line 102, in main cmd.main() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/core/basecore.py", line 43, in main self._do_core() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/core/core_consumer.py", line 128, in _do_core self._bind() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/core/core_consumer.py", line 190, in _bind self.repolib.update() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/repolib.py", line 68, in update return action.perform() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/repolib.py", line 128, in perform for cont in self.getUniqueContent(): File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/repolib.py", line 151, in getUniqueContent products = self.pulp.getProducts() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/repolib.py", line 89, in getProducts consumer = self.capi.consumer(cid) File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/connection.py", line 208, in consumer return self.conn.request_get(method) File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/connection.py", line 76, in request_get return self._request("GET", method) File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/connection.py", line 63, in _request response = conn.getresponse() File "/usr/lib64/python2.6/httplib.py", line 950, in getresponse response.begin() File "/usr/lib64/python2.6/httplib.py", line 390, in begin version, status, reason = self._read_status() File "/usr/lib64/python2.6/httplib.py", line 354, in _read_status raise BadStatusLine(line) httplib.BadStatusLine [root@shveta noarch]# pulp repo list +-------------------------------------------+ List of Available Repositories +-------------------------------------------+ Label TAKE3rhel-i386-server-5 Name rhel-i386-server-5 Feed {'url': 'satellite.rhn.redhat.com/rhel-i386-server-5', 'type': 'rhn', 'supported_types': ['yum', 'local', 'rhn']} Arch i386 Packages 0 Label rhel-i386-server-5 Name rhel-i386-server-5 Feed {'url': 'satellite.rhn.redhat.com/rhel-i386-server-5', 'type': 'rhn', 'supported_types': ['yum', 'local', 'rhn']} Arch i386 Packages 0 Label Shvetarhel-i386-server-5 Name rhel-i386-server-5 Feed {'url': 'satellite.rhn.redhat.com/rhel-i386-server-5', 'type': 'rhn', 'supported_types': ['yum', 'local', 'rhn']} Arch i386 Packages 0
[root@preethi ~]# pulp repo list +-------------------------------------------+ List of Available Repositories +-------------------------------------------+ Label rhel-i386-server-5 Name rhel-i386-server-5 Feed {'url': 'satellite.rhn.redhat.com/rhel-i386-server-5', 'type': 'rhn', 'supported_types': ['yum', 'local', 'rhn']} Arch i386 Sync Schedule None Packages 2125 Package Categories ['development', 'desktops', 'language-support', 'apps', 'servers', 'base-system'] Package Groups 99 Label f12 Name f12 Feed {'url': 'http://download.devel.redhat.com/released/F-12/GOLD/Fedora/i386/os/', 'type': 'yum', 'supported_types': ['yum', 'local', 'rhn']} Arch i386 Sync Schedule None Packages 0 Package Categories ['development', 'desktops', 'language-support', 'apps', 'servers', 'base-system'] Package Groups 192 [root@preethi ~]# pulp consumer bind --repoid=f12 --consumerid=preethi.usersys.redhat.com Traceback (most recent call last): File "/usr/bin/pulp", line 5, in <module> pkg_resources.run_script('pulp==0.0.6', 'pulp') File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 461, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1194, in run_script execfile(script_filename, namespace, namespace) File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/EGG-INFO/scripts/pulp", line 26, in <module> pulpcli.PulpCore().main() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/pulpcli.py", line 102, in main cmd.main() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/core/basecore.py", line 43, in main self._do_core() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/core/core_consumer.py", line 129, in _do_core self._bind() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/core/core_consumer.py", line 212, in _bind self.repolib.update() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/repolib.py", line 68, in update return action.perform() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/repolib.py", line 128, in perform for cont in self.getUniqueContent(): File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/repolib.py", line 151, in getUniqueContent products = self.pulp.getProducts() File "/usr/lib/python2.6/site-packages/pulp-0.0.6-py2.6.egg/pulptools/repolib.py", line 90, in getProducts for repoid in consumer['repoids']: TypeError: 'NoneType' object is unsubscriptable [root@preethi ~]#
rm -Rf /etc/pulp/consumer git pull, install w/ developer setup.. not tito follow git work around..register a new user try again
[root@fedora12g2 ~]# pulp-admin -u admin -p admin consumer bind --id=10.65.193.75 --repoid=TAKE3rhel-i386-server-5 Successfully subscribed Consumer [10.65.193.75] to Repo [TAKE3rhel-i386-server-5]
Closing with Community Release 15 pulp-0.0.223-4.