713 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
74bd6142be Updated from global requirements
Change-Id: I8e384f75e37643cf886128bc8e80239440fc0a61
2015-08-04 00:53:38 +00:00
Jenkins
4961b32710 Merge "Remove openstack.common package" 2015-08-03 19:35:57 +00:00
Jenkins
bde6ed5570 Merge "Improve IPA logging and exception handling" 2015-08-03 16:31:47 +00:00
Sergey Vilgelm
d5b7eb0871 Remove openstack.common package
ironic_python_agent contains unused oslo-incubator modules,
so let's remove them.

Change-Id: I2b8f84bf8a68d155fe123487f9b5624bb94e806b
2015-08-03 18:39:13 +03:00
OpenStack Proposal Bot
ae8538b6e5 Updated from global requirements
Change-Id: Ib16ff47bd1d6991493df69522ff048269e1960d1
2015-07-29 03:46:44 +00:00
Josh Gachnang
9f2ea824ec Add node param to base erase_block_device
The param was added to the GenericHardwareManager but it wasn't added
to the base class.

This is a breaking API change for the hardware managers.

Change-Id: Ia73fe14308986496e3a4f8d71bc2298a9130cffa
2015-07-28 16:57:42 -07:00
Josh Gachnang
59281ecda8 Improve IPA logging and exception handling
Debugging the agent is a huge pain point. Tracebacks are rarely logged,
error messages are often only returned via the API, and lack of
info logging makes it hard to determine where some failures occur.
Some errors only return a 500 with no error message or logs.

Change-Id: I0a127de6e4abf62e20d5c5ad583ba46738604d2d
2015-07-28 09:37:43 -07:00
OpenStack Proposal Bot
c641371ace Updated from global requirements
Change-Id: I687913f3bc98b6a582038d7e99e2eda7f0b4cb94
2015-07-24 18:37:59 +00:00
OpenStack Proposal Bot
3eda19a0ae Updated from global requirements
Change-Id: I2dcc84032cec3ba59da53dd8f5ee367ea09b24c5
2015-07-22 04:55:54 +00:00
Jenkins
9e43dc64f8 Merge "Add Python3 support" 2015-07-20 12:32:22 +00:00
OpenStack Proposal Bot
cf9dc325c2 Updated from global requirements
Change-Id: I30d01cb92892ef86b64b3c06b229dce18066ec23
2015-07-17 16:13:25 +00:00
Jim Rollenhagen
d71258b1ea Change Dockerfile to use Debian as a base
Ubuntu licensing does not allow for distributing derivatives of Ubuntu,
including containers based on Ubuntu. We currently publish a CoreOS PXE
image with an IPA container embedded. Basing this container on Ubuntu
appears to violate Ubuntu's license. Let's move to Debian to fix this.

Also remove the python3 purge as python3 doesn't exist in the Debian
base image.

Closes-Bug: #1475325
Change-Id: I051e3123f0cd1e66b5e3bae727559fe31467791b
2015-07-16 14:38:22 +00:00
OpenStack Proposal Bot
4c9f318e0f Updated from global requirements
Change-Id: Ic5c39db8c5d6118cf02079e0758e38ada5fda4e0
2015-07-15 20:41:26 +00:00
Lucas Alvares Gomes
06eed473fb Add Python3 support
This patch add Python 3 support for IPA. We still need to enable it on
gate to avoid code breaking the support from sneaking in.

Partial-Bug: #1474896
Depends-On: I5a774eaa8d978f4d50faca4dc1b03a87fb194ce2
Change-Id: If47c0797b63d2914b3c47aba62ec5201301b6c33
2015-07-15 17:12:08 +01:00
Jenkins
fdf7b8d882 Merge "Fix iso-image-create to work on RedHat distros" 2015-07-14 02:05:34 +00:00
Josh Gachnang
d6afe62e94 Fix using non-existent mock method
Mock 1.1.0 throws an error when using assert* methods that don't
exist.

Change-Id: I3fff6df417a29882f1e8672c309edc6d4201cdc2
2015-07-10 10:03:25 -07:00
Arun S A G
50c23c4cda Fix iso-image-create to work on RedHat distros
- RedHat distros keep isolinux.bin at /usr/share/syslinux
- Do not use /usr/lib/syslinux blindly
Closes-Bug: #1472379

