Commit Graph

86 Commits

Author SHA1 Message Date
Pulkit vajpayee 3e823ad3dc fix launch instance GBP issue
Change-Id: Ieb10c59d4b06c56e4cfde9f80c34d17b6bf9eb74
2022-07-20 11:49:16 +05:30
Pulkit vajpayee a0a4d7efbf remove legacy servicechain code
Change-Id: I1078e4519f52c160d0acdbfc99e019c1b0e7d73f
2022-07-05 05:01:11 +00:00
Thomas Bachman c444b81021 Python2/3 compatibility changes
Results from running 2to3 tooling.

Change-Id: I655fdf93635b70157595ca7b37352caad41c2b4d
2022-02-17 12:59:17 +00:00
Thomas Bachman e87fe5c83a Fix python namespacing
Use namespaces when referencing python packages. Also, as per
https://review.opendev.org/#/c/527320/, replace all references to
django.core.urlresolves with django.urls.

Change-Id: I6460d0734aa11ffa44f259baa7155d2a202f7162
2020-12-02 12:29:13 +00:00
Shyam Singh 7d04600361 Upgrading for stable/rocky branch.
* Updated integration tests argument in 'run_tests.sh'.
    * Updated 'test-requirements.txt' w.r.t. stable/rocky branch.
    * Updated zuul jobs w.r.t stable/rocky constraints.
    * Added 'django-appconf<=1.0.3' library for py27 compatibility.
    * Added 'wheel' library to avoid "invalid command 'bdist_wheel'"
      error.

Change-Id: I9e1cb06908c0739432518db8b683666dc8b4c841
2020-06-18 15:34:35 +00:00
Kent Wu 7b8a28dcf7 Add 2 more conditions for juju setup while launching the instances
Change-Id: I03543ab08db69991db6c6cb98fe40c7c6f0c0fdf
2018-09-25 10:14:40 -07:00
Sumit Naiksatam 9ddc2346a0 Fix patching of create instance dialog (part trois)
Previous patch fixed the form but did not fix yet
another bug in the original implementation of the
patching of the create instance workflow. Namely,
the patched logic was always assuming the need for
a PTG, and would override the supplied network
arguments. This is being fixed here.

Also caps the cmd2 dependency whose latest version is
incompatible.

Change-Id: If0fff67cd2b811853a632055d1609b6057769bb8
2018-05-30 03:40:54 -07:00
Sumit Naiksatam 93abeefbbb Fix patching of create instance dialog (part deux)
Patching of the create instance dialog needs to happen
only when invoked from the GBP "create member" workflow.
An earlier commit c0f6597c7f
fixed this for launching from the Compute menu but left out
the launching option from the Network Topology (under
the Network option).

An attempt was made to change the logic in a way that the check
happens for the GBP URI (instead of the logic to check for all
other URIs from where it can be launched), however that did not
work. Hence the comment on evolving to a more resrtictive logic
has been preserved in the code.

Also fixes tox.ini

Change-Id: If124971c1954cb85fce244440e2408cd58ced3e6
2018-05-24 21:14:00 -07:00
Sumit Naiksatam c0f6597c7f Restore network/port options for create instance dialog
An earlier commit:
d86c6ea3cc

patched the "create instance" dialog such that even when
its launched from Project -> Compute -> Instances, the "GBP" workflow step
is shown instead of the expected "Networks" and "Ports" steps. The former
should be shown only in the case when the dialog is launched from GBP and
the original behavior should be preserved when the dialog is launched from
Compute. This is being fixed here.

Change-Id: Ie9af2cca451942d51ea254bdf14bc2345743f938
2018-01-30 16:48:12 -08:00
Sumit Naiksatam 99332501f0 Django and Horizon deprecation fixes for Pike
This fixes a number of issues which were found during
testing (GBP UI is broken without these fixes):

1. Convert present/past action to methods

Table data_type_singular and data_type_plural attributes are
deprecated. action_present and action_past strings are also
deprecated. They are all being converted here.

Changes made per commit in the Horizon:
c393a6651f

2. Fixes to allow use of Django 1.11
There were some undocumented widgets used in Horizon, and in turn by us,
that were cut from Django 1.11. We are restoring some of the utility
methods that were dropped, but we are still using.

Changes based on the commit in Horizon:
52150749a6

