Fuel master installation fails: 'ProgrammingError: (ProgrammingError) relation "releases" does not exist'

Bug #1519990 reported by Artem Panchenko on 2015-11-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Critical
Vladimir Kozhukalov

Bug Description

Fuel version info (8.0 build #208): http://paste.openstack.org/show/480057/

Fuel master node installation fails, because Nailgun returns 500 errors on API requests:

ProgrammingError: (ProgrammingError) relation "releases" does not exist

According to Nailgun logs, database sync failed due to unsatisfied dependencies:

Notice: /Stage[main]/Nailgun::Venv/Exec[nailgun_syncdb]/returns: Traceback (most recent call last):
Notice: /Stage[main]/Nailgun::Venv/Exec[nailgun_syncdb]/returns: File "/usr/bin/nailgun_syncdb", line 5, in <module>
Notice: /Stage[main]/Nailgun::Venv/Exec[nailgun_syncdb]/returns: from pkg_resources import load_entry_point
Notice: /Stage[main]/Nailgun::Venv/Exec[nailgun_syncdb]/returns: File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2961, in <module>
Notice: /Stage[main]/Nailgun::Venv/Exec[nailgun_syncdb]/returns: parse_requirements(__requires__), Environment()
Notice: /Stage[main]/Nailgun::Venv/Exec[nailgun_syncdb]/returns: File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 594, in resolve
Notice: /Stage[main]/Nailgun::Venv/Exec[nailgun_syncdb]/returns: raise DistributionNotFound(req)
Notice: /Stage[main]/Nailgun::Venv/Exec[nailgun_syncdb]/returns: pkg_resources.DistributionNotFound: setuptools==18.5
Error: /usr/bin/nailgun_syncdb returned 1 instead of one of [0]

After I removed the line 'setuptools==18.5' from /usr/lib/python2.6/site-packages/nailgun-8.0.0-py2.6.egg-info/requires.txt and restarted docker container, Nailgun became to work fine.

Fix proposed to branch: master
Review: https://review.openstack.org/250047

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Artem Panchenko (apanchenko-8)
status: New → In Progress
Changed in fuel:
assignee: Artem Panchenko (apanchenko-8) → Vladimir Kozhukalov (kozhukalov)

Reviewed: https://review.openstack.org/250044
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=31fd638659583a4deafb3b87b689b74e1c1b7a9c
Submitter: Jenkins
Branch: master

commit 31fd638659583a4deafb3b87b689b74e1c1b7a9c
Author: Vladimir Kozhukalov <email address hidden>
Date: Thu Nov 26 01:32:03 2015 +0300

    Change setuptools requirement to <=18.5

    The thing is that this requirement setuptools==18.5
    becomes a part of fuel-nailgun RPM package.
    The highest available version in mirror.fuel-infra.org
    at the moment is python-setuptools-0.7.2 which
    leads to the error pkg_resources.VersionConflict when
    trying to load nailgun entry points using for example

    load_entry_point('nailgun==8.0.0', 'console_scripts', 'nailgun_syncdb')

    Console script entry points are used during the Fuel
    master node deployment.

    Change-Id: I1e9b326912ef2e60da87f89af89d3a7968818276
    Related-Bug: #1519727
    Closes-Bug: #1519990

Changed in fuel:
status: In Progress → Fix Committed

Change abandoned by Artem Panchenko (<email address hidden>) on branch: master
Review: https://review.openstack.org/250047
Reason: https://review.openstack.org/250044

Nastya Urlapova (aurlapova) wrote :

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  openstack_version: "2015.1.0-8.0"
  api: "1.0"
  build_number: "212"
  build_id: "212"
  fuel-nailgun_sha: "13d1800be2452bd297555eedf051bda469b5663b"
  python-fuelclient_sha: "4f9a873b1ae68271bb848a1145b3cf912a176f4b"
  fuel-agent_sha: "f0e09fa7a30b5ab87e901601bfb6c1e339a6bdaa"
  fuel-nailgun-agent_sha: "b56f832abc18aee9a8c603fd6cc2055c5f4287bc"
  astute_sha: "d2c1b401816c6f0341902272f37018b9cec3c775"
  fuel-library_sha: "c892d2919620947225687ccde63d0e038784f0a2"
  fuel-ostf_sha: "5cf8c484a9a4f45f353468438cf98f1b5a5c5dfb"
  fuel-createmirror_sha: "9b335c8d551c87d788166947cb7ed519757881e8"
  fuelmenu_sha: "9627849843e84b7f01c44bd79898a8d62d96ce66"
  shotgun_sha: "34a081508b603723e14f9415a62373be39f3685f"
  network-checker_sha: "2c62cd52655ea6456ff6294fd63f18d6ea54fe38"
  fuel-upgrade_sha: "1e894e26d4e1423a9b0d66abd6a79505f4175ff6"
  fuelmain_sha: "daed38102b6074393821d675e3d7d866fcdb3da5"

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

Other bug subscribers