1347 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
8110243388 Updated from global requirements
Change-Id: Ifc6e645014f1ddba696a6e21fe8349d2f7b30103
2017-07-18 01:47:05 +00:00
Julia Kreger
7ae28c66bd Correct/update links
Correct instances of http to https and fix any remaining links
that were broken due to the document migration.

Change-Id: I492f7972839e63efdde469a1e16840d9be6d8b31
2017-07-14 20:28:08 +00:00
Julia Kreger
da95c4a891 Move content to admin
Change-Id: Ibffc7407addbdabb9121117366484f907d82f719
2017-07-11 13:45:45 +00:00
Julia Kreger
cace396783 Move install related content
Change-Id: Ib9a3897795993e7bce9a43d4028e1c9a90d47302
2017-07-11 13:33:46 +00:00
Julia Kreger
537dbcd03a Move contributor documentation
Change-Id: I43890d380b3cb6b19cfb84bf5d9dcad4f19c0062
2017-07-10 19:57:58 +00:00
Julia Kreger
774d995b7f Switch from oslosphinx to openstackdocstheme
Change-Id: I1aecf894955e8095c11b8fb82d60488e5d0aca5f
2017-07-04 01:10:43 +00:00
OpenStack Proposal Bot
85f627157d Updated from global requirements
Change-Id: I30866baf4d347dfc8d0a45fbe29c444778443783
2017-06-27 12:11:12 +00:00
OpenStack Proposal Bot
5e02d31c74 Updated from global requirements
Change-Id: I58e3ad5330714ea2348e8043ea77063a7c965bc8
2017-06-15 16:24:20 +00:00
ChangBo Guo(gcb)
30e0da15ea Remove usage of parameter enforce_type
Oslo.config deprecated parameter enforce_type and change its
default value to True in Ifa552de0a994e40388cbc9f7dbaa55700ca276b0.
Remove the usage of it to avoid DeprecationWarning: "Using the
'enforce_type' argument is deprecated in version '4.0' and will be
removed in version '5.0': The argument enforce_type has changed its
default value to True and then will be removed completely."

Change-Id: I0f0fb540c43edde64e489915c5199da40a0da9c1
Related--Bug: #1517839
2017-06-14 13:47:29 +08:00
Jenkins
ae8a5fc731 Merge "Remove pbr warnerrors in favor of sphinx check" 2017-06-12 23:05:55 +00:00
Vu Cong Tuan
667ad45615 Remove pbr warnerrors in favor of sphinx check
This change removes the now unused "warnerrors" setting,
which is replaced by "warning-is-error" in sphinx
releases >= 1.5 [1].

[1] http://lists.openstack.org/pipermail/openstack-dev/
2017-March/113085.html

Change-Id: I9bf18ff72f36dfd3496b9672604e8bb98999b133
2017-06-11 18:18:28 +07:00
OpenStack Proposal Bot
cf60715870 Updated from global requirements
Change-Id: I2a3c3c5c94f7b0ed593de252b79be461ffcc5ccf
2017-06-10 21:38:12 +00:00
Jenkins
af9caeeaae Merge "fix path for ldlinux.c32" 2017-06-08 07:02:16 +00:00
Jenkins
da2ee32a8b Merge "[imagebuild] support requirements referring to /opt/stack/new" 2017-06-07 15:35:36 +00:00
Dmitry Tantsur
381f5073b5 [imagebuild] support requirements referring to /opt/stack/new
Now that ironic-lib builds IPA from source, the IPA building procedure
needs to support requirements referring to /opt/stack/new.

As upper-constraints are not actually needed in the finalise step, they're
no longer used there to avoid dealing with file:/// references. We also
allow pre-release packages to be installed by pip.

Also install git as it's a build requirement for PBR.

Only tinyipa is updated, as it's used in the ironic-lib gate.

Change-Id: Ia942cb710eb3fe1ba56c68f91fa893795c9cb651
Closes-Bug: #1695877
2017-06-07 13:45:37 +02:00
OpenStack Proposal Bot
9028742ebc Updated from global requirements
Change-Id: I8f3c7abb313a18ec8f41aefc6001392818a9ccf5
2017-06-05 17:21:17 +00:00
Jenkins
bf88bf1cff Merge "Log 'Executable biosdevname not found' only once" 2017-06-05 17:02:09 +00:00
Ruby Loo
a7ffa7db98 fix path for ldlinux.c32
This fixes the path for ldlinux.c32. It should be in the absolute
path /usr/..., not the relative path usr/...

Related-Bug: #1694394

This is a followup to ead3b90655979d0423f409b21a17da9e28a8de1b

Change-Id: I0aaae7e337b1ac631f789c11b3bf6e944e395456
2017-06-05 11:36:57 -04:00
Ramamani Yeleswarapu
a42ef91591 Log 'Executable biosdevname not found' only once
Currently, get_bios_given_nic_name logs 'biosdevname not found' for
every NIC. This patch changes it to log only once when the executable
is not found.

