822 Commits

Author SHA1 Message Date
chenxing
b1d575869e Heat projects have been migrated to Storyboard
Because Heat projects have been migrated to Storyboard,
the reference should be updated correctly.

Change-Id: I4f5eea84fe50ecb495dcd0167e521950387a4810
2018-05-24 10:56:12 +08:00
Adrian Turjak
0ca736e5da Create new wsgi.py file and deprecate old file
Django 1.4 stopped creating django.wsgi files and the common
practice now for a while has been a wsgi.py since it is actually
python code, and should actually be importable.

Right now someone has to copy and rename the existing file if they
want to use it with a server like gunicorn.

This patch adds a new file in location that is importable via python
and adds a deprecation log to the old one.

This also updates the wsgi generation commands to instead  create
'horizon_wsgi.py' and have the apache conf generation also use that
or the default wsgi file.

Change-Id: I0f8bd16c8973ad23bcd8f73b54584dc69e5aed0c
Closes-Bug: #1763204
2018-05-15 01:41:01 +00:00
Akihiro Motoki
8230f2cf7a doc: Fix doc build failure due to dropped UpdateAction
Change-Id: Iae027ff58a4924fb3cfea1f9eaf07f357c861de8
Closes-Bug: #1769777
2018-05-08 09:36:11 +09:00
Zuul
4fff2894ad Merge "Support "Get me a network" in launch instance" 2018-05-07 13:15:03 +00:00
Akihiro Motoki
d16ed45e06 Support "Get me a network" in launch instance
"Get-me-a-network" feature is supported in Nova API 2.37 or later.
To support this in horizon, a dummy "auto_allocated_network" is shown
in the launch instance form. I believe this approach fits the current
way of the launch instance form. The dummy network is a special network ID
and if specified the nova API wrapper converts 'nics' parameter properly.

In addition, a dummy "auto_allocated_network" is now shown in the network
table. This is because Neutron creates an actual auto allocated network
once a server is created specifying nics=="auto".
I believe this fake behavior brings consistency in the network table
to some extent, while this is just a compromise.

Note that this patch does not cover the network topology integration.
"auto_allocated_network" is not shown until the actual auto allocated
network is created. The network topology integration requires more work.
For example, the link for the fake auto allocated network should be
disabled in the flat view. The pop-up for the fake auto allocated network
should be disabled in the graph view.

Change-Id: I062fc1b7ed75dc771ddc7f13c8324ed4ffab6808
Closes-Bug: #1690433
2018-05-07 20:49:29 +09:00
huang.zhiping
09f73b81cc Trivial: Update pypi url to new url
Pypi url changed from [1] to [2]

[1] https://pypi.python.org/pypi/<package>
[2] https://pypi.org/project/<package>

Change-Id: Ic974b5e586bc24609560986057f753bd39d546fe
2018-04-30 09:11:09 +08:00
Zuul
d55314bb7a Merge "Replace all mentions of get_identity_providers with get_identity_provider" 2018-04-25 13:35:52 +00:00
Zuul
7c5cabacec Merge "Workflow: Make steps pluggable via horizon plugin config" 2018-04-25 10:25:54 +00:00
Radomir Dopieralski
93bb571888 Replace all mentions of get_identity_providers with get_identity_provider
There was a typo in keystone's policy files, and it has been fixed in
Keystone already, we should also fix it to match.

Change-Id: I41e4381765f3bfc5988ca235e6cbeb6d1ba62fc2
Closes-bug: #1703369
2018-04-25 11:37:05 +02:00
Zuul
dc3b803caa Merge "Fix E402 warnings" 2018-04-24 09:49:35 +00:00
Zuul
0e0db28969 Merge "Support simple FIP disassociation (with FIP release)" 2018-04-19 11:56:31 +00:00
Akihiro Motoki
e50a69d69f Workflow: Make steps pluggable via horizon plugin config
This commit enhances django workflow implementation to allow horizon
plugins to add workflow steps to a workflow in other repository like
the main horizon repo. New setting "EXTRA_STEPS" is introduced to
the horizon plugin 'enabled' file.
To this aim, the workflow class looks up HORIZON_CONFIG['extra_steps']
with its class full name and loads them as extra steps if any.
HORIZON_CONFIG['extra_steps'] are populated via horizon plugin settings.

