505 Commits

Author SHA1 Message Date
Dao Cong Tien
dd4a4d4111 Update CI jobs for rescue mode
Sets rescue interface to 'agent' for testing rescue mode in most jobs.
The rescue mode is tested in test_baremetal_server_ops.

Also adds support for the new config option in ironic tempest plugin
default_rescue_interface.

Story: #1526449
Depends-On: I6b62724711ddbe17b59dad30283e544272d9c1f3
Change-Id: Ica26aa96978d22a681d69e7e1e4acd72182a4981
2018-07-12 16:13:02 -07:00
Zuul
6b6277d836 Merge "Switch ironic-dsvm-standalone to zuulv3 native" 2018-07-12 19:19:10 +00:00
Zuul
beefb770e7 Merge "Ensure we allow Ironic API traffic from baremetal network" 2018-07-04 16:43:38 +00:00
Zuul
eede3bf6ce Merge "Remove support for creating and loading classic drivers" 2018-07-03 19:01:59 +00:00
Dmitry Tantsur
53e7baef42 Remove support for creating and loading classic drivers
* removes any bits related to loading classic drivers from
  the drivers factory code
* removes exceptions that only happen when classic drivers
  can be loaded
* removes the BaseDriver, moves the useful functionality to
  the BareDriver class
* /v1/drivers/?type=classic now always returns an empty list
* removes the migration updating classic drivers to hardware
  types

The documentation will be updated separately.

Change-Id: I8ee58dfade87ae2a2544c5dcc27702c069f5089d
2018-07-02 17:37:28 +02:00
Sam Betts
2bb87c1b69 Ensure we allow Ironic API traffic from baremetal network
In deployments with a separate baremetal network we need to ensure we
apply an iptables rule to allow traffic on port 80 to the Ironic API.

Change-Id: I468f511dd8ad9a25c17f2a2754f7a45f7147c483
Story: 2002788
Task: 22673
2018-07-02 16:32:34 +01:00
ankit
194d042068 Modifying 'whole_disk_image_url' and 'whole_disk_image_checksum' variable
Need to set variable whole_disk_image_url and
whole_disk_image_checksum in tempest.conf
irrespective of IPXE is enabled or disabled.

Also setting the ping_timeout for standalone ironic
like we are setting ssh_timeout in case node is
taking more time for becoming active.

This change is required for iLO-CI as iLO-CI is
running tests as standalone ironic.

Change-Id: Idef1bc876fe440824894332a211af9a10401e49c
Closes-Bug: #1748849
2018-07-02 07:45:59 +00:00
Derek Higgins
f8163fab38 Switch ironic-dsvm-standalone to zuulv3 native
Move ironic-dsvm-standalone away from using the legacy
format converted fromt the project-config repository.

Also enables 3 more tempest jobs(BaremetalAgentIpmitool*)
that were being skipped as agent_ipmitool wasn't configured.

Change-Id: Ic01bf1849620c6d095f130e445c92888548d00c5
2018-06-29 15:56:35 +01:00
Hironori Shiina
bd003c69be DevStack: Tiny changes following iRMC classic driver removal
This patch includes small changes to complement the removal of iRMC
classic drivers for consistency between irmc hardware type and other
hardware types.

Change-Id: I84dac94f1340e239796ea3da7a5fbd9154813795
2018-06-28 10:26:16 +09:00
Dmitry Tantsur
1a07137118 Remove the ipmitool classic drivers
This change removes pxe_ipmitool and agent_ipmitool. Some tests
and documentation bits are removed, since we no longer have any
classic drivers to provide examples.

The Inspector.create_if_enabled method is no longer used and was
removed. The [inspector]enabled option will be deprecated in
a follow-up.

IRONIC_ENABLED_DRIVERS is removed from devstack to prevent
devstack-gate from injecting the removed drivers into it.
A temporary migration from queens is updated to disable all
classic drivers. It will be removed when the enabled_drivers
option is completely removed.

