horizon loads wrong local_settings.py file in ubuntu-binary-rocky deployment

Bug #1803029 reported by Zap Chang
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Medium
Dincer Celik
Train
Fix Released
Medium
Dincer Celik
kolla-ansible
Fix Released
Medium
Radosław Piliszek

Bug Description

## How to reproduce

- Use following kolla-ansible config to deploy a ubuntu-binary all-in-one deployment:

```
# Valid options are ['centos', 'debian', 'oraclelinux', 'rhel', 'ubuntu']
kolla_base_distro: "ubuntu"

# Valid options are [ binary, source ]
kolla_install_type: "binary"

# Valid option is Docker repository tag
openstack_release: "rocky"
```

- When deployment is complete, load horizon front page and got a page not found error.

## Some thoughts

- When opening horizon front page. Browser redirects to `http://<vip>/horizon/auth/login/?next=/`, `horizon` should not be included.
- Remove `horizon` in the URL, we can see the login page. but static files can not be loaded.
- Use docker exec to view horizon container's config, turns out that `local_settings.py` is not link to local_settings. Horizon loads the config from ubuntu `openstack-dashboard` package rather than the generated one from kolla-ansible.

  ```
  (horizon)[root@host /]# ll /etc/openstack-dashboard/local_settings*
  -rw------- 1 horizon horizon 29538 Nov 12 09:48 /etc/openstack-dashboard/local_settings
  -rw-r----- 1 root horizon 33982 Nov 11 07:31 /etc/openstack-dashboard/local_settings.py
  ```

- My current workaround is
  - Add `rm /etc/openstack-dashboard/local_settings.py` line back in horizon's Dockerfile. (Removed
 by commit https://github.com/openstack/kolla/commit/1cde66e4d74f981253869b85d3fdce6baa92008e#diff-013ae98a8669cfbe8ae3b1f096e38e39 )
  - Create symbolic link from `local_settings.py` to `local_settings` in `extend_start.sh`

Changed in kolla:
assignee: nobody → Dincer Celik (osmanlicilegi)
Changed in kolla-ansible:
assignee: nobody → Dincer Celik (osmanlicilegi)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.opendev.org/668409

Changed in kolla:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/668410

Changed in kolla-ansible:
status: New → In Progress
Changed in kolla-ansible:
assignee: Dincer Celik (osmanlicilegi) → Mark Goddard (mgoddard)
Mark Goddard (mgoddard)
Changed in kolla-ansible:
assignee: Mark Goddard (mgoddard) → Dincer Celik (osmanlicilegi)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.opendev.org/668409
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=eb7c730e057082eadab5c01ef845f65bb5cf47c4
Submitter: Zuul
Branch: master

commit eb7c730e057082eadab5c01ef845f65bb5cf47c4
Author: Dincer Celik <email address hidden>
Date: Mon Jul 1 13:18:36 2019 +0300

    Fixes wrong local_setting.py file issue for Ubuntu binary deployment.

    This bug both affects Rocky and Stein. local_setting.py was not
    linked to local_settings under /etc/openstack-dashboard so Horizon
    runs with default settings.

    Change-Id: I818876619694695663c98d9edcb8c8514198e8fd
    Closes-Bug: #1803029

Changed in kolla:
status: In Progress → Fix Released
Changed in kolla-ansible:
assignee: Dincer Celik (osmanlicilegi) → Radosław Piliszek (yoctozepto)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/668410
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=120e8080ab57d79a7ae4b51d3215b98222aab29e
Submitter: Zuul
Branch: master

commit 120e8080ab57d79a7ae4b51d3215b98222aab29e
Author: Dincer Celik <email address hidden>
Date: Mon Jul 1 13:25:49 2019 +0300

    Fix import of horizon custom_local_settings on python3

    Change-Id: I71f3e8ab50426246b595755a8f3298ba7ca0a50d
    Closes-Bug: #1803029

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/677675

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/677679

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/677680

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/stein)

Reviewed: https://review.opendev.org/677675
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=25c9d10cdd06074786840bca2698239b6c9711c6
Submitter: Zuul
Branch: stable/stein

commit 25c9d10cdd06074786840bca2698239b6c9711c6
Author: Dincer Celik <email address hidden>
Date: Mon Jul 1 13:25:49 2019 +0300

    Fix import of horizon custom_local_settings on python3

    Change-Id: I71f3e8ab50426246b595755a8f3298ba7ca0a50d
    Closes-Bug: #1803029
    (cherry picked from commit 120e8080ab57d79a7ae4b51d3215b98222aab29e)

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/stein)

Reviewed: https://review.opendev.org/677679
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=510c2d8f9583970a48fd1d66cfa4d00e0395a0c7
Submitter: Zuul
Branch: stable/stein

commit 510c2d8f9583970a48fd1d66cfa4d00e0395a0c7
Author: Dincer Celik <email address hidden>
Date: Mon Jul 1 13:18:36 2019 +0300

    Fixes wrong local_setting.py file issue for Ubuntu binary deployment.

    This bug both affects Rocky and Stein. local_setting.py was not
    linked to local_settings under /etc/openstack-dashboard so Horizon
    runs with default settings.

    Change-Id: I818876619694695663c98d9edcb8c8514198e8fd
    Closes-Bug: #1803029
    (cherry picked from commit eb7c730e057082eadab5c01ef845f65bb5cf47c4)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/rocky)

Reviewed: https://review.opendev.org/677680
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=f3331fcd2dca8baaab5afeaaa6d251304dba1dbc
Submitter: Zuul
Branch: stable/rocky

commit f3331fcd2dca8baaab5afeaaa6d251304dba1dbc
Author: Dincer Celik <email address hidden>
Date: Mon Jul 1 13:18:36 2019 +0300

    Fixes wrong local_setting.py file issue for Ubuntu binary deployment.

    This bug both affects Rocky and Stein. local_setting.py was not
    linked to local_settings under /etc/openstack-dashboard so Horizon
    runs with default settings.

    Change-Id: I818876619694695663c98d9edcb8c8514198e8fd
    Closes-Bug: #1803029
    (cherry picked from commit eb7c730e057082eadab5c01ef845f65bb5cf47c4)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 7.0.4

This issue was fixed in the openstack/kolla 7.0.4 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 8.0.1

This issue was fixed in the openstack/kolla-ansible 8.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 8.0.1

This issue was fixed in the openstack/kolla 8.0.1 release.

Mark Goddard (mgoddard)
Changed in kolla:
importance: Undecided → Medium
Changed in kolla-ansible:
importance: Undecided → Medium
Changed in kolla:
milestone: none → 9.0.0
Changed in kolla-ansible:
milestone: none → 9.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 9.0.0.0rc1

This issue was fixed in the openstack/kolla 9.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 9.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 9.0.0.0rc1 release candidate.

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.