This commit completes the blueprint.

blueprint horizon-plugin-tab-for-info-and-quotas

Change-Id: I347d113f47587932e4f583d3152e781ad1a4849f
2018-04-13 12:57:46 +00:00
Ivan Kolodyazhny
f6f39d86da Remove deprecated table.UpdateAction class
UpdateAction is deprecated in Newton and is used in unit-tests only

Change-Id: I7952cb77b168cc39f8fc37c3b7ffe0c830d4e0d4
2018-04-12 17:34:17 +03:00
Akihiro Motoki
f0f028ca35 Fix E402 warnings
E402 module level import not at top of file

Change-Id: Ia8425ffe5b1325d00ae482d99b6764fd0fcbf822
2018-04-11 18:57:28 +09:00
Akihiro Motoki
dd0eba2128 Support simple FIP disassociation (with FIP release)
We previously supported so-called "Simple FIP disassociation"
which allows users to disassociate and release a FIP in a single action.
We no longer support nova-network based features, but I believe it is worth
implemented even in a neutron-only era. This patch introduces a checkbox
"Release floating IP" to support this with neutron.

At the same time, this patch also fixes a bug that the existing FIP
disassociation action disassociates and releases a first FIP of
a requested server. Even though it is a rare case where a single
server has multiple FIPs, this is a bug. After this patch, FIPs
associated with the requested server are listed in the form and
a user can select an FIP to be disassociated.

This patch drops a setting parameter 'simple_ip_management' without
deprecation notice. This is actually no side effect because this setting
just toggled the FIP disassociate action in the instance table and
it provides nothing more than that. We can do the same thing by
the policy file.

Change-Id: Ie8053bdd3a3e4c7897c7c906788d40c2a1d3f708
Closes-Bug: #1226003
2018-04-08 07:29:54 +09:00
Zuul
91e659f172 Merge "[doc] Add the missing 'API Access' for project tab" 2018-04-04 10:46:19 +00:00
Zuul
946ecea7b7 Merge "Cleanup Plugin Registry" 2018-03-31 02:29:08 +00:00
Ivan Kolodyazhny
c3d6036f8a Cleanup Plugin Registry
This patch removes unsupported plugins and changes links from http to
https.

