[7.0] keystoneclient build with sphinx docs failure

Bug #1468391 reported by Daniil Trishkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
Alexander Makarov

Bug Description

Building of keystoneclient with build_sphinx fails with:

Traceback (most recent call last):
  File "setup.py", line 30, in <module>
    pbr=True)
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/pbr/packaging.py", line 754, in run
    self._sphinx_run()
  File "/usr/lib/python2.7/dist-packages/pbr/packaging.py", line 715, in _sphinx_run
    app.build(force_all=self.all_files)
  File "/usr/lib/python2.7/dist-packages/sphinx/application.py", line 208, in build
    self.builder.build_all()
  File "/usr/lib/python2.7/dist-packages/sphinx/builders/__init__.py", line 177, in build_all
    self.build(None, summary='all source files', method='all')
  File "/usr/lib/python2.7/dist-packages/sphinx/builders/__init__.py", line 239, in build
    self.warn(*warning)
  File "/usr/lib/python2.7/dist-packages/sphinx/application.py", line 260, in warn
    raise SphinxWarning(warntext)
sphinx.errors.SphinxWarning: /«PKGBUILDDIR»/doc/source/api/keystoneclient.tests.unit.rst:77: WARNING: autodoc: failed to import module u'keystoneclient.tests.unit.test_hacking_checks'; the following exception was raised:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/sphinx/ext/autodoc.py", line 335, in import_object
    __import__(self.modname)
  File "/«PKGBUILDDIR»/keystoneclient/tests/unit/test_hacking_checks.py", line 16, in <module>
    import pep8
ImportError: No module named pep8

Jenkins job: http://osci-jenkins.srt.mirantis.net:8080/job/7.0.mos-new.build-deb-request/854

Cause of this is https://launchpad.net/bugs/1260495

Now, when bug is fixed, this workaround https://review.fuel-infra.org/gitweb?p=openstack/python-keystoneclient.git;a=blob;f=doc/source/conf.py;h=f256fd4635d6c8cae4396d96507d9433b33ceaee;hb=refs/heads/openstack-ci/fuel-7.0/2015.1.0#l26, https://review.fuel-infra.org/gitweb?p=openstack/python-keystoneclient.git;a=blob;f=doc/source/conf.py;h=f256fd4635d6c8cae4396d96507d9433b33ceaee;hb=refs/heads/openstack-ci/fuel-7.0/2015.1.0#l47 is unnecessary.

Patch with all necessary changes is attached

Revision history for this message
Daniil Trishkin (dtrishkin) wrote :
summary: - [7.0] keystoneclient build failure
+ [7.0] keystoneclient build with sphinxdoc failure
summary: - [7.0] keystoneclient build with sphinxdoc failure
+ [7.0] keystoneclient build with sphinx docs failure
description: updated
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to openstack/python-keystoneclient (openstack-ci/fuel-7.0/2015.1.0)

Related fix proposed to branch: openstack-ci/fuel-7.0/2015.1.0
Change author: Daniil Trishkin <email address hidden>
Review: https://review.fuel-infra.org/9156

Changed in mos:
assignee: MOS Keystone (mos-keystone) → Alexander Makarov (amakarov)
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix merged to openstack/python-keystoneclient (openstack-ci/fuel-7.0/2015.1.0)

Reviewed: https://review.fuel-infra.org/9156
Submitter: mos-infra-ci <>
Branch: openstack-ci/fuel-7.0/2015.1.0

Commit: 8592baa0263a26e2fc0e02621826a88da99e075d
Author: Daniil Trishkin <email address hidden>
Date: Wed Jul 8 15:19:10 2015

Fix sys.path, import and index.rst

Change-Id: I8beabfa8593cbe4843bd5b422d002adc0b90ce1d
Related-Bug: 1468391

Changed in mos:
status: New → Confirmed
milestone: none → 7.0
Changed in mos:
status: Confirmed → Fix Committed
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

The latest results of this job are green:

http://osci-jenkins.srt.mirantis.net:8080/job/7.0.mos-new.build-deb-request/

status of the issue marked as Fix Released.

Changed in mos:
status: Fix Committed → Fix Released
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to openstack/python-keystoneclient (openstack-ci/fuel-8.0/liberty)

Related fix proposed to branch: openstack-ci/fuel-8.0/liberty
Change author: Daniil Trishkin <email address hidden>
Review: https://review.fuel-infra.org/13483

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/python-keystoneclient (openstack-ci/fuel-8.0/liberty)

Change abandoned by Alexander Makarov <email address hidden> on branch: openstack-ci/fuel-8.0/liberty
Review: https://review.fuel-infra.org/13483
Reason: not needed in 8.0

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.