3. Drop Django 1.7 vestiges
url template tag is no longer required to imported from the future template tag library.

Changes based on the commit in Horizon:
f2b2289b4a

Change-Id: I424cdaedd04ef9e887e34a09478e2c572d1ffd78
2018-01-26 19:36:54 -08:00
Marek Lycka d86c6ea3cc Unifies the compute and GBP member launch modals
Modifies the create member button in group details to use the compute launch
instance AngularJS based launch dialog. The dialog itself is changed through
the Angular API to replace standard networking pages with a group setting page.

Change-Id: Ib9f5b601939ed9e8258e4eab2f2180efc98378ae
Closes-Bug: 1582457
2017-09-29 10:20:57 +02:00
Zuul 84cac65360 Merge "Replaces multi select combos with transfer tables" 2017-09-28 23:54:15 +00:00
Marek Lycka cf76c87cc7 Replaces multi select combos with transfer tables
Implements an angular-python bridge that allows django/horizon forms
to use transfer tables (as seen in other parts of horizon, e.g.:
computes launch instance dialog) as form fields. These fields are
then used to replace the multi select combos boxes in the different
GBPUI dialogs/forms.

Note 1: The add and remove policy rule set actions in group details
"Provided Policy Rule Set" and "Consumed Policy Rule Set" are currently
unaffected. These two tabs do not follow the "standard" horizon method
of adding and removing items through one transfer table; instead,
it uses two different dialogs to carry out each operation separately.
This should be addressed in a separate patchset.

Note 2: This is a bit of a stop gap measure, as horizon is slowly moving
away from native django based dialogs and wizards to AngularJS. The goal
should ultimately be to do the same in GBPUI.

Change-Id: I01c9dc08b1bc35309d62eb3da0bd26f3795867ab
Partial-Bug: 1712814
2017-09-18 14:04:34 +02:00
Marek Lycka f3048c76ec Removes and simplifies GBPUI templates
Removes unused templates and simplifies remaining templates and views by extracting common logic
in the same way as the previous partial patch for this bug did.

Change-Id: I832a7ab88e99103b9e6abdfd8be44fcd8bee1a11
Closes-Bug: 1710852
Co-Authored-By: viktor.krivak@ultimum.io
2017-09-17 13:26:27 +02:00
Jenkins f14de1c22a Merge "Remove patterns call from urls" 2017-09-14 21:35:30 +00:00
Jenkins 5b94efc5e6 Merge "Remove unused logging import" 2017-09-14 20:20:58 +00:00
Aleš Křivák 268ae1259a Update templates in policytargets section.
Templates used throughout GBP UI were not properly updated
for several OpenStack releases. This update removes unused templates
and reduces unnecessary complexity. Additionally, this fixes problems
with missing non-ajax version of templates, that breaks standalone
rendering of forms and workflows (e. g. when opened in new tab or after
re-login when session expires during while working with forms).

This commit fixes ony policytargets section.

Partial-Bug: #1710852
Co-Authored-By: Marek Lycka <marek.lycka@ultimum.io>
Change-Id: I4f8f6cef04fd514eccb428e8a89cc030ae99cb2a
2017-09-09 11:19:13 +02:00
Jenkins 8e80d41aec Merge "Fix template names in policy targets view" 2017-09-08 18:17:18 +00:00
Anna Khmelnitsky f9a81027f8 Fix template names in policy targets view
Change I4ac44bda1baf28b5056d07adf1236b9a43fbad4c changed template
names to non-existing template. This patch reverts template name
change.

Change-Id: I313103e7853717b7dc6cf18caa7df54c878d3aed
2017-09-07 10:46:04 -07:00
Jenkins c5567436cb Merge "Fix mistakes in descriptions." 2017-09-07 17:33:50 +00:00
Anh Tran 8e92d1eb3a Remove unused logging import
Change-Id: I3f456a8c525ad78e56ee17364aba1a2e95474216
2017-09-07 17:29:20 +00:00
Aleš Křivák 61bfed72c6 Remove patterns call from urls
Calling patterns method in urls.py files is redundant and as of Django
1.8 also deprecated. In order to support Django 1.10, we need
to update urls.

