10603 Commits

Author SHA1 Message Date
Zuul
eb648c1df0 Merge "documentation: follow-up to file:// support in direct deploy" 2020-09-03 13:50:53 +00:00
Zuul
4e0b2f4c37 Merge "Allow setting image_download_source per node" 2020-09-03 13:50:46 +00:00
Zuul
c15bc2a7a1 Merge "Support caching http:// images locally in the direct deploy" 2020-09-03 13:43:40 +00:00
Zuul
d69e46b18b Merge "Update nodes in notifications documentation" 2020-09-03 12:58:27 +00:00
Zuul
aee4846f3a Merge "[trivial] remove emacs config from devstack script" 2020-09-03 12:58:24 +00:00
Zuul
14e2ac1cb4 Merge "Remove absolute path with iptables when L3 enabled" 2020-09-03 11:12:02 +00:00
Dmitry Tantsur
958f15a079 documentation: follow-up to file:// support in direct deploy
Change-Id: Id31aaaccbb8ca1e6c4e26365bd37d3f3e866592b
2020-09-03 11:55:06 +02:00
Zuul
11aa5f6639 Merge "Support file:/// images for the direct deploy" 2020-09-03 05:26:51 +00:00
Zuul
32926667d4 Merge "Suffix the ISO names with '.iso'" 2020-09-02 19:40:20 +00:00
Zuul
917580ff62 Merge "Explicitely do not allocate initial space for virtual volumes" 2020-09-02 18:03:34 +00:00
Zuul
c8169f2a1a Merge "Handle an older agent with agent_token" 2020-09-02 17:52:53 +00:00
Dmitry Tantsur
840ce16668 Allow setting image_download_source per node
Allows certain flexibility when it comes to low RAM vs high RAM nodes,
and large vs small images. Also deploy_interface is settable per node,
so this feature makes it easier to migrate from the iscsi deploy.

Story: #2008075
Task: #40766
Change-Id: Idf3bbc6d24042ce1d9a895095b5cb0979dd3183d
2020-09-02 15:39:53 +02:00
Dmitry Tantsur
9ac5c02770 Support caching http:// images locally in the direct deploy
For low RAM nodes we need a way to convert even http:// images to raw
and serve them locally. Add a new image_download_source value "local"
that works the same as "http" but also affects http:// images.

Change-Id: I8da968ccfad6e7a508e9b763b9e3f96007438b6a
Story: #2008075
Task: #40765
2020-09-02 15:15:54 +02:00
Dmitry Tantsur
c31cb7d99a Support file:/// images for the direct deploy
Implemented via the same mechanism as for image_download_source=http.
Forcing raw format (and thus streaming) is supported as well.

Since we always re-calculate checksums for such images, the requirement
on providing them via the API is lifted.

Change-Id: Ife385c3b363c28559c90e5a54e9c6f6807d207ff
Story: #2008075
Task: #40764
2020-09-02 15:15:11 +02:00
Riccardo Pittau
ce39115fa7 Explicitely do not allocate initial space for virtual volumes
Initialize virtual volumes with no allocated initial space to prevent
consuming all space available during volume creation.
The behavior of virsh has changed, by default in the past the virtual
volumes were initialized automatically with no initial allocated space,
while with recent versions we need to specify explicitly to not
allocate initial space for the virtual volumes.

Change-Id: I588d0888c19304119af607433de6e35199f7c555
2020-09-02 11:10:58 +00:00
Riccardo Pittau
ed6f9a14ec [trivial] remove emacs config from devstack script
It could cause issues during execution, and in general ide or
editors specific config should not be kept here but in a specific
config file.

Change-Id: I4fbf7c6d00f2ba19a860d4c39cd882f541ff0600
2020-08-31 10:27:17 +02:00
Yushiro FURUKAWA
02fc64a35b Remove absolute path with iptables when L3 enabled
In Ubuntu 20.04.1 LTS, a path of iptables is not /sbin/iptables but
/usr/sbin/iptables.  So, current code gets an error with
"/sbin/iptables" failed : No such file or directory
This commit fixes to use iptables when neutron L3 service is enabled on
Ubuntu 20.04.1 LTS.

