7080 Commits

Author SHA1 Message Date
Alexandra Settle
4463d44dd3 Adding note for ironic virt driver nova-compute changes
Backport: ocata newton
Change-Id: I2f56fc66311c5489714d1996943bc3946fc2193f
2017-07-24 14:13:07 +00:00
Jenkins
2f63c4a953 Merge "DevStack: Add configuration for boot-from-volume" 2017-07-24 12:19:12 +00:00
Jenkins
15db6df2a5 Merge "Allow updating interfaces on a node in available state" 2017-07-24 05:49:09 +00:00
OpenStack Proposal Bot
e003b071f3 Updated from global requirements
Change-Id: I2fc4dbe1e40a15eba7fbc8f4b62639a1127a63ec
2017-07-21 13:08:25 +00:00
Jenkins
9cf32760f0 Merge "Improve ports API reference" 2017-07-21 10:34:53 +00:00
Jenkins
6fba11dfdb Merge "Replace the usage of 'manager' with 'os_primary'" 2017-07-21 10:30:18 +00:00
Hironori Shiina
2c134ac4c5 DevStack: Add configuration for boot-from-volume
This patch enables boot-from-volume feature for DevStack with VMs.
- Add parameters for setting storage interface.
- Set node property for iscsi boot.
- Create volume connectors.

Change-Id: I1085bb8d44e3dbae61243dd9b65d17db33c505be
Partial-Bug: #1559691
2017-07-20 22:15:20 +00:00
Hironori Shiina
7b8ecaefc4 Allow updating interfaces on a node in available state
Enable being able to set the interfaces for a node that is in the
provision state 'available'.

Change-Id: I428dd5905e6ab90c2c0b7867ba487482171b9496
Closes-Bug: #1704913
2017-07-20 23:38:40 +09:00
Jenkins
5ea8d9f354 Merge "replace 'interrace' with 'interface'" 2017-07-20 14:36:26 +00:00
yufei
9fe33003b7 replace 'interrace' with 'interface'
Fix a typo

Change-Id: I46f2ee981645288c2310e2e583c4d8260128deba
2017-07-20 17:27:30 +08:00
Mark Goddard
bfd80a5d39 Improve port update API unit tests
Currently, the RPCAPI update_port method is mocked, and its return
value set in the unit tests to the expected value - the modified port.
This isn't really exercising all of the port update API handler, which
should be modifying the port object appropriately and passing it to the
RPCAPI update_port method.

This change adds a side effect to the RPCAPI update_port mock which
saves the Port object that it is passed to the DB. This allows us to
avoid fudging the answer and test the code more thoroughly.

The TestPost test case already does this for port creation.

Change-Id: I77860b2a24da659418f93c380db67ff4726257ff
Related-Bug: #1666009
2017-07-20 08:17:56 +00:00
Mark Goddard
2e51f95263 Improve ports API reference
Currently there are a few missing fields and API microversion notes
in the ports API reference. This change resolves those issues. All
ports microversion notes have been changed to use the active voice.

Change-Id: If16c8e311e439e88fbbdd693c12e0f7992af5044
2017-07-20 09:13:17 +01:00
Jenkins
e718b837a0 Merge "Expose ports' physical network attribute in API" 2017-07-19 21:49:54 +00:00
Jenkins
31cee0421d Merge "Rename 'remove_unavail_fields' parameter" 2017-07-19 19:40:13 +00:00
Mark Goddard
02fff930fb Expose ports' physical network attribute in API
In change Ib22753aa6ae0fedce7fb9ecf63f135fda0185c5b the port data model
was updated to include a physical_network field, but this was not
exposed to the user by the REST API. This change exposes the
physical_network field in the REST API.

The port CRUD notification object has been updated to include the
physical_network field.

The API reference and user guide have been updated to include
information about the ports' physical network field.

The API microversion has been bumped to 1.34. During a rolling upgrade
from Ocata when the API service is pinned, the port physical network
field is hidden from API responses, and API requests including the field
are rejected.

Change-Id: I7023a1d6618608c867c31396fa677d3016ca493e
Partial-Bug: #1666009
2017-07-19 17:29:20 +01:00
Jenkins
d9983f1eec Merge "Add missing parameter descriptions." 2017-07-18 23:11:36 +00:00
Jenkins
f641463cfb Merge "Improve graceful shutdown of conductor process" 2017-07-18 20:44:28 +00:00
Jenkins
6dfb53e7fb Merge "Modifications for rolling upgrades" 2017-07-18 19:42:35 +00:00
Jenkins
44c18969de Merge "remove explicit directions for release notes on current branch" 2017-07-18 18:58:29 +00:00
Ruby Loo
abf6d356b3 Rename 'remove_unavail_fields' parameter
Renames the parameter 'remove_unavail_fields' to
'remove_unavailable_fields'.

