Build pygraphviz packet for Centos Master node

Bug #1510884 reported by Artem Hrechanychenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Daniil Trishkin

Bug Description

Need to install Graphviz and pygraphviz library on CentOS 6.5 Master node for rendering fuel graph's

from Graphviz official site:

"to use PyGraphviz you need Python version 2.4 or later To use PyGraphviz you need GraphViz version 2.16 or later"

After install graphviz check packet with "yum install graphviz"

"Package graphviz-2.26.0-10.el6.x86_64 already installed and latest version
Nothing to do".
So version greather than 2.16. Next step - install pygraphviz library

But cannot install pygraphviz any ways, with python 2.6.6 or 2.7.

1) yum install python-pygraphviz - cannot find this packet in repos
2) pip install python-pygraphviz - error trace - http://paste.openstack.org/show/477479/
3) easy_install python-pygraphviz - error trace - http://paste.openstack.org/show/477477/
4) manually install from source - simillar result to pip install

Tags: area-mos
Changed in fuel:
assignee: Fuel build team (fuel-build) → nobody
Revision history for this message
Artem Silenkov (asilenkov) wrote :
Changed in fuel:
status: New → Invalid
assignee: nobody → Artem Silenkov (asilenkov)
Revision history for this message
Artem Hrechanychenko (agrechanichenko) wrote :

Unfortunately installing graphviz-python-2.26.0-10.el6.x86_64.rpm not solving problem.

fuel graph --render doesn't see graphviz and pygraphviz library

[root@nailgun ~]# rpm -i graphviz-python-2.26.0-10.el6.x86_64.rpm
       package graphviz-python-2.26.0-10.el6.x86_64 is already installed

[root@nailgun ~]# fuel graph --render graph.gv
This action requires Graphviz installed together with 'pygraphviz' Python library

[root@nailgun ~]#yum install graphviz
Loaded plugins: fastestmirror, priorities
Setting up Install Process
Loading mirror speeds from cached hostfile
Package graphviz-2.26.0-10.el6.x86_64 already installed and latest version
Nothing to do

[root@nailgun ~]# fuel graph --render graph.gv
This action requires Graphviz installed together with 'pygraphviz' Python library

Changed in fuel:
status: Invalid → Triaged
summary: - cannot install pygraphviz library on CentOS Master Node
+ fuel graph --render cannot see instralled pygraphviz library on CentOS
+ Master Node
summary: - fuel graph --render cannot see instralled pygraphviz library on CentOS
+ fuel graph --render cannot see installed pygraphviz library on CentOS
Master Node
Changed in fuel:
assignee: Artem Silenkov (asilenkov) → nobody
Revision history for this message
Artem Silenkov (asilenkov) wrote : Re: fuel graph --render cannot see installed pygraphviz library on CentOS Master Node

Seems need to repackage it, upstream package is incomplete.
will do tomorrow.

Changed in fuel:
assignee: nobody → Artem Silenkov (asilenkov)
Revision history for this message
Alexey Shtokolov (ashtokolov) wrote :

Folks, we need this version of pygraphviz https://pypi.python.org/pypi/pygraphviz/1.3rc1
Latest version does not support python 2.7

Dmitry Pyzhov (dpyzhov)
tags: added: area-build
Roman Vyalov (r0mikiam)
tags: added: area-mos
removed: area-build
Revision history for this message
Alexander Kurenyshev (akurenyshev) wrote :

Tried on the Centos7:
[root@nailgun yum.repos.d]# rpm -q graphviz
graphviz-2.30.1-19.el7.x86_64

[root@nailgun yum.repos.d]# pip install https://pypi.python.org/packages/source/p/pygraphviz/pygraphviz-1.3rc1.tar.gz
Collecting https://pypi.python.org/packages/source/p/pygraphviz/pygraphviz-1.3rc1.tar.gz
  Using cached pygraphviz-1.3rc1.tar.gz
    Complete output from command python setup.py egg_info:
    Package libcgraph was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libcgraph.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libcgraph' found
    Package libcgraph was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libcgraph.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libcgraph' found
    Trying pkg-config
    Trying dotneato-config
    Failed to find dotneato-config

    Your Graphviz installation could not be found.

        1) You don't have Graphviz installed:
           Install Graphviz (http://graphviz.org)

        2) Your Graphviz package might incomplete.
           Install the binary development subpackage (e.g. libgraphviz-dev or similar.)

        3) You are using Windows
           There are no PyGraphviz binary packages for Windows but you might be
           able to build it from this source. See
           http://networkx.lanl.gov/pygraphviz/reference/faq.html

        If you think your installation is correct you will need to manually
        change the include_dirs and library_dirs variables in setup.py to
        point to the correct locations of your graphviz installation.

        The current setting of library_dirs and include_dirs is:
    library_dirs=None
    include_dirs=None

    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-6sOJPf-build/setup.py", line 91, in <module>
        raise OSError("Error locating graphviz.")
    OSError: Error locating graphviz.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-6sOJPf-build

Revision history for this message
Artem Silenkov (asilenkov) wrote :

could you try
yum install graphviz-devel

Revision history for this message
Artem Hrechanychenko (agrechanichenko) wrote :

Need to build pygraphviz rpm package for Centos master node.
1) connect base repository for a specific Centos release(7.1.x)
2) install graphviz, gcc, graphviz-devel, python-devel, pygraphviz-devel from pip install git://github.com/pygraphviz/pygraphviz.git#egg=pygraphviz

Revision history for this message
Artem Hrechanychenko (agrechanichenko) wrote :

or pip install pygraphviz==1.2

3) build new pygraphviz.rpm and put to master node centos local repository

