126 Commits

Author SHA1 Message Date
Kaifeng Wang
4f2f4d8f70 Test swift python3 support
Change-Id: I22766ea3f96c2b0911e1fa3219fab5411fa2b5fc
2018-10-11 09:59:29 +08:00
Zuul
361fb091a5 Merge "Change the default discovery driver to fake-hardware" 2018-04-30 19:09:12 +00:00
Dmitry Tantsur
66f318b339 Change the default discovery driver to fake-hardware
The fake classic driver will be removed this release.

Depends-On: Ia0e95cbc1bb4dbd32793705b876ab8b474b753ad
Change-Id: I85f2a2a3ed1ca689c639c60e86853c821e808105
2018-04-30 14:36:34 +00:00
Lenny Verkhovsky
697a2c1c25 Enable custom IRONIC_INSPECTOR_EXTRA_KERNEL_CMDLINE
In some cases we would like to add additional
params to kernel command line during inspection.
For instance to collect lldp info by adding
ipa-collect-lldp=1 to kernel command line.

Define IRONIC_INSPECTOR_EXTRA_KERNEL_CMDLINE in local.conf
when installing ironic-inspector with devstack

Change-Id: I935d03983ff9f92162b00363bae767262e73aa82
2018-03-28 07:39:08 +00:00
Dmitry Tantsur
faf9d3508b Switch documentation to hardware types
The devstack example configuration is synchronized with
https://docs.openstack.org/ironic/latest/contributor/dev-quickstart.html

Also remove setting IRONIC_VM_LOGS_DIR from the example local.conf,
as it does not work, at least not on CentOS.

Change-Id: Ife51165742a8b762e84d5ac7ad807480669bfedb
2018-03-16 17:11:05 +01:00
Dmitry Tantsur
5cb04f5fb8 devstack: enable "fake" inspection implementation
It is now required due to https://review.openstack.org/550811

Depends-On: I705ec9d03d33623bd908e1a48f428062041b5d89
Change-Id: Ic1818f4f03de396550e99afc47da2be0212b47fa
2018-03-16 17:10:31 +01:00
Jim Rollenhagen
5c54c0938e 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 build ironic.conf from scratch rather
than from the sample.

Change-Id: Id65a4f803832fefe467d59147c39d2dea604ed3c
2018-02-06 10:36:12 -08:00
Dmitry Tantsur
314a6d37bc Switch the CI to hardware types
The granade job is left intact, as it requires IRONIC_ENABLED_INSPECT_INTERFACES
devstack configuration, which was introduced in Queens.

Change-Id: I0742a0c06a7ecf6ca03673f18f37fdb7ee003aa2
Depends-On: Ib0297f8936bba9449a02fb1a878981ab55687ef9
2018-01-27 09:44:29 +01:00
Pavlo Shchelokovskyy
918775cb01 Add keystoneauth adapters
Inspector sets API urls for ironic and swift from the config.
The better way would be to discovery them from the keystone
catalog.

Supporting this requires to register keystoneauth adapter
options to all config sections for service clients auth.
swiftclient still does not support adapter session client, so
pass all options from adapter explicitly.

New options were added 'service_type`, `service_name`, `region_name`
`endpoint_override`, `interfaces`.

Related-Bug: #1699547
Change-Id: I2e7ec02fdeeea21ef43136ddeabc98d499a8ba7f
Co-Authored-By: Anton Arefiev <aarefiev@mirantis.com>
2018-01-16 18:06:10 +00:00
Zuul
d5f91618f4 Merge "Make discovery use dnsmasq dhcp filter" 2017-12-14 20:00:59 +00:00
Zuul
f68cbba928 Merge "fix dvsm config deprecations" 2017-12-14 20:00:58 +00:00
Dmitry Tantsur
b81c142824 devstack: set [service_available]ironic-inspector = True
Depends-On: Ic1d9fbdb1505662ef499229f700dffb719993a90
Change-Id: I78fead573222465d8e5dd9e172697d9d1f4634f9
2017-12-14 11:37:21 +01:00
dparalen
a2e170e1ab Make discovery use dnsmasq dhcp filter
plugin.sh now recognizes additional dnsmasq pxe filter configuration
options:

  IRONIC_INSPECTOR_DHCP_HOSTSDIR
  IRONIC_INSPECTOR_DNSMASQ_START_COMMAND
  IRONIC_INSPECTOR_DNSMASQ_STOP_COMMAND

