916 Commits

Author SHA1 Message Date
Zhenguo Niu
7fe40bb559 Replace all the 'self.log' calls with global LOG
Change-Id: Iae917e1139c8c95a1bad5466df8a607656b9de5c
2016-02-24 09:51:01 +08:00
Jenkins
3bcda73ca0 Merge "Clear GPT and MBR data structures on disk before imaging" 2016-02-18 08:53:03 +00:00
Jenkins
0f162fba2f Merge "Update unit tests to use six.moves.builtins.open" 2016-02-18 03:58:08 +00:00
Jenkins
44f23b5674 Merge "Add support for proxy servers during image build" 2016-02-18 03:57:57 +00:00
Jenkins
01685839ba Merge "TinyIPA: Prevent install of pre-release dependencies" 2016-02-17 14:20:39 +00:00
Moshe Levi
52fc4f891f Update unit tests to use six.moves.builtins.open
Change-Id: I724a42d22d4c9011feb8aa09726e5186686f3729
2016-02-17 14:08:52 +02:00
Jenkins
559b25f56e Merge "TinyIPA: Explicitly use /bin/bash instead of /bin/sh" 2016-02-17 11:20:07 +00:00
Jenkins
6a1341d2c3 Merge "Replace backoff looping call with oslo_service provided version" 2016-02-16 20:38:37 +00:00
Jenkins
b5008dcb31 Merge "Add 'system_vendor' information to data" 2016-02-16 18:41:09 +00:00
Lucas Alvares Gomes
f9344a792c TinyIPA: Prevent install of pre-release dependencies
We want to install the dev version of IPA but we don't want pre-release
versions of IPA's dependencies, this patch ensures that only released
deps are installed.

Change-Id: I6187fbbd0bdd80503861d3760248f3f23c1c6388
2016-02-16 17:24:17 +00:00
Lucas Alvares Gomes
589145b1db TinyIPA: Explicitly use /bin/bash instead of /bin/sh
We need to explicitly use /bin/bash for the {build, finalise}-tinyipa.sh
scripts because the script relies on a bash extension to get the current
working directory.

Depends-On: I4690514803dd91d4bda0d38df4fd792f31a51421
Change-Id: Ic1ed66c8fa8936a822e112199844a869106751dc
2016-02-16 17:24:06 +00:00
Yuiko Takada
3823a53040 Add 'system_vendor' information to data
This patch set add hardware vendor information to data.
By using this data, we can get hints to detect driver.

Change-Id: I39385fd5d616edfad719c255f22642f215bfb532
2016-02-15 10:19:17 +09:00
OpenStack Proposal Bot
855e301336 Updated from global requirements
Change-Id: I898ef8de841bb1602ff19d3b397a0893a3dc03b5
2016-02-11 07:39:54 +00:00
Jenkins
1b918b885e Merge "Fix vfd mount for capitalized device name" 2016-02-09 21:40:26 +00:00
Shivanand Tendulker
8f5ed3e2f1 Clear GPT and MBR data structures on disk before imaging
This patch clears all GPT and MBR data structures on the disk.
GPT maintains its data structures at start and at end of the
disk.

Change-Id: I8d0b367755b568cb44f02f62b873659b4bea0f14
Closes-Bug: #1543339
2016-02-09 09:13:07 -08:00
Naohiro Tamura
73f81f2982 Fix vfd mount for capitalized device name
This patch enables virtual media deploy even if the expected virtual
floppy device name "/dev/disk/by-label/ir-vfd-dev" is capitalized to
"/dev/disk/by-label/IR-VFD-DEV".
This change is necessary because some bare metal hardware such as
FUJITSU RX1330 series create the capitalized virtual floppy device
name.

Change-Id: I436b3f9524a83814e082f8dd421df3e53b33f792
Closes-Bug: #1541167
2016-02-08 16:33:14 +09:00
Jenkins
e76390b915 Merge "Add tinyipa to IPA imagebuild directory" 2016-02-06 00:27:06 +00:00
John L. Villalovos
1ffaaf6abf Add support for proxy servers during image build
When building the docker image, the 'apt-get' and 'pip install' that are
run inside the docker image will fail in a an environment that uses
proxy servers.

Support environments with proxy servers by dynamically propagating
'http_proxy', 'https_proxy', and 'no_proxy' into the docker environment
when running 'apt-get' and 'pip install'

This can not be done with either --env-file or --env as those are
arguments to 'docker run'. The command being run here is 'docker build'

