Bug 718093 - Note the need for optional channel to install mrg management group
Summary: Note the need for optional channel to install mrg management group
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: cumin
Version: Development
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: 2.1
: ---
Assignee: Trevor McKay
QA Contact: Stanislav Graf
URL:
Whiteboard:
Depends On:
Blocks: 743350
TreeView+ depends on / blocked
 
Reported: 2011-06-30 23:28 UTC by james labocki
Modified: 2012-09-17 07:01 UTC (History)
3 users (show)

Fixed In Version: cumin-0.1.5068-1
Doc Type: Bug Fix
Doc Text:
Previously, the cumin package had a dependency on the dejavu-lgc-sans-fonts package, which is only available through an optional Red Hat Network channel. As a consequence, the Cumin web console could not be installed on Red Hat Enterprise Linux 6 using only the non-optional Red Hat Network channels. With this update, the dependency has been changed to the liberation-sans-fonts package and Cumin now installs correctly in the described scenario.
Clone Of:
Environment:
Last Closed: 2012-01-23 17:27:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 857822 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Bugzilla 857825 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Product Errata RHEA-2012:0045 0 normal SHIPPED_LIVE Red Hat Enterprise MRG Grid 2.1 bug fix and enhancement update 2012-01-23 22:22:58 UTC

Internal Links: 857822 857825

Description james labocki 2011-06-30 23:28:35 UTC
I believe it may be useful to inform users what channels in Red Hat Network/Satellite are required for the command `yum groupinstall "MRG Management"` to be successful. You will notice that if you simply subscribe the system to the "MRG Management v. 2 (for RHEL 6 Server x86_64)" channel and run the command you get the following output.

[root@mrg ~]# yum groupinstall "MRG Management"
Loaded plugins: rhnplugin
Setting up Group Process
Resolving Dependencies
--> Running transaction check
---> Package cumin.noarch 0:0.1.4794-1.el6 set to be updated
--> Processing Dependency: postgresql >= 8.1.9 for package: cumin-0.1.4794-1.el6.noarch
--> Processing Dependency: python-psycopg2 >= 2.0.13 for package: cumin-0.1.4794-1.el6.noarch
--> Processing Dependency: python-qmf >= 0.7.946106-13 for package: cumin-0.1.4794-1.el6.noarch
--> Processing Dependency: postgresql-server >= 8.1.9 for package: cumin-0.1.4794-1.el6.noarch
--> Processing Dependency: dejavu-lgc-sans-fonts for package: cumin-0.1.4794-1.el6.noarch
--> Running transaction check
---> Package cumin.noarch 0:0.1.4794-1.el6 set to be updated
--> Processing Dependency: dejavu-lgc-sans-fonts for package: cumin-0.1.4794-1.el6.noarch
---> Package postgresql.x86_64 0:8.4.7-2.el6 set to be updated
--> Processing Dependency: postgresql-libs(x86-64) = 8.4.7-2.el6 for package: postgresql-8.4.7-2.el6.x86_64
--> Processing Dependency: libpq.so.5()(64bit) for package: postgresql-8.4.7-2.el6.x86_64
---> Package postgresql-server.x86_64 0:8.4.7-2.el6 set to be updated
---> Package python-psycopg2.x86_64 0:2.0.13-2.el6 set to be updated
---> Package python-qpid-qmf.x86_64 0:0.10-6.el6 set to be updated
--> Running transaction check
---> Package cumin.noarch 0:0.1.4794-1.el6 set to be updated
--> Processing Dependency: dejavu-lgc-sans-fonts for package: cumin-0.1.4794-1.el6.noarch
---> Package postgresql-libs.x86_64 0:8.4.7-2.el6 set to be updated
--> Finished Dependency Resolution
Error: Package: cumin-0.1.4794-1.el6.noarch (rhel-x86_64-server-6-mrg-management-2)
          Requires: dejavu-lgc-sans-fonts
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Without doing a search inside of RHN it is not possible to know that the package "dejavu-lgc-sans-fonts" is part of "RHEL Server Optional (v. 6 64-bit x86_64)". Can this be added to the documentation? If you would like me to open a BZ request asking for this please let me know.

Comment 1 Pavel Moravec 2011-07-28 09:01:12 UTC
I vote for adding this to installation manual. Without an advice that some extra channels ("RHEL Server High Availability" and "RHEL Server Optional") are required, I was stuck with a simple installation of MRG-M. The manual is too vague and general.

