System information in Ubuntu does not open, again

Bug #1440041 reported by Timur Sufiev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
Max Yatsenko
7.0.x
Fix Released
High
Max Yatsenko

Bug Description

{"build_id": "2015-04-02_11-31-45", "ostf_sha": "f857d25eb062af03538f9c0ccf154b4d1d1b0aee", "build_number": "266", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-04-02_11-31-45", "ostf_sha": "f857d25eb062af03538f9c0ccf154b4d1d1b0aee", "build_number": "266", "api": "1.0", "nailgun_sha": "325e8a5b3ec1056149ef3b4dd5ddcb6991d118a5", "production": "docker", "python-fuelclient_sha": "9b0b6ab2f09ff75445550b7210104e21df5d8cd6", "astute_sha": "06b8dd1a4ba24b013d696ff4b73deea07cc90128", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "0531641add9670e94e467954dbdc1a7f1870f591", "fuellib_sha": "091748533839079ea854890ad793ee56898857d2"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "325e8a5b3ec1056149ef3b4dd5ddcb6991d118a5", "production": "docker", "python-fuelclient_sha": "9b0b6ab2f09ff75445550b7210104e21df5d8cd6", "astute_sha": "06b8dd1a4ba24b013d696ff4b73deea07cc90128", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "0531641add9670e94e467954dbdc1a7f1870f591", "fuellib_sha": "091748533839079ea854890ad793ee56898857d2"}

The same issue with System Information Horizon page on Ubuntu (as in bug 1383219) is happening again:

2015-04-03T10:45:03.371856+00:00 err: ERROR Internal Server Error: /horizon/admin/info/
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/tabs/views.py", line 146, in get
    context = self.get_context_data(**kwargs)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/info/views.py", line 39, in get_context_data
    _('Unable to retrieve version information.'))
  File "/usr/lib/python2.7/dist-packages/horizon/exceptions.py", line 334, in handle
    six.reraise(exc_type, exc_value, exc_traceback)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/info/views.py", line 36, in get_context_data
    context["version"] = version.version_info.version_string()
  File "/usr/lib/python2.7/dist-packages/pbr/version.py", line 78, in version_string
    for part in self.release_string().split('.'):
  File "/usr/lib/python2.7/dist-packages/pbr/version.py", line 70, in release_string
    self.release = self._get_version_from_pkg_resources()
  File "/usr/lib/python2.7/dist-packages/pbr/version.py", line 62, in _get_version_from_pkg_resources
    return packaging.get_version(self.package)
  File "/usr/lib/python2.7/dist-packages/pbr/packaging.py", line 861, in get_version
    version = _get_version_from_git(pre_version)
  File "/usr/lib/python2.7/dist-packages/pbr/packaging.py", line 802, in _get_version_from_git
    git_dir = _get_git_directory()
  File "/usr/lib/python2.7/dist-packages/pbr/packaging.py", line 215, in _get_git_directory
    return _run_shell_command(['git', 'rev-parse', '--git-dir'])
  File "/usr/lib/python2.7/dist-packages/pbr/packaging.py", line 204, in _run_shell_command
    env=newenv)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Opening a new bug since the bug 1383219 tracked the status of 6.0, but after moving the bug from Fuel to MOS project I'm not able to specify past milestone (and it would cause a confusion if I specify 6.1 milestone for it).

Tags: horizon
Timur Sufiev (tsufiev-x)
Changed in mos:
importance: Undecided → High
milestone: none → 6.1
assignee: nobody → Max Yatsenko (myatsenko)
Changed in mos:
status: New → Confirmed
Timur Sufiev (tsufiev-x)
tags: added: horizon
Revision history for this message
Ilya Shakhat (shakhat) wrote :

Hint: the cause is in missing egg-info. Compare:

Ubuntu (broken):
root@node-2:~# ls -al /usr/lib/python2.7/dist-packages/ | grep horizon
drwxr-xr-x 16 root root 4096 Apr 3 09:34 horizon

CentOS (working):
[root@node-1 ~]# ls -al /usr/lib/python2.6/site-packages/ | grep horizon
drwxr-xr-x 16 root root 4096 Apr 3 09:52 horizon
drwxr-xr-x 2 root root 4096 Apr 3 09:52 horizon-2014.2.2-py2.6.egg-info

Max Yatsenko (myatsenko)
Changed in mos:
status: Confirmed → In Progress
Max Yatsenko (myatsenko)
Changed in mos:
milestone: 6.1 → 7.0
milestone: 7.0 → 6.1
Revision history for this message
Timur Sufiev (tsufiev-x) wrote :
Changed in mos:
status: In Progress → Fix Committed
Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

