Commit Graph

263 Commits

Author SHA1 Message Date
Sharpz7 c5cf606339 [codespell] Fixing Spelling Mistakes
This is the first in a series of commits to add support for codespell. This is continuning the process completed in ironic-python-agent.

Future Commits will add a Tox Target, CI support and potentially a git-blame-ignore-revs file if their are lots of spelling mistakes that could clutter git blame.

Change-Id: I1efadb54995b0f5a2a8b672f017831a3009cb6d2
2024-01-29 21:08:48 +00:00
Zuul 41924ff16e Merge "Replace deprecated ugettext_lazy" 2022-08-19 13:17:17 +00:00
manchandavishal 23914cc56c Migrate to AngularJS v1.8.2
This patch aligns current code with AngularJS v1.8.2 requirements.
It also updates zun-ui to use the Firefox browser instead of phantomjs
browser to fix "nodjs-run-test" job because phantomjs browser has some
issue with backticks.

Change-Id: I40857bea1c83704106277bbb858eb35ee39f360f
2022-08-18 23:08:18 +05:30
Takashi Kajinami 8ae2c2517d 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

This change also removes usage of the deprecated methods in the pybabel
command to extract log messages.

Change-Id: I6a1f17e310f20e3dc6b510308fb4bd5e768b0212
2022-07-10 23:52:39 +09:00
manchandavishal 16c4d0a63c 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: I4d64f8ecd2fd665dd4133603dce078e043d00177
2022-04-29 22:00:59 +05:30
Zuul 94d111fe2c Merge "Use permissions attribute to detect ironic service" 2021-03-10 18:00:05 +00:00
OpenStack Proposal Bot b12bbeb8fb Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I32462c01dab50d7032bb4d3563a822eb98ed51b9
2021-03-03 06:53:42 +00:00
Takashi Kajinami 9887b962dd Use permissions attribute to detect ironic service
Horizon implements a logic to enable/disable panel by permissions
defined in each panel class. This change replaces the current redundant
logic by that built-in feature to simplify how we define requirements
of the Ironic panels.

Change-Id: I4a9dabfea79c23155fb8986fe8386202d7474485
2021-02-19 11:12:38 +00:00
manchandavishal a3d0f4e626 Remove Chrome browser from karma.conf.js
This patch removes Chrome browser from
karma.conf.js as nodejs job fails with Chrome
browser because it is not able to access some URL.
So let's remove Chrome browser now then we can add
it again once the issue is resolved.

Also as discussed during the upstream ironic community meeting on
Monday Dec 14 2020, the lower-constraints job is being removed.

Co-Authored-By: Riccardo Pittau <elfosardo@gmail.com>
Change-Id: Ic7094ab6ed01af2bcbe0beb13f300499215fd903
2020-12-16 05:29:25 +00:00
Ivan Kolodyazhny 9af5607b21 Remove hard-coded Python path in karma.conf.js
Change-Id: Ie4c0bf3338a346522476cca7f6076c9556a2f152
2020-10-28 16:13:08 +02:00
Ivan Kolodyazhny 0d997bf6ca Add npm tox env
With this tox env CI will run JavaScript tests instead of skipping them.

This patch also fixes issues with running tests using
lates Horizon release.


