Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 719992

Summary: InstallMedia repo disabled, but PackageKit still complains
Product: Red Hat Enterprise Linux 6 Reporter: Giacomo G. Brussino <ggb>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-05 09:13:58 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:

Description Giacomo G. Brussino 2011-07-08 15:52:57 UTC
Description of problem:

pkcon repo-list
Getting repositories          [=========================]         
Starting                      [=========================]         
 Enabled    rhn-tools-rhel-x86_64-workstation-6 RHN Tools for RHEL Workstation (v. 6 for 64-bit x86_64)
 Disabled   rhel-source-beta          Red Hat Enterprise Linux 6Workstation Beta - x86_64 - Source
 Disabled   _local                    Automatic local repo. (manged by the "local" yum plugin).
 Disabled   rhel-source               Red Hat Enterprise Linux 6Workstation - x86_64 - Source
 Enabled    rhel-x86_64-workstation-optional-6 RHEL Workstation Optional (v. 6 for x86_64)
 Disabled   InstallMedia              Red Hat Enterprise Linux 6.0
 Enabled    rhel-x86_64-workstation-6 Red Hat Enterprise Linux Workstation (v. 6 for x86_64)
 Enabled    rhel-x86_64-workstation-supplementary-6 RHEL Workstation Supplementary (v. 6 for x86_64)
Message: repo-metadata-download-failed: Could not contact media source 'InstallMedia', so it will be disabled



Version-Release number of selected component (if applicable):
PackageKit-0.5.8-19.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. run pkcon repo-list
2.
3.
  
Actual results:
See above

Expected results:
The message "Message: repo-metadata-download-failed: Could not contact media source 'InstallMedia', so it will be disabled" should not appear.

Additional info:

Comment 2 Richard Hughes 2011-08-18 10:07:37 UTC
Do you have the install media in the DVD drive?

Comment 3 Giacomo G. Brussino 2011-08-18 15:13:26 UTC
There's no install media in the DVD drive.

Here is what I get on one system:

[root@auroranew etc]# pkcon repo-list
Getting repositories          [=========================]         
Starting                      [=========================]         
Downloading repository information[=========================]         
 Disabled   rhel-source-beta          Red Hat Enterprise Linux 6Workstation Beta - x86_64 - Source
 Disabled   rhel-source               Red Hat Enterprise Linux 6Workstation - x86_64 - Source
 Enabled    _local                    Automatic local repo. (manged by the "local" yum plugin).
[root@auroranew etc]# yum repolist
Loaded plugins: aliases, changelog, downloadonly, kabi, local, post-transaction-
              : actions, presto, priorities, protectbase, refresh-packagekit,
              : rhnplugin, security, tmprepo, verify, versionlock
