880 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
43a149d5ea Updated from global requirements
Change-Id: Iebfdd19c72a974e21765fe1e35e6d6f0bcf597a4
1.1.0
2016-01-06 23:15:02 +00: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
Jenkins
677e9b7e4b Merge "Delete the Linux-IO target before setting up local boot" 2015-12-16 23:42:13 +00:00
Jenkins
157026a62f Merge "Fix trivial typo in docs" 2015-12-16 01:28:16 +00:00
Jim Rollenhagen
d1859274ac Fix trivial typo in docs
Change-Id: I97adeaa68a08e975dfc0cfb4a27e6a9869a2a6b1
2015-12-15 14:40:42 -08:00
OpenStack Proposal Bot
5bac998f6a Updated from global requirements
Change-Id: I8c29bac2e3fd30132c732cc924f5b4a15d3abed4
2015-12-15 18:55:35 +00:00
Dmitry Tantsur
4cd64e28aa Delete the Linux-IO target before setting up local boot
Otherwise it fails with "device already mounted".

Change-Id: If959ba5a10e97f84be2f7498bed7589d13fa30c2
Closes-Bug: #1526304
2015-12-15 15:20:03 +01:00
Mathieu Mitchell
056bb42f22 CoreOS: Ensure /run is mounted before starting
Change-Id: Ib8e4eb0ed1e31c616545d6cc5b85ee1092b3da4d
2015-12-14 13:29:11 -05:00
Jenkins
15e4454e68 Merge "Use latest CoreOS stable when building" 2015-12-14 08:39:17 +00:00
Jenkins
10cc77f3d7 Merge "Deprecated tox -downloadcache option removed" 2015-12-14 08:39:15 +00:00
Jenkins
66c54d8eda Merge "Updated from global requirements" 2015-12-11 20:39:10 +00:00
Ondřej Nový
6dc7f34e36 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I64c83c96db5c00b04acca9a7538ab83b96fb5f9b
2015-12-11 21:18:09 +01:00
Arun S A G
a253e50609 Use latest CoreOS stable when building
This fetches the latest CoreOS stable version and builds the image using
that version.

Co-Authored-By: Arun S A G <sagarun@gmail.com>
Depends-On: Idfdc54210e33c71719c7fd0c905d0b802809e173
Depends-On: I6a572bdd791841add913d33c5b79b59033c3f237
Change-Id: I7201450b21304fa29f22437c05da9e04daa4b9f8
2015-12-11 20:02:33 +00:00
Jenkins
45ec263f3f Merge "Run IPA in chroot instead of container in CoreOS" 2015-12-11 17:37:52 +00:00
OpenStack Proposal Bot
84fc428d6f Updated from global requirements
Change-Id: I9d5383b1f97a95da847a5bf896260919fd9d09c5
2015-12-11 15:19:49 +00:00
Jay Faulkner
b5b0b63e32 Run IPA in chroot instead of container in CoreOS
systemd-nspawn has been adding more and more security features, the
latest being /sys and /proc/sys being completely read only. This breaks
several things IPA needs to do from the container, including the sysrq
triggers used for reboot.

Additionally, any downstream hardware manager that wants to implement
software RAID requires this fix, as mdadm needs to write to /sys to
assemble arrays. Linux-IO has a similar issue with not operating in
a read only /sys environment.

This changes IPA to run in a chroot instead of a container. This should
be the same from the perspective of IPA, but have no security rules
limiting what we can do inside the ramdisk.

Co-Authored-By: Alex Weeks <alex.weeks@gmail.com>
Change-Id: I6a572bdd791841add913d33c5b79b59033c3f237
Closes-bug: 1524033
2015-12-09 09:17:35 -08:00
Dmitry Tantsur
5fa258b708 Fix "logs" inspection collector when logs contain non-ascii symbols
Somehow it didn't pop earlier. Updated tests to contain some creepy
russian letters :)

Closes-Bug: #1517913
Change-Id: I4c6712ea1e813d1f0f0d0aedaccfa1187526e0ec
2015-12-08 14:32:16 +01:00
Jenkins
1720759fa7 Merge "Support Linux-IO in addition to tgtd" 2015-12-08 04:52:42 +00:00
Dmitry Tantsur
2fc6ce22f8 pyudev exception has changed for from_device_file
Now pyudev raises DeviceNotFoundByFileError which does not inherit
from EnvironmentError, so our 'except' block in hardware.py no longer
catch the exception. It broke unit tests, but it can also potentially
break the deploy.

This patch updates hardware.py to catch both old a new exceptions.

Change-Id: Iaefd6089f6f766a241054d8e132b2f3098c8130d
Closes-Bug: #1522756
2015-12-07 16:47:29 +01:00
Dmitry Tantsur
c474a5ac6c Support Linux-IO in addition to tgtd
The iSCSI extension now tries to use Linux-IO first (via rtslib)
and falls back to tgtd if Linux-IO can't be used (e.g. in the CoreOS-based
image which uses containers).