Changed in fuel:
milestone: 8.0 → 9.0
summary: - fuel graph --render cannot see installed pygraphviz library on CentOS
- Master Node
+ Build pygraphviz packet for Centos Master node
tags: added: area-build
removed: area-mos
Roman Vyalov (r0mikiam)
tags: added: area-mos
removed: area-build
Revision history for this message
Alexey Shtokolov (ashtokolov) wrote :

This bug breaks the functional of fuel cli (fuel graph part)

Changed in fuel:
importance: Medium → High
milestone: 9.0 → 8.0
Revision history for this message
Artem Silenkov (asilenkov) wrote :

This package is still broken. Need to repackage.

Changed in fuel:
status: Triaged → In Progress
milestone: 8.0 → 9.0
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to fuel-infra/jeepyb-config (master)

Related fix proposed to branch: master
Change author: Artem Silenkov <email address hidden>
Review: https://review.fuel-infra.org/16457

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix merged to fuel-infra/jeepyb-config (master)

Reviewed: https://review.fuel-infra.org/16457
Submitter: Andrey Nikitin <email address hidden>
Branch: master

Commit: 39994ab0a4f3990d4b08a27086d89df8900403c2
Author: Artem Silenkov <email address hidden>
Date: Tue Jan 26 12:34:04 2016

graphviz added for centos7 Mitaka

* packages/centos7/graphviz
* packages/centos7/python-pygraphviz

Change-Id: I1a283f47befe6036f024ad5bb8bfadb8b07bf4ff
Related-Bug: #1510884

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix merged to packages/centos7/python-pygraphviz (master)

Reviewed: https://review.fuel-infra.org/16460
Submitter: Pkgs Jenkins <email address hidden>
Branch: master

Commit: ce32962c85ed0198ba1cc6edb89e27cd63bb0da2
Author: Artem Silenkov <email address hidden>
Date: Tue Jan 26 13:56:18 2016

python-pygraphviz added for MOS

Upstream centos version seems to be incomplete

Related-Bug: #1510884

Change-Id: I56e31c50a045b521ec59e3a702b366864d1ee962

Revision history for this message
Artem Silenkov (asilenkov) wrote :

you will probably need to modify ISO centos7 repos and add base repo there.
Or we should modify fuel-main to include all needed packages.

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Artem Silenkov (asilenkov) wrote :
Revision history for this message
Artem Hrechanychenko (agrechanichenko) wrote :

reproduced on fuel-8.0 rc1

[root@nailgun Packages]# yum install python-pygraphviz
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
No package python-pygraphviz available.
Error: Nothing to do

also cannot find on local repos

[root@nailgun Packages]# fuel graph --env 1 download >>graph.gv
[root@nailgun Packages]# fuel graph --render graph.gv
This action requires Graphviz installed together with 'pygraphviz' Python library

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "529"
  build_id: "529"
  fuel-nailgun_sha: "baec8643ca624e52b37873f2dbd511c135d236d9"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "658be72c4b42d3e1436b86ac4567ab914bfb451b"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "e2d79330d5d708796330fac67722c21f85569b87"
  fuel-ostf_sha: "3bc76a63a9e7d195ff34eadc29552f4235fa6c52"
  fuel-mirror_sha: "fb45b80d7bee5899d931f926e5c9512e2b442749"
  fuelmenu_sha: "e071216cb214e34b4d861478033425ee6a54a3be"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "a365f05b903368225da3fea9aa42afc1d50dc9b4"

Revision history for this message
Daniil Trishkin (dtrishkin) wrote :

Reopen, cause missed graphviz-python dependency

Changed in fuel:
status: Fix Committed → In Progress
assignee: Artem Silenkov (asilenkov) → Daniil Trishkin (dtrishkin)
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to packages/centos7/python-pygraphviz (master)

Fix proposed to branch: master
Change author: Daniil Trishkin <email address hidden>
Review: https://review.fuel-infra.org/19450

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to packages/centos7/python-pygraphviz (9.0)

Fix proposed to branch: 9.0
Change author: Daniil Trishkin <email address hidden>
Review: https://review.fuel-infra.org/19451

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on packages/centos7/python-pygraphviz (9.0)

Change abandoned by Daniil Trishkin <email address hidden> on branch: 9.0
Review: https://review.fuel-infra.org/19451

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change restored on packages/centos7/python-pygraphviz (9.0)

Change restored by Daniil Trishkin <email address hidden> on branch: 9.0
Review: https://review.fuel-infra.org/19451

Changed in fuel:
status: In Progress → Fix Committed
status: Fix Committed → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to packages/centos7/python-pygraphviz (master)

Reviewed: https://review.fuel-infra.org/19450
Submitter: Pkgs Jenkins <email address hidden>
Branch: master

Commit: ed793d81cecf4a3d6710931020dee25d5af9f2e6
Author: Daniil Trishkin <email address hidden>
Date: Fri Apr 8 14:44:37 2016

Update to 1.3-3

 - Update runtime requirements according to global requirements

Change-Id: I6235497b018d82abf58769a18bc05de938236da0
Closes-Bug: #1510884

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to packages/centos7/python-pygraphviz (9.0)

Reviewed: https://review.fuel-infra.org/19451
Submitter: Pkgs Jenkins <email address hidden>
Branch: 9.0

Commit: 87461d5549da610ae68885b3e5260814f599eaa5
Author: Daniil Trishkin <email address hidden>
Date: Fri Apr 8 14:49:11 2016

Update to 1.3-3

 - Update runtime requirements according to global requirements

Change-Id: I6235497b018d82abf58769a18bc05de938236da0
Closes-Bug: #1510884

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Ok, the issue was fixed, marked as FixReleased.
Please reopen the issue if it wasn't completely fixed or if it will be reproduced again.

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.