Bug 672326
Summary: | Remote package installation when the GPG key isn't already imported might hang | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
Component: | z_other | Assignee: | Pradeep Kilambi <pkilambi> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | skarmark, tsanders |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | Sprint 22 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-08-16 12:06:57 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 647488 |
Description
Jay Dobies
2011-01-24 20:29:02 UTC
I this when trying errata install on remote client. I saw this :) Is this as simple as adding "-y" to the "yum install" command? -Todd I'm not sure if that "-y" will apply to both the confirmation and GPG import or just the confirmation. I also suspect that code is using yum libraries directly, so we may need to find how to pass that magical flag into yum's API (if its even supported by API). commit e09adea983cbf7af7c287b169742528333d9c4db build: 0.162 Fixed in build 0.163. fails_qa [root@preethi ~]# rpm -q pulp pulp-0.0.213-1.fc14.noarch [root@preethi ~]# pulp-admin package install -n pulp --consumerid=pulp-client Created task id: 34574280-b7b3-11e0-9df3-002564a85a58 Task is scheduled for: None Waiting: [\] Package install failed: error Exception: YumBaseError() Traceback: ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/pulp/server/tasking/task.py", line 330, in run\n result = self.callable(*self.args, **self.kwargs)\n', ' File "/usr/lib/python2.7/site-packages/pulp/server/api/consumer.py", line 464, in __installpackages\n return packages.install(names, reboot, yes)\n', ' File "/usr/lib/python2.7/site-packages/gofer/messaging/stub.py", line 71, in __call__\n return self.stub._send(request, opts)\n', ' File "/usr/lib/python2.7/site-packages/gofer/messaging/stub.py", line 142, in _send\n any=opts.any)\n', ' File "/usr/lib/python2.7/site-packages/gofer/messaging/policy.py", line 121, in send\n return self.__getreply(sn, reader)\n', ' File "/usr/lib/python2.7/site-packages/gofer/messaging/policy.py", line 173, in __getreply\n return self.__onreply(envelope)\n', ' File "/usr/lib/python2.7/site-packages/gofer/messaging/policy.py", line 189, in __onreply\n raise RemoteException.instance(reply)\n', 'YumBaseError: Not installing key\n'] I dont see you updating the config. The default is to deny auto import. What does your config say: $ cat /etc/pulp/client.conf|grep import_gpg_keys # import_gpg_keys : automatically import gpg keys if available during remote package installs import_gpg_keys = True That value should be true for yum to auto import your key. verified. My mistake in not updating the config. Once updated [root@preethi gpg-repo]# pulp-admin package install -n pulp --consumerid=pulp-client Created task id: 2cd64168-b893-11e0-ae69-002564a85a58 Task is scheduled for: None Waiting: [\] [[['pulp-0.0.215-1.fc14.noarch'], None]] installed on pulp-client And on the client [root@10 ~]# ls -l /etc/pki/pulp-gpg-keys/ total 4 drwxr-xr-x. 2 root root 4096 Jul 27 16:46 gpg-repo [root@10 ~]# [root@10 ~]# [root@10 ~]# ls -l /etc/pki/pulp-gpg-keys/gpg-repo/ total 4 -rw-r--r--. 1 root root 1024 Jul 27 16:46 RPM-GPG-KEY-pthomas Closing with Community Release 15 pulp-0.0.223-4. Closing with Community Release 15 pulp-0.0.223-4. |