Deployment with murano fails(usr/share/openstack-dashboard/manage.py collectstatic --noinput returned 1 instead of one of [0])

Bug #1388092 reported by Sergey Murashov
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Critical
Max Yatsenko

Bug Description

ISO:{"build_id": "2014-10-31_00-32-30", "ostf_sha": "9c6fadca272427bb933bc459e14bb1bad7f614aa", "build_number": "66", "auth_required": true, "api": "1.0", "nailgun_sha": "07d900562d02ac0b1450c47adea875bbdd4d3af0", "production": "docker", "fuelmain_sha": "fc69c67750a511e27e59c259603626a0b14f5012", "astute_sha": "c72dac7b31646fbedbfc56a2a87676c6d5713fcf", "feature_groups": ["mirantis"], "release": "6.0", "release_versions": {"2014.2-6.0": {"VERSION": {"build_id": "2014-10-31_00-32-30", "ostf_sha": "9c6fadca272427bb933bc459e14bb1bad7f614aa", "build_number": "66", "api": "1.0", "nailgun_sha": "07d900562d02ac0b1450c47adea875bbdd4d3af0", "production": "docker", "fuelmain_sha": "fc69c67750a511e27e59c259603626a0b14f5012", "astute_sha": "c72dac7b31646fbedbfc56a2a87676c6d5713fcf", "feature_groups": ["mirantis"], "release": "6.0", "fuellib_sha": "ca3ac8d6aa5e3f41ad2720453716add07451f71e"}}}, "fuellib_sha": "ca3ac8d6aa5e3f41ad2720453716add07451f71e"}

Steps to reproduce:
1. Install OS(nonHA, neutron gre, murano, ubuntu)

Actual result:
Deployment would fail on controller with the following trace:
 /usr/share/openstack-dashboard/manage.py collectstatic --noinput returned 1 instead of one of [0]
 (/Stage[main]/Murano::Dashboard/Exec[django_collectstatic]/returns) change from notrun to 0 failed: /usr/share/openstack-dashboard/manage.py collectstatic --noinput returned 1 instead of one of [0]

Tags: murano
Revision history for this message
Sergey Murashov (smurashov) wrote :
Changed in mos:
importance: Undecided → Critical
assignee: nobody → MOS Murano (mos-murano)
description: updated
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :
Revision history for this message
Igor Yozhikov (iyozhikov) wrote :
Download full text (7.4 KiB)

Main ERROR from command line:

root@node-1:/usr/share/openstack-dashboard/static# /usr/share/openstack-dashboard/manage.py collectstatic --noinput
Copying '/usr/share/openstack-dashboard/openstack_dashboard/static/horizon/js/horizon.tables_inline_edit.js'
Traceback (most recent call last):
  File "/usr/share/openstack-dashboard/manage.py", line 25, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 415, in handle
    return self.handle_noargs(**options)
  File "/usr/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 173, in handle_noargs
    collected = self.collect()
  File "/usr/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 112, in collect
    handler(path, prefixed_path, storage)
  File "/usr/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 316, in copy_file
    with source_storage.open(path) as source_file:
  File "/usr/lib/python2.7/dist-packages/django/core/files/storage.py", line 33, in open
    return self._open(name, mode)
  File "/usr/lib/python2.7/dist-packages/django/core/files/storage.py", line 160, in _open
    return File(open(self.path(name), mode))
IOError: [Errno 2] No such file or directory: u'/usr/share/openstack-dashboard/openstack_dashboard/static/horizon/js/horizon.tables_inline_edit.js'
root@node-1:/usr/share/openstack-dashboard/static# ll /usr/share/openstack-dashboard/openstack_dashboard/static/horizon/js/horizon.tables_inline_edit.js
ls: cannot access /usr/share/openstack-dashboard/openstack_dashboard/static/horizon/js/horizon.tables_inline_edit.js: No such file or directory

Quick look at files existence:
root@node-1:/usr/share/openstack-dashboard/static/horizon/js# ll
total 36
drwxr-xr-x 3 root root 4096 Oct 31 18:11 ./
drwxr-xr-x 5 root root 4096 Oct 31 17:44 ../
drwxr-xr-x 5 root root 4096 Oct 31 17:44 angular/
lrwxrwxrwx 1 root root 86 Oct 13 16:07 horizon.accordion_nav.js -> ../../../../../../../share/pyshared/horizon/static/horizon/js/horizon.accordion_nav.js
lrwxrwxrwx 1 root root 83 Oct 13 16:07 horizon.d3barchart.js -> ../../../../../../../share/pyshared/horizon/static/horizon/js/horizon.d3barchart.js
lrwxrwxrwx 1 root root 82 Oct 13 16:07 horizon.firewalls.js -> ../../../../../../../share/pyshared/horizon/static/horizon/js/horizon.firewalls.js
lrwxrwxrwx 1 root root 82 Oct 13 16:07 horizon.instances.js -> ../../../../../../../share/pyshared/horizon/static/horizon/js/horizon.instances.js
lrwxrwxrwx 1 r...

Read more...

Revision history for this message
Igor Yozhikov (iyozhikov) wrote :
Download full text (32.0 KiB)