Change-Id: Ic2532f73dba64605bc646f88ed088fbcedc6e44a
2018-03-30 23:41:58 +03:00
Ivan Kolodyazhny
8220df7d6f Update supported browsers list
We don't need to keep a list of older releases since it can be found in
git history and stable/* branches.

Change-Id: I341391e1808e41db84444ba41de244b15884adb7
2018-03-28 22:33:14 +03:00
Zuul
3539090c4c Merge "Follow the new PTI for document build" 2018-03-27 09:53:33 +00:00
Zuul
d4c81676a0 Merge "Drop deprecated settings" 2018-03-26 13:12:06 +00:00
Akihiro Motoki
eac3eae35a Follow the new PTI for document build
The detail is described in the following links:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

doc8 command is dropped from docs and releasenotes tox envs.
We run doc8 in pep8 tox env, so this hurts nothing.

Change-Id: I24271b527258b1de4cf26ca7efd625954eb834de
2018-03-25 02:14:40 +09:00
Akihiro Motoki
71993e3c98 Drop deprecated settings
- HORIZON_IMAGES_ALLOW_UPLOAD (deprecated in Newton)
- CUSTOM_THEME_PATH (deprecated in Mitaka)
- DEFAULT_THEME_PATH (deprecated in Mitaka)
- OPENSTACK_TOKEN_HASH_ENABLED (deprecated in Mitaka)
- TOKEN_DELETION_DISABLED
  (not documented but it was marked as deprecated in Ocata
   in django-openstack-auth commit 5810f9c6)

The related logics related to dropped deprecated settings
have been dropped too.

- custom_path and default_path of get_available_themes() were
  dropped as they are no longer needed in favor of
  the removal of CUSTOM_THEME_PATH and DEFAULT_THEME_PATH.
- Unused remove_project_cache(), is_token_deletion_disabled()
  and delete_token() have been dropped.

Change-Id: Ic9406623cc092884c4136f78fb967b129bfda487
2018-03-23 18:37:02 +09:00
Akihiro Motoki
0659f9a98a Drop trove/sahara settings from horizon repo
Settings related to horizon plugins should be documented in individual
project repos. We support local_settings.d mechanism, so horizon plugins
can provide their own settings examples.

One example is SAHARA_AUTO_IP_ALLOCATION_ENABLED. This option has been
deprecated and replaced by another setting. It is hard for horizon team
to track this kind of changes.

This is just a change in the example local_settings.py and there is no
feature change, so there is no deprecation required.

Change-Id: Ib28110246567808f9e9c0f99c6032f7bdc931643
2018-03-22 07:09:51 +09:00
Zuul
1cdafd8895 Merge "Add plugin xstatic modules support" 2018-03-20 17:25:56 +00:00
Zuul
c5c680cb69 Merge "Sahara projects have been migrated to Storyboard" 2018-03-20 04:19:47 +00:00
Vu Cong Tuan
d7cab93a16 Sahara projects have been migrated to Storyboard
Because Sahara projects have been migrated to Storyboard,
the reference should be updated correctly.

Change-Id: I33cabea7586c60e8806068535b376c8cdf24694f
2018-03-20 11:03:15 +07:00
Zuul
9ad47acab6 Merge "Update RHEL/CentOS horizon install instruction" 2018-03-20 03:56:24 +00:00
irisayame
1f93e64a3d Add plugin xstatic modules support
This patch allows Horizon to accept additional xstatic modules
 in plugin dashboards. Related static files would be collected
 and included in every page.

Change-Id: Ie49a522b28aaf6e028c5b218968d68189dd7eef1
Closes-Bug: #1755339
2018-03-20 11:37:29 +09:00
Akihiro Motoki
a180bafb75 Update RHEL/CentOS horizon install instruction
openstack-dashboard.conf in openstack-dashboard package
for RHEL/CentOS does not contain WSGIApplicationGroup configuration
which is required to make the dashboard work correctly.

Change-Id: Ic62fa29015ec153eada9d5e1ba5c06dab3a5eeca
Closes-Bug: #1741354
2018-03-16 08:10:46 +09:00
Akihiro Motoki
5e3fc94971 Update Django versions in horizon requirements
Part of blueprint django2-support

Change-Id: I748a9e4316618bf940ec507faa3456785cb2113f
2018-03-16 07:54:48 +09:00
Akihiro Motoki
a987c039cf TabGroup: Make tabs pluggable via horizon plugin config
This commit enhances django tab implementation to allow horizon plugins
to add tabs to a tab group in other repository like the main horizon repo.
New setting "EXTRA_TABS" is introduced to the horizon plugin 'enabled' file.
To this aim, the tab group class looks up HORIZON_CONFIG['extra_tabs']
with its class full name and loads them as extra tabs if any.
HORIZON_CONFIG['extra_tabs'] are populated via horizon plugin settings.

This commit moves update_settings in openstack_dashboard.test.helpers
to horizon as I would like to use it in a new horizon unit test.

blueprint horizon-plugin-tab-for-info-and-quotas
Closes-Bug: #1746754
Change-Id: Ice2469a90553754929826d14d20b4719bd1f62d3
2018-03-12 21:04:22 +09:00
Akihiro Motoki
5d81a96642 Update bug trackers of octavia/lbaas-dashboard
Octavia project uses the storyboard for bug tracking.
The corresponding Launchpad bug tracker is frozen.

Change-Id: I3213ec96116a68d90b13661e3ea7abc468365200
2018-03-07 23:46:45 +09:00
Brianna Poulos
21ffefaf6b docs: Update help text for encryption provider
The volume encryption provider no longer uses class names.
Instead, 'luks' and 'plain' are used. This patch updates
the help text for the volume encryption provider to use
the new encryption provider format constants.

Change-Id: I582b239d9de86aa1f1f5e55d4576cc65d33e74a7
2018-02-16 16:49:31 -05:00
Zuul
7d4983a374 Merge "Sync nova policy" 2018-02-07 05:00:13 +00:00
Zuul
bf8c8242da Merge "Change http link to https link" 2018-02-05 18:27:15 +00:00
MaoyangLiu
edbe5eadf6 Change http link to https link
change the http://winscp.net/eng/docs/ui_puttygen to
           https://winscp.net/eng/docs/ui_puttygen
           
Change-Id: I4a6236bf1ca85ec33e7f90234892e3e64403adab
2018-02-05 10:34:38 +00:00
Akihiro Motoki
67410193b3 Sync nova policy
Based on nova commit 32c8ac6b7dfe4ca0c211cbce7c5a67d88558126f

The new file was generated by oslopolicy-sample-generator:
  oslopolicy-sample-generator --namespace nova --format json

nova uses policy-in-code now, so there is a lot of differences.
Sorted version diff is http://paste.openstack.org/show/628742/

All policies with "@" have been dropped.
Dropped policies used in horizon are:
  os_compute_api:os-certificates:create
  os_compute_api:os-scheduler-hints:discoverable
  os_compute_api:os-server-groups:discoverable

[discoverable]
"discoverable" policies are related to nova API extensions
but the API extension mechanism has gone in Nova Queens,
so these policies now make no sense in Nova.
In Horizon side, we are still use a bit older API version
to launch instance, so it seems some fallback policies are needed
and they are added as conf/nova_policy.d.

[os_compute_api:os-certificates:create]
No corresponding policy is found, so the related policy check is dropped.
EC2 API is provided as a separate project from nova.
I guess this is the reason the policy was dropped.
DownloadEC2 action referred to it, but we already checks EC2 service
is available so I believe the policy can be dropped safely.

[openstack_dashboard.test.unit.api.rest.test_policy]
Unit tests are updated according to the nova policy change.
Note that test_rule_alone previously succeeded because it used
non-existing policy and fallbacked to 'default' rule.
The rule is changed to a policy for non-admin user.

Change-Id: I68f91bc29b20a4ecd613fc75735d38b9a48162ee
2018-02-05 05:57:02 +09:00
Zuul
6e09bfa700 Merge "Remove 'tools/install_venv.py' reference paragraph" 2018-01-30 02:11:21 +00:00
gaofei
7dd4d7a99d Remove 'tools/install_venv.py' reference paragraph
Since 'tools/install_venv.py' has been removed during refactor[1].
This paragraph displayed in quickstart may cause some confusion to
someone who new to horizon, so remove this paragraph.

[1]6529cd1eb8

Change-Id: I302ef1f30781ce916c7309ebfa349fbedf8dd5a6
2018-01-30 00:42:12 +00:00
Zuul
0cbbc046d5 Merge "doc: use "python manage.py" directly rather "tox -e manage"" 2018-01-27 04:37:45 +00:00
Zuul
1b0b658640 Merge "Sync cinder policy" 2018-01-26 13:08:14 +00:00
Ivan Kolodyazhny
b28b8e2b9a Change django.utils.log.NullHandler to logging.NullHandler
django.utils.log.NullHandler was removed in Django 1.9. logging.NullHandler
wad added to Python standard library since 2.7 so we should use it now.

Change-Id: I38f3f1d592f5456efc7dc94c0677a0a594722fbd
2018-01-26 11:20:51 +02:00
Zuul
fbbab68777 Merge "doc: drop horizon-plugins' content from user/admin guide" 2018-01-25 21:25:21 +00:00
Zuul
04bce70472 Merge "doc: update policy related topics" 2018-01-25 21:13:44 +00:00
Zuul
c2bc6ccb06 Merge "doc: Move the note to an appropriate place" 2018-01-25 11:49:20 +00:00
Qian Min Chen
7d9dd1cef6 [doc] Add the missing 'API Access' for project tab
Change-Id: I0bed02c93006b7ef0e94cf1832ca1d7a68599a5a
2018-01-25 02:23:30 +00:00
Zuul
5ccfe815d7 Merge "Add note for Django 1.8-1.10 support in relnote and doc" 2018-01-23 10:29:38 +00:00
Akihiro Motoki
c6d1e169ed Add note for Django 1.8-1.10 support in relnote and doc
As we discussed in the team meeting, we plan to drop Django 1.8
to 1.10 support in Rocky. It is worth mentioned in the release note
and the document.

Change-Id: I11a4f4ec1d2a237fad7c58951ff23affd0b5708d
2018-01-23 09:29:23 +00:00
Zuul
3ff49cfdc1 Merge "[doc] Add the missing editable properties for image" 2018-01-21 21:48:34 +00:00