This is a follow up to 8e7d795db5e614de6a3d8dd19ff26f869c8e9f9a.

Change-Id: I57f7bde85e959f3edeb878089057bfcd26672570
Partial-Bug: #1526283
2017-07-18 09:45:24 -04:00
OpenStack Proposal Bot
4657d794db Updated from global requirements
Change-Id: I64d5db2ac437c9ae3f3e36b565dfd72154d34f0f
2017-07-18 01:46:54 +00:00
gaozx
9ad88d014d Add missing parameter descriptions.
Change-Id: If26820665aedd771773075621b15fcad506c0b38
2017-07-17 16:08:39 +08:00
Jenkins
a1cbfa5be0 Merge "Follow-up to fix for power action failure" 2017-07-15 18:04:06 +00:00
Jenkins
4035eb7942 Merge "Generate iPXE boot script when deploying with boot from volume" 2017-07-14 23:41:49 +00:00
OpenStack Proposal Bot
daf01d854c Updated from global requirements
Change-Id: Ie86268aa40e0604c92d6997604ebf9d30e66a68d
2017-07-14 15:40:59 +00:00
Mike Turek
2c18f22f99 Generate iPXE boot script when deploying with boot from volume
This patch moves the boot from volume skip logic for the prepare
step of deployment into the boot interface, allowing the template
to get generated before skipping the remainder of the step.

Partial-Bug: #1559691
Change-Id: Icfea16c62a753c77942107af287880f35f28c404
2017-07-14 10:14:54 -04:00
Jenkins
7a0632dd59 Merge "Using non-persistent boot in PXE interface" 2017-07-14 13:19:16 +00:00
Jenkins
e4514f34a1 Merge "Add Driver API change in 1.33 to history" 2017-07-14 02:40:07 +00:00
Jenkins
03a59abb28 Merge "Force InnoDB engine on interfaces table" 2017-07-14 02:37:34 +00:00
Hironori Shiina
ba52e406b9 Add Driver API change in 1.33 to history
API Version 1.33 introduced fields related to storage interface to
Driver API as well as Node API. This patch adds missing description
for Driver API to REST API Version History documentation.

Change-Id: I2fd0709865adc1d02cf3800aa11497d97ab0b14b
Partial-Bug: #1559691
2017-07-14 02:18:33 +00:00
Fellype Cavalcante
c7091fb8e2 Using non-persistent boot in PXE interface
Non-persistent boot device change is not being used in places
where it should be during cleaning and deployment phases,
due to the default behavior of PXE interface forcing a
persistent change when using legacy function
deploy_utils.try_set_boot_device.
For some drivers, e.g. OneView, a persistent change is far more
costly than a non-persistent one, so this fix can bring
performance improvements.

Change-Id: I213e9c6173ee9c7c6c31064afcfae07764af0f7b
Closes-Bug: 1701721
Co-Authored-By: Stenio Araujo <steniaraujo@lsd.ufcg.edu.br>
2017-07-13 13:23:57 -03:00
Ruby Loo
8e7d795db5 Modifications for rolling upgrades
This contains some changes to conversions of objects during a rolling
upgrade.

This changes objects.base.IronicObject.convert_to_version() to have a new
parameter 'remove_unavail_fields': True (default) to remove fields that are
unavailable in the target version -- for serialization/deserialization
of objects. False to change unavailable fields as appropriate (for DB
interactions). The reason for doing this is to make sure that during
serialization (eg for RPC), that we don't include any object
fields that are not supported.

To make the code a bit more performant, we don't perform object
conversions when the API service is serializing the objects for RPC to
the conductor. This is because the conductor will always be running the
same or a newer release as the API service.

Change-Id: I6f77b24199412e3489dd6f3dcf0f51ed04c5c7c0
Partial-Bug: #1526283
2017-07-13 12:16:30 -04:00
Ruby Loo
578f01678c Follow-up to fix for power action failure
This is a follow-up patch to the patch so that the power status
is not retried if a power action fails:
ee5d4942a1c33736ffe05ec01619142be400c2f4

