2583 Commits

Author SHA1 Message Date
Pavlo Shchelokovskyy
9fadf09bf1 Remove docs in proprietary formats
Replace MS Office DOCX file with SVG one.

Change-Id: I37e9132de735e8fcdf2ffe86c08280a8b7c79b6a
2015-02-17 13:42:03 +02:00
Pavlo Shchelokovskyy
86f197cdbf Fix file permissions in project
Remove erroneous execution bit from some files in repository.

Change-Id: Ib25b60b1b9f23b12b92a2bb397e9d8f22f86b42e
2015-02-16 19:51:20 +02:00
Jenkins
7be9555ace Merge "Remove deploy_is_done() from AgentClient" 2015-02-13 16:16:17 +00:00
Jenkins
dcff0511c1 Merge "AgentVendorInterface: Move to a common place" 2015-02-13 16:16:08 +00:00
Jenkins
4372c33dc5 Merge "Imported Translations from Transifex" 2015-02-13 14:18:29 +00:00
Jenkins
2baacac366 Merge "Add support for local boot" 2015-02-13 13:29:39 +00:00
Jenkins
dcadd6b24a Merge "Stop console at first if console is enabled when destroy node" 2015-02-13 10:02:25 +00:00
Jenkins
8a98351b82 Merge "Updated from global requirements" 2015-02-13 10:01:47 +00:00
OpenStack Proposal Bot
231dafd552 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ideba9bbbc8a915e3b791d4a4009cf77f8b7233f8
2015-02-13 06:14:18 +00:00
OpenStack Proposal Bot
26ff837b03 Updated from global requirements
Change-Id: I73d982b8f1a3346129c6f24d62df25a4dd35354d
2015-02-13 01:52:55 +00:00
Lucas Alvares Gomes
0d80093070 Remove deploy_is_done() from AgentClient
The deploy_is_done() method from the AgentClient is very implementation
specific, so this patch is moving it into the AgentVendorInterface class
for the agent driver.

Change-Id: I92cdac24d5225ecfcb858bacdd672c3f8c0efed2
2015-02-12 14:21:27 +00:00
Lucas Alvares Gomes
aa350eec76 AgentVendorInterface: Move to a common place
This patch is moving the common pieces of the AgentVendorInterface to
a common place and into a new class called BaseAgentVendor which can
be overwritten and used by other drivers using IPA as their deployment
ramdisk.

The tests were also splitted and a new test_deploy_is_done() have been
added to the AgentVendorInterface test case.

This patch is a forklift, when IPA becomes the default ramdisk for
all drivers we might want to promote many of it's methods (e.g lookup,
heartbeat, ...) to the BaseVendor class.

Change-Id: I1e8af0c9a5f68e60f81a408defdbdf8c4d813d4e
2015-02-12 13:48:08 +00:00
chenglch
ab551a1774 Stop console at first if console is enabled when destroy node
Previously, when node was deleted with console enabled,
the console process was not stopped.
Now stop console at first, then delete the node.

Closes-Bug: #1418804
Change-Id: Ia994b20c42df0a1f2882889a1be6dd4f426ee569
2015-02-12 06:58:27 -05:00
Michael Davies
ea25926c26 Add logical name support to Ironic
Everything that is tracked in Ironic is done via UUID. This isn't very
friendly to humans.

This change adds a new concept to ironic, that being the <logical name>,
which can be used interchangeably with the <node uuid>.  Everywhere a
<node uuid> can be specified, we are able to instead specify a <logical
name>, if such an association exists for that node.

APIImpact:
    This raises the X-OpenStack-Ironic-API-Version to 1.5, and
    adds a new "name" property to nodes, which can be substituted
    for the UUID in requests.

    This also adds a 'node' parameter for 'GET /v1/nodes/validate'. This
    parameter can be a node's UUID or name. The existing 'node_uuid'
    parameter is still supported.

DocImpact

blueprint: logical-names