Comment 2 Pavel Moravec 2011-07-28 09:07:27 UTC
oops, please ignore comment 1, I posted it to wrong wrong tab in firefox..:(

Comment 3 Matthew Farrellee 2011-10-12 12:28:17 UTC
See bug 694457 for why dejavu-lgc-fonts is a dep on EL6.

Origin of this is cairo needs a font (fontconfig based) installed otherwise the png graphic generation will fail.

Reproduce by installing cumin and yum removing all installed fonts (including rpm -e --nodeps dejavu...). Once the system is purged of fonts, restart cumin and, with a flash-disabled browser, navigate to a screen with a graph. For instance, Inventory->a system. In place of the graph, "stats" will be displayed. Going directly to the graphic link (copy image location, open new window to location), will display something along the lines of -

Traceback (most recent call last):
  File "/usr/share/cumin/python/wooly/wsgiserver/__init__.py", line 1250, in communicate
    req.respond()
  File "/usr/share/cumin/python/wooly/wsgiserver/__init__.py", line 663, in respond
    self._respond()
  File "/usr/share/cumin/python/wooly/wsgiserver/__init__.py", line 669, in _respond
    response = self.wsgi_app(env, self.start_response)
  File "/usr/share/cumin/python/wooly/server.py", line 83, in service_request
    status, headers, content = self.service_page_request(page, env)
  File "/usr/share/cumin/python/wooly/server.py", line 130, in service_page_request
    content = page.service_error(session)
  File "/usr/share/cumin/python/wooly/__init__.py", line 484, in service_error
    return self.render(session)
  File "/usr/share/cumin/python/wooly/__init__.py", line 314, in render
    string = self.do_render(session, *args)
  File "/usr/share/cumin/python/cumin/stat.py", line 584, in do_render
    chart.plot_x_axis(x_intervals, x_step)
  File "/usr/share/cumin/python/cumin/charts.py", line 345, in plot_x_axis
    cr.show_text(text)
MemoryError

The cairo code in cumin does not specifically select a font for use in drawing graphs, so pretty much any font installed will work. dejavu-lgc-sans-fonts would work, except it is part of the EL6 -optional package set. I tested liberation-fonts on EL5 and liberation-sans-fonts on EL6 with success.

No change needed on EL5. Change dejavu-lgc-sans-fonts to liberation-sans-fonts on EL6.

Verification should make sure that no dependencies are coming from the -optional channel.

Comment 4 Trevor McKay 2011-10-13 14:40:08 UTC
Changed the dependency for el6 in cumin.spec to liberation-sans-fonts.

Comment 7 Stanislav Graf 2011-10-17 13:25:53 UTC
Reproduction:

RHEL5
# yum install cumin
OK
# rpm -q cumin
cumin-0.1.4916-1.el5
# yum deplist $(rpm -q cumin)
  dependency: dejavu-lgc-fonts
   provider: dejavu-lgc-fonts.noarch 2.10-1
i386# yum list available --showduplicates dejavu-lgc-fonts
dejavu-lgc-fonts.noarch 2.10-1 rhel-i386-server-5
x86_64# yum list available --showduplicates dejavu-lgc-fonts
dejavu-lgc-fonts.noarch 2.10-1 rhel-x86_64-server-5 

RHEL6
i386# yum install cumin
Error: Package: cumin-0.1.4916-1.el6.noarch (rhel-i386-server-6-mrg-management-2)
           Requires: dejavu-lgc-sans-fonts
x86_64# yum install cumin
Error: Package: cumin-0.1.4916-1.el6.noarch (rhel-x86_64-server-6-mrg-management-2)
           Requires: dejavu-lgc-sans-fonts
# yum deplist cumin
dependency: dejavu-lgc-sans-fonts
   Unsatisfied dependency
# yum list available --showduplicates dejavu-lgc-sans-fonts
Error: No matching Packages to list


Verification:

RHEL5
# yum update
OK
# rpm -q cumin
cumin-0.1.5068-1.el5
# yum deplist $(rpm -q cumin)
  dependency: dejavu-lgc-fonts
   provider: dejavu-lgc-fonts.noarch 2.10-1
i386# yum list available --showduplicates dejavu-lgc-fonts
dejavu-lgc-fonts.noarch 2.10-1 rhel-i386-server-5
x86_64# yum list available --showduplicates dejavu-lgc-fonts
dejavu-lgc-fonts.noarch 2.10-1 rhel-x86_64-server-5 
# cumin-admin upgrade-schema
OK

RHEL6
# yum install cumin
OK
# rpm -q cumin
cumin-0.1.5068-1.el6.noarch
# yum deplist $(rpm -q cumin)
dependency: liberation-sans-fonts
   provider: liberation-sans-fonts.noarch 1.05.1.20090721-4.el6
# yum list available --showduplicates liberation-sans-fonts.noarch
liberation-sans-fonts.noarch 1.05.1.20090721-4.el6 rhel-i386-server-6
# yum list available --showduplicates liberation-sans-fonts.noarch
liberation-sans-fonts.noarch 1.05.1.20090721-4.el6 rhel-x86_64-server-6

Verify graphs:
Restart cumin and, with a flash-disabled browser, navigate to a screen with a graph. For
instance, Inventory->a system. In place of the graph, "stats" isn't
displayed - there is a proper PNG graph. Going directly to the graphic link (copy image location, open new window to location), verify image is PNG, image is displayed properly.
OK

---> VERIFIED

Comment 8 Trevor McKay 2011-10-24 13:50:13 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause
    Cumin had a dependency on the dejavu-lgc-sans-fonts package in the the RHEL 6 rpm.  This package is only available through an optional RHN channel.

Consequence
    Cumin would not install on RHEL 6 using only the non-optional RHN channels.

Fix
    The dependency for RHEL 6 was changed to the liberation-sans-fonts package.

Result
    Cumin will install on RHEL 6 using only non-optional RHN channels.

Comment 9 Tomas Capek 2011-11-17 12:30:55 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,11 +1 @@
-Cause
+Previously, the cumin package had a dependency on the dejavu-lgc-sans-fonts package, which is only available through an optional Red Hat Network channel. As a consequence, the Cumin web console could not be installed on Red Hat Enterprise Linux 6 using only the non-optional Red Hat Network channels. With this update, the dependency has been changed to the liberation-sans-fonts package and Cumin now installs correctly in the described scenario.-    Cumin had a dependency on the dejavu-lgc-sans-fonts package in the the RHEL 6 rpm.  This package is only available through an optional RHN channel.
-
-Consequence
-    Cumin would not install on RHEL 6 using only the non-optional RHN channels.
-
-Fix
-    The dependency for RHEL 6 was changed to the liberation-sans-fonts package.
-
-Result
-    Cumin will install on RHEL 6 using only non-optional RHN channels.

Comment 10 errata-xmlrpc 2012-01-23 17:27:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2012-0045.html


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