Removes a redundant 'return' statement.

Change-Id: Ic42ec23876b6f7b28d8f6ac1bd37bdbfa20cf421
2017-06-02 10:59:25 -07:00
Hironori Shiina
ead3b90655 Copy ldlinux.c32 for building ISO image
This patch copies ldlinux.c32 to isolinux directory when building an
ISO image. ldlinux.c32 is required for syslinux 5.00 or later[1]. The
location of ldlinux.c32 depends on distrubution[2][3].

[1] http://www.syslinux.org/wiki/index.php?title=ISOLINUX#How_Can_I_Make_a_Bootable_CD_With_ISOLINUX.3F
[2] https://packages.ubuntu.com/xenial/all/syslinux-common/filelist
[3] https://www.rpmfind.net/linux/RPM/dag/redhat/el6/x86_64/extras/syslinux-5.10-1.el6.rfx.x86_64.html

Change-Id: I31dfb8423a1fe453740119ebe8b855dc23a4c033
Closes-Bug: #1694394
2017-05-31 11:07:34 +09:00
Jenkins
7dbe9b5bed Merge "Add option for building IPMItool into TinyIPA" 2017-05-25 22:30:12 +00:00
Jenkins
73a884fc41 Merge "Add a new location of isolinux.bin for Ubuntu 16.04" 2.1.0 2017-05-24 14:28:10 +00:00
Hironori Shiina
35ea727e6a Add a new location of isolinux.bin for Ubuntu 16.04
This patch adds a new location of isolinux.bin for creating iso. This
file is installed to /usr/lib/ISOLINUX/ in Ubuntu 16.04 or later.

Change-Id: Iae325e3e706859b1df409f23e679d5219dc6f187
Closes-Bug: #1693127
2017-05-24 19:14:03 +09:00
Dmitry Tantsur
40ddf861c7 Fix compatibility with Pint 0.5
This is the version we have in global-requirements, and it does not
contain module pint.errors. Fortunately, in all versions the required
error is exposed on the top level, so just use it.

See https://review.rdoproject.org/r/6741 for a build failure.

Change-Id: I1f194ccc48a3195fcbf8599c3a0b4fa21fde16d2
2017-05-22 17:05:53 +02:00
Jenkins
db76c899b5 Merge "NUMA-topology collector" 2017-05-22 13:13:18 +00:00
Sam Betts
6950e6030d Add option for building IPMItool into TinyIPA
IPMItool is required for discovering the IPMI/BMC address during
inspection, currently its not built into TinyIPA so this patch adds the
tool to make that feature work.

Change-Id: I35bf7db3a870bc3981992e4e86d851d3f2512fd6
2017-05-22 13:26:26 +01:00
Jenkins
2deef86f32 Merge "Collect NIC name given by BIOS" 2017-05-22 11:35:41 +00:00
Jenkins
26accd2a8c Merge "Add missing description for params of 'start_iscsi_target'." 2017-05-20 16:20:25 +00:00
Jenkins
897da69b54 Merge "Replace assertRaisesRegexp with assertRaisesRegex" 2017-05-20 16:05:31 +00:00
Luong Anh Tuan
efe739f039 Replace assertRaisesRegexp with assertRaisesRegex
This replaces the deprecated (in python 3.2) unittest.TestCase
method assertRaisesRegexp() with assertRaisesRegex()[1].
[1]https://review.openstack.org/#/c/466155/

Change-Id: Ife8504dbb58019a30bcc1495a78ab14c757efc98
Related-Bug: 1673768
2017-05-19 20:16:47 +07:00
Annie Lezil
fdcb0922a5 Collect NIC name given by BIOS
Adds an extra field ``biosdevname`` to network interface inventory
collected by ``default`` inspection collector (which collects the whole
inventory returned by hardware manager) of ironic-python-agent.

This feature requires biosdevname utility to collect the bios given NIC
names. The tooling module for tinyIPA is created for the same purpose.
For CoreOS IPA pxe images, biosdevname tooling module is limited,
because Docker repository is created and embedded into CoreOS pxe
images. The Docker repository uses debian to download the packages.
Debian does not have biosdevname package.

Adds an export variable TINYIPA_REQUIRE_BIOSDEVNAME. Set this
variable to ``true`` in your shell before building tinyIPA.

Closes-Bug: #1635351
Change-Id: Ia96af59e2a74868cac59e5a88cfbb3be60d85687
2017-05-18 14:44:11 -07:00
ericxiett
50f914d088 Add missing description for params of 'start_iscsi_target'.
Change-Id: I3bbd092d0738110ad36f85f1d333273f46648d2b
Closes-Bug: #1691303
2017-05-18 07:57:36 +08:00
OpenStack Proposal Bot
116ddde00d Updated from global requirements
Change-Id: Ibb2590c8f12c509a9cb2fe3abde77f22fa7c1b52
2017-05-17 13:40:18 +00:00
Jaganathan Palanisamy
cc9e05da50 NUMA-topology collector
Implement the optional collector for fetching the NUMA topology
details.
Collects RAM, CPU Cores, thread siblings and NICS data for
each NUMA node and stored under "numa_topology" key.

