1207 Commits

Author SHA1 Message Date
Jenkins
f330dac837 Merge "Remove old lookup/heartbeat from IPA" 2016-11-13 13:03:39 +00:00
Jenkins
b2e608a94c Merge "Add bash scripts style checking for IPA" 2016-11-10 12:48:26 +00:00
John L. Villalovos
13c9350699 Clarify test comment to minimize confusion
Wording was a little confusing. Try to make it more clear.

Change-Id: Iad280314bf4929b18b1493bd7e9a26fc58297ee1
2016-11-09 14:59:30 -08:00
Jenkins
a6d6e477e3 Merge "Fix several errors in LLDP handling code" 2016-11-09 22:33:22 +00:00
OpenStack Proposal Bot
c40575e4e0 Add bash scripts style checking for IPA
Updated file tox.ini allows to check code style in all ".sh" files
included in Ironic Python Agent. Checking can be invoked by calling either
"tox" or "tox -e pep8".

Change-Id: Ie76605737c7db10a064f2aebfda388372a4c0591
Closes-Bug: #1625215
2016-11-09 14:14:40 -08:00
Jenkins
3ebffd0e42 Merge "Update to hacking 0.12.0 and use new checks" 2016-11-09 18:42:05 +00:00
Pavlo Shchelokovskyy
b033bfd933 Remove old lookup/heartbeat from IPA
Lookup/Heartbeat via vendor passthru was deprecated in Newton.

This patch removes the corresponding functionality from IPA,
and also removes handling of 'ipa-driver-name' kernel parameter,
as it was only used in code related to old passthru.

Change-Id: I2c7989063ab3e4c0bae33f05d6d2ed857a2d9944
Closes-Bug: #1640533
2016-11-09 16:34:44 +00:00
Dmitry Tantsur
b864a8c566 Fix several errors in LLDP handling code
* Stop silencing exceptions in raw socket context manager
* Correctly handle receiving packages with odd size and too small ones
* Fix a unit test that was testing nothing due to bad mocking

Change-Id: Ic8626d10618f52d50667d2698f34a92f5dcac33e
Closes-Bug: #1640238
2016-11-09 15:02:54 +01:00
OpenStack Proposal Bot
bcc98dfc08 Updated from global requirements
Change-Id: If7e009ac544f20959c54656f6dd8ec523675f5e5
2016-11-09 04:16:26 +00:00
John L. Villalovos
0b8763e332 Update to hacking 0.12.0 and use new checks
Use hacking 0.12.0

Use the new checks that are available:
    [H106] Don’t put vim configuration in source files.
    [H203] Use assertIs(Not)None to check for None.
    [H904] Delay string interpolations at logging calls.

Fix code so tests pass.

Change-Id: If22ad272c332f30624ce10861408d377908b152b
Depends-On: I2aa44b62f900d4dfd67701b01eadd0523fbfaf07
2016-11-08 11:31:18 -08:00
Jenkins
fb3a56d185 Merge "Updated from global requirements" 2016-11-08 18:01:02 +00:00
Luong Anh Tuan
ef6c1cb9ce Replaces uuid.uuid4 with uuidutils.generate_uuid()
Openstack common has a wrapper for generating uuids.We should
use that function when generating uuids for consistency.

Change-Id: Ifb7b15fc8634338fc535de8043053e41aa93968a
Closes-Bug: #1082248
2016-11-08 09:06:45 +00:00
OpenStack Proposal Bot
70f8c653ff Updated from global requirements
Change-Id: Ia4baa905f5a29babcf468746aa374bfc67f785a5
2016-11-06 01:59:31 +00:00
OpenStack Proposal Bot
2c751474e5 Updated from global requirements
Change-Id: I0e32235379e6557b5414bb4512799c735398b212
2016-11-04 14:08:31 +00:00
OpenStack Proposal Bot
88aab1915b Updated from global requirements
Change-Id: I1d7f5941e927372ce5185b41efa46ac8bd4b8492
2016-11-02 15:32:34 +00:00
Shivanand Tendulker
7471d4004e Remove duplicated logging in configdrive creation
Ironic-lib logs a message when configdrive is created
successfully. Remove duplicate message from IPA.

