11853 Commits

Author SHA1 Message Date
gecong1973
d2f7df4fa8 Fix a typo
TrivialFix

Change-Id: I78924d6e17ae8a2f2bf5cc4fdb7779b59d325283
2016-09-29 10:40:12 +08:00
Jenkins
0254853577 Merge "Fixed inconsistent names set for BatchAction" 2016-09-29 02:12:59 +00:00
Jenkins
440e3d43ae Merge "Behavioral fixes to Magic-Search" 2016-09-29 02:12:45 +00:00
Jenkins
d1866165f6 Merge "Fix Container details styles" 2016-09-29 00:23:09 +00:00
Kenji Ishii
44afeac9d4 [Trivial]remove unnecessary commna
Change-Id: Ie174e707adbc9ad668a2ad516e2cda11a8646b49
Closes-Bug: #1625566
2016-09-29 00:05:22 +00:00
Jenkins
68f76ce487 Merge "Fixed serial console not appearing in horizon" 2016-09-28 23:13:04 +00:00
eric
f23b7d1fd1 Fix tox cover to not fail
This changes the run of tox with cover, to just ammend cover
output data.... the combine option seemed to be breaking the data
and then the xml / html options did not work as a result.

Change-Id: Ic600b55855cf74c1b6ed138fea5c4b7bb037de82
Closes-bug: #1628661
2016-09-28 21:21:10 +00:00
OpenStack Proposal Bot
11e70e633c Updated from global requirements
Change-Id: I21f5bcd2bee58af83062e6b1857b68abb892af56
2016-09-28 16:53:22 +00:00
Matt Borland
244464b74d Behavioral fixes to Magic-Search
Issues fixed:
* Fixes issue where text entry is borked when clicking to make a new facet
* No ‘x’ icon when text search only
* Text search, then click “x”, text search NOT removed and search result not updated
* Text search, then click facet, text hidden but still used
* Text search, then select a facet, hit main “x”, only facet removed, text search
  NOT removed
* text search, enter to make text facet, then “x”, then select a “Type” “Image” facet,
  then the text facet reappears, then “x” again and Image facet cleared but text facet
  remains

Change-Id: I3f00836684fade0f1050d180a44924af48e3d868
Closes-Bug: 1628588
2016-09-28 16:02:42 +00:00
Bartosz Fic
7f46e5dc23 Enable volumes metadata update
Cinder currently expose an api to let the users update the volumes
metadata so horizon should expose this functionality.

The metadata is filtered to remove image metadata attributes. There is
work in progress (in Cinder) that will expose the ability to
write-through image metadata to underlying images where appropriate.
Allowing setting of image properties in this UI would be confusing.

Change-Id: If721ac1c908df7651d630f6e7d36f2cc4d69f5da
Implements: blueprint ability-to-add-metadata-to-cinder-volumes-and-snapshots
Co-Authored-By: Santiago Baldassin <santiago.b.baldassin@intel.com>
Co-Authored-By: Pawel Skowron <pawel.skowron@intel.com>
Co-Authored-By: Bartosz Fic <bartosz.fic@intel.com>
Co-Authored-By: Pawel Koniszewski <pawel.koniszewski@intel.com>
Co-Authored-By: Michal Dulko <michal.dulko@intel.com>
Co-Authored-By: David Lyle <david.lyle@intel.com>
Co-Authored-By: Paul Karikh <pkarikh@mirantis.com>
2016-09-28 18:17:14 +03:00
Mikhail Lelyakin
92a265dd23 Remove unused line from local_settings.py.example
The 9-th line of horizon/openstack_dashboard/
local/local_settings.py.example imports exceptions
module. But this module is unused in code and doesn't
described in comment lines.

Change-Id: I9568ba7d33b797cd91f9a50bf5162d305c1e078d
2016-09-28 11:09:57 +03:00
Dao Cong Tien
17c984f0d4 Fixed serial console not appearing in horizon
The lib file term.js has been moved into a subfolder 'termjs'.
So the link path of this file should be updated too.

Change-Id: I022c84e4e5bf7935db157af40a306a477291e36a
Closes-Bug: #1623799
2016-09-27 13:03:43 +00:00
OpenStack Proposal Bot
9935d46ea6 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Iad97eb55aec417c8c2a737805b475f372ce03816
2016-09-27 07:49:46 +00:00
Kenji Ishii
8887848854 Fix unnecessary bullet point
There are some place being displayed unnecessary bullet point.
 - Error message in login page (This ticket has a screenshot).
   There is no need to use 'ul'.
 - The row of 'No users/groups' in Project Member/Group tab in
   Create/Update Project modal.
 - The row of 'No projects found' in Flavor Access tab in
   Edit Flavor modal.
   There are same structure as a membership. So it needs to
   add a nav class.