Closes-Bug: #1710857
Change-Id: I57a33d3ac166256fb18cc16665894c0c48c77af5
2017-08-15 12:56:33 +02:00
Marek Lycka f4deab2aae Fix delete buttons
This commit fixes the delete buttons in all of the GBPUI panels where checked items were deleted even when using individual (row) delete actions.

Change-Id: I4ac44bda1baf28b5056d07adf1236b9a43fbad4c
Closes-Bug: 1707896
2017-08-01 17:16:28 +02:00
Sumit Naiksatam 0dc6c63fe3 Fix member list population
In cases where the member is not created via the UI, the metadata used
for filtering the members on retrieval is not added to the VMs. Hence any
member VMs that are created outside the UI are never shown in the member list.

This patch fixes this issue by reinstating the earlier filtering logic to
find the member VMs belonging to a particular PTG in case the above metadata
is not present.

Change-Id: Ic2154d04c292269dd7cb46edf19f3a7f3bbe1364
Closes-bug: 1691598
2017-05-17 16:51:09 -07:00
ank 90fcafd4da Show status for groups and network service resources
Uploading default lbaasv2 icon to show on
service chain spec

Change-Id: I2f6eb81bcb4eb4ac36c9da5138488c8a33dd25c0
Closes-Bug: #bug/1674648
2017-03-22 15:31:59 +05:30
ank 44a3e4acf3 Member list to show ERRORED instances
Change-Id: I1b1a659c2a6ce85e375d7892a54d998b3697265f
closes-bug: #1482325
2017-01-27 15:44:14 +05:30
Aleš Křivák d6c00c4048 Fix mistakes in descriptions.
Description text in Add/Remove Policy Rule Set referenced Consumed PRS,
description for editation of groups inconsistent with UI.

Change-Id: Ided11d0df69515e9b75da9e7d6990a0b543e5c27
2017-01-09 18:33:23 +01:00
ank d725eeabaf Allow specific PTGs to hide from member create
By default all PTGs will be listed as available groups
and allows to select any groups.There is no way to specify
PTGs to not consider while launching a member.
As a solution, providing optional configuration parameter
GBPUI_HIDE_PTG_NAMES_FROM_MEMBER_CREATE to specify
which group to excule based on group name regex match.

This optional parameter can be specified in openstack dashboard
local settings(openstack_dashboard/local/local_settings.py)

e.g.
GBPUI_HIDE_PTG_NAMES_FROM_MEMBER_CREATE =
    ['*.backup_network_group_name', '*.another_group_name']

With the above definition, create member form wont show PTGs with
name ending 'backup_network_group_name' and 'another_group_name'

Change-Id: Ibda517bb8bb747e9cf205979521c6903fdef8d17
Closes-Bug: #bug/1639137
2016-11-14 09:52:42 +00:00
ank 9832b43a59 Added Description to create policyclassifier form
Change-Id: Idf4750874c30e08383b46ccc974c2dd2fc493e35
Closes-Bug: #1634351
2016-10-18 12:05:51 +05:30
ank dd31fc9126 member create: handling SubnetNotFound exception
ignoring stitching subnets by catching exception
while associating fixed ip with corresponding
subnet id

Change-Id: Ieccecc41b2608102c201f48fcd1c831db19882a6
2016-10-06 19:34:26 +05:30
Sumit Naiksatam 72d30c8265 Fix create-member while retrieving PTG details
Conditionally process prox_group_id and proxied_group_id.

Change-Id: Ic810c6a11a7e46e9b916eadda77a9157a6fa84c0
Closes-bug: #1627883
2016-09-26 16:01:27 -07:00
ank 3bd464bf51 Hide stitching PTGs & subnets while member lauch
User should not be able to associate ip address
from either stitching PTGs or subnets, hence
hiding the same during member launch.

Also moving out fixed ip address from square
brackets and changing square brackets to
function brackets around 'Click to Set IP'
and 'Click to Edit IP'

Change-Id: Ib64604801530c244cc469d75dd5fb2065316ac11
Closes-Bug: #1626903
2016-09-23 14:18:35 +05:30
ank ebd860e5ec Separate Set and Edit IP links from group name
As part of #1609363, links was added to associate
fixed IP while creating member for each group.
As part of this bug, sepated IP address association
links from group name as mentioned below
To set IP address : <group name> [Click to Set IP]
To edit associated IP:
<group name> [<ip address>, Click to Edit IP]