Change-Id: I2d58913090f2d35cc6446cf769b1f6618f29f849
2015-07-07 13:04:47 -07:00
Jenkins
a0f7485460 Merge "Convert Int to String for shred execute" 2015-07-06 23:49:37 +00:00
OpenStack Proposal Bot
edcba08ede Updated from global requirements
Change-Id: Iea5033e9232b405c7fa371943404cbf2614880c2
2015-07-03 20:44:16 +00:00
Jenkins
09c2195bbe Merge "Switch to oslo.service" 2015-07-02 20:03:00 +00:00
Jacob McCann
b4dea3eb41 Mark required packages before cleanup
Mark required packages before purging and autoremove'ing for cleanup.

* python-minimal - For /usr/bin/python
* python-setuptools - For required setuptools module

Change-Id: Ibe5cbe9090041db2d158cfccee82c66dcfe3fb2f
Closes-Bug: #1470199
2015-07-02 10:19:03 -05:00
Jacob McCann
c0769691bd Convert Int to String for shred execute
Was running into 'expected string, int found' when calling
shred with an Int for iterations.

Change-Id: Iffce247caba5b0d62ac89b6411402c8d975cfd2f
Closes-Bug: #1469838
2015-07-01 15:08:18 +00:00
Sergey Vilgelm
64fd0fe37f Switch to oslo.service
oslo.service has graduated, so ironic should consume it.

Change-Id: I4560f3050bd8ce7e0c40a5cd5fb6a5a1b410f728
Partial-Bug: #1466851
2015-06-24 11:19:07 +02:00
Jenkins
4c1d2cdb19 Merge "IPA:'shred' utility to use configured iterations" 2015-06-22 10:11:11 +00:00
Mathieu Mitchell
63851b72ee Use host_device mode for qemu-img
When writing to a host device, possibly one that does not support holes,
it is preferable to use host_device instead of the raw mode. Not doing so
means holes are simply skipped and the deployed image is invalid.

Change-Id: I24f8b4daf099af8bb03c3a4f6417b6c87bd49021
Closes-Bug: #1466632
2015-06-18 16:00:25 -04:00
Anusha Ramineni
02f78453b2 IPA:'shred' utility to use configured iterations
Today, there is no option to configure number of iterations to be
done for shred block device erasing and defaults it to 1. This patch
adds a configuration option to change the number of passes to be done
to erase a block device.

Change-Id: I1921d33a6b364c4682b6c9baaf61ac092cfa11d7
Partial-Bug:#1465130
2015-06-18 09:26:36 +00:00
OpenStack Proposal Bot
6c28c22ad3 Updated from global requirements
Change-Id: Idd15febd15fa7565954f5664bd259475552d8547
2015-06-16 19:16:40 +00:00
Gagan Mallarapu
24d99bdbb2 Fixes CoreOS GPG expired key.
Closes-Bug: #1463632

Change-Id: Ia6f8ff9695c80b668388233a5463f775e790b57f
2015-06-13 01:23:27 +00:00
Jenkins
a798a19056 Merge "Add power_off command in standby extension" 2015-06-12 16:54:02 +00:00
OpenStack Proposal Bot
9fb9245c00 Updated from global requirements
Change-Id: Ia9118ba52ed1a2ff4e2c71611b64b6393b38868e
2015-06-11 00:42:31 +00:00
Jenkins
e4dc68b6ce Merge "Add 'pbr' to the requirements" 2015-06-10 01:57:04 +00:00
Ramakrishnan G
be36ed6903 Add power_off command in standby extension
This commit adds a new command power_off to
standby extension which runs shutdown -h now
on the system. This commit also adds mappings
for /proc and /sys in cloud-config.yml for the
agent service spawned.

Partial-Bug: #1451310
Change-Id: I2a5f984af26bbbe03002bb8c367c8c6af8d91434
2015-06-09 23:44:08 +00:00
John L. Villalovos
110214b8ad Add 'pbr' to the requirements
Add 'pbr' to the requirements.

Change-Id: I6e01e2994ce1351068ead870789d1898ac1a972f
2015-06-09 16:37:30 -07:00
OpenStack Proposal Bot
69b0b512c2 Updated from global requirements
Change-Id: I180828934b5c2b0ff51ab77a8203ff9c58895047
2015-06-09 19:58:37 +00:00
Jenkins
0a416af0c8 Merge "Make sure sysrq functions are enabled in reboot.sh" 2015-06-08 15:38:07 +00:00
Jim Rollenhagen
601201d120 Update hacking and fix hacking violations
This does a few things:

* Update hacking to the version in global-requirements. Old hacking was
  installing a version of pbr that was breaking other packages.

