Unable to launch Loadbalancer from Horizon Dashboard

Bug #1881874 reported by Deepa
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Dmitriy Rabotyagov
octavia-dashboard (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Hi

I have deployed OSA with 3 controllers as HA and backend Ceph using 20.1.1 train version ,OS ubuntu 18.04.
Now unable to launch loadbalancer from horizon dashboard.Getting Error: Unable to retrieve availability zones information

I am able to create Lb using command line

openstack loadbalancer create --name lb-008 --vip-subnet-id Ext_SubNW and is success

Also i saw Add availability zone and availability zone profile resources to load balancer https://review.opendev.org/gitweb?p=openstack/openstacksdk.git;a=commit;h=d404a6021c0ae0da9d02707e5c8979e4875a825c

So not sure whether this is a know issue ?If yes how can we fix this in train version

Please let me know if you need any further information

Regards
Deepa

Deepa (dpaclt)
tags: added: octavia
Deepa (dpaclt)
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1881874/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Deepa (dpaclt)
affects: ubuntu → octavia-dashboard (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in octavia-dashboard (Ubuntu):
status: New → Confirmed
Revision history for this message
Chris MacNaughton (chris.macnaughton) wrote :

I have just deployed Horizon with the Octavia dashboard and successfully created a load balancer. As a result, I don't think that this is an Ubuntu package bug. I'm adding OpenStack Ansible as it may be a configuration issue that they might be able to help with.

Changed in octavia-dashboard (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Simion Sebastian (corsaronline) wrote :

Ubuntu 18.04; fresh Train installation; Octavia dashboard installed according to https://github.com/openstack/octavia-dashboard

Apache's error log when trying to create a lb:

```
[Wed Jun 10 16:56:43.366034 2020] [wsgi:error] [pid 2602:tid 140704590227200] [remote 192.168.0.100:40370] ERROR openstack_dashboard.api.rest.utils error invoking apiclient
[Wed Jun 10 16:56:43.366065 2020] [wsgi:error] [pid 2602:tid 140704590227200] [remote 192.168.0.100:40370] Traceback (most recent call last):
[Wed Jun 10 16:56:43.366072 2020] [wsgi:error] [pid 2602:tid 140704590227200] [remote 192.168.0.100:40370] File "/usr/lib/python3/dist-packages/openstack_dashboard/api/rest/utils.py", line 128, in _wrapped
[Wed Jun 10 16:56:43.366077 2020] [wsgi:error] [pid 2602:tid 140704590227200] [remote 192.168.0.100:40370] data = function(self, request, *args, **kw)
[Wed Jun 10 16:56:43.366082 2020] [wsgi:error] [pid 2602:tid 140704590227200] [remote 192.168.0.100:40370] File "/usr/local/lib/python3.6/dist-packages/octavia_dashboard/api/rest/lbaasv2.py", line 1410, in get
[Wed Jun 10 16:56:43.366087 2020] [wsgi:error] [pid 2602:tid 140704590227200] [remote 192.168.0.100:40370] conn.load_balancer.availability_zones()
[Wed Jun 10 16:56:43.366093 2020] [wsgi:error] [pid 2602:tid 140704590227200] [remote 192.168.0.100:40370] AttributeError: 'Proxy' object has no attribute 'availability_zones'
[Wed Jun 10 16:56:43.366101 2020] [wsgi:error] [pid 2602:tid 140704590227200] [remote 192.168.0.100:40370]
[Wed Jun 10 16:56:43.366500 2020] [wsgi:error] [pid 2602:tid 140704590227200] [remote 192.168.0.100:40370] ERROR django.request Internal Server Error: /horizon/api/lbaas/availabilityzones/
```

Maybe some configuration steps are missing and someone has some ideas. Thank You

Revision history for this message
Michael Johnson (johnsom) wrote :

The above error is from an Ussuri or newer version of octavia-dashboard. Please install the Train version of Octavia dashboard.
Specifically, you have Ussuri or newer octavia-dashboard and openstacksdk from Train or older.
Train did not support availability zones.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_horizon (master)

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

Changed in openstack-ansible:
assignee: nobody → Dmitriy Rabotyagov (noonedeadpunk)
status: New → In Progress
Revision history for this message
Deepa (dpaclt) wrote :

Thanks for the update .I have installed OSA using branch 20.1.1 not stable/train as stable/train was giving me repo related error at the time of installation.I just upgraded Octavia to Ussuri and now the error is gone.

also from irc chat room understood https://review.opendev.org/#/c/734881/ can fix the issue in train.

Thanks

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_horizon (master)

Reviewed: https://review.opendev.org/734881
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_horizon/commit/?id=657648b033312f1f24f303bf4dee2a7ee320010a
Submitter: Zuul
Branch: master

commit 657648b033312f1f24f303bf4dee2a7ee320010a
Author: Dmitriy Rabotyagov <email address hidden>
Date: Wed Jun 10 18:53:31 2020 +0300

    Add octavia version to constraints

    As we do octavia dashboard bumps, we should provide it's specific version
    as a constraint while creating venv

    Change-Id: Ie02ef3dd6180128645e4932d50b489f399ea440d
    Closes-bug: 1881874

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

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/735943

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_horizon (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/735944

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

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

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

Reviewed: https://review.opendev.org/735945
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_horizon/commit/?id=4df265206ff680ba982a8b9d52db78a84590c89d
Submitter: Zuul
Branch: stable/stein

commit 4df265206ff680ba982a8b9d52db78a84590c89d
Author: Dmitriy Rabotyagov <email address hidden>
Date: Wed Jun 10 18:53:31 2020 +0300

    Add octavia version to constraints

    As we do octavia dashboard bumps, we should provide it's specific version
    as a constraint while creating venv

    Change-Id: Ie02ef3dd6180128645e4932d50b489f399ea440d
    Closes-bug: 1881874
    (cherry picked from commit 657648b033312f1f24f303bf4dee2a7ee320010a)

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

Reviewed: https://review.opendev.org/735943
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_horizon/commit/?id=89c624020c353744982179f19ce5204f0d2bd6ff
Submitter: Zuul
Branch: stable/ussuri

commit 89c624020c353744982179f19ce5204f0d2bd6ff
Author: Dmitriy Rabotyagov <email address hidden>
Date: Wed Jun 10 18:53:31 2020 +0300

    Add octavia version to constraints

    As we do octavia dashboard bumps, we should provide it's specific version
    as a constraint while creating venv

    Change-Id: Ie02ef3dd6180128645e4932d50b489f399ea440d
    Closes-bug: 1881874
    (cherry picked from commit 657648b033312f1f24f303bf4dee2a7ee320010a)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_horizon (stable/train)

Reviewed: https://review.opendev.org/735944
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_horizon/commit/?id=1dc7daecaa8a4f6f28ee06d6886ca419f9422420
Submitter: Zuul
Branch: stable/train

commit 1dc7daecaa8a4f6f28ee06d6886ca419f9422420
Author: Dmitriy Rabotyagov <email address hidden>
Date: Wed Jun 10 18:53:31 2020 +0300

    Add octavia version to constraints

    As we do octavia dashboard bumps, we should provide it's specific version
    as a constraint while creating venv

    Change-Id: Ie02ef3dd6180128645e4932d50b489f399ea440d
    Closes-bug: 1881874
    (cherry picked from commit 657648b033312f1f24f303bf4dee2a7ee320010a)

tags: added: in-stable-train
Revision history for this message
Anabi Arkan (arkan78) wrote :

Hi I'm still getting this bug on a fresh OSA 20.1.2 train

Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote :

This is now merged to the stable train and will be released with upcoming 20.1.3

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_horizon stein-eol

This issue was fixed in the openstack/openstack-ansible-os_horizon stein-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_horizon train-eol

This issue was fixed in the openstack/openstack-ansible-os_horizon train-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_horizon ussuri-eol

This issue was fixed in the openstack/openstack-ansible-os_horizon ussuri-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_horizon yoga-eom

This issue was fixed in the openstack/openstack-ansible-os_horizon yoga-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_horizon victoria-eom

This issue was fixed in the openstack/openstack-ansible-os_horizon victoria-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_horizon wallaby-eom

This issue was fixed in the openstack/openstack-ansible-os_horizon wallaby-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_horizon xena-eom

This issue was fixed in the openstack/openstack-ansible-os_horizon xena-eom release.

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.