9765 Commits

Author SHA1 Message Date
Julia Kreger
c3955e68a4 Fix fast_track + agent_url update fix
In the case of fast_track, we do not power off agents
which allows for operators to perform a rapid transition,
such as those desired when performing a batch installation
of machines.

However, a security fix I1a5e3c2b34d45c06fb74e82d0f30735ce9041914
removed prior traces of an agent_url upon exiting cleaning.

So what was occuring:
- Agent was completing cleaning
- Conductor was removing 'agent_url' from driver internal info
- Agent was heartbeating, but no new agent_url was being recorded
  because how do we know if that is actually the agent.
- Deployment was started.
- Deployment fails upon next heartbeat as there is no 'agent_url'.

This patch places a conditional around the removal of the agent_url
value at the end of cleaning which allows nodes to transition as
through fast track as desired.

Change-Id: I2b5130a0845b327c2244d2d30a19842c46e1eed3
Story: 2007080
Task: 37991
2020-01-09 08:24:30 -08:00
Zuul
9669948732 Merge "devstack: switch to using CentOS 8 DIB ramdisks by default" 2020-01-09 12:32:24 +00:00
Dmitry Tantsur
8c3ab7de0f CI: make the metalsmith job voting and gating
This job is the only job that is currently testing partition images
with local boot. Due to its usage of a custom centos instance image,
there is some potential instability, but recent runs [1] have been
reliably green.

[1] https://zuul.opendev.org/t/openstack/builds?job_name=metalsmith-integration-glance-localboot-centos7

Change-Id: Iefbf94754da58c130eccba6fa24efac684ee4b41
2020-01-08 19:22:17 +01:00
Dmitry Tantsur
7bd643dee6 Add a missing versionadded for configdrive[vendor_data]
Change-Id: Ibfbb2f8f7a5f33e678a472a70b4b46aa1d7704e4
2020-01-07 17:20:38 +01:00
Zuul
b39ca69061 Merge "Explicitly use ipxe as boot interface for iPXE testing" 2020-01-07 16:09:04 +00:00
Zuul
38d852d6f4 Merge "Make qemu hook running with python3" 2020-01-07 16:09:02 +00:00
Zuul
7783981e2b Merge "Add logic to determine Ironic node is HW or not into configure_ironic_dirs" 2020-01-07 13:51:45 +00:00
Zuul
b886e8b196 Merge "Increasing BUILD_TIMEOUT value for multinode job" 2020-01-07 13:41:49 +00:00
Zuul
bd542684eb Merge "Refactor glance retry code to use retrying lib" 2020-01-07 01:32:05 +00:00
Kaifeng Wang
373f428fc2 Make qemu hook running with python3
This switches the piece of code turns on multicast [1] to run with
python3.

[1] https://review.opendev.org/#/c/665221

Change-Id: I12d3764d087fa19aca5b285cbd63a19b1770bb41
2020-01-07 09:29:59 +08:00
Zuul
821b203746 Merge "Remove the deprecated [glance]glance_num_retries" 2020-01-06 12:12:30 +00:00
Zuul
a86cd9c5d2 Merge "Fix duplicated words issue like "are are placed"" 2020-01-06 11:21:22 +00:00
Kaifeng Wang
ca0c9ff887 Refactor glance retry code to use retrying lib
Also removed the reference to the deprecated import in tests.

Change-Id: I2fc6ee10d9d26a8bdec105d298474b047b56d6e1
2020-01-06 14:18:19 +08:00
zhu.fanglei
183d4eae6b Fix duplicated words issue like "are are placed"
This is to fix the duplicated words issue like
"images are are placed on the".

Change-Id: I487a0a7a0bfb9db29af1591393030d6d07a89c09
2020-01-06 13:39:12 +08:00
Dmitry Tantsur
f110afc4f9 devstack: switch to using CentOS 8 DIB ramdisks by default
The CentOS 7 ones no longer work because of the Python 3 transition.

Change-Id: I68fc6f87879a53198810ad64f9570c41ccf8ce7f
2020-01-03 16:28:54 +01:00
Kaifeng Wang
e171bc258f Remove the deprecated [glance]glance_num_retries
The configuration option was deprecated and removed.