Once Docker 1.9 is widely deployed, we should switch to using the 'ARG'
command which was added in Docker 1.9. Currently Ubuntu 14.04 uses
Docker 1.6.  Using the ARG command will be a much cleaner solution.

Change-Id: Idd994cd58b9fb75bae13a43fc8363c36f113527d
Closes-Bug: #1533796
2016-02-04 14:27:49 -08:00
Jenkins
ec849d8e22 Merge "Leave git installed in docker builder" 2016-02-04 21:53:41 +00:00
Joshua Harlow
df701c979c Replace backoff looping call with oslo_service provided version
The code that comprises the backoff looping call moved to
oslo.service in 0.10.0 and IPA can use that version so remove
the local backoff code and just prefer the oslo.service maintained
and supported version instead.

Change-Id: Ifec3490f9e5c68859deff4a951dcdf59caa7ca3a
2016-02-04 12:22:21 -08:00
Jim Rollenhagen
7c85ed8041 Leave git installed in docker builder
Downstream agent builders that inherit from this Dockerfile will often
need git installed to be able to install hardware managers and such.
Removing git and reinstalling it can cause weird apt dependency issues
down the line, so leave it installed.

Change-Id: I8d5f35d0c8c6a231144a7b0a5b5c8f6d051ab0b1
2016-02-03 11:43:54 -08:00
Jenkins
3ce3b16803 Merge "Extend root device hints to support device name" 2016-02-03 01:58:04 +00:00
Lucas Alvares Gomes
6752ce8032 Extend root device hints to support device name
This patch is extending the root device hints to also look at the device
name. This patch also refactors the tests for root device hints making
it easier to test a different hint per test.

Change-Id: I48d6456c75bbe6ddf16ac6561e5461ca51eb9c37
Partial-Bug: #1526732
2016-02-02 10:32:39 +00:00
Sam Betts
632c7e6d31 Add tinyipa to IPA imagebuild directory
TinyCoreLinux is a small 10mb base linux distribution which can easily
be built into a ramdisk for PXE and ISO booting. This patch adds scripts
and other required files to build a TinyCore based ramdisk which runs
the Ironic Python Agent.

Change-Id: I79fbec75de19b3d6feb19f87a3a0f662eae42bf3
2016-01-29 12:07:19 +00:00
OpenStack Proposal Bot
33b482aa4d Updated from global requirements
Change-Id: Ic6931280d999c91a26e582b5a61fc58bf677c1b1
2016-01-28 13:20:06 +00:00
Jenkins
1e30946835 Merge "Allow hardware managers to override clean step priority" 2016-01-28 05:36:12 +00:00
Jenkins
b5e2c6c600 Merge "Disable xattrs in IPA extraction" 2016-01-27 14:30:05 +00:00
Julia Kreger
0090512c0e Disable xattrs in IPA extraction
The CoreOS IPA image appears to be failing upon extraction
of the IPA container due to a failure to applicaiton of xattr
values.  Manually testing with-in the CoreOS image reveals
that adding --no-attrs to the command line allows tar to
complete successfully.

Change-Id: I9b2bf6ff47822bc46259e2bbb27bd575889786a3
Closes-Bug: #1538310
2016-01-26 17:39:23 -05:00
Shuquan Huang
fac700c8e7 Change assertTrue(isinstance()) by optimal assert
Some of tests use different method of assertTrue(isinstance(A, B)) or
assertEqual(type(A), B). The correct way is to use assertIsInstance(A,
B) provided by testtools.

Change-Id: I8e95e10fac4748b115838b6b480f1085da73f28a
Closes-bug: #1268480
2016-01-21 14:20:11 +08:00
Jenkins
55239c2199 Merge "Fix params order in assertEqual" 2016-01-15 18:11:45 +00:00
Josh Gachnang
61b4387b95 Allow hardware managers to override clean step priority
If two hardware managers have the same clean step, for example
'erase_devices' in the GenericHardwareManager and a custom manager,
IPA must determine which step should be kept and which should be run
in order to prevent running the step multiple times.

This patch uses the following filtering logic to decide which step
"wins":
- Keep the step that belongs to HardwareManager with highest
  HardwareSupport (larger int) value.
- If equal support level, keep the step with the higher defined
  priority (larger int).
- If equal support level and priority, keep the step associated with
  the HardwareManager whose name comes earlier in the alphabet.

Other than individual step priority, picking which step to keep does
not actually impact the cleaning run. However, in order to make
testing easier, this change ensures deterministic, predictable
results.