Verified on Ubuntu env on ISO
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.1"
  openstack_version: "2014.2.2-6.1"
  api: "1.0"
  build_number: "395"
  build_id: "2015-05-08_11-08-49"
  nailgun_sha: "46f55c293e4540d31bcaa6ca3fba77235fb27537"
  python-fuelclient_sha: "af6c9c3799b9ec107bcdc6dbf035cafc034526ce"
  astute_sha: "6a4dcd11c67af2917815f3678fb594c7412a4c97"
  fuel-library_sha: "f385d6a58298c702f8d4f14c452dcffdc0b1e2a3"
  fuel-ostf_sha: "740ded337bb2a8a9b3d505026652512257375c01"
  fuelmain_sha: "3eca5e8f7ca6a83faff5feeca92c21cff31c0af1"

root@node-1:~# ls -al /usr/lib/python2.7/dist-packages/ | grep horizon
drwxr-xr-x 16 root root 4096 May 14 14:23 horizon
drwxr-xr-x 2 root root 4096 May 14 14:23 horizon-2014.2.2.egg-info

and system info page works properly.

Changed in mos:
status: Fix Committed → Fix Released
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack-build/horizon-build (openstack-ci/fuel-7.0/2015.1.0)

Fix proposed to branch: openstack-ci/fuel-7.0/2015.1.0
Change author: Max Yatsenko <email address hidden>
Review: https://review.fuel-infra.org/6815

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack-build/horizon-build (openstack-ci/fuel-7.0/2015.1.0)

Reviewed: https://review.fuel-infra.org/6815
Submitter: Sergey Kolekonov <email address hidden>
Branch: openstack-ci/fuel-7.0/2015.1.0

Commit: 3392fdcfd17afd96839d5bfe94b786d0012b4e1d
Author: Max Yatsenko <email address hidden>
Date: Wed May 20 10:27:20 2015

 Fix problem with "System Information" in Horizon:

 - add "egg-info" to python-django-horizon,
   update "usr/lib/python*/dist-packages/horizon" line to "usr/lib/python*/dist-packages/horizon*"

 - update of pydist-overrides file

 Closes-Bug:#1440041

Change-Id: I757c840f6955353db1aa2f58faaf70c949d06a25

Revision history for this message
Oleksiy Butenko (obutenko) wrote :

verified on mos 7.0 iso 82 {"build_id": "2015-07-23_10-59-34", "build_number": "82", "release_versions": {"2015.1.0-7.0": {"VERSION": {"build_id": "2015-07-23_10-59-34", "build_number": "82", "api": "1.0", "fuel-library_sha": "58d94955479aee4b09c2b658d90f57083e668ce4", "nailgun_sha": "d1087923e45b0e6d946ce48cb05a71733e1ac113", "feature_groups": ["mirantis"], "openstack_version": "2015.1.0-7.0", "fuel-agent_sha": "bc25d3b728e823e6154bac0442f6b88747ac48e1", "production": "docker", "python-fuelclient_sha": "471948c26a8c45c091c5593e54e6727405136eca", "astute_sha": "b1f37a988e097175cbbd14338286017b46b584c3", "fuel-ostf_sha": "94a483c8aba639be3b96616c1396ef290dcc00cd", "release": "7.0", "fuelmain_sha": "68871248453b432ecca0cca5a43ef0aad6079c39"}}}, "auth_required": true, "api": "1.0", "fuel-library_sha": "58d94955479aee4b09c2b658d90f57083e668ce4", "nailgun_sha": "d1087923e45b0e6d946ce48cb05a71733e1ac113", "feature_groups": ["mirantis"], "openstack_version": "2015.1.0-7.0", "fuel-agent_sha": "bc25d3b728e823e6154bac0442f6b88747ac48e1", "production": "docker", "python-fuelclient_sha": "471948c26a8c45c091c5593e54e6727405136eca", "astute_sha": "b1f37a988e097175cbbd14338286017b46b584c3", "fuel-ostf_sha": "94a483c8aba639be3b96616c1396ef290dcc00cd", "release": "7.0", "fuelmain_sha": "68871248453b432ecca0cca5a43ef0aad6079c39"}

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack-build/horizon-build (master)

Change abandoned by Ivan Udovichenko <email address hidden> on branch: master
Review: https://review.fuel-infra.org/5360
Reason: Not required anymore.

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.