Change-Id: Ia51224aeb23559dd2ff6d0faa3cf5c6b9d4e3097
Closes-Bug: #1611908
2016-08-11 00:17:47 +05:30
ank 41664d882c Add a link on the group to associate fixed ip for a member
Change-Id: If5e9c12890d79618050167966ddde57191b8e938
Closes-Bug: #1609363
2016-08-04 15:42:41 +05:30
ank 0d1f36ac0b Prevent configuring fixed IP if building more than one member
Change-Id: Ib2be0fa8742d0d066ec1115bfbfb3209a7c2d1f3
Closes-Bug: #1582527
2016-06-27 17:04:45 +05:30
ank 47d2a569aa Policy Classifier update is failing
Change-Id: I142b9f02705be21141336a751a9204322ae93d98
Closes-Bug: #1589738
2016-06-09 10:46:35 +05:30
ank a924945dce Allow group member to create with fixed IP
Change-Id: I0f00bc39a07eeb524c036c99b79b99bade480dcd
Implements: blueprint fixed-ips-for-pt
2016-05-12 10:09:07 +05:30
ank f0bedbde6b Show Service Chain instances list and details
Change-Id: I04724770c3eb1dc67abfa1449ff15bf3d1b9d3b4
Closes-Bug: #1566006
2016-04-20 10:39:49 +05:30
ank dcdcb31a64 By default do not associate access keypair to member create
Change-Id: I63571a3de862018377184f47dc500053545046ae
Closes-Bug: #1558540
2016-03-20 12:02:37 +05:30
Sumit Naiksatam e524e6b215 Syncing with mitaka dependencies
Change-Id: Ic30bd61b99a20d82da8c0563d9e7230ccee76575
2016-03-02 09:45:13 +05:30
ank 8b731e1a87 Policy Classifier creation dialog keeps loading forever
Due to change in horizon base url from / to /dashboard,
javascript files are not getting loaded

Change-Id: I7bd713124ffaff4d3a884a1ba40b1bdd1342439e
Closes-bug: #1538679
2016-02-08 03:59:21 +00:00
Sumit Naiksatam 65a6632271 Aligning with liberty dependencies
Change-Id: Ied0fccc89323fe261b7b2378bfccb3cd007b5801
2016-01-01 19:19:55 -08:00
ank f40047f4a7 Add UI support for inject_default_route attr in l2policy
Change-Id: Iac0ea63f034779e3dc93c0e72915d31178018498
Closes-Bug: #1527683
2015-12-19 07:27:20 +05:30
Jenkins 5d0c13b845 Merge "Classifier to support custom IP protocol numbers" 2015-12-11 18:50:08 +00:00
ank 276a0fd1ab Support create member with multiple NICs
Added Networking Tab to member create work flow.
Deault provider PTG will be shown as selected
NIC, additionally user can select other PTGs
to to add multiple NICs

Change-Id: I3ceadc0f2ca9de6d9be2c4349eba6623a9aa4cd4
Closes-Bug: #1491540
2015-12-09 20:00:23 +05:30
ank 75f6015af3 Classifier to support custom IP protocol numbers
Change-Id: I7cb461bae0908844f4456ef7048afa319a1dfe80
Closes-Bug: #1499916
2015-12-04 21:09:45 +05:30
ank aefb07dd91 Allow classifier with 'ANY' protocol
Closes-Bug: #1416471

Change-Id: I3731a7cedf63075864ae0792b077c7dcc7a9cabc
2015-11-30 10:12:47 +05:30
ank cf058d954e Remove 'allow broadcast' option for L2P
Removed 'allow broadcast' option for
L2Policy create and update

Change-Id: I7c5140abc6eede42874e03b39e8f77805bef55ff
Closes-Bug: #1519117
2015-11-24 18:33:26 +05:30
sriharshabarkuru 3d53287284 No option to CRUD NAT Pool
Added support for "NAT Pool" CRUD in
network policy page.

Change-Id: I0f226c77c6cde426de5fa4c8628eb173281fc518
Closes-Bug: #1497781
2015-11-16 18:24:26 +05:30
Jenkins 7271ee2722 Merge "Can't associated multiple ext-seg to L3policy" 2015-11-04 17:24:48 +00:00