A python library of common ironic utilities.
Go to file
Dmitry Tantsur 95c6a2a32f Run sync and partprobe after adding a configdrive partition
We're hitting a problem in the CI where /dev/sda2 does not exist after
being created. The logs suggest running partprobe may fix the problem,
so let's try it.

With this, we can also encounter a case where there refresh will fail
because the partition was created using fsync calls to force the write
of the partition table. However, filesystem VFS layer does impact this
behavior, and fsync on files in a ramdisk is a noop, so we must force
everything to be flushed to disk before attempting to execute partprobe.

Also run 'sgdisk -v' after partitioning to leave some traces in the logs
for debugging when something goes wrong.

Story: #2004744
Task: #28815
Change-Id: I9db48a3462422749290bbb887c14816734ab0478
Depends-On: I8d6f8c99e1ab5f26e3537630d0f6086e02a2b1ec
(cherry picked from commit 653b59a09d)
2019-01-11 12:00:52 +00:00
doc/source Update and replace http with https for doc links 2017-07-21 16:40:32 +08:00
etc/rootwrap.d Fix retrieval of config-2 existing partition 2017-01-11 14:55:40 -08:00
ironic_lib Run sync and partprobe after adding a configdrive partition 2019-01-11 12:00:52 +00:00
playbooks/legacy Do not run API (functional) tests in the CI 2018-06-27 12:36:05 +02:00
zuul.d import zuul job settings from project-config 2018-08-16 09:49:47 -04:00
.gitignore Remove testrepository 2018-07-11 18:16:12 +07:00
.gitreview Update .gitreview for stable/rocky 2018-07-19 21:18:52 +00:00
.stestr.conf Migrate to stestr as unit tests runner 2017-09-26 09:22:22 -07:00
CONTRIBUTING.rst Change launchpad references to storyboard 2018-03-26 14:25:02 -07:00
LICENSE Initial commit for ironic-lib 2015-02-26 04:15:08 -08:00
MANIFEST.in Added project infrastructure needs. 2013-05-02 14:55:43 -04:00
README.rst Update and replace http with https for doc links 2017-07-21 16:40:32 +08:00
TESTING.rst Add prefix "$" for command examples 2016-09-28 22:19:51 +09:00
lower-constraints.txt Remove testrepository 2018-07-11 18:16:12 +07:00
requirements.txt Updated from global requirements 2018-03-26 08:04:49 +00:00
setup.cfg Correct url in setup.cfg for documentation path 2017-07-19 20:11:19 +00:00
setup.py Updated from global requirements 2017-03-02 11:45:33 +00:00
test-requirements.txt Switch to using stestr 2018-06-27 14:50:06 -04:00
tox.ini Update UPPER_CONSTRAINTS_FILE for stable/rocky 2018-07-19 21:18:55 +00:00

README.rst

Team and repository tags

image

ironic_lib

Overview

A common library to be used exclusively by projects under the Ironic governance.

Running Tests

To run tests in virtualenvs (preferred):

$ sudo pip install tox
$ tox

To run tests in the current environment:

$ sudo pip install -r requirements.txt
$ nosetests