Change-Id: Iab247e3b3336f90446ef0687edb340cf8282a925
2018-06-27 13:08:42 +02:00
Dmitry Tantsur
384f966003 Remove the OneView classic drivers
This change removes iscsi_pxe_oneview and agent_pxe_oneview.

Change-Id: I4301e35f321bd041441dcfce494393fb90e293f3
2018-06-26 14:30:27 +02:00
Dmitry Tantsur
6deb0c3b0b Remove the deprecated pxe_snmp driver
Change-Id: I3e9d102698cb09171c3ca3031098bc9f1d829a72
2018-06-26 14:30:11 +02:00
Dmitry Tantsur
575640cfac Remove the deprecated classic drivers for Cisco UCS hardware
This change removes pxe_ucs, agent_ucs, pxe_iscsi_cimc and
pxe_agent_cimc. Best effort clean up was done to the documentation.

Change-Id: I4fe75e0d4a36228f2f6be6bf6ced6d37424b6fd3
2018-06-26 14:29:56 +02:00
Dmitry Tantsur
09e89c09d1 Remove the iDRAC classic drivers
This removes the pxe_drac and pxe_drac_inspector classic drivers.

Change-Id: I2837bc626425869008d9222523b05e2ce5175c19
2018-06-26 14:29:37 +02:00
Dmitry Tantsur
9c7729d6b7 Remove the ilo classic drivers
This removes pxe_ilo, iscsi_ilo and agent_ilo. Also removed is
the whole documentation section dedicated to them.

Change-Id: Ie6f8a65d68ce4eb9c8467c416df5f3a35f0abe98
2018-06-22 16:55:20 +02:00
Dmitry Tantsur
d95197628c Remove the "fake" and "fake_soft_power" classic drivers
The grenade configuration is updated to disable the fake driver.

Change-Id: Ica2b466a1a22ca2e5d1362377692cc39ef53ce2c
2018-06-06 16:15:49 +02:00
Zuul
0fb7bf7240 Merge "Add the ability to setup enabled bios interfaces in devstack" 2018-06-01 13:24:18 +00:00
Yolanda Robla
5dcfac0db3 Add the ability to setup enabled bios interfaces in devstack
In order to start testing, enable the setup of bios interfaces
into devstack lib

Change-Id: I91c10f5b525f395074027260fb70f8ccd60e67bb
2018-05-30 13:40:00 +02:00
Vladyslav Drok
be1b6a341f Allow customizing libvirt NIC driver
This value will be used for creating virtual baremetal machines in
the devstack plugin.

Story: 2002079
Task: 19747
Change-Id: I69fbbadb8fdbb110d6e32013a4835e193f30c93d
2018-05-25 14:08:59 +03:00
Zuul
e44f0dd69b Merge "[devstack] Switch ironic to uWSGI" 2018-05-16 22:36:02 +00:00
Zuul
b118671c98 Merge "Switch to the fake-hardware hardware type for API tests" 2018-05-14 05:16:31 +00:00
Zuul
25df049af6 Merge "Preserve env when running vbmc" 2018-05-11 15:41:57 +00:00
Julia Kreger
adaf9182ba Fix E305 Errors
Story: #2001985
Change-Id: Idb9946e24e22bc64475dabb475d9cef09ee4d26b
2018-05-09 06:12:57 -07:00
Clark Boylan
3048eb82f7 Preserve env when running vbmc
The create-node.sh and cleanup-node.sh scripts are called with sudo -E
but then runs su which will break the env we were initially trying to
preserve. This is important so that devstack can control things like
$PATH for determining the path to vbmc. Address this by adding a -p to
the su call which should preserve the environment for us.

Unfortunately for PATH specifically even using sudo -E has a tendency
for sanitizing PATH. We work around this behavior by explicitly setting
$PATH in the commands being run by sudo su.

Note that the su appears to be necessary to have the stack user pick up
its new libvirt group membership which allows it to successfully use
virsh to start the virtual baremetal instances.

