← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1302532] Re: docs build for django-based projects should run with DJANGO_SETTINGS_MODULE envvar

 

My plan is:
- to add "docs" env which defines DJANGO_SETTINGS_MODULE and runs build_sphinx to tox.ini in Horizon and Django OpenStack auth.
- fix run_docs.sh in slave_scripts to use "tox -edocs" rather than "tox -evenv ...."


** Changed in: openstack-ci
     Assignee: (unassigned) => Akihiro Motoki (amotoki)

** Also affects: horizon
   Importance: Undecided
       Status: New

** Also affects: django-openstack-auth
   Importance: Undecided
       Status: New

** Changed in: horizon
     Assignee: (unassigned) => Akihiro Motoki (amotoki)

** Changed in: django-openstack-auth
     Assignee: (unassigned) => Akihiro Motoki (amotoki)

** Changed in: horizon
   Importance: Undecided => Medium

** Changed in: django-openstack-auth
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1302532

Title:
  docs build for django-based projects should run with
  DJANGO_SETTINGS_MODULE envvar

Status in Django OpenStack Auth:
  New
Status in OpenStack Dashboard (Horizon):
  New
Status in OpenStack Core Infrastructure:
  New

Bug description:
  When running docs build in the gate and post jobs for django-based
  projects (e.g., horizon, django_openstack_auth,  ...), we need to set
  DJANGO_SETTINGS_MODULE envvar.

  We can see the following errors in console logs:

  horizon-docs, gate-horizon-docs:
  ImproperlyConfigured: The SECRET_KEY setting must not be empty.
  https://jenkins.openstack.org/view/All/job/horizon-docs/
  https://jenkins.openstack.org/view/All/job/gate-horizon-docs/

  django-openstack-auth:
  error: invalid command 'build_sphinx'
  ERROR: InvocationError: '/home/jenkins/workspace/gate-django_openstack_auth-docs/.tox/venv/bin/python setup.py build_sphinx'
  It also comes from lack of DJANGO_SETTINGS_MODULES.
  https://jenkins.openstack.org/view/All/job/gate-django_openstack_auth-docs/
  https://jenkins.openstack.org/view/All/job/django_openstack_auth-docs/

To manage notifications about this bug go to:
https://bugs.launchpad.net/django-openstack-auth/+bug/1302532/+subscriptions