It addresses the comments as well as adds more clarification
and updates the documentation to refer to the new
[ipmi]command_retry_timeout config option.

Change-Id: Ib21544da260565ae399e2d07b32af9bd8b810280
Related-Bug: #1692895
2017-07-13 10:19:27 -04:00
Mark Goddard
761899776b Fix copy/paste error in VIF attach note
This nit was picked up in the review of
I3d13bfacfb5578f570791e3c06e769a9a0140a4c.

Change-Id: I8fc1b7f4c319f306bdd62c9a99497f3a014dabd7
Related-Bug: #1666009
2017-07-12 09:52:19 +00:00
Jenkins
39c8779716 Merge "[trivial] Fix argument descriptions" 2017-07-12 02:47:39 +00:00
Jenkins
cc773c3f49 Merge "Fix broken links in tempest plugin README" 2017-07-11 23:33:55 +00:00
Jenkins
2512d3ed81 Merge "Set nomulticell flag for starting nova-compute in grenade" 2017-07-11 21:25:23 +00:00
Jenkins
bc5efdf459 Merge "Physical network aware VIF attachment" 2017-07-11 12:19:10 +00:00
Jenkins
b1400a73ad Merge "[reno] Clarify fix for inspect validation failures" 2017-07-11 07:23:06 +00:00
Jenkins
aab609159f Merge "Add storage interface field to node-related notifications" 2017-07-11 06:09:34 +00:00
Jenkins
13383b0409 Merge "Enable cinder storage interface for generic hardware" 2017-07-11 05:34:13 +00:00
Ruby Loo
0085339b16 [reno] Clarify fix for inspect validation failures
This updates the reno for 3bda561e318e0172d6209f1580340ed9a04a161d
to clarify what was being fixed (returning HTTP 400 instead of
HTTP 500).

Change-Id: I412b650a22af3fdbaa92771c66eb37f3c07b7243
Related-Bug: #1686457
2017-07-10 10:44:57 -04:00
Kyrylo Romanenko
11c23cb7b0 [trivial] Fix argument descriptions
Fix description of arguments for nodes, port, chassis.

Change-Id: I9b0c97163ce3a84215309f34f16074140f90f8d1
2017-07-10 14:12:56 +00:00
Vladyslav Drok
b8f6d35d00 Remove _ssh drivers from dev-quickstart
IRONIC_ENABLED_DRIVERS from sample devstack plugin still lists the
deprecated drivers.

Change-Id: I869d6197d34e6a0ec9ed1fe396409e8ed9f02d86
2017-07-10 12:46:24 +03:00
wangkf
f1966536f9 Fix broken links in tempest plugin README
The link is broken due to doc-migration, this patch fixes following
broken links:

- the link to tempest plugin
- the link to running tempest part in ironic dev-quickstart

Change-Id: I7b4287ad74795712fb81d3177d950450c0dadf65
2017-07-10 09:22:12 +08:00
Jenkins
0656229b48 Merge "Raise HTTP 400 rather than 500 error" 2017-07-09 07:35:37 +00:00
Jenkins
85d59b2672 Merge "Make IP address of socat console configurable" 2017-07-08 23:57:20 +00:00
Michael Tupitsyn
1a0c7091a6 Force InnoDB engine on interfaces table
If the system is set to use MyISAM engine as default, during upgrade
a new conductor_hardware_interfaces table will be created with MyISAM
engine. This will cause a mix of InnoDB and MyISAM tables in single
database, and obsolete a foreign key to conductors table.

This bug in particular fails test_models_sync unit test, when it is
executed on a system, where MyISAM is set as default option for local
MySQL server.

Change-Id: Ic47426b1a12eda5728e9971a27ad3767c0245d50
Closes-Bug: 1702158
2017-07-07 10:08:51 -07:00
Hironori Shiina
961f046a4a Add storage interface field to node-related notifications
This patch adds storage_interface field to node-related notification
objects.

Change-Id: I1d67075a2c29d24d6321fd9989fbe4ee9f8f513c
Partial-Bug: #1559691
2017-07-07 12:12:32 +00:00
Ilya Etingof
8e48156488 Removed nonexistent option from quickstart snippet
Neither `ironic-api` nor `ironic-conductor` tools accept
the `-v` option. Although the developer's quickstart guide
has it in the example what makes cut&paste failing.

This quick fix removes the offending option from the doc.

Change-Id: I31e3657f12f7a9cf64697b362cc168333752184c
2017-07-07 14:11:49 +02:00