Co-Authored-By: Devananda van der Veen <devananda.vdv@gmail.com>
Change-Id: I505181a1df064194848e3d5b79d01746024ce037
2015-02-11 09:22:36 -08:00
Jenkins
cf9932fe63 Merge "Use prolianutils module for ilo driver tests" 2015-02-10 05:06:08 +00:00
Lucas Alvares Gomes
a4cf7149fb Add support for local boot
This patch implements the part that reads the specified boot_option in
the node.instance_info['capabilities'] that have been passed to Ironic by
the Nova Ironic Driver and pass that information to the deploy ramdisk
by adding it to the kernel cmdline in the PXE configuration file that
will be generated to that node.

This patch also makes sure that we clean the PXE configuration files for
the node marked to local boot after it's deployed, so that any attempt
to boot it from the network will not work.

This patch only apply to the pxe_* drivers, because the blueprint is
about adding local boot support for deployments that uses partition
images. The agent driver right now supports full disk images only.

Implements: blueprint local-boot-support-with-partition-images
Change-Id: Ide08e2b41dcf74c69dfbce242112da701fa15187
2015-02-09 16:46:35 +00:00
Naohiro Tamura
5fd47bd095 Fix chown invalid option -- 'p'
The chown command '-p' is invalid as below:

stack@ubuntu:~$ sudo chown -R ironic -p /tftpboot
chown: invalid option -- 'p'
Try 'chown --help' for more information.

The '-p' must be a typo of '-P'. But the manual says
'-P' option is default. So '-p' has been removed.

-P     do not traverse any symbolic links (default)

Change-Id: Ic012a6a991645a128389367f07c9709366a09822
2015-02-09 23:17:23 +09:00
Jenkins
a6e53f840f Merge "Fix argument value for work_on_disk() in unit test" 2015-02-09 12:40:23 +00:00
Erhan Ekici
32437956cc ipmitool drivers fail with integer passwords
ironic.drivers.modules.ipmitool gives "Failed to create the password file.
expected a character buffer object" WARNING message and it causes "Error:
IPMI call failed: power status..". "expected a character buffer object" is
a python error message and raised when write() function expected string as
input type  but gets something else (i.e. int / numeric) if ipmi password
is set just using numbers(i.e 12345678)

This simple bug fix solves the issue by casting "password" to string.

Change-Id: Id9645e06eb707ef21a7cb99c420309f54a95aa9b
Closes-Bug: 1416298
2015-02-09 04:48:18 +00:00
Jenkins
c14e3dc46e Merge "improve iSCSI connection check" 2015-02-07 17:11:00 +00:00
Jenkins
a72fb0df48 Merge "Add the subnet creation step to the install guide" 2015-02-07 17:03:45 +00:00
Jenkins
30ebf47946 Merge "Conductor errors if enabled_drivers are not found" 2015-02-07 01:15:46 +00:00
Jenkins
53e09e0688 Merge "Add VirtualBox drivers and its modules" 2015-02-07 01:02:47 +00:00
Michael Turek
440bfdd709 Add the subnet creation step to the install guide
Currently the subnet creation step is not documented
in the baremetal installation guide. This is a necessary
step and should be included

Change-Id: I20e5ecd982ae724d653a2bdf89ea86527df57dff
Closes-bug: #1418659
2015-02-05 17:48:58 +00:00
Jenkins
fad9854bef Merge "Correct typo in agent_client" 2015.1.0b2 2015-02-05 16:37:53 +00:00
Chris Krelle
235641fc4c improve iSCSI connection check
This patch improves the iSCSI connection verification by polling
/dev/disk/by-path for the iSCSI connection. This should ensure that
the iSCSI block device is seen by the file system after login.

It also removes the hard coded sleep in the login method.

Change-Id: Ibf6b6a15471a6130f33788b8c3f26d4577bf79a3
Closes-bug: #1417307
2015-02-05 08:21:26 -08:00
Jenkins
859ab83730 Merge "Remove min and max from base.Version" 2015-02-05 15:31:10 +00:00
Jenkins
06ea4e127b Merge "Add MANAGEABLE state and associated transitions" 2015-02-05 15:11:54 +00:00
Lucas Alvares Gomes
48ddf0b927 Remove min and max from base.Version
The min and max attributes from the base.Version class is not needed,
it was set and used before when checking versions but right now we only
use the major and minor attributes.