Co-Authored-By: Mario Villaplana <mario.villaplana@gmail.com>
Co-Authored-By: Jay Faulkner <jay@jvf.cc>
Co-Authored-By: Brad Morgan <brad@morgabra.com>
Change-Id: Iaeea4200c38ee22cab72ba81c1dbae3389e675e4
2016-01-14 13:12:52 -08:00
Swapnil Kulkarni (coolsvap)
da900108d3 Update typos
Change-Id: Ia0992ebc7a9355d5ea99d0cde28e03fc0d2a1346
2016-01-13 11:14:42 +05:30
Kan
2b07976b94 Fix params order in assertEqual
Fix params order to correspond to real signature:
    assertEqual(expected, actual)

Change-Id: I129aad5d8bb7ca0541c07913cb5edd8eef9e90ba
Closes-Bug: #1277104
2016-01-13 02:03:11 +00:00
Jenkins
f9ad095aa6 Merge "Remove unused logging" 2016-01-12 14:38:10 +00:00
Dmitry Tantsur
a70d99405e Switch to post-versioning
Putting a version in setup.cfg requires updating it after every release.
pbr is smart enough to calculate the next version without our help.

Change-Id: I33d610adc8860fe92275096192db06000fb2d6bb
2016-01-12 10:49:36 +01:00
OpenStack Proposal Bot
43a149d5ea Updated from global requirements
Change-Id: Iebfdd19c72a974e21765fe1e35e6d6f0bcf597a4
1.1.0
2016-01-06 23:15:02 +00:00
LiuNanke
8522a550c0 Remove unused logging
Change-Id: I4303b42d1d746635d5fe394e23f1a674fcc9fb03
Closes-bug: #1529541
2016-01-07 00:57:55 +08:00
Jenkins
d47450e21c Merge "Replace deprecated LOG.warn with LOG.warning" 2016-01-06 04:05:03 +00:00
Kan
dcdb06d812 Replace deprecated LOG.warn with LOG.warning
Change-Id: I0ca31eac70afaccda73e7819c582af0b226b8442
Closes-Bug: #1508442
2016-01-05 05:37:09 +00:00
OpenStack Proposal Bot
4b561f1317 Updated from global requirements
Change-Id: I3f2d426af66b2fb2efb3ef2c3313cf67dc79e106
2016-01-04 20:11:22 +00:00
Jenkins
475fe9e638 Merge "Replace assertEqual(None, *) with assertIsNone in tests" 2016-01-04 13:23:02 +00:00
Jenkins
10f1f20376 Merge "Revert "Use latest CoreOS stable when building"" 2015-12-25 02:12:58 +00:00
Jenkins
15cbf015ba Merge "Catch up release notes for Mitaka" 2015-12-24 03:26:09 +00:00
Jenkins
61ba3a965d Merge "CoreOS: Ensure /run is mounted before starting" 2015-12-24 01:44:13 +00:00
Jim Rollenhagen
943d2c00e9 Revert "Use latest CoreOS stable when building"
This reverts commit a253e50609017e40c53c29acc3c0231163689c14.

This is a prime suspect in our gate being terrible lately - newer CoreOS
does much more on boot, as well as runs more services. The timeline
roughly matches up.

Change-Id: I58e6ba9d7ac360df98d74746d47b3a76da6f99db
2015-12-22 18:32:08 +00:00
OpenStack Proposal Bot
a39dfbd6ad Updated from global requirements
Change-Id: I34829953870581366807e9faca4ecc18150c3da7
2015-12-19 14:34:38 +00:00
Jim Rollenhagen
ffcdcd4019 Add mitaka reno page
As Dmitry pointed out here: https://review.openstack.org/#/c/258727/
we need a page without a branch specified.

Change-Id: I47f4cfa9e6cc3ec6254afb358a87cb1225470401
2015-12-18 14:45:38 -08:00
Shuquan Huang
cfcef973e8 Replace assertEqual(None, *) with assertIsNone in tests
Replace assertEqual(None, *) with assertIsNone in tests to have
more clear messages in case of failure.

Change-Id: Iad3f8fbb23a8b0f9e5ae4f304799465724c1a433
Closes-bug: #1280522
2015-12-17 11:32:33 +08:00
Jim Rollenhagen
b9df861eb7 Catch up release notes for Mitaka
Change-Id: I0d42dd30053c0d54d566c58cbadb4e7b32b8f832
2015-12-16 16:34:21 -08:00
Jim Rollenhagen
e8488c2534 Add reno for release notes management
Change-Id: Id6bfe132dcc8fc3efbe0d96820eebf7d174b2736
2015-12-16 16:04:29 -08:00