Change-Id: I3398b6fd14b491a13231a6032a669d6e30deca98
2018-05-08 22:58:21 +00:00
Dmitry Tantsur
2d2298accf Switch to the fake-hardware hardware type for API tests
Change-Id: I7a9d563c8cc7d493f55f984664f8fe80ead177a2
Depends-On: I6540bca3e19ec1d09d6f71c0d3fc987439bc8138
2018-04-30 09:36:27 +00:00
Dmitry Tantsur
ee04f565f1 Move API (functional) tests to separate jobs
It becomes increasingly harder to maintain functional tests using the fake
hardware type and integration tests in the same jobs. This change creates
two new jobs (for Python 2 and Python 3) and makes API tests run only in them.

Change-Id: I3570323b22d8d4f19635f26733b3ae92bd0c661d
2018-04-27 18:12:14 +02:00
Zuul
8515c0aa30 Merge "Devstack plugin support for Redfish and Hardware" 2018-04-25 10:46:34 +00:00
rajinir
7784f40f9d Devstack plugin support for Redfish and Hardware
Added devstack support for redfish driver to be run
on hardware

Change-Id: I443bcdf6184651954f1474cf153be1bf181dd6e3
2018-04-24 13:55:44 -05:00
wangqi
91251d19ad fix a typo
Change-Id: I413a1d90abea296cfba68817b02d258b47b92e83
2018-04-23 14:41:27 +01:00
Zuul
14a8d5e3c6 Merge "Adding grub2 bootloader support to devstack plugin" 2018-04-18 10:54:54 +00:00
Vasyl Saienko
b27396db66 [devstack] Switch ironic to uWSGI
This patch switches ironic API to run under uwsgi,
and drops support for running ironic API under mod_wsgi
from ironic's devstack plugin.

It also effectively moves all jobs except grenade ones to
run ironic-api under UWSGI as we start to honor the devstack's
ENABLE_HTTPD_MOD_WSGI_SERVICES variable (which is True by default).

The new variable in devstack plugin to toggle deployment with uwsgi
is IRONIC_USE_WSGI, which defaults to (now confusingly named)
IRONIC_USE_MOD_WSGI for backward compatibility.

Related-Bug: #1719260
Co-Authored-By: anascko <ovoshchana@mirantis.com>

Change-Id: I9ef3aa48db6efe8e2216af785cc13fdb7f754a02
2018-04-17 19:22:12 +03:00
ankit
0f441ab5ba Adding grub2 bootloader support to devstack plugin
This commit enables support for grub2 bootloader for UEFI.
It also enables UEFI Secure Boot based provisioning in devstack plugin.

Change-Id: I36a50656a52870121eda099f396523c46b7cb1aa
2018-04-03 11:40:05 +00:00
Hironori Shiina
aafa9accf2 DevStack: Enroll node with iRMC hardware
This patch enables enrolling nodes with a hardware info file when iRMC
hardware type (or classic driver) is used.

Change-Id: Ibdbdb11fbbf7a8872d6ad02e21ceddae6b180506
2018-03-29 05:49:23 +00:00
Zuul
4361e2f97f Merge "Follow-up patch for rescue mode devstack change" 2018-03-22 04:38:56 +00:00
Dao Cong Tien
5f55422dcd Follow-up patch for rescue mode devstack change
This patch addresses an issue from the PS30 of
I332223f187783fc06e19e62a886a8a7378c62cf2

Change-Id: I86c55ec8a2f2445616dbae44a4a9f0723eaffb0f
2018-03-16 16:58:34 +07:00
Dmitry Tantsur
ae25fc4fb1 devstack: enabled fake-hardware and fake interfaces
We currently enable the fake classic driver by default, so it makes
sense to enable fake-hardware now that the classic drivers are
deprecated. It will be used in the updated ironic-inspector
discovery CI job.

Change-Id: I42e72312821b2d3c002f16fbf8b4faa26b4853b3
2018-03-15 17:32:35 +01:00
Zuul
3f40629c10 Merge "devstack: add support for rescue mode" 2018-03-15 14:55:44 +00:00
Dao Cong Tien
f30b2ebb7a devstack: add support for rescue mode
This adds config for setting rescue interface for node,
rescue network, and rescue images.

