stx-openstack install fails when using custom Horizon theme

Bug #1935845 reported by Thiago Ribeiro Carvalho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Unassigned

Bug Description

- Brief Description

When trying to install containerized stx-openstack with custom Horizon theme, it was noticed that the install fails given the current config also loads the StarlingX theme and that fails because the theme is not available on the Openstack Horizon image.

- Severity

Major.

- Steps to Reproduce

    Install containerized stx-openstack with custom Horizon theme.
    Installation fails because it's missing StarlingX theme.

- Expected Behavior

stx-openstack with custom Horizon theme installed.

- Actual Behavior

Fails to install stx-openstack with custom Horizon theme installed.

- Reproducibility

100% (tried a few times in one lab).

- System Configuration

DX+6

- Timestamp/Logs

+ /tmp/manage.py collectstatic --noinput
/var/lib/openstack/lib64/python3.6/site-packages/scss/namespace.py:172: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  argspec = inspect.getargspec(function)
Traceback (most recent call last):
  File "/tmp/manage.py", line 19, in <module>
    execute_from_command_line(sys.argv)
  File "/var/lib/openstack/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/var/lib/openstack/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/var/lib/openstack/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/var/lib/openstack/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/var/lib/openstack/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 188, in handle
    collected = self.collect()
  File "/var/lib/openstack/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 105, in collect
    for path, storage in finder.list(self.ignore_patterns):
  File "/var/lib/openstack/lib/python3.6/site-packages/django/contrib/staticfiles/finders.py", line 131, in list
    for path in utils.get_files(storage, ignore_patterns):
  File "/var/lib/openstack/lib/python3.6/site-packages/django/contrib/staticfiles/utils.py", line 23, in get_files
    directories, files = storage.listdir(location)
  File "/var/lib/openstack/lib/python3.6/site-packages/django/core/files/storage.py", line 315, in listdir
    for entry in os.scandir(path):
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/openstack/lib/python3.6/site-packages/openstack_dashboard/themes/starlingx'

- Workaround
Remove branding.

description: updated
summary: - Openstack install fails when using custom Horizon theme
+ stx-openstack install fails when using custom Horizon theme
Revision history for this message
Akihiro Motoki (amotoki) wrote :

The workaround mentioned in the bug description is to remove the branding, so it looks like an issue not of horizon but of stx-openstack. I think this is "Invalid" as a horizon bug but I would like to hear from the bug author before marking is as Invalid, so I am marking this as Incomlete.

Changed in horizon:
status: New → Incomplete
Revision history for this message
Thiago Ribeiro Carvalho (trcarvalh) wrote :

You're correct, Akihiro - my apologies. I will open this for StarlingX. Thank you!

Changed in horizon:
status: Incomplete → Invalid
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.