A python library of common ironic utilities.
Go to file
Dmitry Tantsur f19eb25f01 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-18 13:26:46 +01: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-18 13:26:46 +01:00
playbooks/legacy Do not run API (functional) tests in the CI 2018-06-27 14:13:41 +00:00
zuul.d import zuul job settings from project-config 2018-08-16 09:48:17 -04:00
.gitignore Migrate to stestr as unit tests runner 2017-09-26 09:22:22 -07:00
.gitreview Update .gitreview for stable/queens 2018-01-18 19:16:53 +00:00
.stestr.conf Migrate to stestr as unit tests runner 2017-09-26 09:22:22 -07:00
CONTRIBUTING.rst Update and replace http with https for doc links 2017-07-21 16:40:32 +08: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
requirements.txt Updated from global requirements 2018-01-16 12:29:38 +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 Gate fix: Cap hacking to avoid gate failure 2018-05-10 11:49:53 +00:00
tox.ini Update UPPER_CONSTRAINTS_FILE for stable/queens 2018-01-18 19:16: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