Change-Id: Ic501db26a00c96ca55eb8fbcfc7b318599a48158
2015-02-05 12:48:23 +00:00
Jenkins
5b9f1ca53a Merge "Raise minimum API version to 1.1" 2015-02-05 12:13:09 +00:00
Jenkins
2fb3144a00 Merge "Add list of python driver packages" 2015-02-05 12:06:49 +00:00
Jenkins
2c0a090bd5 Merge "Refactor ilo.deploy._get_single_nic_with_vif_port_id()" 2015-02-05 11:43:32 +00:00
Jenkins
0a4c4514fc Merge "Add policy show_password to mask passwords in driver_info" 2015-02-05 10:36:28 +00:00
Devananda van der Veen
56ea9a6ce2 Add list of python driver packages
Add a list of python packages which are loaded by hardware drivers
but not included in global-requirements.

Change-Id: Iff8dc91e3cae0d8ecf26d5afbd0c60b673c16521
2015-02-05 02:07:46 -08:00
Jenkins
e256d46c01 Merge "Updated from global requirements" 2015-02-05 04:32:34 +00:00
Jenkins
b4f1db8868 Merge "Move oslo.config references to oslo_config" 2015-02-05 04:00:29 +00:00
Zhenzan Zhou
efb321c71a Add policy show_password to mask passwords in driver_info
Ironic API already enforces admin role to run node-show. So a new
policy show_password is added to control if plain text passwords
in driver_info should be masked or not before sending back to
API calls. The default is masking password for all cases.

Change-Id: Icd3e6be049376bf7b4468f0c149a72a06643da32
Closes-Bug: #1406191
2015-02-04 19:35:53 -08:00
Devananda van der Veen
a53a003030 Conductor errors if enabled_drivers are not found
The conductor service should fail during startup if a configured driver,
eg. one that is specified in "enabled_drivers", is not found. At the
moment, it merely ignores missing drivers.

In addition to adding a check that all configured drivers are loaded,
this patch re-arranges some of the initialization of ConductorManager
such that an exception during init_host() does not result in
secondary exceptions being logged and obfuscating the cause, namely,
that no drivers were loaded.

Closes-bug: #1417954

Change-Id: I6a96f4b49891c92859479656fe36d2bbd38fe602
2015-02-04 19:19:23 -08:00
Devananda van der Veen
5dbd06f89d Add MANAGEABLE state and associated transitions
This patch adds the MANAGEABLE state, and associated transitions to and
from AVAILABLE, as well as a new RPC method to initiate transitions
between provisioning states.

It also adds a new VERBS entity to ironic/common/states.py to hold the
action-phrases, as described in blueprint new-ironic-state-machine. This
provides a single place to check whether a requested target state is
allowed to be requested by checking if the value is "in" the keys of
this dictionary. It also provides a mapping for two phrases which are
currently inconsistent:
  target:deleted -> action:delete
  target:active  -> action:deploy

It updates the API controller for nodes.py without changing the HTTP
status codes which are returned in exception cases. The changes in unit
tests now prepare the node appropriately, but do not change the
assertions being tested.

Juno allowed the rebuild of a failed deploy to be initiated by PUTting
a target state of "active"; this behavior, while inconsistent with the
new state machine, is added to the state model for compatibility, now
that stronger checking is done within the API service, based on the
actual modelling of state transitions.

Implements: blueprint new-ironic-state-machine

Co-Authored-By: David Shrewsbury <shrewsbury.dave@gmail.com>
Change-Id: Id0af5a607b7432d287eef643c1e30e324dc4f879
2015-02-04 19:11:07 -08:00
Devananda van der Veen
b0af29e664 Raise minimum API version to 1.1
When we added microversion support to the API, the initial and minimum
version was set to 1.0. However, there were five previous API changes
since the Juno release which are not discoverable through the API
versioning scheme.