After install without murano:
root@node-1:/usr/share/openstack-dashboard/openstack_dashboard/static# /usr/share/openstack-dashboard/manage.py collectstatic --noinput
Copying '/usr/share/javascript/angular.js/version.json'
Copying '/usr/share/javascript/angular.js/angular-cookies.min.js'
Copying '/usr/share/javascript/angular.js/angular-csp.css'
Copying '/usr/share/javascript/angular.js/angular-sanitize.js'
Copying '/usr/share/javascript/angular.js/angular.min.js'
Copying '/usr/share/javascript/angular.js/angular-route.min.js'
Copying '/usr/share/javascript/angular.js/version.txt'
Copying '/usr/share/javascript/angular.js/angular-animate.min.js'
Copying '/usr/share/javascript/angular.js/angular-touch.js'
Copying '/usr/share/javascript/angular.js/angular-mocks.min.js'
Copying '/usr/share/javascript/angular.js/angular-loader.js'
Copying '/usr/share/javascript/angular.js/angular-animate.js'
Copying '/usr/share/javascript/angular.js/angular-sanitize.min.js'
Copying '/usr/share/javascript/angular.js/angular-mocks.js'
Copying '/usr/share/javascript/angular.js/angular-resource.min.js'
Copying '/usr/share/javascript/angular.js/angular-resource.js'
Copying '/usr/share/javascript/angular.js/angular-touch.min.js'
Copying '/usr/share/javascript/angular.js/errors.json'
Copying '/usr/share/javascript/angular.js/angular-cookies.js'
Copying '/usr/share/javascript/angular.js/angular-loader.min.js'
Copying '/usr/share/javascript/angular.js/angular-route.js'
Copying '/usr/share/javascript/angular.js/angular.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_ru-ru.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_cs.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_bn-bd.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_ur.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_en-dsrt.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_fa-af.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_de-be.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_ca.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_sk.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_en-vi.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_fr-re.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_fr-bf.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_in.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_fr-gq.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_lt.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_fr-bi.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_te-in.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_de-li.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_hi-in.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_fr-bl.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_en-au.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_ar-jo.js'
Copying '/usr/share/javascript/angular.js/i18n/angular-locale_el-cy.js'
Copying '/usr/share/javascript/angular.js/i...

Revision history for this message
Igor Yozhikov (iyozhikov) wrote :

root@node-1:/usr/share/openstack-dashboard/openstack_dashboard/static# cd /opt/
root@node-1:/opt# wget http://ppa.launchpad.net/ubuntu-cloud-archive/juno-staging/ubuntu/pool/main/h/horizon/python-django-horizon_2014.2-0ubuntu1~cloud0_all.deb
--2014-10-31 18:50:09-- http://ppa.launchpad.net/ubuntu-cloud-archive/juno-staging/ubuntu/pool/main/h/horizon/python-django-horizon_2014.2-0ubuntu1~cloud0_all.deb
Resolving ppa.launchpad.net (ppa.launchpad.net)... 91.189.95.83
Connecting to ppa.launchpad.net (ppa.launchpad.net)|91.189.95.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1602686 (1.5M) [application/x-debian-package]
Saving to: `python-django-horizon_2014.2-0ubuntu1~cloud0_all.deb'

100%[=======================================================================================================================================================================>] 1,602,686 1.67M/s in 0.9s

2014-10-31 18:50:11 (1.67 MB/s) - `python-django-horizon_2014.2-0ubuntu1~cloud0_all.deb' saved [1602686/1602686]

root@node-1:/opt# dpkg -i python-django-horizon_2014.2-0ubuntu1~cloud0_all.deb
dpkg: warning: downgrading python-django-horizon from 1:2014.2.b3-fuel6.0~mira3 to 1:2014.2-0ubuntu1~cloud0.
(Reading database ... 142059 files and directories currently installed.)
Preparing to replace python-django-horizon 1:2014.2.b3-fuel6.0~mira3 (using python-django-horizon_2014.2-0ubuntu1~cloud0_all.deb) ...
Unpacking replacement python-django-horizon ...
Setting up python-django-horizon (1:2014.2-0ubuntu1~cloud0) ...
root@node-1:/opt# /usr/share/openstack-dashboard/manage.py collectstatic --noinput
/usr/lib/python2.7/dist-packages/pbr/version.py:21: UserWarning: Module openstack_dashboard was already imported from /usr/share/openstack-dashboard/openstack_dashboard/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
  import pkg_resources

0 static files copied to '/usr/share/openstack-dashboard/static', 565 unmodified.

Revision history for this message
Ekaterina Chernova (efedorova) wrote :

After executing clean up

/usr/share/openstack-dashboard# rm -rf static

and performing collect static again

python manage.py collectstatic

everything works fine. Are you sure, that there were no previous installation of openstack dashboard on the machine?

Revision history for this message
Sergey Murashov (smurashov) wrote :

yes, i'm sure, the machine is clear

Revision history for this message
Sergey Murashov (smurashov) wrote :

this bug doesn't reproduce on cents installation