and configures both the inspector and dnsmasq accordingly.

The playbooks/legacy/ironic-inspector-tempest-dsvm-discovery/run.yaml now
executes with dnsmasq pxe filter driver.

The inspector_iniset function was updated to be able to set option values
consisting of multiple words.

Change-Id: Ib0879e0045e28ae778d2de6c1b5cd23f5fafda17
2017-12-13 14:12:02 +01:00
dparalen
bea2df1b3f fix dvsm config deprecations
The [firewall] group was deprecated but our devstack still uses it.  This
patch replaces the IRONIC_INSPECTOR_MANAGE_FIREWALL=True/False variable
with an IRONIC_INSPECTOR_DHCP_FILTER variable with a default of 'iptables'
and sets the [pxe_filter]driver config value. The
IRONIC_INSPECTOR_INTERFACE is now set in the [iptables] config section.

Change-Id: Icf6fe6c6a98ab815edefe3c0e1ec3ce9a064bf2e
2017-12-13 14:10:47 +01:00
ankit
63c91ba562 Add py35 gate for ironic-inspector
This patch adds py35 gate for ironic-inspector and
also adds support for inspection in python3 environment
by rolling out configuration of swift in inspector.

Change-Id: I83429a1ba79208245f6c6e1f8b4eb8a16f014868
2017-11-27 05:10:08 +00:00
Vu Cong Tuan
02f38aa16f Remove SCREEN_LOGDIR from devstack
SCREEN_LOGDIR has already been deprecated [1]
[1] https://review.openstack.org/#/c/499186

Change-Id: I7b87a52b8d573d384e8c30b5122122609d60a1fc
2017-10-06 08:38:15 +07:00
Dmitry Tantsur
208b66dadf Remove ensure_logs_exist check during upgrade
We now run services under systemd, and this check is not necessary in
this case. Follow-up to commit ee538d1e7c1a92cb8412713e03cdfbcdacad7fab
to grenade.

Change-Id: I6371b7a244c1aebfba5cb46a595a7bf43a4ee454
Depends-On: I0d6d3e9e60785bb9b6a10c8c7a07867a5b2a5e6e
2017-08-18 11:28:46 +00:00
chenxing
c28dd315bf Update the documentation link for doc migration
Change-Id: Ie3d175b4d910f49f8a54812926131448ff1ab4d5
2017-08-03 14:29:06 +00:00
Ramamani Yeleswarapu
74e27b9bf3 [Devstack] cleanup upgrade settings
We now enable plugin and services in project-config.
Drop those duplications from devstack/upgrade/settings.

Reference commit: 0204bd9ef4a09c791983bc1334fd32d09615ab63

Change-Id: Ie24f97eb3dfc8355845e864aebbd5184e900da30
Closes-Bug: #1672448
2017-06-30 10:47:22 -07:00
Ramamani Yeleswarapu
69157e5554 grenade: Only 'enable_plugin ironic-inspector' if not already in conf
To support multi-node grenade jobs we need to move enabling of the
ironic-inspector devstack plugin out of the ironic-inspector grenade
settings file devstack/upgrade/settings. But if we add enabling of the
ironic-inspector devstack plugin to project-config it will cause the gate
to break as the plugin will be enabled twice.

This patch is similar to the change done in ironic for the same purpose.

This checks to see if the ironic-inspector devstack plugin has already been
enabled:
  * If it has already been enabled it will not enable it again.
  * If it has not yet been enabled it will enable it.

This will allow us to update project-config to enable the ironic-inspector
devstack plugin and not break the gate.

After all the changes have landed we will propose a follow-up patch to
remove all this additonal logic and the enabling of the ironic-inspector
devstack plugin.

Change-Id: Id1a5de9a8aefe751b63c1a6a9f2c942fe4c957b1
Closes-Bug: #1672448
2017-06-14 13:49:00 -07:00
Jenkins
2addd1bf66 Merge "Connect brbm-inspector and brbm when needed" 2017-05-03 09:59:06 +00:00
vmud213
41fcfe612c Connect brbm-inspector and brbm when needed
Ensure that brbm-inspector is connected to brbm only when
IRONIC_IS_HARDWARE=False and IRONIC_BAREMETAL_BASIC_OPS=True.
Otherwise bridge brbm does not exist and stack.sh exits with
error.