Depends-On: https://review.opendev.org/755003
Change-Id: I3ddd4893ae60a326751c157f0be85b084a2174a4
2020-09-29 13:32:42 +00:00
manchandavishal 927b4c291e [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:
Closes-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 package.json and
karma.conf.js as py36 is not avaialbale on focal. It also adds
libfontconfig1 in bindep.txt as phantomjs requires libfontconfg[2]

Story: #2007865
Task: #40188

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

[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: I01c88902bcb480bf3a11f377b2520596467294ed
2020-09-02 10:17:43 +00:00
Mohammed Naser 50134dc769 api: drop project_id from kwargs in client
The client will use the admin_token auth_type if an endpoint and token
are provided, this auth_type does not support getting a project_id so it
will raise an error in the dashboard.

Change-Id: I76c9f19bb11c9d5a92a06e3b7c8b70b7c3a035e5
2020-06-10 21:22:26 -04:00
Andreas Jaeger 6d253ca7f1 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE instead of obsolete UPPER_CONSTRAINTS_FILE.
- Update hacking to current version 3.1.0, fix problems found.

Change-Id: I86c18b4c73f9b3dc0b3d804559d825dac5a78436
2020-06-09 14:00:32 +02:00
Dmitry Tantsur 974838e37e Repair creating an ironicclient instance
Session is now required and can only be automatically created via
client.get_client. Switch to using get_client.

Change-Id: I0db7a95c4a99fe4157b3623a14135eb7b5dd69d9
2020-02-10 10:22:45 +01:00
Madhuri Kumari 318ed8bc9d Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ironic-ui is ready with python 3 and ok to drop
the python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal - https://review.opendev.org/#/c/691178/

Change-Id: Iaedcd8e73871583e4dc16860a81eb7351ffae0a2
2019-11-27 17:49:52 +00:00
OpenStack Proposal Bot 416f424027 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I5ba569be1b7d7c433776329ba6876f8cc1903b1e
2019-11-15 09:55:54 +00:00
OpenStack Proposal Bot 894bfebb0f Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3a55a44b159de6e5f83b748cf894b3e6d6446c90
2019-09-27 08:49:45 +00:00
Andreas Jaeger 292cc2eceb Update api-ref location
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.

Note that redirects will be set up as well but let's point now to the
new location.

For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html

Change-Id: Ic11c2ad91331eef7e59e9e9995d273d0af025ca6
2019-07-25 18:04:21 +02:00
OpenStack Proposal Bot 11ca90e75d Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I44c43eec521c564ce14678481a7759cef6106270
2019-05-06 09:06:28 +00:00
OpenStack Proposal Bot 47aa91f967 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib8d1b963e642408a6eff4e68f491c6ef0b2df927
2019-04-16 07:52:40 +00:00
francotseng a6a784c4a3 Normalize operation messages into capital case
Operation messages use sentence case in html files
(e.g. 'Create port') while capital case in js files
(e.g. 'Create Port'). Normalize them to use capital case in order
not to generate different translation items for same message.

Change-Id: I1a40859447eb6ba53eef19521e110f786380a00b
2019-04-03 14:34:48 +08:00
OpenStack Proposal Bot 929622786e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic37d23a7511116867246cc1ba3ec9fb778584970
2019-04-02 07:04:57 +00:00
Zuul 94647c1e74 Merge "Imported Translations from Zanata" 2019-03-29 15:51:42 +00:00
francotseng 5c678d2378 Fix misused html attribute 'translation' in base-node.html
Replace attribue 'translation' of elemet #driverInterfaces
with 'translate'.

'translation' is not a valid html attribue, it should be
'translate' instead, which means the content of the
element should be translated.

Change-Id: I8700e42140fb12b7ceaafcba10d6c1b26172918d
2019-03-29 15:21:54 +08:00
OpenStack Proposal Bot aae1cc835b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I2127dc9178bc904457a8f3ea01a72f2fcf2d2f31
2019-03-29 07:15:52 +00:00
Ivan Kolodyazhny d73528db1d Add ironic-ui integration tests
This patch adds basic tests to verify that ironic-ui is
installed and could be opened.

ironic-ui-integration-tests job is added in a
non-voting mode.

Depends-On: https://review.openstack.org/634712
Change-Id: Ie77be522679c9076ccbfb133eadaae7228adb03c
2019-02-07 05:49:55 -08:00
lijunjie 58a3288f49 Fix the misspelling of "expression"
Change-Id: I6a235e1870d0e20858042b571c9dcee8bca1dc7e
2019-01-16 10:50:27 +08:00
Ivan Kolodyazhny 4823b8d763 Rename tests/registration.py to /tests/test_registration.py
This patch fixes unit test run using tox.

Related blueprint: improve-horizon-testing

Change-Id: Ie9135003235a78636e0a5c570fddc3b5ec3fe5ba
2018-06-04 13:10:01 +00:00
OpenStack Proposal Bot 420b427c99 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I04c915b2f897a15fa63a4a07cd09b2481ee3dfde
2018-04-26 07:04:47 +00:00
OpenStack Proposal Bot a10c42f3af Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I6154cdd83b6cbabea10f58ca487ec878b4c3956c
2018-04-01 06:15:27 +00:00
OpenStack Proposal Bot f1f11d53d7 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1af47b4d569c4aefd134dbe60f8700573fd05384
2018-03-07 06:20:49 +00:00
OpenStack Proposal Bot b5b7f00dda Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I9487ebdeb7b4ed8100f1004d731ca684c7412e32
2018-01-30 06:53:51 +00:00
OpenStack Proposal Bot 56ab4d8d90 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0cf4e58f89b8826b2a5adf84b7da1b41c635e11a
2018-01-20 07:29:06 +00:00
OpenStack Proposal Bot 95e08ed9d3 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib4265c4fd199844d4afd5ff19cc119b622779fd0
2018-01-04 07:10:45 +00:00
Zuul 65fb2db58a Merge "Imported Translations from Zanata" 2018-01-03 14:24:16 +00:00
Zuul 77beab6cc4 Merge "Added support for injecting non-maskable interrupts" 2018-01-03 14:22:36 +00:00
Peter Piela 2e9c34b4cc Added support for injecting non-maskable interrupts
A a new action 'Inject NMI' has been added to node actions dropdown
menu in the 'Node Details' page.

Closes-Bug: #1713519
Change-Id: I01e9d7f352119c201d701127bb08fa2f0607a214
2018-01-02 13:57:31 +00:00
OpenStack Proposal Bot f71ccfcdcb Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id2246662fe9598fa6c59ab9211873c2e2b429811
2017-12-08 14:16:43 +00:00
OpenStack Proposal Bot 1c6d566488 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ice5dd7493c8acb882291e60eb1f3a4a5965fb4be
2017-11-17 06:59:48 +00:00
Zuul 64239b935e Merge "Allow selecting interfaces while enrolling nodes" 2017-11-14 19:53:13 +00:00
OpenStack Proposal Bot b7255ac0e2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I32ea8e91ea305d6bd33a37ccfc1714881de9c90d
2017-10-23 07:15:45 +00:00
Anup Navare c73492c877 Allow selecting interfaces while enrolling nodes
Adds support for selecting from the enabled interfaces for the
underlying driver while creating nodes. A new tab is added in the
enroll node modal.

Also enhanced "package.json" and "karma.conf.js" to widen the
range of accepted versions and jasmine capabilities.

Change-Id: Ie1b24cbf147b849a1d57fcdcbd735429ea7c9e34
Partial-Bug: #1672729
2017-10-22 20:21:09 -04:00
OpenStack Proposal Bot dfbe630ab2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I023049ebeed70e8c96793442f23c68e759c6a51e
2017-10-15 11:14:09 +00:00
Jenkins 7093319678 Merge "Unit tests for set target raid configuration" 2017-10-13 15:37:48 +00:00
OpenStack Proposal Bot 596d4e9b0f Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I652d971c9111bf9abc36542103213783c4b885d3
2017-10-09 11:18:37 +00:00
OpenStack Proposal Bot c4dd0d6384 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I069f143e10fca4829ad8abf6f9173a23ed6f80b9
2017-10-05 12:11:33 +00:00
Zuul c6c7820630 Merge "Added unit tests for edit-portgroup functionality." 2017-09-29 15:06:03 +00:00
Jenkins 3929d0696f Merge "Set target raid configuration on a node" 2017-09-26 14:48:41 +00:00
Ramamani Yeleswarapu 07071ea31d Unit tests for set target raid configuration
Unit tests for the set target raid configuration patch.

Change-Id: Ia75e6a9301023f7a55fc81ff7c6f44f0eef6ee23
Partial-Bug: #1648553
2017-09-22 15:31:14 -07:00