This patch fix it.

Change-Id: I3f906808a53807ebd8c0d6a342b0219383776e91
Closes-bug: #1617262
2016-09-27 13:03:59 +09:00
Luis Daniel Castellanos
53ae6d3c30 Fix Container details styles
Container details styles are currently broken. The container
details are being displayed as a bulleted list which is wrong
this patch fixes that.

Change-Id: I986a326ff25ade0fedb8811a10c0edad9cbbcdac
Closes-Bug: #1624562
2016-09-26 10:16:59 -05:00
Akihiro Motoki
e01c54bb0f i18n: Add Indonesian to the language list
Indonesian translation have made a significant progress
during Newton cycle. Let's add it to the language list
in openstack_dashboard.settings so that Indonesian is listed
by the language pull-down menu by default.

I am planning to make this process automated in near future
(hopefully in Ocata cycle).

Change-Id: Iacbf112df81ee1b4fc40c063eaaa7d0b1c92ca7a
Closes-Bug: #1627673
2016-09-26 19:08:33 +09:00
OpenStack Proposal Bot
a6b21647de Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I4c6b34a0a2e7eaee30f37e9439c90652f4c0e1e2
2016-09-26 07:49:31 +00:00
Kenji Ishii
b94f060b34 A following up patch for 'Added the pagination info at top of the table'
Originally, 'Displaying x items' is included in footer area.
However, the element that the previous patch added is not in this area.
Thus, when the number of rows in table is zero, this behaviour is difference
(the element at the bottom of the table is hide, but the element
at the top of the table remain displaying).
I think these should be same behaviour as a footer information.

Change-Id: I6eb10db2bf00c8686c0df9d990787a2a890e6340
Related-Bug: #1359238
2016-09-26 10:28:28 +09:00
Kenji Ishii
ce3a0fbdd9 Fix the flicker of the log on button name
A log on button name in horizon depends on auth_type.
This patch will fix it so as to be displayed without a flicker
after evaluation is finished.

Change-Id: I174716651ea2f4ac894c7dd5d52e5f57fe8be06a
Closes-Bug: #1627560
2016-09-26 10:13:38 +09:00
Jenkins
57140ceb6f Merge "Fix Launch Instance without Cinder" 2016-09-25 06:13:53 +00:00
Jenkins
c664427667 Merge "Remove duplicated inappropriate 'translate' tag" 2016-09-25 05:09:53 +00:00
Akihiro Motoki
97d5435133 doc: Update middleware API ref to include all middlewares
When OperationLogMiddleware was introduced,the existing HorizonMiddleware
was moved under horizon/middleware/ directory.
As a result, doc/source/ref/middleware.rst generates nothing now.
This commit updates the doc/source/ref/middleware.rst to
include both middlewares.