Change-Id: I332223f187783fc06e19e62a886a8a7378c62cf2
Partial-Bug: 1526449
Co-Authored-By: Mario Villaplana <mario.villaplana@gmail.com>
Co-Authored-By: Annie Lezil <annie.lezil@gmail.com>
2018-03-14 13:16:42 +07:00
Zuul
917762fc32 Merge "[devstack] block iPXE boot from HTTPS TempURLs" 2018-03-13 19:18:35 +00:00
Mark Goddard
c8ae2457c7 Register traits on nodes in devstack
This change adds support for assiging traits to nodes in the ironic
devstack plugin.  The set of traits added is configured by
IRONIC_DEFAULT_TRAITS, which defaults to a single trait - CUSTOM_GOLD

Using nodes with traits during testing ensures that we are exercising
node traits code paths in the Ironic CI.

Node traits are not used for upgrade testing, as the queens devstack
plugin does not currently register traits. Once this change is
backported to queens, we can enable traits during upgrade testing.

Change-Id: I18b9dbf8a5b16e36e0cc14f290b12ffdd634364a
Related-Bug: #1722194
Related-Bug: #1750027
2018-02-23 18:59:11 +00:00
Pavlo Shchelokovskyy
3edeb4c4f3 [devstack] block iPXE boot from HTTPS TempURLs
While generally supported by iPXE, in DevStack we do not have any
facilities in place to boot iPXE from a HTTPS URL when the server is
using a custom certificate.
This is moslty concerning ability to boot iPXE directly from Swift's
TempURL when SSL is enabled on Swift in DevStack.

Just die with proper message when IRONIC_IPXE_USE_SWIFT and tls-proxy
are both enabled.

Change-Id: Ie0e01828f05b2706d310d8110e6e8dd8c4a03e4e
2018-02-23 18:13:54 +02:00
Dmitry Tantsur
f9a88a310a Stop using --os-baremetal-api-version in devstack by default
We're defaulting to 'latest' in ironicclient now, so only use
it if IRONIC_DEFAULT_API_VERSION is overriden.

Change-Id: Ifa813a9f0980e7d9c65166ef288d0c6f273ba521
2018-02-14 17:49:37 +01:00
Zuul
70a86cd8b5 Merge "Add option to specify mac adress in devstack/.../create-node.sh" 2018-02-05 05:25:03 +00:00
Zuul
e8cf57fa6a Merge "Remove sample policy and config files" 2018-02-03 16:35:38 +00:00
John Garbutt
d336978834 Remove sample policy and config files
Now we have docs, lets point people there rather than attempting to
maintain a copy in tree.

Also update the devstack plugin to know nothing about policy.json, as it
never allowed for customizing the location or the contents anyhow, and
to build ironic.conf from scratch rather than from the sample.

Change-Id: I10a4987204eb335f1fed29d4b1d7f3e075aa1792
2018-02-02 11:21:29 +00:00
Zuul
7bee7b7c5f Merge "Wait for ironic-neutron-agent to report state" 2018-02-02 09:24:40 +00:00
Zuul
92e0797724 Merge "Devstack - use neutron segments (routed provider networks)" 2018-02-01 20:06:09 +00:00
Derek Higgins
e209a6cf02 Add option to specify mac adress in devstack/.../create-node.sh
Add an option that allows the caller to specify a MAC for the
created node.

Change-Id: I341aa23b45901ee5e96254508c6327ebf67f2c9e
2018-02-01 11:46:56 +00:00
Zuul
d6c5927c38 Merge "Switch the CI to hardware types" 2018-01-31 04:30:36 +00:00
Harald Jensas
d2da4150ea Wait for ironic-neutron-agent to report state
Wait for the agent to finish reporting state, bridge_mappings
must be reported prior to any cleaning attempts.

Change-Id: I041761dd896c9d89dc6cf7bafc991a0697ded05b
Related-Bug: #1658964
2018-01-29 11:07:41 +01:00