Closes-bug: #1635253

Co-Authored-By: Jaganathan Palanisamy <jpalanis@redhat.com>

Change-Id: I5a546c009d95f39b7af4d89cf785be8acb8ebc67
Signed-off-by: karthik s <ksundara@redhat.com>
2017-05-16 08:07:58 -04:00
Jenkins
15878b7b18 Merge "Remove unused function _configdrive_location" 2017-05-16 10:31:01 +00:00
OpenStack Proposal Bot
fbefa536e8 Updated from global requirements
Change-Id: I93d6f7bede18f43dd2117227be3fca2ebda48f2f
2017-05-15 12:08:47 +00:00
Jenkins
c2687c6223 Merge "Prevent tests' unmocked access to utils.execute()" 2017-05-15 04:25:45 +00:00
Julian Edwards
f57cbccf8b Prevent tests' unmocked access to utils.execute()
This change introduces a new base test class that mocks out
utils.execute and forces an exception if it gets called.
This has rooted out many tests that were doing this as a side effect of
calling other functions, doing things like modprobe and running iscsi
on the host's actual machine.

The tests are all now appropriately patched in places where this was
happening, and the new base class permanently prevents this from
accidentally happening again.

If you really want to call utils.execute() then you need to re-mock it
in your unit test.

Change-Id: Idf87d09a9c01a6bfe2767f8becabe65c02983518
2017-05-15 10:48:43 +10:00
vmud213
85869a134b Remove unused function _configdrive_location
This function is never used and can be removed safely.

Change-Id: Ied7b4984185ea170d33cb57010de89edeaaaeec5
Closes-Bug: #1690135
2017-05-11 12:23:38 +00:00
Javier Pena
32ed01448b Set valid inspection_dhcp_wait_timeout value in tests
inspection_dhcp_wait_timeout is defined as IntOpt, but its value was
set in tests to 0.01. This was ok until oslo.config started enforcing
types in [1], after that unit tests fail for test_timeout.

Fixing by setting the value to 1, and mocking time-related functions
to avoid a longer wait.

[1] https://review.openstack.org/328692

Change-Id: I732c4aa3d1760c3159d9672e3fae81f8bd72497c
2017-04-25 12:12:49 +02:00
OpenStack Proposal Bot
92c33a0f47 Updated from global requirements
Change-Id: Ic29c84030819bf98b9680b51edb5b8840479706c
2017-04-12 04:12:39 +00:00
Jenkins
b1844d5ac2 Merge "Add a debug tox environment" 2017-04-10 10:30:39 +00:00
Julian Edwards
393d686638 Add a debug tox environment
Uses oslo_debug_helper to run up the tests in single-threaded
mode so that pdb works.

Examples:
 # Run all tests.
 tox -e debug
 # Run a specific test or set of tests.
 tox -e debug module.to.my.test

Change-Id: I272f6aa34bafcd7ac2d2828cbd6dd48e0e615b79
2017-03-31 14:33:55 +10:00
OpenStack Proposal Bot
819eaf86a1 Updated from global requirements
Change-Id: Ic89074e92befcef8d920d4087be8c1a81b27b4e2
2017-03-28 21:29:15 +00:00
Jenkins
4be702242e Merge "Add missing 'autospec' argument to mock.patch" 2017-03-20 13:59:18 +00:00
John L. Villalovos
1695cb18c2 Add missing 'autospec' argument to mock.patch
Add missing 'autospec' keyword argument to mock.patch and
mock.patch.object calls. Use 'autospec=True' except for a few cases
where it fails because the mocked function is a @classmethod and it
doesn't work. In that case explicity set it to 'autospec=False'

Change-Id: I620dce91abaa4440e1803aeefb3e93c0b65d1419
2017-03-19 10:04:19 -07:00
John L. Villalovos
e9344077fc flake8: Specify 'ironic_python_agent' as name of app
Specify 'ironic_python_agent' as the name of the application for the
flake8-import-order plugin. That way it knows that imports of
ironic_python_agent should come after external libraries.

Change-Id: Id39d558a51aeb97d96633afea28676634547d0d7
2017-03-16 07:09:07 -07:00
Jenkins
24b4e3f1c0 Merge "Updated from global requirements" 2017-03-15 00:54:12 +00:00
Jenkins
0ed8d7cd27 Merge "Fix logs encoding in py3" 2017-03-14 11:25:49 +00:00
zackchen
000eaa3554 Fix logs encoding in py3
Make sure that logs are encoded as text (not byte strings) in
python3 to allow theirs serialization in JSON.

Closes-Bug: #1668533

Change-Id: I3d0d87ca766146457d905f89c26331a415bd54f8
2017-03-14 10:25:09 +08:00