Change-Id: Ie308fd20e7fec6b70a72e7f2b7f04dcfef6568df
2016-09-25 04:48:39 +00:00
Akihiro Motoki
7d8d1fa7cd Make "Detach Volume" in Instances page translatable
Due to tricky behavior of gettext, if we have both normal
gettext string and plural gettext string for a same string,
the normal gettext string is not translated.
(The detail is described in the bug report. See comment #5.)

As a workaround, this commit adds a context information to
the plural gettext string in volumes.volumes.tables.DetachVolume
so that we can have separate entries for a normal entry and
an entry with plural form support. By doing so, gettext can
find an expected translated string for a normal string.

After this change, we will see the following entries
for "Detach Volume" in the generated PO file.
----
msgid "Detach Volume"
msgstr ""

msgctxt "Action to perform (the volume is currently attached)"
msgid "Detach Volume"
msgid_plural "Detach Volumes"
msgstr[0] ""
msgstr[1] ""
----

Note that the message "Detaching Volume" for the post action
in the table is also updated to use npgettext_lazy.
This and "Detach Volume" are a pair, so it looks better to
use a same style.

Change-Id: Idf772265d3e0e1d2e74b19755a467e1433233f64
Closes-Bug: #1626312
2016-09-25 02:34:36 +00:00
Akihiro Motoki
49c942d9cb Add volume snapshot to boot source description
Also sorts boot source options in the order of the dropdown menu
of "Select Boot Source".

Change-Id: Icc9796123afe84af9dc1e8fc27cb56dd83a7a5d3
Closes-Bug: #1626302
2016-09-25 01:31:33 +00:00
Jenkins
48bc2bc6b3 Merge "Move Developer enabled/ files to contrib" 2016-09-24 14:01:20 +00:00
Akihiro Motoki
f880f6c723 Turn on docs warning check in document generation
Use -W (turn warnings into errors) option of sphinx-build
in the commandline of 'docs' tox target so that developer
can easily check sphinx warning.

Also runs the same documentation check in 'pep8' tox target
to detect sphinx warning in the gate.
The current 'docs' job in the gate does not use 'tox -edocs'
intentionally and calls build_sphinx via 'tox -evenv' [1],
so sphinx warnings are not detected in the 'docs' job.

Note that we no longer generate the whole code reference so this
change does not increase the time of 'tox -epep8' much,
while we can prevent new sphinx warnings.

[1] 6b50d7e3a6/jenkins/scripts/run-docs.sh (L16-L19)

Closes-Bug: #1411719
Closes-Bug: #1486222
Change-Id: Idc6e8a1c5762eba113b2d110d5fa223ab7406be3
2016-09-24 20:44:48 +09:00
Akihiro Motoki
215ccba9ec doc: Do not generate no source code reference
horizon devref has both explicit autodoc directives and
automatically generated source references.
This causes a lot of 'WARNING: duplicate object description'.

I think that we don't need source code references for most modules
and it is better to have explicit API references of modules
for which we need references. Thus this commit removes the logic
to generate source references.

This contributes a lot to reduce the number of sphinx warnings.
Also reduces the required time of documentation build :-)

Partial-Bug: #1411719
Partial-Bug: #1486222
Change-Id: Iba2bf3723cad159f4cfd1fff47e8114d9867e040
2016-09-24 20:44:48 +09:00
Akihiro Motoki
35d2becdd6 Fix docstring warnings
Partial-Bug: #1411719
Partial-Bug: #1486222

Change-Id: I2d649295e7425ab73f09f3a5d91076350bf7ed7a
2016-09-24 20:44:48 +09:00
Akihiro Motoki
ee04fca67e Fix warnings in devref document
WARNING: invalid signature for autoclass (u'UpdateAction **DEPRECATED**')
WARNING: Literal block expected; none found.
WARNING: Duplicate explicit target name: "here".
WARNING: Definition list ends without a blank line; unexpected unindent.

Partial-Bug: #1411719
Partial-Bug: #1486222
Change-Id: I1996269d2b5db15096796bda25b35c6560f683d2
2016-09-24 20:44:48 +09:00
Jenkins
03ba8d2820 Merge "Added the pagination info at top of the table" 2016-09-24 00:59:46 +00:00
Jenkins
9d7f1c8154 Merge "Fix the exapmle of how to use customization_module" 2016-09-23 20:57:34 +00:00
Revon Mathews
b65b476a1b Added the pagination info at top of the table
Added a reusable pagination template that is now applied to the top
and bottom of the data_table.

Change-Id: I7eb040b9c08fef984d20c8dba560cfe0c8be8cac
Closes-bug:#1359238
2016-09-23 14:46:39 -05:00
OpenStack Proposal Bot
b6cdf34785 Updated from global requirements
Change-Id: Ib52ed2d1b9001bf7c8ba77a93241516a28fafb18
2016-09-23 15:23:58 +00:00
Sean Mooney
723e547e84 Fix Launch Instance without Cinder
A previous patch altered the defaults in the angular Launch Instance,
but didn't account for those running without Cinder. This patch fixes
those assumptions.

Co-Authored-By: Rob Cresswell <robert.cresswell@outlook.com>
Change-Id: I8dc54fa40fa7eb8ae95a13741405f2a80337b33d
Closes-Bug: 1585761
2016-09-23 13:07:37 +00:00
Jenkins
129f33ceb3 Merge "Fix metadata removal" 2016-09-23 13:05:26 +00:00
Rob Cresswell
fbbe16f76d Move Developer enabled/ files to contrib
This patch moves the developer panel enabled files to contrib, to stop
any strange behaviour when interacting with settings from enabled files
and prevent warning logs when DEBUG is False.

Change-Id: If7a2d023afe418b6dd90edf8a4a1d3bc9646c7ad
2016-09-23 10:59:20 +00:00
Akihiro Motoki
b89c1abfa5 Multiple integration test fixes
This patch represents the following patches, combined:

---

integration tests: retry WebDriver instantiation when conn refused
  https://review.openstack.org/#/c/375042/

We see connection refused which leads to integration test failure randomly.
This seems to come from high load of test infra. This commit retries
WebDriver instantiation when connection refused is returned.

There is no confident this workaround works, but it would be great
if this reduces the number of failures. Let's try.

---

integration test: ensure IPv4 address is extracted
  https://review.openstack.org/#/c/374826/

In test_floatingip_associate_disassociate, IPv6 address is passed
to Floating IP associate API. This commit ensures to pick up IPv4
address of an instance.

Change-Id: Iba71d1e17e252527a82cd53c34dca35723367b28
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Partial-Bug: #1626643
Closes-Bug: #1626536
2016-09-23 17:59:48 +09:00
Kenji Ishii
07185eca28 Fix the exapmle of how to use customization_module
If a user use current example[1] as is, other attributes that
HORIZON_CONFIG have are eliminated. As a result, some unexpected
behavior may occur. So, this patch modify the exapmle.

[1]:http://docs.openstack.org/developer/horizon/topics/customizing.html

Change-Id: I022a73e6da6ad9b8ae1f807838cf29efedf7e1ef
Closes-Bug: #1626858
2016-09-23 15:52:07 +09:00
Ying Zuo
3e590ea785 Hide shelve/unshelve actions of a locked instance for non-admin users
Change-Id: Ibebfd5ca1966c7b7d10169894b0b3a201c777058
Closes-bug: 1626751
2016-09-22 15:18:14 -07:00
Jenkins
28793564ff Merge "Move past release notes under doc/ to releasenotes/" 2016-09-22 21:52:27 +00:00
Matt Borland
2425e6e860 Fix metadata removal
This fixes the case where known metadata types were not being removed
upon saving.  When trying to apply name changes to the provided value,
the work was done out of order, causing the item to be taken out
of the 'removed' list.

Change-Id: I0058ce369a9616b4c49f3d6d1a54cf69144e2f0c
Co-Authored-By: Matt Wood <matt.wood@hpe.com>
Closes-Bug: 1618578
2016-09-22 13:40:29 -06:00
qiaomin
b016b085bd Fix the wrong usage of assertTrue
This patch fix the wrong usage of 'asssertTrue'. The 'assertEqual' make sense.

Change-Id: I8f300a393629e08a48a7f3d6293ca5a178a085b9
2016-09-22 15:19:03 +00:00
zhangyanxian
4abe3efe8c Fix typos in contributing.rst & policy.service.js
TrivialFix

Change-Id: Ifd19f066eedf1e1ce019f08ea1fdf11f881506d6
2016-09-22 02:14:29 +00:00
Ying Zuo
14ab4d1c0c Fixed inconsistent names set for BatchAction
The name of a BatchAction should be one word.

Change-Id: I5172454b23a5aab951a089f05b0f5a04e1a72ba6
Closes-bug: #1626210
2016-09-21 12:57:27 -07:00
Guillaume Espanel
d99444b87b Display the right floating ip on LB disassociation
The RemoveVIPFloatingIP.single method was deleting a floating IP and
then displayed a message about another floating IP.

Change-Id: Ic6078299ddb34550c002218aad28d05907827b01
Closes-bug: #1625639
2016-09-21 15:07:15 +00:00
Jenkins
877344de0d Merge "Fix the collection of integration tests artifacts" 2016-09-21 09:21:16 +00:00
Akihiro Motoki
71301f84fa test: Use appropriate test data in VolumeViewTests
admin.volumes.volumes.tests.VolumeViewTests uses LBaaS pool data as
a result of api.cinder.pool_list(). cinder_pools data should be used.

Change-Id: I251c6dffcbaf19a2d8d173f06e0e8979a0ceee0b
2016-09-21 03:53:58 +00:00
Timur Sufiev
2fec0a1ae8 Fix the collection of integration tests artifacts
Don't rely on a particular workspace name, as it changes when job's
name changes.

Depends-On: I28d84235fb51a49492ed9c96794ba74f317f66b6
Change-Id: I63e45ee89711b429d0d878303aefeec4b159125a
Closes-Bug: #1625253
2016-09-20 20:56:41 +00:00
Jenkins
35fdc05540 Merge "Fix compatibility issues with Django 1.10" 2016-09-20 19:44:01 +00:00
Jenkins
f227b1bf2f Merge "Edit unclosed div tag" 2016-09-20 17:44:23 +00:00