Change-Id: I2af81cdfda4cfc004288f44d14a5c127639cc1f1
2016-10-26 02:47:53 -07:00
Jenkins
3527c0f25c Merge "Updated from global requirements" 2016-10-21 22:01:49 +00:00
Jenkins
0727443b1a Merge "Use ironic-lib to create configdrive" 2016-10-21 15:42:59 +00:00
Shivanand Tendulker
3665306dfb Use ironic-lib to create configdrive
Shell script to create config drive being replaced with python
code in ironic-lib.

Closes-Bug: #1493328

Change-Id: I31108f1173db3fb585386b2949ec880a95305fb6
2016-10-21 03:39:06 +00:00
OpenStack Proposal Bot
0ce1e341a1 Updated from global requirements
Change-Id: I2d523a2c81427a1c17280d5b00dfbde644d8121f
2016-10-21 00:43:14 +00:00
Jenkins
c393214528 Merge "Install grub in the EFI "Fallback path"" 2016-10-20 16:18:49 +00:00
Derek Higgins
cc5556d06b Install grub in the EFI "Fallback path"
In systems where the nvram may have been reset, add
\EFI\BOOT\BOOTx64.EFI to the EFI system partition so that
the image continues to boot. This will be particularly useful
if the NVRAM wasn't written correctly or if the baremetal
server is be simulated on virt and the NVRAM was been reset
on start (as is the case in libvirt).

Change-Id: I5005ae02c283cdc01540ea46c341a7b0bf9d4c42
Closes-Bug: #1632637
2016-10-20 13:50:02 +00:00
Vladyslav Drok
7bda3408f5 Fix config drive writing script
When the deployment happens on a GPT disk with config drive, writing
it to disk fails. Three reasons for that:

* parted should be used instead of partprobe to determine the type of
  the disk;
* gdisk -l sorts the partitions by their number, sort them by start
  sector instead;
* after sgdisk completion, the configdrive device is not immediately
  visible in the /dev folder, udevadm settle needed here too.

Closes-Bug: #1633063
Change-Id: Ifed89e343f9db4cf303baf7f8823342f6041f202
2016-10-18 00:28:04 +03:00
Jenkins
dca181a47c Merge "Add support for root device hints with operators" 2016-10-14 18:31:04 +00:00
OpenStack Proposal Bot
772ff4e7e6 Updated from global requirements
Change-Id: Ic70856a9285d0956af9ace0286e3fe001d178bde
2016-10-11 22:18:26 +00:00
Lucas Alvares Gomes
cca1cd48ef Add support for root device hints with operators
This patch is updating IPA to use the match_root_device_hints() method
provided by ironic-lib version 2.2.0.

Partial-Bug: #1561137
Depends-On: I1d9dc7a57ea391a3419710c289242b39a4201463
Change-Id: Id93dd0360137df600f5a656348279e56c6b84bf9
2016-10-11 15:43:50 -03:00
Jenkins
4d26be6e98 Merge "Use CoreOS 1068.10.0" 2016-10-11 13:21:01 +00:00
Jenkins
6490425b5b Merge "Remove Python 2.6 format style" 2016-10-10 16:32:20 +00:00
Jenkins
a3ba54e1e4 Merge "Update .gitignore to ignore .idea of PyCharm" 2016-10-10 13:09:58 +00:00
Jenkins
5c1084c7e3 Merge "[tinyipa] allow skipping python compileall" 2016-10-10 10:32:24 +00:00
Jenkins
46226d8c06 Merge "[tinyipa] remove trailing slash from TC repo URL" 2016-10-10 10:32:09 +00:00
linbing
c3bf482254 Update .gitignore to ignore .idea of PyCharm
Change-Id: Id5d0820cebff0f236dc98907e29ad30a9c0b27c8
2016-10-10 13:58:43 +08:00
Jenkins
096e3798b3 Merge "Update reno for stable/newton" 2016-10-09 18:56:42 +00:00
Jenkins
253aa7fcb0 Merge "Force en_US language for tests" 2016-10-07 20:35:53 +00:00
linbing
156ddaa966 Force en_US language for tests
This patch forces the use of the en_US locale for tests run.
This is done to avoid tests failing due to message translation.
For example:

When asserting if the message of an exception is correct, those are
usually hardcoded in the tests.

