Commit Graph

208 Commits

Author SHA1 Message Date
Gregory Thiemonge 92d72f1220 Fix authentication issue with openstacksdk
Due to a bug in openstacksdk [0], rename the 'token' attribute used for
the auth of the openstack client to 'auth_token'.
'token' was incorrectly set to None by openstacksdk, 'auth_token' is the
same as 'token' but is not impacted by the bug.

[0] https://bugs.launchpad.net/openstacksdk/+bug/2046645

Closes-Bug: #2046711
Change-Id: I9dab5aeb19cf4dc44ff7ee20decf20023b20888b
2023-12-18 02:14:40 -05:00
Zuul 4e78a64391 Merge "Fix popover attributes in member add dialog" 2023-07-24 08:41:51 +00:00
Tom Weininger 6fb6871ee0 Fix error related to barbicanclient
Octavia Dashboard used protected barbicanclient API that seems to be
broken now. Fixing that by replacing barbicanclient by future-proof
openstacksdk.

Closes-Bug: #2023534
Change-Id: I882869ef0f5b6381372e3447af7ca1981ca02d65
2023-06-27 12:25:28 +02:00
Gregory Thiemonge 9cc4bfac58 Fix popover attributes in member add dialog
Using popovers in the member table is broken in chrome 114, because of
their new "popover" feature.

Closes-Bug: #2024188
Change-Id: Idb009295495c1d8c732e792a72d58912e0e8d3a7
2023-06-27 05:32:48 -04:00
Takashi Kajinami b50b1eb5ed Fix missing comma in example logger setting
The current example does not contain the required comma, which causes
syntax error when actually used.

Change-Id: I554b7764f7574edc9b2932be03811ca9908d69b1
2023-04-05 00:33:24 +09:00
manchandavishal 529cfb2c9f Remove hard-coded Python path in karma.conf.js
This patch removes hard-coded Python path in karma.conf.js
to fix the npm jobs because now these npm jobs run on
debian-bullseye and py38 are not available there.

Change-Id: I7a94478340937e0e3ca2fc333470efadbdf22a80
2022-12-06 18:07:38 +00:00
Zuul 774972c447 Merge "Address RemovedInDjango40Warning" 2022-11-29 19:16:08 +00:00
Pierre-Yves Jourel 7edf48ec5c Fix ESLint warnings
This change fix all `consistent-return` in ESLint.

Change-Id: I8a5db7205da58f9626ca5e5c060ed2a51d700852
2022-09-20 15:01:29 +00:00
Zuul a51d197669 Merge "Fix updating a non-HTTP(S) Health Monitor" 2022-09-12 10:48:08 +00:00
OpenStack Proposal Bot eb7d526c62 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4c324454d6c69941aadc01a437741ad121ffbe05
2022-08-17 03:16:01 +00:00
Zuul a10e65ce42 Merge "Fix network selector filter at LB creation" 2022-08-16 20:05:28 +00:00
Takashi Kajinami 1790a190a6 Replace deprecated ugettext_lazy
The ugettext_lazy method has been deprecated since Django 3.0[1].

This was already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
[2] cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee

Change-Id: I4ba3ab420cbe508ff4c2014092ef08374d58988b
2022-08-16 18:04:10 +00:00
Gregory Thiemonge 7257719769 Migrate to AngularJS v1.8.2
Update the calls to the horizon apiServer to match [0]

It also update few packages versions in ``package.json`` to
sync with horizon ``package.json`` file.

It also switches the test engine to firefox to align to horizon.

[0] Ifdad18e805953957bfaa1b42908dfbbe8976dbcb

Depends-On: https://review.opendev.org/c/openstack/horizon/+/843346

Change-Id: If8a32fc0c28ce4f78127bd026daddb66372a8822
2022-08-11 18:02:47 +00:00
manchandavishal 96c18c8cf5 Address RemovedInDjango40Warning
In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path(). For more info see [1]
These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[2] https://review.opendev.org/c/openstack/horizon/+/827093

Change-Id: I90d44f7e8b3b0067c67dcdf9fbaf57b94e627d3c
2022-04-29 22:00:55 +05:30
Tom Weininger 6fdab4a6c0 Display Draining state correctly
Story: 2009817
Task: 44388

Change-Id: I1383f94e7efe8629d588b32af734e042544d0f11
2022-02-16 17:41:11 +01:00
Tom Weininger b1a86bb6ff Fix invalid value range for member weight
Octavia supports setting the weight of members from 0 to 256, but
in Horizon the value 0 was not accepted. This fix allows entering
the value 0 as well, which is important for putting a member into
DRAINING state.