Loading support for Red Hat kernel ABI
0 packages excluded due to repository protections
repo id                                 repo name                         status
_local                                  Automatic local repo. (manged by     67
rhel-x86_64-workstation-6               Red Hat Enterprise Linux Workstat 5,669
rhel-x86_64-workstation-optional-6      RHEL Workstation Optional (v. 6 f 3,151
rhel-x86_64-workstation-supplementary-6 RHEL Workstation Supplementary (v   138
rhn-tools-rhel-x86_64-workstation-6     RHN Tools for RHEL Workstation (v    43
repolist: 9,068
[root@auroranew etc]# pkcon repo-list
Getting repositories          [=========================]         
Starting                      [=========================]         
 Enabled    rhn-tools-rhel-x86_64-workstation-6 RHN Tools for RHEL Workstation (v. 6 for 64-bit x86_64)
 Disabled   rhel-source-beta          Red Hat Enterprise Linux 6Workstation Beta - x86_64 - Source
 Enabled    _local                    Automatic local repo. (manged by the "local" yum plugin).
 Disabled   rhel-source               Red Hat Enterprise Linux 6Workstation - x86_64 - Source
 Enabled    rhel-x86_64-workstation-optional-6 RHEL Workstation Optional (v. 6 for x86_64)
 Enabled    rhel-x86_64-workstation-6 Red Hat Enterprise Linux Workstation (v. 6 for x86_64)
 Enabled    rhel-x86_64-workstation-supplementary-6 RHEL Workstation Supplementary (v. 6 for x86_64)
[root@auroranew etc]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/luks-6c6691b4-7776-49d1-9ed1-a9947019592e
                     231588896  17239032 202585744   8% /
tmpfs                  2994988       540   2994448   1% /dev/shm
/dev/sda1               516040     67964    421864  14% /boot
[root@auroranew etc]# yum list installed PackageKit
Loaded plugins: aliases, changelog, downloadonly, kabi, local, post-transaction-
              : actions, presto, priorities, protectbase, refresh-packagekit,
              : rhnplugin, security, tmprepo, verify, versionlock
Loading support for Red Hat kernel ABI
0 packages excluded due to repository protections
Installed Packages
PackageKit.x86_64            0.5.8-19.el6             @rhel-x86_64-workstation-6
[root@auroranew etc]# 


Note the difference in output between the 1st run of pkcon and the second.
In between I run "yum repolist".

On this system pkcon does not complain about the InstallMedia.
On a VMware VM, I get:

[root@linaura ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3             26705156  18874216   6474396  75% /
tmpfs                  1962904       344   1962560   1% /dev/shm
/dev/sda1               126931     69932     50446  59% /boot
[root@linaura ~]# yum list installed PackageKit
Loaded plugins: aliases, changelog, downloadonly, kabi, local, post-transaction-
              : actions, presto, priorities, protectbase, refresh-packagekit,
              : rhnplugin, security, tmprepo, verify, versionlock
Loading support for Red Hat kernel ABI
0 packages excluded due to repository protections
Installed Packages
PackageKit.x86_64                      0.5.8-19.el6                      @_local
[root@linaura ~]# pkcon repo-list
Getting repositories          [=========================]         
Starting                      [=========================]         
 Enabled    rhn-tools-rhel-x86_64-workstation-6 RHN Tools for RHEL Workstation (v. 6 for 64-bit x86_64)
 Disabled   rhel-source-beta          Red Hat Enterprise Linux 6Workstation Beta - x86_64 - Source
 Disabled   _local                    Automatic local repo. (manged by the "local" yum plugin).
 Disabled   rhel-source               Red Hat Enterprise Linux 6Workstation - x86_64 - Source
 Enabled    rhel-x86_64-workstation-optional-6 RHEL Workstation Optional (v. 6 for x86_64)
 Disabled   InstallMedia              Red Hat Enterprise Linux 6.0
 Enabled    rhel-x86_64-workstation-6 Red Hat Enterprise Linux Workstation (v. 6 for x86_64)
 Enabled    rhel-x86_64-workstation-supplementary-6 RHEL Workstation Supplementary (v. 6 for x86_64)
Message: repo-metadata-download-failed: Could not contact media source 'InstallMedia', so it will be disabled
[root@linaura ~]# yum repolist
Loaded plugins: aliases, changelog, downloadonly, kabi, local, post-transaction-
              : actions, presto, priorities, protectbase, refresh-packagekit,
              : rhnplugin, security, tmprepo, verify, versionlock
Loading support for Red Hat kernel ABI
0 packages excluded due to repository protections
repo id                                 repo name                         status
rhel-x86_64-workstation-6               Red Hat Enterprise Linux Workstat 5,669
rhel-x86_64-workstation-optional-6      RHEL Workstation Optional (v. 6 f 3,151
rhel-x86_64-workstation-supplementary-6 RHEL Workstation Supplementary (v   138
rhn-tools-rhel-x86_64-workstation-6     RHN Tools for RHEL Workstation (v    43
repolist: 9,001
[root@linaura ~]# pkcon repo-list
Getting repositories          [=========================]         
Starting                      [=========================]         
 Enabled    rhn-tools-rhel-x86_64-workstation-6 RHN Tools for RHEL Workstation (v. 6 for 64-bit x86_64)
 Disabled   rhel-source-beta          Red Hat Enterprise Linux 6Workstation Beta - x86_64 - Source
 Disabled   _local                    Automatic local repo. (manged by the "local" yum plugin).
 Disabled   rhel-source               Red Hat Enterprise Linux 6Workstation - x86_64 - Source
 Enabled    rhel-x86_64-workstation-optional-6 RHEL Workstation Optional (v. 6 for x86_64)
 Disabled   InstallMedia              Red Hat Enterprise Linux 6.0
 Enabled    rhel-x86_64-workstation-6 Red Hat Enterprise Linux Workstation (v. 6 for x86_64)
 Enabled    rhel-x86_64-workstation-supplementary-6 RHEL Workstation Supplementary (v. 6 for x86_64)
Message: repo-metadata-download-failed: Could not contact media source 'InstallMedia', so it will be disabled
[root@linaura ~]# 
[ggb@auroranew ~]$ 


No difference in output between the 2 runs of pkcon, but I get the InstallMedia message.

On this system I get the same message when I do "pkcon get-updates" and anything else.

The only difference I see between the 2 systems is that on the VM "yum repolist all" shows the InstallMedia repo.

Hummm... so on the VM in /etc/yum.repos.d there's a packagekit-media.repo file. If I remove that file, the issue goes away. Of course, I don't know where that file came from...

Comment 4 Richard Hughes 2012-03-05 09:13:58 UTC

*** This bug has been marked as a duplicate of bug 654979 ***