76 Commits

Author SHA1 Message Date
Zuul
d3372784ea Merge "Add node history support" 2022-01-04 18:05:30 +00:00
Riccardo Pittau
6c3f20aee7 Use only Yoga tests
TC has decided to keep support for Python 3.6 during the Yoga cycle.
For more info see [1]

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-December/026164.html

Change-Id: I9ad08221b74d0ddbb800f6b56c98fdd472f0815d
2021-12-14 09:01:24 +01:00
Julia Kreger
2e0cef2cb0 Add node history support
Adds support for rest API version 1.78, which
covers the node history feature.

Story: 2002980
Task: 43319
Change-Id: I6edbc38353a4b2f7b0a758108bc91cc9fb72a29d
2021-12-01 07:24:27 -08:00
Cenne
00808631c1 Add support for changing 'boot_mode' and 'secure_boot' states
Story: 2008567
Task: 41709
depends-on: https://review.opendev.org/c/openstack/ironic/+/800084
Change-Id: I2937ea924ccc4ca6e9ab5599aa02e3c078c166b3
2021-08-13 18:24:58 +02:00
likui
384bd6ec39 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of
dash-separated options in 'setup.cfg' will not be supported
in a future version [1].
Get ahead of the issue by replacing the dashes with underscores.
Without this, we see 'UserWarning' messages
like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I259f4d64f97a47676a756bba6ae8660e55dd45d1
2021-05-13 09:59:32 +08:00
Sean McGinnis
a44a77e6d3
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I3bd3cb43cd9764bdfe069dfcfd10bd4ed35620d5
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-02 07:06:42 -05:00
Zuul
565a256f4e Merge "A standalone CLI for ironic" 2020-04-06 15:31:17 +00:00
Dmitry Tantsur
f7662b01c2 A standalone CLI for ironic
This changes adds a new command ``baremetal`` that works mostly like
the OSC ``openstack baremetal`` command but does not require OSC and
defaults to no-auth. No changes in existing commands are required,
the existing OSC plugins are pulled in.

Change-Id: Id4895ec37bfb58eb635e5c8519f96f1bdc30c925
2020-04-06 11:50:25 +02:00
Andreas Jaeger
552ab25d19 Cleanup py27 support
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:
  * Wheel is not needed for python 3 only repo
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: Ibc9c3d9448dc204e7877a00a9970e1673fd2951e
2020-04-04 16:50:23 +02:00
Iury Gregory Melo Ferreira
f51566545e Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-ironicclient 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: Iacc50fde00f0d24e9c6ee2b1ac61b8fa060094fb
2019-11-22 11:08:56 +01:00
Julia Kreger
f62758cda5 Remove the ironic command
The ironic command is dead, long live the OSC baremetal command.

Also removed the json_respose tests, which seemed ot be geared
to checking json returned data on the command line. For ironic
these tests seemed to be very explicit for our CLI where as OSC
should be covering the return data handling, the only real end
effect is field level expectation enforcement in the functional
test... which seems excessive and un-needed.

Story: 1726605
Task: 11974
Depends-on: https://review.opendev.org/677183

Change-Id: I3e3ae416a65d8e01956434ba51bd3187ab001f80
2019-08-20 21:51:12 +00:00
Kaifeng Wang
85df211fc1 Update Python 3 test runtimes for Train
One of train goals to have consistent python3 jobs.

https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: If72309322644ea54fbf3a07ecbaa1bcf09ff9dba
2019-06-13 11:30:34 +08:00
Madhuri Kumari
a22874bd58 Add allocation update API
This patch adds the following OSC commands:
* baremetal allocation set
* baremetal allocation unset

Change-Id: Id7c1c46a66d19c782af917f48d6bdb82193da73b
Story: 2005126
Task: 29797
2019-06-06 08:52:49 +05:30
Ghanshyam Mann
7f69c5388d Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I5c377836ebf0081089a9c54bcc5981061638c64a
2019-04-14 22:33:51 +00:00
Mark Goddard
cc37253428 Deploy templates: client support
Adds OSC support for the deploy templates API.

Change-Id: I0f2f37e840449ee41f747e2a43ed6f53c927094e
Depends-On: https://review.openstack.org/631845
Story: 1722275
Task: 28678
2019-03-01 14:24:28 +00:00
Dmitry Tantsur
e0708a16ef Allocation API: client API and CLI
Adds the Python API to create/list/view/delete allocations, as well
as the OpenStackClient commands.