Change-Id: I8c255a0140ec6b33f801d13ca10a2bb19e7469f6
Closes-Bug: #1670595
2017-05-02 11:21:14 +00:00
Dmitry Tantsur
90c7e48eb4 [devstack] fix working with USE_SYSTEMD=True
* Use absolute path for dnsmasq, as systemd rejects relative and implicit paths
* Provide "root" user to run_process instead of an explicit sudo
* Use the generic devstack function to setup logging

Change-Id: I4511a60ccb7c374393bdf78a03507ab958bbb9e7
2017-04-27 13:25:20 +02:00
Anton Arefiev
db529f3f3f Don't set MTU for inspector veth iface on hardware
We don't create brbm-inspector veth interface in case hardware env,
so setting MTU on non-existing interface fails.

Change-Id: I126277f655b7dc33f43e4c0e4e1730da2013efd2
Closes-Bug: #1680246
2017-04-06 10:49:51 +03:00
Vasyl Saienko
328acd4d0a [Devstack]: pick correct MTU for br-inspector veth
This patch pick correct MTU for veth pair created by inspector to avoid
errors when packets are dropped.

Change-Id: Ie1036ca75c9561393f4efc2478d0a2c9cba9e089
2017-04-04 14:29:54 +00:00
Jenkins
66386efd5f Merge "Grenade: don't enable tempest plugins in settings" 2017-02-24 14:46:22 +00:00
dparalen
ae882c5b02 Use IRONIC_VM_NETWORK_BRIDGE
devstack/plugin.sh hardwires brbm as the VM bridge.
Referencing ironic plugin VM variable makes more sense.

Change-Id: I89fe2050bc4fd166fc8e0b649daa195091364ba2
Closes-Bug: 1641019
2017-02-19 14:14:21 +01:00
Jenkins
dc8408bcd9 Merge "Update documentation to deploy Ironic Inspector with DevStack" 2017-02-15 12:43:26 +00:00
Ramamani Yeleswarapu
c56e43b65d Update documentation to deploy Ironic Inspector with DevStack
Current documentation to deploy ironic-inspector with DevStack needs
an update similar to the ironic project.

This patch modifies/updates a section "DevStack Support". Also, it
updates the example.local.conf to a configuration that can be used
as-is to deploy ironic-inspector with DevStack.

Change-Id: I0a4a5198246e3ca69d2bd050dd31c6b468094fcf
2017-02-14 08:59:37 -08:00
Jenkins
f9915931b2 Merge "Ensure devstack does not try to delete a physical NIC" 2017-02-10 14:16:07 +00:00
Sam Betts
5d0c7394e0 Ensure devstack does not try to delete a physical NIC
Part of ironic-inspector devstack plugins cleanup proceedure is to try
to delete the ironic-inspector network interface if it isn't the ovs
bridge. This means that if you configure devstack to point at a real
network interface it'll try to delete it and fail breaking devstack.

Change-Id: I4f18edcf86278cce787a5f33f3d9f2444d738f2c
2017-02-10 11:05:21 +00:00
Jenkins
805dbca194 Merge "Deprecated log_bmc_address option" 2017-02-01 12:00:12 +00:00
Jenkins
97b33e75a9 Merge "[devstack] Stop installing jq, we're not using it in tests any more" 2017-01-31 12:48:22 +00:00
Jenkins
b3e0884eaa Merge "Devstack: don't rely on Ironic local vars" 2017-01-26 17:47:07 +00:00
Jenkins
0f7604690a Merge "[devstack] Remove bridge only if it's not OVB_PHYSICAL_BRIDGE" 2017-01-26 14:11:47 +00:00
Dmitry Tantsur
d429cd76da [devstack] Stop installing jq, we're not using it in tests any more
Change-Id: Ib040ef018b91495fd8a739d2c61b02caf7d4285d
2017-01-26 13:55:29 +01:00
Dmitry Tantsur
2de54194a0 Deprecated log_bmc_address option
We already have too many options to my taste, and this does not seem too useful:
we anyway don't log BMC address if it's empty.

I think we should provide consistent logging experience.