Change-Id: I25ce292f962cf6a0d6f017fe7bc47aaed0790efc
Story: 2009804
Task: 44362
2022-01-26 10:49:55 +01:00
Vadym Markov 13155fa30c Fix network selector filter at LB creation
Field for network select at LB create allows filtering of
available nets by string input. Currently, filter correctly select nets
which contain entered string somewhere in fields, but selects some other
net when clicked. Provided patch fixes this behavior

Story 2009246
Task 43419
Change-Id: I4b7f2e0f91bb1d46a31f8b996c81b135f886b6d3
2021-09-27 17:00:13 +03:00
Zuul 33c308d3aa Merge "Add example logging setting" 2021-08-19 07:17:45 +00:00
Zuul caaeaf2d25 Merge "Fix deleting multiple resources" 2021-08-10 08:57:48 +00:00
Michael Johnson 7e390312ea Change the Octavia Barbican namespace
The octavia dashboard has a built-in barbican rest API client used
to access barbican for certificate selection during load blanancer
creation.
Unfortunately, this client used the "barbican" namespace, which is
now used by the barbican-ui dashboard.

This patch renames the octavia client namespace to be octavia-barbican
to eliminate any namespace collisions with the barbican-ui dashboard.

Change-Id: Idec2c182b2758a148ae9d0efa251510d5e7985a3
2021-07-12 16:54:50 +00:00
OpenStack Proposal Bot 27f5295c83 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I39d3df6a33328bb4688d942119d19a79172b07dd
2021-06-08 07:35:35 +00:00
Takashi Kajinami cd1f06ace4 Add example logging setting
Change-Id: Ic6b2098afa2e3e383b36beb16d8099a6d7d7bc6d
2021-06-06 07:44:54 +09:00
Gregory Thiemonge a8dc94fdbd Fix updating a non-HTTP(S) Health Monitor
Prevent octavia-dashboard from sending parameters that trigger a
InvalidOption exception when updating a non-HTTP/non-HTTPS health
monitor.

Story 2008803
Task 42223

Change-Id: Ie669829b149001f77f7475216b86a33d96cb5ff5
2021-04-07 11:38:28 +02:00
Gregory Thiemonge 4421ff8b6a Fix deleting multiple resources
Fix an issue that occured when deleting multiple resources at the same
time, the first one was correctly deleted but the other resources failed
because the load balancer was still in a PENDING_UPDATE provisioning
status.

In case of conflicts/PENDING UPDATE provisioning status, added a thread
to defer the deletion of the resource when the LB is active.

Story 2008798
Task 42212

Change-Id: I0ae2472549296c1a299f6f0d73c386dcb65a54f0
2021-04-06 12:37:49 +02:00
Zuul 08ba87ee6b Merge "Allows creation of resources without forcing the creation of children" 2021-03-11 22:14:40 +00:00
Zuul ff64b61704 Merge "Add TLS enabled support for pools" 2021-03-11 21:39:42 +00:00
Zuul 1d16d3897d Merge "Add ciphers options for listeners and pools" 2021-03-11 21:32:30 +00:00
OpenStack Proposal Bot 502c9d7b24 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I6474c78f2759bfd1e00d66ffcaba1fa52ddef11f
2021-03-03 07:29:46 +00:00
Zuul 806665c6e1 Merge "Disable Load Balancers panel when Octavia service is not deployed" 2021-02-28 17:17:53 +00:00
Takashi Kajinami 9b10ff4964 Disable Load Balancers panel when Octavia service is not deployed
Currently Load Balancers panel is enabled based on 'network' service
defined in Keystone but it should refer to 'load-balancer' service
which is served by Octavia.

Story: #2008446
Task: #41413
Change-Id: Ia93cb7520ff9c179a27e72719f1fd10524c57acb
2021-02-28 14:23:00 +00:00
Gregory Thiemonge 6ce037518a Allows creation of resources without forcing the creation of children
Change-Id: I6e2a5b838a47842205d44ef1204c437331829728
2021-01-29 11:02:15 +01:00
Gregory Thiemonge 400c1194e0 Add TLS enabled support for pools
Bump openstacksdk to 0.53.0, it provides the tls_enabled flag for
Octavia pools.

Story 2008368
Task 41277

