Hide Forgot
At the present time a pulp repository has a "notes" attribute where one can store arbitrary key value pairs. Pulp lets you create notes, but unfortunately fails on update with the following exception "Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py\", line 48, in report_error\n return method(self, *args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py\", line 127, in _auth_decorator\n value = method(self, *args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/repositories.py\", line 334, in PUT\n repo = api.update(id, delta)\n File \"/usr/lib/python2.7/site-packages/pulp/server/api/repo.py\", line 682, in update\n 'update keyword \"%s\", not-supported' % key\nException: update keyword \"notes\", not-supported\n" (PUT /pulp/api/repositories/1317917077453-syncer-ACME_Corporation/)
commit 9a2c3513812f2dddb8a30157546ac9a1fa225c54 Author: Sayli Karmarkar <skarmark> Date: Thu Oct 20 00:52:50 2011 -0700 747151 - Added api and cli to add, update and delete a key-value pair to repository notes along with wiki documentation for api and unit tests Add - POST /repositories/<id>/notes/ Update - PUT /repositories/<id>/notes/<key>/ Delete - DELETE /repositories/<id>/notes/<key>/ You can also list all repositories containing particular key-values by calling GET on /repositories/ with notes as the filter.
build: 0.241
Fails_qa root@preethi ~]# rpm -q pulp pulp-0.0.241-1.fc15.noarch Failing as the output needs to be neater Now the notes are shown as Notes {u'key1': u'value1'}
This bug is about api rather than cli. There were no changes made to displaying notes in cli. Moving to on_qa and opening new bug for neater display of notes.
verified [root@preethi ~]# curl -k -u admin:admin -X POST https://localhost/pulp/api/repositories/f15/notes/ -d '{"key":"key1","value":"value1"}' true[root@preethi curl -k -u admin:admin -X DELETE https://localhost/pulp/api/repositories/f15/notes/key1/ true[root@preethi curl -k -u admin:admin -X POST https://localhost/pulp/api/repositories/f15/notes/ -d '{"key":"key1","value":"value1"}' true[root@preethi ~]#
Pulp v1.0 is released Closed Current Release.