Change-Id: I0287eae5e4d533f89e232e327c164a018ef86c84
2020-01-03 16:20:43 +08:00
zhu.fanglei
70ca545551 Fix missing job_id parameter in the log message
This is to fix the missing job_id parameter in the log message.

Change-Id: I4b730d996c0f7ca58caa34c13610a929a4e4157b
2020-01-03 13:31:00 +08:00
Kaifeng Wang
697048b47e Explicitly use ipxe as boot interface for iPXE testing
We are about to drop pxe + ipxe_enabled=True combination for iPXE
testing, so let's make it explicit in the jobs.

Change-Id: I0e99e6336aa47857c06ba2f6869e66580159a9be
Story: 2007003
Task: 37779
2020-01-02 14:00:42 +08:00
Zuul
2a43e371f1 Merge "Remove those switches for python2." 2019-12-31 18:00:50 +00:00
Zuul
a96eda2850 Merge "Replace disk-image-create with ironic-python-agent-builder" 2019-12-31 17:58:16 +00:00
Zuul
c39e84d4f5 Merge "Restrict ability to change owner on provisioned or allocated node" 2019-12-27 11:31:52 +00:00
Madhuri Kumari
fcbf25aec5 Replace disk-image-create with ironic-python-agent-builder
Change-Id: I3e3d672eed0e059de7b01adc1e009f01dbd35a74
2019-12-27 10:54:25 +05:30
Zuul
3fc278625a Merge "Fix invalid assertIsNone statements" 2019-12-26 12:10:44 +00:00
Zuul
ee235a8df6 Merge "Enforce running tox with correct python version based on env" 2019-12-26 12:10:43 +00:00
Wang Jerry
82b17f0b04 Remove those switches for python2.
Change-Id: Id00d8886b2025203ec0023092064aa8f70904202
2019-12-26 08:41:46 +00:00
zhu.fanglei
b091790861 Fix invalid assertIsNone statements
This is to fix invalid assertIsNone statements of:
* self.assertIsNone(None, result['owner'])
* self.assertIsNone(None, return_value)

Change-Id: I55d96b6bd0c1cb990bf0eb55a95602f62c7506c7
2019-12-26 14:04:54 +08:00
Zuul
0a675e3977 Merge "Stop using six library" 2019-12-24 05:16:05 +00:00
Zuul
7bb8ff3e15 Merge "Add notes on the pxe template for aarch64" 2019-12-23 22:28:38 +00:00
Madhuri Kumari
968f7876f2 Add librsvg2* to bindep
9aab525d4546931f81bed665261278e7fc5bbeb4 added the docs
build requirement on sphinxcontrib-svg2pdfconverter which
needs the native rsvg-convert command. This change adds
the native package that provides that command to bindep.txt.

Change-Id: Ief712996e5880e149bbeecc93dc1be5b886653ac
2019-12-23 17:04:00 +05:30
Riccardo Pittau
78c121a5d7 Stop using six library
Since we've dropped support for Python 2.7, it's time to look at
the bright future that Python 3.x will bring and stop forcing
compatibility with older versions.
This patch removes the six library from requirements, not
looking back.

Change-Id: Ib546f16965475c32b2f8caabd560e2c7d382ac5a
2019-12-23 09:38:25 +01:00
Kaifeng Wang
9a6344d03c Add notes on the pxe template for aarch64
On verifying deployment on aarch64 bare metals, the linuxefi and
initrdefi are not available in grubaa64.efi, update doc to note
the potential change required on multi-architecture setup.

Change-Id: I92786eaed2c3bf6fb9f25672183bd9511e7a6e6e
2019-12-23 13:56:28 +08:00
Zuul
67f5a6bf5c Merge "Disable automated clean on newer jobs" 2019-12-19 19:56:45 +00:00
Riccardo Pittau
f0f3cb840f Enforce running tox with correct python version based on env
Since removing support for Python 2, we changed the basepython
value to 3.
This means that all the tox tests run with the default python
version available in the system.
This is not quite correct when running on environment such as
py36, py37 or py38, since they imply running with different
Python versions based on the environment.
To enforce the correct version we need to add the option
ignore_basepython_conflict available since tox 3.1.0 [0].

[0] https://tox.readthedocs.io/en/latest/config.html#conf-ignore_basepython_conflict