Change-Id: I41559e3f2d13e5adbb850f28f058b72404e28124
2021-01-29 10:20:38 +01:00
Luke Tollefson daae6d1fcd Add ciphers options for listeners and pools
Added an option to specify the TLS ciphers used by listeners
and pools. It is specifed through a string in OpenSSL syntax.

Change-Id: Icead9106b06ae7610301a121e51dc5fe1a0e4056
Co-authored-by: Steven Glasford <stevenglasford@gmail.com>
Story: 2006627
Task: 37193
2021-01-29 10:17:09 +01:00
OpenStack Proposal Bot 1a29983ebc Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I63729aecefb9763c49f19d69b7f1edf43a921cd3
2021-01-21 07:36:42 +00:00
Zuul bd5f48ca18 Merge "Add support for SCTP" 2020-11-24 14:49:04 +00:00
Zuul 8bf82c14b3 Merge "Add textarea field for allowed_cidrs in the listener api" 2020-11-24 14:46:20 +00:00
Jesper Schmitz Mouridsen f4417cb97d Add textarea field for allowed_cidrs in the listener api
Change-Id: I5af4b0735bafca3e541558974140502454ce39db
2020-11-24 14:31:29 +01:00
OpenStack Proposal Bot e645ff5aab Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ibc412f281cfe568db6ec900bd0619fac2a9ebb0f
2020-10-05 08:08:58 +00:00
Gregory Thiemonge 260ec7610c Add support for SCTP
Add SCTP option in listener protocol and health-monitor type select
boxes.

Depends-On: https://review.opendev.org/#/c/738381/

Story: 2007884
Task: 40258

Change-Id: If84d6644b2c2f9c2ff0f77099f52ef48f20bcf71
2020-09-10 09:40:56 +02:00
Zuul 570c51b97d Merge "Add proxy protocol v2 support to dashboard" 2020-09-08 17:40:34 +00:00
Zuul f5431f2512 Merge "[goal] Migrate testing to ubuntu focal" 2020-09-08 16:38:11 +00:00
manchandavishal 8a2b8528ec [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8
support in their later version.

This patch updates python version to py38 in karma.conf.js file
as py36 is not avaialbale on focal. It also adds libfontconfig1
in bindep.txt as phantomjs requires libfontconfig[2].

Story: #2007865
Task: #40201

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal
[2] https://www.npmjs.com/package/phantomjs-prebuilt#linux-note

Change-Id: I4a70b7fd1ed4b94ffaed34b73779659b24e1eb65
2020-09-02 16:33:46 +00:00
Michael Johnson 6a8f8807eb Add proxy protocol v2 support to dashboard
This patch adds support for proxy protocol v2 pools in the Octavia
dashboard.

Depends-On: https://review.opendev.org/747801

Change-Id: Id60c7a5edc5039c51399feda8643b714d58cf29a
Story: 2005611
Task: 30858
2020-08-31 15:37:13 -07:00
Sam Morrison d70f7b176a Fix up display of selected Availability zone in workflow.
Story: 2007882
Task: 40250

Change-Id: I196c6801f6dbd09913d2bf91e97bf390752f67c2
2020-08-19 05:32:09 +00:00
Zuul 8bc9329b5f Merge "Switch to hacking 3.0" 2020-07-17 02:44:47 +00:00
manchandavishal 771dcae2ed Switch to hacking 3.0
This patch update hacking version to 3.0.0[1]. In order to make code compatible
with new hacking rules line break before/after binary operator I have added
W504 into ignore list in tox.ini. It also drop flake8, hacking, django-babel,
and mox3 packages from lower-requirements.txt.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I96fc5ca23010958d68cf261793489580b57f3a4f
2020-05-15 14:09:25 +00:00
OpenStack Proposal Bot 49fc8d9e78 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I32b991cfa6e5733b0fd8494660d6f6618cc66e26
2020-05-07 08:41:09 +00:00
OpenStack Proposal Bot 782322f3f4 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Idbb93733aff602adab7510910dd72d391d9245fc
2020-04-28 08:52:22 +00:00
OpenStack Proposal Bot 51bf129f1a Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I8c1a69c171dca8eb747962d2a53d34807fe6d2dc
2020-04-26 07:43:43 +00:00
Sam Morrison 761408e3b8 Availability zone support
Ability to create a LB in a specific AZ and see AZ attribute
of load balancers.

Depends-On: https://review.opendev.org/#/c/714345/
Change-Id: Id4457d164e6899ffe4b9e4a0332b771d0ee33770
2020-04-09 11:07:53 +10:00