Change-Id: Ia8068b454f1461f17994733afc57337f4b017460
2016-10-07 13:50:43 +00:00
John L. Villalovos
20d960ff98 Remove Python 2.6 format style
In Python 2.6 it was required to use {0}, {1}...{n} when using the
string format function. In Python 2.7 and Python 3 it it not required.

Change {N} to {} in code.

This brings the code in style alignment with other projects like
ironic and ironic-lib.

Change-Id: I81c4bb67b0974f73905f14b589b3dd0a7131650d
Depends-On: I8f0e5405f3e2d6e35418c73f610ac6b779dd75e5
2016-10-06 09:05:26 -07:00
Davanum Srinivas
f1a8fef5d0 Update reno for stable/newton
Change-Id: Ic91d44749eb85a0f53e023daf5d128cc25b5c2ce
2016-10-05 11:23:16 -07:00
Pavlo Shchelokovskyy
9e442b2050 [tinyipa] remove trailing slash from TC repo URL
This produces urls with `//` which works but looks strange.

Change-Id: I9ff9ec940d7f814df669c752c5f7a6d7380b8175
2016-10-05 12:38:43 +03:00
Jenkins
bf3c4fb38c Merge "Fixed typo in doc file" 2016-10-05 02:15:36 +00:00
Pavlo Shchelokovskyy
67bd15c1b5 [tinyipa] allow skipping python compileall
Somtimes it is useful to have tinyipa image with normal Python
experience (access to source code for debugging, Python interpreter).

This patch allows to skip compiling all Python to *.pyo and
removing all *.py[c] files by setting

export PYOPTIMIZE_TINYIPA=false

in the shell before running the build scripts.

Change-Id: I570d5a30af0f6a0c9de533e61d03ad5c198c2864
Closes-Bug: #1629953
2016-10-04 12:23:31 +03:00
Dao Cong Tien
c2b305513a Invalid URL and typo in .rst files
Change-Id: I17377b4b7b2e8ecc0ce3dbc4ac7de9398912ada9
2016-10-03 13:38:07 +07:00
Jenkins
bc1cf13889 Merge "Add info on tinyipa to docs" 2016-09-28 21:00:33 +00:00
Anh Tran
8f8e9f921e Fixed typo in doc file
TrivialFix

Change-Id: I6e680ccae6c169eae433f376890a8f2e5a19849a
2016-09-28 08:45:07 +07:00
John L. Villalovos
f6acb7cc03 Add py35 to tox environments
Since we're running python 3.5 tests now, we should also be
running them when running all tests with just `tox`.

Change-Id: I3f57abcbeaa3550f49d56f08140a34d6989885c9
2016-09-22 11:17:41 -07:00
Pavlo Shchelokovskyy
1dcb656886 Add info on tinyipa to docs
Mention tinyipa in Image Builders section and in troubleshooting.

Change-Id: Ic6cfe64255aba0460cc960a98b18580b7798b204
2016-09-22 14:16:28 +03:00
OpenStack Proposal Bot
629b599d8b Updated from global requirements
Change-Id: I51982b914de8fee7132117bc00cee5e868a11aea
2016-09-21 19:06:47 +00:00
Jenkins
6f98e534f5 Merge "Add vendor, product to interface information" 2016-09-21 15:43:10 +00:00
Jenkins
a947a7c287 Merge "Improve error message while download image" 2016-09-21 15:28:43 +00:00
Jenkins
1fd53460da Merge "Enable SSH access to tinyipa" 2016-09-21 14:51:33 +00:00
Moshe Levi
fe3b630360 Add vendor, product to interface information
This patch updates the interfaces JSON to include
vendor and  product
u'interfaces': [
    {
        u'mac_address': u'00:0c:29:8c:11:b1',
        u'name': u'eth0',
        u'ipv4_address': None,
        u'switch_chassis_descr': None,
        u'switch_port_descr': None,
        u'lldp': None,
        u'vendor': u'0x15b3',
        u'product': u'0x1014,
    }]

Co-Authored-By: yogananth subramanian <ysubrama@redhat.com>

Closes-Bug: #1611856

Change-Id: I8fa58dde29601abee959f74b69b692ed9eaffb94
2016-09-21 10:14:26 -04:00