Change-Id: I76eb89a2ae26431065cd19f0af235e71eb9f4169
2020-08-31 08:54:38 +09:00
Ruby Loo
5c467e7d36 Update nodes in notifications documentation
This updates the notifications documentation so that the
node information in the sample node-related notifications
reflect the latest versions of the notification payloads.
Which includes the driver_internal_info recently added to
version 1.16 of NodeSetProvisionStatePayload.

Change-Id: I87fb443ff393a2a58f9d19a9011df062f85af3af
Story: #2008054
Task: #40771
2020-08-27 12:15:36 +00:00
vmud213
71f5cfb42e Suffix the ISO names with '.iso'
Some hardwares like ProLiant can validate the ISO images only if they are
suffixed with '.iso'. It is also recommended to suffix a particular file with
proper filename extension.

Change-Id: Ib754472e97006d0146dd0df99492b035c55a5c47
Story: #2008077
Task: #40768
2020-08-27 09:57:58 +00:00
Zuul
99e8fc9810 Merge "Remove the unused coding style modules" 2020-08-26 16:02:42 +00:00
Zuul
c1021c9874 Merge "Enforce autospec in ilo tests" 2020-08-26 10:24:31 +00:00
Zuul
c2525fa458 Merge "driver_internal_info in provision notifications" 2020-08-26 08:39:30 +00:00
wu.chunyang
2e91f7b2b2 Remove the unused coding style modules
Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
they are not needed during installation.

Change-Id: Ia07c3c237d9f5ec84642d376d48912a159b78dc7
2020-08-26 12:56:21 +08:00
Zuul
aa106ff205 Merge "Decouple the ISO creation logic from redfish" 2020-08-25 21:34:32 +00:00
Ruby Loo
3945fa4c2b driver_internal_info in provision notifications
Adds the node's driver_internal_info to the
baremetal.node.provision_set.* notifications. The
driver_internal_info includes useful information
such as deploy and clean steps.

Change-Id: I98784f72e6f93cbc602753ef2da0dbef5ad2c9cf
Story: #2008054
2020-08-25 18:11:04 +00:00
Shivanand Tendulker
8fff98a6f9 Enforce autospec in ilo tests
And remove corresponding filter in tox.ini

Change-Id: Ib47a5894d7b05346726c5b8ae8668dc8512cc322
2020-08-25 13:06:59 -04:00
Zuul
d5431ce11d Merge "Move redfish-virtual-media to the back of supported_boot_interfaces" 2020-08-25 12:00:32 +00:00
Zuul
d46550178e Merge "Enforce autospec in common tests" 2020-08-25 08:00:10 +00:00
Riccardo Pittau
269ada268b Enforce autospec in common tests
And remove corresponding filter in tox.ini

Change-Id: I0664fec6477227f5fc3f91518a4e09f5a43be6d3
2020-08-24 18:24:15 +02:00
Zuul
a2ccff668e Merge "Ensure in-band deploy steps are present in time for fast-track deployments" 2020-08-24 14:09:04 +00:00
vmud213
c165f71a56 Decouple the ISO creation logic from redfish
Currently the functionality of creating the ISO and floppy images
is tightly coupled with the redfish boot interface implementation.
Move this to a common place so that this can be levereged when needed.

Change-Id: Iea1991690e28d31a54afeaf5231ddc5798c8213c
Story: #2007940
Task: #40405
2020-08-24 10:25:46 +00:00
Zuul
325dfbafc9 Merge "Documentation update for ilo hardware type" 2020-08-24 07:06:52 +00:00
Zuul
672ce00e26 Merge "Pass global-request-id to ironic-python-agent" 2020-08-22 12:36:49 +00:00
Zuul
cdea86b191 Merge "Ansible deploy - Ignore invalid devices" 2020-08-22 12:36:47 +00:00
Julia Kreger
0071d28460 Ansible deploy - Ignore invalid devices
This change updates the ansible deploy driver to exclude
devices with "sr", "loop", and "mem" which can appear in the
devices list for consideration as the root device.