Changed in mos:
assignee: MOS Murano (mos-murano) → Max Yatsenko (myatsenko)
Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package horizon has been built for project openstack/horizon
Package version == 2014.2, package release == fuel6.0~mira5+git.ce839aa.86aaae2

Changeset: https://review.fuel-infra.org/649
project: openstack-build/horizon-build
branch: openstack-ci/fuel-6.0/2014.2
author: myatsenko
committer: myatsenko
subject: Update deb spec according to upstream spec Close-bug:#1388092
status: patchset-created

Files placed on repository:
openstack-dashboard-ubuntu-theme_2014.2-fuel6.0~mira5+git.ce839aa.86aaae2_all.deb
openstack-dashboard_2014.2-fuel6.0~mira5+git.ce839aa.86aaae2_all.deb
python-django-horizon_2014.2-fuel6.0~mira5+git.ce839aa.86aaae2_all.deb
python-django-openstack_2014.2-fuel6.0~mira5+git.ce839aa.86aaae2_all.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-stable-649/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package horizon has been built for project openstack/horizon
Package version == 2014.2, package release == fuel6.0~mira5+git.ce839aa.055fdc2

Changeset: https://review.fuel-infra.org/649
project: openstack-build/horizon-build
branch: openstack-ci/fuel-6.0/2014.2
author: myatsenko
committer: myatsenko
subject: Update deb spec according to upstream spec Close-bug:#1388092
status: patchset-created

Files placed on repository:
openstack-dashboard-ubuntu-theme_2014.2-fuel6.0~mira5+git.ce839aa.055fdc2_all.deb
openstack-dashboard_2014.2-fuel6.0~mira5+git.ce839aa.055fdc2_all.deb
python-django-horizon_2014.2-fuel6.0~mira5+git.ce839aa.055fdc2_all.deb
python-django-openstack_2014.2-fuel6.0~mira5+git.ce839aa.055fdc2_all.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-stable-649/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package horizon has been built for project openstack/horizon
Package version == 2014.2, package release == fuel6.0~mira5+git.ce839aa.51406da

Changeset: https://review.fuel-infra.org/649
project: openstack-build/horizon-build
branch: openstack-ci/fuel-6.0/2014.2
author: myatsenko
committer: myatsenko
subject: Update deb spec according to upstream spec Close-bug:#1388092
status: patchset-created

Files placed on repository:
openstack-dashboard-ubuntu-theme_2014.2-fuel6.0~mira5+git.ce839aa.51406da_all.deb
openstack-dashboard_2014.2-fuel6.0~mira5+git.ce839aa.51406da_all.deb
python-django-horizon_2014.2-fuel6.0~mira5+git.ce839aa.51406da_all.deb
python-django-openstack_2014.2-fuel6.0~mira5+git.ce839aa.51406da_all.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-stable-649/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package horizon has been built for project openstack/horizon
Package version == 2014.2, package release == fuel6.0~mira5

Changeset: https://review.fuel-infra.org/649
project: openstack-build/horizon-build
branch: openstack-ci/fuel-6.0/2014.2
author: myatsenko
committer: myatsenko
subject: Update deb spec according to upstream spec Close-bug:#1388092
status: change-merged

Files placed on repository:
openstack-dashboard-ubuntu-theme_2014.2-fuel6.0~mira5_all.deb
openstack-dashboard_2014.2-fuel6.0~mira5_all.deb
python-django-horizon_2014.2-fuel6.0~mira5_all.deb
python-django-openstack_2014.2-fuel6.0~mira5_all.deb

Changeset merged. Package placed on primary repository
DEB repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-stable/ubuntu

Changed in mos:
status: New → Fix Committed
Revision history for this message
Max Yatsenko (myatsenko) wrote :

To fix this issue a workaround in https://review.fuel-infra.org/#/c/649/
was provided.

Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on ISO #112

"build_id": "2014-11-17_22-00-23", "ostf_sha": "82465a94eed4eff1fc8d8e1f2fb7e9993c22f068", "build_number": "112", "auth_required": true, "api": "1.0", "nailgun_sha": "da81b8f6812e39582be8162f87252f93e043fa34", "production": "docker", "fuelmain_sha": "e556f0e1b00c30ec5c4b374ca2878c047c8686c2", "astute_sha": "65eb911c38afc0e23d187772f9a05f703c685896", "feature_groups": ["mirantis"], "release": "6.0", "release_versions": {"2014.2-6.0": {"VERSION": {"build_id": "2014-11-17_22-00-23", "ostf_sha": "82465a94eed4eff1fc8d8e1f2fb7e9993c22f068", "build_number": "112", "api": "1.0", "nailgun_sha": "da81b8f6812e39582be8162f87252f93e043fa34", "production": "docker", "fuelmain_sha": "e556f0e1b00c30ec5c4b374ca2878c047c8686c2", "astute_sha": "65eb911c38afc0e23d187772f9a05f703c685896", "feature_groups": ["mirantis"], "release": "6.0", "fuellib_sha": "8a0ceff90777af75a3f9363a57185e608f3ee10d"}}}, "fuellib_sha": "8a0ceff90777af75a3f9363a57185e608f3ee10d"

Changed in mos:
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.