Change-Id: I142774a28ebb200c2e6212f41c5734d578c5abea
2019-12-19 12:52:38 +01:00
Zuul
cd30ef1374 Merge "Extend service timeout" 2019-12-19 06:54:13 +00:00
Zuul
391eee1c6b Merge "Changed to bug fix to follow-on idrac job patch." 2019-12-18 17:17:59 +00:00
Zuul
8d8bfc9cc5 Merge "Tune down multinode concurrency" 2019-12-18 15:47:35 +00:00
Zuul
35cb6bf2b5 Merge "Software RAID: Identify the root fs via its UUID from image metadata" 2019-12-18 11:29:40 +00:00
Zuul
8dea62281d Merge "Tell the multinode subnode and grenade to use /opt" 2019-12-18 10:58:29 +00:00
Julia Kreger
d0d221361d Tell the multinode subnode and grenade to use /opt
It was changed on the primary node, but not the subnode
of the standard mutlinode job, and not updated on our
grenade job.

Changes subnode and grenade configuration to use it.

Change-Id: I8f67e3e3423e72944d22d65b788af5792ee900f9
2019-12-17 06:10:35 -08:00
Zuul
76597ca933 Merge "Correct power state handling for managed in-band inspection" 2019-12-17 11:43:22 +00:00
Julia Kreger
7b4e10c062 Disable automated clean on newer jobs
We simply do not need to run automated cleaning on most jobs
and it has been left enabled on a number of newer jobs.

Disabling it improves gate performance by reducing the overall
wait to start tests and cycle through test nodes as sometimes
spike in testing infrastucture utilization can create increased
latency which may cause cleaning to time out.

Change-Id: I2d0d33a5b62fed536785915b2a80d7af8b6f3e0d
2019-12-16 21:22:58 -08:00
Julia Kreger
f4d2a3127a Extend service timeout
Glance seems to be having issues getting started in time.

At least a couple times recently devstack exited because glance
was not running with-in 60 seconds. Logs in one case seemed to
lean to well over a minute, as such lets extend the timeout
and see if that stabilizes CI further.

[0] https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_b45/697584/10/check/ironic-tempest-ipa-wholedisk-bios-agent_ipmitool-tinyipa-indirect/b456a36/

Change-Id: I7d4457a456dedead4ad0d6a444be23a901b42111
2019-12-16 21:04:01 -08:00
Zuul
769535b9eb Merge "DRAC: Drives conversion from raid to jbod" 2019-12-17 00:04:24 +00:00
Julia Kreger
da704d9ec8 Tune down multinode concurrency
Reduce the multinode concurrency and number
of VMs so we don't run Rackspace VMs out of
disk space.

This is an issue that was reported by the
infra team.

[0]: http://eavesdrop.openstack.org/irclogs/%23openstack-ironic/%23openstack-ironic.2019-12-16.log.html#t2019-12-16T17:38:15

Change-Id: I867bac9e247605e561cc7ee4522f70ce6de368d4
2019-12-16 11:56:04 -08:00
Zuul
75f10d81ac Merge "Implement managed in-band inspection boot for redfish-virtual-media" 2019-12-16 14:39:59 +00:00
Zuul
2edb84db23 Merge "Fix use of urlparse.urljoin" 2019-12-16 08:35:11 +00:00
Zuul
5f60283940 Merge "redfish-vmedia: correctly pass ipa-debug" 2019-12-13 22:30:47 +00:00
Zuul
0a05155918 Merge "Add a CI job to UEFI boot over Redfish virtual media" 2019-12-13 22:25:42 +00:00
Tzu-Mainn Chen
f22ab44888 Restrict ability to change owner on provisioned or allocated node
Prevents a user from changing the owner of a provisioned node unless
they pass the new policy rule 'baremetal:node:update_owner_provisioned'.
In addition, always prevents a user from changing the owner of an
allocated node, if the allocation specifies an owner.

Story: 2006997
Task: 37766
Change-Id: I4e8559bd215f70fb895ed0d41b2154c648e03597
2019-12-13 21:06:13 +00:00
Zuul
f26b883ed3 Merge "Fixes issue with checking whether ISO is passed" 2019-12-13 10:34:35 +00:00