Change-Id: I8ae8856bdc1ff26065c626837df9edc3016737e4
2017-01-26 12:54:46 +01:00
Noam Angel
c4cbfa7723 [devstack] Remove bridge only if it's not OVB_PHYSICAL_BRIDGE
In a scenario we want to deploy DevStack with ironic inspector for real
hardware and use OVS_PHYSICAL_BRIDGE for IRONIC_INSPECTOR_INTERFACE as
well we dont need to issue interface delete.

Change-Id: I45271ddc34b5e9d542b6a1499d698503717f5f03
2017-01-25 13:00:03 +00:00
Jenkins
fcce530a3e Merge "Make grenade actually upgrade our source code" 2017-01-24 17:48:57 +00:00
Dmitry Tantsur
e0f8b23116 Make grenade actually upgrade our source code
stack_install_service is a no-op for us due to naming mismatch.

Change-Id: I46424bcf4f197a2a283529ceec231fdabd2c6693
2017-01-24 15:53:35 +01:00
Anton Arefiev
b95c4c1f4a Devstack: don't rely on Ironic local vars
Ironic kernel/ramdisk path variables are local, so checking whether
kernel/ramdisk are downloaded by Ironic or not always fails.

As result Inspector always forced to download inspection kernel/ramdisk
even when it could use Ironic one.

Depends-On: Idf5f61eb922480af2220d6e12c7668b0c756d813
Change-Id: Ie16595bef2bbee7b2ca29b2f4582b4a94a683315
2017-01-24 11:45:28 +00:00
Noam Angel
db2402b6ff Skip brbm-inspector veth if IRONIC_IS_HARDWARE == True
In a scenario when using DevStack and ironic-inspector for real hardware
we dont need to following lines to run in "prepare_environment" function.

Change-Id: I1c1d09364db87f922b047c7fb1c50c047f1377fb
2017-01-22 06:41:08 +00:00
Anton Arefiev
794fbcfc9e Grenade: don't enable tempest plugins in settings
Tempest plugin is enabled in infra configuration with appropriate
branch, so just remove tempest enable.

Change-Id: I2d598e8843d9fe1d344613705c3df10198c0f963
2017-01-18 17:39:27 +02:00
Anton Arefiev
bcfc86ee67 Remove upgrade from non-ironic setup
Grenade should only upgrade, and shouldn't setup new services,
remove setup code for case inspector is missing during upgrade.

Also ironic doesn't support this anymore, related code was removed
Id7159aac8c8a343e3d20561cedc4722d87d3e776.

Change-Id: I867215574af7135103876d8004241761a5e2c683
2016-12-08 13:25:04 +02:00
Jenkins
e1fc66178f Merge "Clean up retained code for grenade workaround" 2016-12-01 18:27:06 +00:00
Anton Arefiev
473882e7e1 Clean up retained code for grenade workaround
This file was created as workaround for bug 1621791, which was
fixed, so remove unused code.

Change-Id: Ic22a9d091f790781744cbef7157e7f7c7ea4e5e4
2016-12-01 15:00:05 +02:00
Vasyl Saienko
5de0c24676 Do not source old/localrc twise in grenade
By sourcing localrc second time we try to enable ironic plugin
one more time witch is not allowed by [0]

This patch checks if ironic was enabled or not in base environment
without sourcing localrc.

[0] https://review.openstack.org/#/c/396794/

Change-Id: I432c243c66c0d11adcf4c6568968fbeaaf9acdcd
2016-12-01 11:46:34 +02:00
Anton Arefiev
253fd3704b Don't recreate db during grenade upgrade
Recreating db means skip testing migration of created resources,
which was created during introspection.

Change-Id: I4d94a5d03f4bbdec021d328928afd7c3fda49155
Closes-Bug: 1644204
2016-11-23 13:41:54 +02:00
Anton Arefiev
2401f0cb10 Allow to configure cache clean up period
Add new option "IRONIC_INSPECTOR_CLEAN_UP_PERIOD" to devstack
plugin, which allow to configure clean up time of node cache.

The periodics.periodic_task decorator application on
main.py:periodic_clean_up and main.py:periodic_update is postponed
until after the inspector.conf file is read.

Change-Id: Ic6563990c789b1d1c3b72088860a4d13a3d57f29
Closes-Bug: #1639286
2016-11-04 17:49:41 +01:00
Jenkins
0334c7e390 Merge "Only disable Neutron tests when our Grenade is running" 2016-10-20 16:34:35 +00:00