Change-Id: Ib97ee888c4a7b6dfa38934f02372284aa4c781a0
Story: #2004341
Task: #28028
2019-02-16 15:51:38 +01:00
Kaifeng Wang
fed8abe5a5 Support for conductors exposed from API
Adds conductor resource to the CLI, the support to list and show
conductor resource, and filter nodes by conductor field.

Story: 1724474
Task: 28066

Change-Id: I9644b9b1bbe2f4f5aa6e80a6bb7ab9b0a4663a6f
2018-12-12 14:37:25 +08:00
sunjia
cdcd08dffd Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I4cb9f81b4be845025ff17835cbde19c54303e722
2018-12-03 22:00:50 -05:00
qingszhao
bdd4ec9b89 Add Python 3.6 classifier to setup.cfg
Change-Id: I6a5f55d65f98c08894e1174f510fcd165dde8d7f
2018-11-29 09:39:03 +00:00
Zenghui Shi
2fabfa4103 BIOS Settings support
This adds support for the BIOS Setting APIs in the
openstackclient plugin. Also bump the last known
API version to 1.40 to get access to new API.

Change-Id: I1b4185e53818686c895d1fe526ba3fe5540873b3
2018-06-12 08:51:19 +08:00
Nguyen Hai
fd7ccff5d3 Follow the new PTI for document build
- Follow new PTI for docs build
- Add sphinxcontrib.apidoc to replace pbr autodoc

REF:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Change-Id: I76e8ec019ef30fdc2d34a25a99e849407f586459
2018-04-19 13:15:59 +09:00
Mario Villaplana
fce885bf64 Add support for RESCUE and UNRESCUE provision states
Adding support for rescue and unrescue to OSC.

Co-Authored-By: Michael Turek <mjturek@linux.vnet.ibm.com>
Co-Authored-By: Dao Cong Tien <tiendc@vn.fujitsu.com>

Change-Id: Id865d7c9a40e8d85242befb2a0335abe0c52dac7
Depends-On: I3953ff0b1ca000f8ae83fb7b3c663f848a149345
Partial-bug: 1526449
2018-01-26 01:33:03 +00:00
Jim Rollenhagen
bc2c3a2367 Traits support
This adds support for the traits APIs in both the node portion of the
SDK, and the openstackclient plugin. We also bump the last known API
version to 1.37 to get access to the new API.

Change-Id: I72017d51dea194ec062a66cb19d718ba827e7427
Partial-Bug: #1722194
Depends-On: I313fa01fbf20bf0ff19f102ea63b02e72ac2b856
2018-01-25 16:13:25 +00:00
Ruby Loo
d1cbe0737f osc node power on & off commands
This replaces 'openstack baremetal node power <on|off>' with
the two commands: 'openstack baremetal node power on' and
'openstack baremetal node power off'.

The two commands are more in line with openstackclient guidelines.
There is no change to the user issuing the power command (the actual
command line is the same). However, help and lists (e.g. via
'openstack -h baremetal') will show the individual power commands.

Change-Id: I39ab81e148ca28ce24d402106228fb5dd2f6d60e
Closes-Bug: #1619363
2017-11-14 21:44:24 -05:00
OpenStack Proposal Bot
a283a3ed58 Updated from global requirements
Change-Id: Idac68a363af8f900e61381bdeedec4daec5044c7
2017-09-24 12:27:45 +00:00
Pavlo Shchelokovskyy
6b1fefe979 Do not depend on python-openstackclient
OpenStack client is not a runtime dependency of ironicclient,
and having it in requirements just brings in many dependencies
which might not be needed at all when using the Python API of the client
only (for example in server-side applications).

Although dependency on osc-lib is enough for unit tests, add
python-openstackclient to test-requirements so that functional tests
pass.

Also, add a setuptools 'extra' so that users can install
python-openstackclient together with ironicclient if wishing to do so
as follows:

    pip install python-ironicclient[cli]

Change-Id: Ic7d06e61cd234b327613287802361c58bf6bf11e
Closes-Bug: #1562023
2017-09-18 12:37:09 +03:00
KaiFeng Wang
64a8006d65 Remove deprecated OSC baremetal commands
Following commands were deprecated one year ago, now we remove them
from the tree:

* openstack baremetal create
* openstack baremetal delete
* openstack baremetal list
* openstack baremetal show
* openstack baremetal set
* openstack baremetal unset

Note that `openstack baremetal create` is used to create a single node
as well as create resources from file(s). Only the deprecated part
(create a single node) is removed in this patch.

Closes-Bug: #1715643
Change-Id: I0aed7cb970adf23db033c2a951026d649134caa9
2017-09-13 09:13:02 +08:00
Julia Kreger
835c5d4c57 Turn on warning-is-error
In the doc-migration, warning-is-error was never enabled
for python-ironicclient. As such, I've enabled it and
corrected the various document errors.

Change-Id: I2d1b95fba25dba5d59da3f4b09b9974ff5196940
2017-07-26 13:40:01 +00:00
Hangdong Zhang
ca0219f972 Update and optimize documentation links
1. Update URLs according to document migration
2. Update the dead and outdated links
3. Optimize (e.g. http -> https)

Change-Id: I63c0f87a6a0b1e0c36dfbd52cef65ede376ae222
2017-07-18 16:53:39 +08:00
Hironori Shiina
15dc9cf958 Add OSC commands for volume target
This patch adds the following commands for volume target.
- openstack baremetal volume target create
- openstack baremetal volume target show
- openstack baremetal volume target list
- openstack baremetal volume target delete
- openstack baremetal volume target set
- openstack baremetal volume target unset

Change-Id: I55707f86d64cab6c6c702281823d7b0388e11747
Partial-Bug: 1526231
2017-07-11 22:48:50 +09:00
Hironori Shiina
26441c51f3 Add OSC commands for volume connector
This patch adds the following commands for volume connector.
- openstack baremetal volume connector create
- openstack baremetal volume connector show
- openstack baremetal volume connector list
- openstack baremetal volume connector delete
- openstack baremetal volume connector set
- openstack baremetal volume connector unset

It also bumps known API version to 1.32 and hides a link to volume
resources from node information.

Change-Id: I5bb189631bf79f32cd031e5a5b68a5c8d42a987f
Partial-Bug: 1526231
2017-07-08 23:21:32 +09:00
Jenkins
ea5263a3ce Merge "Add OSC 'baremetal driver raid property list' cmd" 2017-06-15 18:52:52 +00:00
Jenkins
23318196e7 Merge "Add OSC 'baremetal driver property list' command" 2017-06-12 18:55:55 +00:00
Galyna Zholtkevych
befbb7e63e Add OSC 'baremetal driver raid property list' cmd
Extends the OSC plugin with the new command:
  openstack baremetal driver raid property list <driver>
This returns a list of the names of the driver's RAID
logical disk properties along with their descriptions.

Change-Id: Ie4baeb2920a9ab114204ac4aee4a561492ba2741
Closes-Bug: 1619052
Co-Authored-By: Ruby Loo <ruby.loo@intel.com>
2017-06-12 14:36:30 +00:00
Galyna Zholtkevych
58fe82082b Add OSC 'baremetal driver property list' command
Extends OSC plugin with the new command:
    openstack baremetal driver property list <driver>
This returns a list of the names of a driver's properties
along with their descriptions.

Change-Id: I4419daa68928a479971dab80806f0dfac37224a4
Closes-Bug: 1619053
Co-Authored-By: Ruby Loo <ruby.loo@intel.com>
2017-06-12 14:35:35 +00:00
deepakmourya
fbd33a16af Remove support for py34.
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: Ieb56cf5facaecc9f0af2904fef99104446ca8299
2017-06-08 08:02:15 +00:00
Naohiro Tamura
c964a4c331 Add a new OSC command for Inject NMI
This patch add a new OSC command for Inject NMI,
'openstack baremetal node inject nmi'.

Partial-Bug: #1526226
Change-Id: I669c0913450a412adf84c1b9581b43e4dd078bbd
2017-01-19 15:45:56 +09:00
Sam Betts
288371a43a Add interface attach/detach support
This patch add the ironicclient part of the interface attach/detach API
support.
New commands are introduced:

* ironic node-vif-list <node_id>
* ironic node-vif-attach <node_id> <vif_id>
* ironic node-vif-detach <node_id> <vif_id>

* openstack baremetal node vif list <node_id>
* openstack baremetal node vif attach <node_id> <vif_id>
* openstack baremetal node vif detach <node_id> <vif_id>

Bump OSC plugin last known API version to 1.28

Co-Authored-By: Vasyl Saienko <vsaienko@mirantis.com>
Co-Authored-By: Vladyslav Drok <vdrok@mirantis.com>

Depends-On: I70f1166a15a26f392734e21d6bc30a03da4e5486
Change-Id: I801c5633d72e3eb392e5a04362306c44f6100764
Partial-Bug: #1582188
2017-01-11 16:56:37 +00:00
Vasyl Saienko
8595b59e1a Add portgroup support to osc plugin
This patch update OSC plugin to support basic portgroup operations:
  * create
  * delete
  * list
  * show
  * set
  * unset

Related-Bug: #1618754

Co-Authored-By: Kyrylo Romanenko <kromanenko@mirantis.com>
Co-Authored-By: Vladyslav Drok <vdrok@mirantis.com>
Change-Id: Ic9c37495a82b9115d97f9b330cc13a1063f8b529
2016-12-20 19:20:33 +02:00
Jenkins
ce941d49fe Merge "Add openstack baremetal driver commands" 2016-08-31 18:33:19 +00:00
Rodion Promyshlennikov
e31544bf5d Add openstack baremetal driver commands
Extends the OSC plugin with new commands related
to the drivers:
  * openstack baremetal driver list
  * openstack baremetal driver passthru call
  * openstack baremetal driver passthru list
  * openstack baremetal driver show

Change-Id: I68ae82d1ff7e2944c1d04f86c4362b6c0f499df1
Partial-Bug: 1526479
Co-Authored-By: Ruby Loo <ruby.loo@intel.com>
2016-08-31 13:11:32 -04:00
Ruby Loo
d8cd1ce54b Add node validate OSC command
Adds 'openstack baremetal node validate' command to the OpenStackClient
plugin.

Change-Id: I53c0f949f2c0f2c353c40b3333669ed64c1062c4
Partial-Bug: #1526479
2016-08-30 14:30:41 -04:00
Jenkins
9088df2518 Merge "Adds node boot device & passthru OSC commands" 2016-08-30 18:15:55 +00:00
Jenkins
62a416034b Merge "Add openstack baremetal chassis commands" 2016-08-29 21:53:16 +00:00
Ruby Loo
0f005338e9 Adds node boot device & passthru OSC commands
Adds the following node boot device and node passthru commands
to the OpenStackClient plugin:
  - openstack baremetal node boot device set
  - openstack baremetal node boot device show
  - openstack baremetal node passthru call
  - openstack baremetal node passthru list

Change-Id: I803bf263c0e548019425e769f1d3ae5ae33d9940
Partial-Bug: #1526479
2016-08-29 15:27:31 -04:00
Jenkins
539667a76e Merge "Add baremetal port list command to OSC plugin" 2016-08-29 16:05:41 +00:00
Jenkins
8d86ed4a0a Merge "Adds 'openstack baremetal node console' commands" 2016-08-28 08:53:31 +00:00
Rodion Promyshlennikov
1add122169 Add baremetal port list command to OSC plugin
Partial-Bug: #1526479
Change-Id: Ibfba276c3f4c0c090c48897716aaf4fb193370b0
2016-08-26 10:47:42 +03:00
Rodion Promyshlennikov
7513aae7e2 Add baremetal port delete command to OSC plugin
Change-Id: I4d08ebf38fda739840a1bb98c0bc5bf2ff769b65
Partial-Bug: #1526479
2016-08-25 20:34:00 +03:00
Ruby Loo
dd755102e8 Add openstack baremetal chassis commands
This extends the OpenStackClient plugin with new commands related
to the chassis:

  * openstack baremetal chassis create
  * openstack baremetal chassis delete
  * openstack baremetal chassis list
  * openstack baremetal chassis set
  * openstack baremetal chassis show
  * openstack baremetal chassis unset

Change-Id: I6a655b9f136d0214b6e9bb868f411ba948557ac3
Partial-Bug: 1526479
2016-08-25 12:35:52 -04:00