* Fix all the hacking/pep8 rules that updating hacking raised.

* Do some general docstring cleanup, while already in there cleaning up
  a bunch of docstrings due to H405 violations.

Change-Id: I1fc1e59d4c3d7b14631f8b576e3f3854bc452188
Closes-Bug: #1461717
2015-06-03 16:58:57 -07:00
Ramakrishnan G
8faa3ae9d5 Make sure sysrq functions are enabled in reboot.sh
This commit echoes '1' to >/proc/sys/kernel/sysrq to
make sure that sysrq functions are enabled before
invoking them.

Change-Id: I88697efbc1bd0dec5ed4cbcd8d89b0b5d0734bdd
2015-06-02 12:41:06 +00:00
Andreas Jaeger
141191bcfa Rename gendocs tox environment
All other openstack projects use docs environment, use the same
name for ironic-python-agent as well.

Change-Id: I3315e111bd5994d2af2a7a2d0079a09e3d4e4d8b
2015-05-20 16:37:56 +02:00
Jenkins
8a94a8979c Merge "Use mkdtemp for mounting virtual media device" 2015-05-14 17:56:49 +00:00
Jenkins
5697bd40b1 Merge "Fix error in in-band disk erase using shred" 2015-05-12 09:35:12 +00:00
Anusha Ramineni
8cef029d0d Fix error in in-band disk erase using shred
in-band disk erase using shred fails with error "'module' object has no
attribute 'ProcessExecutionError'". This commit is to fix the issue.

Change-Id: Ia0c426074b2f0e9d534ed96a3e213933160edc61
Closes-Bug:#144799
2015-05-08 15:02:36 +05:30
OpenStack Proposal Bot
daa28cd463 Updated from global requirements
Change-Id: I7b8985d21231c5bf6db7a5bc7e8d0c85e7ac5bda
2015-05-07 16:32:23 -07:00
Jim Rollenhagen
7d1c852bee Use latest pip in Docker build
Turns out we're using whatever Ubuntu ships, which could go badly. :)

Change-Id: I2d41a9036f84f2ebcab96a5137642a4225d2b053
2015-05-07 16:32:07 -07:00
Anusha Ramineni
efba46a8a2 Fix inband disk erase using agent_ilo driver
In-band disk erase using shred fails for agent_ilo driver as it tries to
erase the virtual floppy device attached.This fix is to skip the virtual
media devices and continue with other disks.

Change-Id: I26745985382d440f7d4b3fbfffb14545067fcca6
Closes-Bug:#1450298
2015-05-07 09:51:11 +05:30
Ramakrishnan G
b735b3c9d1 Use mkdtemp for mounting virtual media device
When using virtual media, restarting ironic-python-agent
leads to errors like 'File exists'.  This is because
we use static directory (/vmedia_mnt) as mount path
and we don't remove it. It's better to use mkdtemp to create
a temporary directory for mounting virtual media
device.

Change-Id: Ibb4c3d3a2024cf51ef198bd396fb9e86ad72a320
2015-05-06 02:47:48 -07:00
Jay Faulkner
1394771fcc Error doc builds on WARN or ERROR
This will ensure that any new commits to IPA won't pass a docs job if
they introduce improperly formatted doc strings. This will enable us to
ensure our generated documentation remains of a high quality.

I will be following this up with a change to project-config to have IPA
run the docs job on every change.

Change-Id: I90236225623298a7070db1ff22acb44dddb1c520
2015-04-06 19:03:17 +00:00
Jay Faulkner
67a48c8cb1 Add PYTHONHASHSEED=0 to venv tox env
This is the environment used to generate docs in the check/gate, not
gendocs.

Change-Id: Ia026425f1a56d59c8d87a3ad44610c26fc286fad
2015-04-06 08:35:08 -07:00
Jenkins
e1ca8f4edf Merge "Docs on HardwareManager, building, and workflow" 2015-04-01 23:09:30 +00:00
Jay Faulkner
ae369492c1 Docs on HardwareManager, building, and workflow
Documentation on IPA hardware managers, how to build an IPA ramdisk
and some ways Ironic interacts with the IPA API.

Change-Id: I94db188e1e1333e71437f551d1dfe00acdd7fc8a
Co-Authored-By: Josh Gachnang <josh@servercobra.com>
2015-04-01 14:02:20 -07:00
Jenkins
a1c87672ea Merge "Fix Sphinx Autodoc WARNING/ERROR in docs build" 2015-04-01 00:39:21 +00:00