This change effectively causes them to be ignored.

Change-Id: I72a422553ee992d313b83df091af2c9deb8393b5
2020-08-21 10:24:52 -07:00
Dmitry Tantsur
c9720b025c Move redfish-virtual-media to the back of supported_boot_interfaces
Support for virtual media is still limited, we don't want it to become
the default (yet).

Change-Id: I5cd1c5acbc27f554104be13a71865748f801dbd7
2020-08-21 14:56:20 +00:00
Riccardo Pittau
e9bda223f7 Increase memory of tinyipa vms
Tinyipa is not that tiny anymore and we need to increase the base
memory for VMs in jobs that use it.

Change-Id: Ibd7e87c0b5676eef94512285edaca416635a29ef
2020-08-21 14:41:15 +02:00
Dmitry Tantsur
7dd611dc5e Ensure in-band deploy steps are present in time for fast-track deployments
Currently we load in-band deploy steps on the first heartbeat in DEPLOYWAIT.
With fast-track, however, this heartbeat may happen way too late, because
the node is up and heartbeating before it's moved to DEPLOYWAIT. This
results in in-band deploy steps not loaded. This change forces a refresh
of deploy steps in deploy.deploy if fast-track is used.

Also make sure that cached steps are cleared on reboot or power off since
they may become outdated next time the agent boots.

Change-Id: I003543452717183b9b3359e368757bcd824a5ce7
2020-08-21 14:01:57 +02:00
Zuul
1e25135bde Merge "Fix network_data path for dhcpless deployments" 2020-08-21 09:47:03 +00:00
vmud213
dae84efd66 Fix network_data path for dhcpless deployments
The curent path "openstack/latest/metadata/network_data.json" is
not being used by Glean. This path must be changed to
"openstack/latest/network_data.json" as per the code here
https://opendev.org/opendev/glean/src/branch/master/glean/cmd.py#L1317-L1331

Change-Id: I7a6bb699f171585119c91d0808ff0c85d04104bf
Story: #2008042
Task: #40704
2020-08-20 11:24:37 +00:00
Riccardo Pittau
26d08bdda6 Remove qemu-img rootwrap filter
It should be managed by ironic-lib.

Change-Id: I1b17982fdab5611086f8bb7d944db6f51bb032a0
2020-08-18 16:12:57 +02:00
Shivanand Tendulker
3e9360fc3e Documentation update for ilo hardware type
Change-Id: I503c44ef9006b5f85b1dec70fc5117fda1dca792
2020-08-17 06:09:56 -04:00
Zuul
df9ce79f23 Merge "Fix time usage in unit tests for agent power interface" 2020-08-13 14:58:34 +00:00
Zuul
47d4d10008 Merge "[Trivial]Fix some typos in docs" 2020-08-13 07:54:00 +00:00
Zuul
450e18dbb9 Merge "Follow up to I44336423194eed99f026c44b6390030a94ed0522" 2020-08-13 06:10:39 +00:00
Zuul
3519b7a37a Merge "Enforce autospec in irmc tests" 2020-08-13 02:53:19 +00:00
Zuul
c37755ead6 Merge "Add RPC objects for deployment API" 2020-08-12 23:29:19 +00:00
Zuul
e078d0bbc8 Merge "Prevents power sync with ADOPTFAIL nodes" 2020-08-12 22:50:46 +00:00
Zuul
58c1af93e2 Merge "Fix console auto port allocation under IPv6" 2020-08-12 17:41:32 +00:00
Julia Kreger
0d94ef67cb Fix time usage in unit tests for agent power interface
The agent power interface unit tests were asking for the now() time
which is system user time relative. For example, for US-Pacific would
display 10 AM. Where as the rest of ironic was expecting 5 PM for the
test as the base code uses utcnow() instead of now().

Change-Id: Icb6bb30d1859eb3787bb5f4df4ad97143a098017
2020-08-12 10:00:14 -07:00