The 1.0 tag should actually indicate "Juno stable API". This patch
advances the minimum API version to 1.1, retroactively changing the
versions applied by two prior features:

* 1.1 -> 1.2 Rename NOSTATE to Available
* 1.2 -> 1.3 Add Node.driver_internal_info

Also, the default version applied (when no
X-OpenStack-Ironic-API-Version header is supplied) is raised to 1.1. A
client request that does not specify the header will retain the same
behavior as before this patch -- namely, the behavior prior to commit
I34bf7fa1b21580337c18206798dd8e9dfe11ba09. A client request which
specifies a version of 1.0 will result in an HTTP 406 Unsupported error
code today.

This patch leaves open the possibility for retroactively adding support
for the Juno API in future patches during the Kilo cycles, if necessary.

Change-Id: I7bc10ce72a461b8b68f5e07e1f27ec053f72a41a
2015-02-04 18:29:51 -08:00
Lin Tan
a14fe68e43 Correct typo in agent_client
Change K to Kilo to help seach.

Change-Id: I790c6539264d1c42de333ace9951f332c52799f3
2015-02-05 09:51:19 +08:00
Jenkins
5a5b72718b Merge "update docstring for driver_periodic_task's parallel param" 2015-02-05 00:14:47 +00:00
Jenkins
d937b0e050 Merge "Documentation: Describe the 'spacing' argument" 2015-02-05 00:14:37 +00:00
Wei Du
f004f41614 Fix argument value for work_on_disk() in unit test
The work_on_disk() function is defined with 7 normal arguments
and 2 optional arguments. The 'node_uuid' should be a string
containing uuid for the node, mainly for logging purposes.

However, there are several places in the unit test where the 7th
argument to work_in_disk() is False. This commit will provide a
fake string as the node_uuid for the function.

Change-Id: I03563ce0bda96069173060b412293a0a83101e2e
Closes-bug: #1417837
2015-02-05 00:04:29 +00:00
Jenkins
f0fb70f88d Merge "Update agent driver with new field driver_internal_info" 2015-02-04 22:58:22 +00:00
John L. Villalovos
150309f10a Documentation: Describe the 'spacing' argument
Explain that the 'spacing' argument takes number of seconds.  So
'spacing=5' means to run every 5 seconds.

Change-Id: I3b58fbe5c0adfd7f659d6c098533804bbf00d778
Signed-off-by: John L. Villalovos <john.l.villalovos@intel.com>
2015-02-04 13:26:48 -08:00
Jenkins
f099e69762 Merge "Rename provision_state to power_state in test_manager.py" 2015-02-04 19:01:11 +00:00
Ruby Loo
920687733f update docstring for driver_periodic_task's parallel param
This updates the docstring for the parallel parameter to make it more
obvious what a value of False means; that it will cause the conductor's
other periodic tasks to be blocked.

Change-Id: Idc4504fdf5b08095f52d21ad938496c88daab742
2015-02-04 16:03:08 +00:00
Ramakrishnan G
c6f4431994 Use prolianutils module for ilo driver tests
This change adds all components on proliantutils module
to third_party_driver_mocks. This enables the ilo driver
tests to use the proliantutils module when it is available, and
use the mocks when proliantutils module is not available. This
commit modifies all the ilo driver tests to use the imported
proliantutils module (rather than mocking it completely).

Change-Id: Ief88b194374585c7cfc3c3804b4ea04620fe21e7
Closes-bug: 1416421
2015-02-04 14:25:34 +00:00
Jim Rollenhagen
63ee094213 Add documentation on parallel argument for driver periodic tasks
This adds documentation on the parallel argument that may be passed to
the driver_periodic_task decorator, and the potential pitfalls of it
being False.

Change-Id: Ib3e25fda2c90c2f68de5878ae353cf55e05fdb28
Implements: blueprint driver-periodic-tasks
2015-02-04 06:01:34 -08:00