Change-Id: I9cc7a30d9c93c445a66d183146e9260c2b096d33
Closes-Bug: #1504562
2015-11-30 18:38:03 +01:00
OpenStack Proposal Bot
f4ad4d7500 Updated from global requirements
Change-Id: I4be0502eaf94ed3a400180ddd9da45235eabf19a
2015-11-27 22:37:51 +00:00
Jenkins
c55f0a6ad7 Merge "Updated from global requirements" 2015-11-24 02:23:46 +00:00
Jenkins
4ba04475ec Merge "Add support for streaming raw images directly onto the disk" 2015-11-21 19:17:23 +00:00
OpenStack Proposal Bot
863b47bb47 Updated from global requirements
Change-Id: I08e85ba14697ecf4d6a6734642f49cd8b1050b06
2015-11-19 15:56:28 +00:00
Jenkins
a2a71105c4 Merge "Refactor the image download and checksum computation bits" 2015-11-19 11:28:25 +00:00
Jenkins
b53bd28a20 Merge "Create partition at max msdos limit for disks > 2TB" 2015-11-18 20:42:21 +00:00
Lucas Alvares Gomes
e320bb8942 Add support for streaming raw images directly onto the disk
This patch adds support for streaming a raw image directly onto the disk,
that means no more time spent writing the image to a tmpfs partition prior
to copying it to the disk. Checksum computation is also done as the image
is being streamed. Streaming raw images is disabled by default, however
this behavior can be enabled by passing a key called "stream_raw_images"
with the value of True to the prepare_image() command of IPA.

For non-raw images this may not be possible, not sure about all image
file formats, but common types such as qcow2 requires random access to
the image file in order to be converted to raw.

Closes-Bug: #1505685
Change-Id: Iddf67907bc9b54bbd3065a97064cb5a3602cfe18
2015-11-18 11:19:40 +00:00
Lucas Alvares Gomes
65053b7737 Refactor the image download and checksum computation bits
Prior to this patch downloading and computing the checksum of the image
were done in different stages, after the download the file would need
to be re-read and the checksum was computed. This patch is changing it
by creating a ImageDownload class which computes the checksum at the same
time the image is being downloaded, this saves time and also make the
code more portable.

Related-Bug: #1505685
Change-Id: I71f9f2bd9a62a6a6cc474d0ae519591cea6381d6
2015-11-18 11:19:38 +00:00
Lucas Alvares Gomes
c21409e98b Follow up patch for da9c3b0adc67efa916fc534d975823c0a45948a1
This patch is a follow up patch fixing some nits left by the review
da9c3b0adc67efa916fc534d975823c0a45948a1, this patch adds the
wwn_with_extension and wwn_vendor_extension root device hints to the
"serializable_fields" list attribute of the BlockDevice class and fixes
some tests.

Change-Id: I6039be535988319276f9ac355c80997d34328ce8
2015-11-18 09:56:09 +00:00
Yolanda Robla
a01c4c90eb Create partition at max msdos limit for disks > 2TB
Currently there is a problem on partition creation for MBR
case. If disk exceeds 2TB, partition creation fails because
we are hitting max msdos limit. Detect total disk size, and if
it exceeds that limit, create the partition at the end of legal
limits.

Fixes-Bug: #1517077
Change-Id: I11dd3f11eaa6af764151b442768d10289ced6d3f
2015-11-18 10:48:46 +01:00
Jenkins
4bd9fa042e Merge "Updated from global requirements" 2015-11-17 23:42:19 +00:00
Jenkins
39bdbdd357 Merge "determine tgtd ready status through tgtadm" 2015-11-17 23:40:08 +00:00
Jenkins
5dd57838d1 Merge "Support proxies for image download" 2015-11-17 23:01:43 +00:00
Vladyslav Drok
54c901e8d5 Support proxies for image download
This change adds proxies parameter to requests.get method when
downloading images, and also sets no_proxy environment variable,
as requests does not support such parameter directly.

Implements: blueprint agent-image-proxy

Change-Id: I000ff9d0d4f5bde4766d085dc5a1c6cea1949bc5
2015-11-17 11:12:12 -08:00
Jenkins
0ca90d8193 Merge "Extend root device hints for different types of WWN" 2015-11-17 03:55:51 +00:00
OpenStack Proposal Bot
d97dbf20cc Updated from global requirements
Change-Id: I1ad1c600498f4d5934fa77663f19fba766e4331f
2015-11-17 02:26:33 +00:00
Lucas Alvares Gomes
da9c3b0adc Extend root device hints for different types of WWN
This patch is extending the root device hints to also look at
ID_WWN_WITH_EXTENSION and ID_WWN_VENDOR_EXTENSION from udev.

Prior to this patch the IPA ramdisk only cared about ID_WWN but in some
systems in some platforms with a RAID controller, this ID can be same
even if they are different disks (see bug 1516641).

Closes-Bug: #1516641
Change-Id: Ic3e9a1111dfcc99702190c173562a0dccf5f94c4
2015-11-16 14:58:24 +00:00
Naohiro Tamura
505b34575c Fix to preserve double dashes of command line option in HTML.
This patch fixes the ReST doc so that generated HTML file can keep
double dashes of command line option by enclosing the option in double
back quote such as ``--standalone`` and ``--debug``.

Change-Id: Icf25ff8ddfb7c04d82d6e63885cad0ec62e86cba
2015-11-16 09:29:50 +09:00