93 Commits

Author SHA1 Message Date
chenxing
c28dd315bf Update the documentation link for doc migration
Change-Id: Ie3d175b4d910f49f8a54812926131448ff1ab4d5
2017-08-03 14:29:06 +00:00
leesea
112ab521ae Add selinux check in Troubleshooting PXE boot document
If node receiving DHCP address and failing to get kernel and/or
ramdisk, it maybe the selinux is enforcing.

We can let TFTP packet through selinux by setting:

setsebool -P tftp_home_dir 1

Change-Id: I574f8fdf819ea65dd9177c5ce9a78825ea4feec1
2017-07-26 08:32:00 +08:00
dparalen
c08fa16631 Docs migration conclusion
Change-Id: I3137d491822f5323d87ea4f988e7061ca1a215ba
Closes-Bug: 1702142
2017-07-24 17:30:50 +01:00
dparalen
c38ac86d53 Introducing the user content
Moving the user content down the mandatory directory path.

Change-Id: Icccf00cb22eab01c9ae7626f0997b9c362471e4d
Partial-Bug: 1702142
2017-07-24 17:29:40 +01:00
dparalen
93d6f69f70 Introducing the installation content
Moving the installation and upgrade guides down the mandatory directory
structure.  Had to change the upgrade headline level.

Partial-Bug: 1702142

Change-Id: If00d2e3d90ac89421c51d1b1530d7cc685fad78f
2017-07-24 15:28:57 +01:00
dparalen
cc7b98aa10 Introducing the contributor content
Moving the contributor "link" and API down the mandatory directory
structure.

Change-Id: I111cd55a06e40dc4db649728a5025354a85b3e1d
Partial-Bug: 1702142
2017-07-21 10:22:33 +02:00
dparalen
aa5ad2ec16 switch from oslosphinx to openstackdocstheme
Change-Id: I78740d50bcc79137bb7a4172c2695cc670a595ce
Partial-Bug: 1702142
2017-07-10 16:21:56 +02:00
Chris Krelle
f61a75aaa0 add disabled option to VALID_ADD_PORTS_VALUES
This allows inspector to create nodes without creating ports for the node.

Change-Id: Ife4c06d20e9217f0a308fef19177884596c6cf2d
Closes-Bug: #1693892
2017-06-23 10:09:45 -07:00
Jenkins
095b4e3d72 Merge "Completely remove support for setting IPMI credentials" 2017-05-31 15:04:49 +00:00
Dmitry Tantsur
e05257035c Completely remove support for setting IPMI credentials
This experimental feature was deprecated in the Ocata release,
as it was found unstable, untested and dangerous.

API version is bumped to 1.12 to indicate this change to users.

Change-Id: I1aad6ddfd03946edc19ae510accd6c8daf5fc268
Closes-Bug: #1654318
2017-05-26 14:29:13 +02:00
Jenkins
dacd376320 Merge "Bump pydot2 to pydot3" 2017-05-25 14:43:06 +00:00
Jenkins
65945d1086 Merge "Inspector rules API does not return all attributes" 2017-05-17 15:35:40 +00:00
dparalen
b1ce6f9ba3 Bump pydot2 to pydot3
pydot2 is incompatible with python3[1]. Bumping the pydot release (through
the test-requirements.txt) rather than pinning basepython to fix this.

Also updating the states.svg with the tox -egenstates result of running
pydot3

[1] https://github.com/erocarrera/pydot/issues/107

Change-Id: I9aa0e701af3915b39e1a5681c2105a6afb687dd2
Depends-On: I82e3651eefd3186c9e131b0db29a328967fb3161
2017-05-17 16:51:32 +02:00
dparalen
ade23652fb Allow timeout in active states
While reviewing the API--Worker split spec we discussed the issues
following from selecting oslo.messaging as the queue implementation.
Because of the at-most-once semantics of oslo.messaging it may well happen
that a task will end up hanging indefinitelly in an active state.

This change allows the node_cache.clean_up() function to pick-up these
"tasks" and "terminate" them by setting the error state.

Change-Id: I696f14d486f10d84aaae5675446138ebdd047ecd
Depends-On: Iaeb99ab1954a1d5303c9bd10b81f7f8d6aa7e731
2017-05-10 15:11:59 +02:00
Annie Lezil
33a28f34f8 Inspector rules API does not return all attributes
When using the Inspector rules API to query existing introspection
rules, inspector does not return 'invert' or 'multiple' attributes of
conditions associated with the rules.

Change-Id: I08606cea676ecf57bbb3b73077c4832240fbe0d2
Closes-Bug: #1670372
2017-05-05 20:01:53 +02:00
Jenkins
de5a3fe03b Merge "Add new transaction starting -> error on timeout" 2017-04-27 16:53:31 +00:00
Jenkins
75219a1758 Merge "Adds node state to the API response data" 2017-04-27 13:32:18 +00:00
Jenkins
c9d3191cf9 Merge "Allow hooks to have dependencies on other hooks" 2017-04-27 12:59:24 +00:00
Anton Arefiev
9f125629fe Add new transaction starting -> error on timeout
Exception along the `starting` inspection code may causes
`no defined transition` error as there is no transition for
`starting` state on timeout event.

Also it could happen if small timeout configured, so there
is not enough time for starting -> waiting transition,
e.g. new greenthread spawn is blocked due to missing of
available slots.

Closes-Bug: #1662494
Change-Id: I66cf0374a2ba4ab4692110daafd4a3d2d20d56d6
2017-04-27 13:57:43 +03:00
yaojun
fc2e029fa6 Adds node state to the API response data
This adds the node state when the GET /v1/introspection/<node uuid or
name> API is performed.

Change-Id: I81c6834933f789cb644a854313aacaf49a4856a7
Closes-Bug: #1665664
2017-04-27 16:35:47 +08:00
Dmitry Tantsur
10522e0963 Allow hooks to have dependencies on other hooks
Also refactored hooks and got rid of compatibility layer with old
stevedore.

Change-Id: I81f21df7ebad4df893539ec5f0a03064e7c0a263
Closes-Bug: #1681751
2017-04-26 19:13:52 +02:00
Dmitry Tantsur
782ee92c45 Set pxe_enabled on new and existing ports on introspection
Set it to True for the PXE-booting port, to False for all the others.
Create an extended functional tests covering various operations with ports.

Change-Id: I435a5c04884b6c4da70cb7260b305fbde23eebc0
Closes-Bug: #1667472
2017-04-18 10:20:49 +00:00
Bob Fournier
07c94392e2 Use processed lldp data, if available, for local_link_connection plugin
This change uses the processed lldp stored by the lldp_basic plugin
to populate the local_link_connection port_id and switch_id.

If processed lldp data cannot be found, the raw lldp data is processed by
this plugin as currently implemented.  This patch changes the
processing to use the construct lib as implemented in the common
definitions in lldp_tlvs.py to parse the LLDP TLVs.

A minor change is also made to pass node_info into warning log messages.

Change-Id: Iae3fa41736898df2c73350d8dc61ed24f2963e32
2017-04-10 14:34:22 -04:00
Tao Li
392ba0bc5f Update the url of ironic inspection documentation
The url is invalid for ironic inspection documentation, so change it
to a new valid url.

Change-Id: I53ca59094e78c3966e82e4960a143bbc86fb90f8
2017-03-30 08:52:54 +08:00
Jenkins
c74aff0387 Merge "Mention state machine diagram generation in contrib guide" 2017-03-24 14:13:46 +00:00
Jenkins
2a5b721170 Merge "Fix inconsistent service naming in install guide" 2017-03-23 14:50:15 +00:00
Anton Arefiev
d03a8cc932 Mention state machine diagram generation in contrib guide
Change-Id: I92cd5eb5d503c8294c30c22eab2b01899e2d5d88
2017-03-20 15:24:59 +02:00
Ramamani Yeleswarapu
6161081cdb Fix inconsistent service naming in install guide
This patch fixes inconsistent service naming and does a few minor
tweaks (for better readability) in the install guide.

Change-Id: Id884079e3ae0b1a6cb199b482c20c10a149690a0
2017-03-14 08:48:28 -07:00
Jenkins
96f9db50f9 Merge "Update the Version Support Matrix in install guide" 2017-03-07 11:11:10 +00:00
Jenkins
234731b74a Merge "Add fsm dot diagram generator" 2017-03-02 16:46:33 +00:00
Anton Arefiev
886d05ee64 Add fsm dot diagram generator
Add a tool which generates dot diagram from inspector state machine
using atomaton pydot convertor.

Also add generated svg diagram to docs.

Change-Id: I021812288f1833a6ebad2f90cbe862d40bd8d503
2017-03-01 14:46:28 +02:00
Anton Arefiev
762c404546 Update HTTP API docs with missing 1.9 API microversion
Change-Id: Ibead87ad4016a6aa8406be6f6c8604e8f18cd383
2017-02-28 11:15:13 +02:00
Ramamani Yeleswarapu
8ef07dbdbb Update the Version Support Matrix in install guide
This patch updates the Version Support Matrix.

Change-Id: I86d19a1322a8e1dad4f8a3c259a9d729bbff3f86
2017-02-23 09:13:23 -08:00
Anton Arefiev
51b2feb94d Update hardware inventory in docs
Add disks information and note root_disk section with root
device hints plugin.

Change-Id: If9c8973bfc103e879f27a57dc2d160d691482276
2017-02-15 13:22:14 +02:00
Anh Tran
c2c27bb5e5 Typo fix: infromation => information
Change-Id: I55d00254392df3c604cd9ab1ec4e3ecb891e2bd4
2017-02-08 16:05:43 +07:00
Jenkins
b455e238cd Merge "Add plugin to process basic management LLDP TLVs" 2017-02-03 11:17:44 +00:00
Moshe Levi
1dce3b12d3 Adding InfiniBand Support
InfiniBand is computer-networking communications standard
used in high-performance computing, features very high
throughput and very low latency.
This patch allow ironic-inspector to add the client_id
to ironic port extra. The client_id option allow pxe boot
from InfiniBand interface.

Closes-Bug: #1532534
Depends-On: Ifad453977e5d3be64b34e544f269835a72b4d73f
Change-Id: I479d54c29bcacb6bd5c1ab20033ae6e428b0e744
2017-02-01 08:34:38 -05:00
Bob Fournier
8834927d4c Add plugin to process basic management LLDP TLVs
This adds a plugin to process the raw LLDP TLVs stored in Swift for
the Basic Mgmt, 802.1, and 802.3 data sets and store the parsed data
back in Swift.  It implements the TLV processing as described in the
specification:
http://specs.openstack.org/openstack/ironic-inspector-specs/specs/lldp-reporting.html

Change-Id: I854826787ff045ffb2807970deaba8b77cbe277d
Closes-Bug: 1647515
Related-Bug: 1626253
2017-01-31 19:51:39 -05:00
Jenkins
c53d5d6c1c Merge "Update external links in the documentation" 2017-01-31 12:48:35 +00:00
Jenkins
2f15d7859d Merge "Allow diskless nodes introspection" 2017-01-30 14:28:33 +00:00
Dmitry Tantsur
d6c3ca1986 Update external links in the documentation
* Add a link to ironic-inspector-client documentation
* Remove the link to blueprints, we no longer use them
* Update the link to Ironic inspection documentation

Change-Id: Ia0ec933e8fe213ffea4a8ac389b6d2028ea7e9ec
2017-01-27 10:25:32 +01:00
Jenkins
d557080623 Merge "Deprecate setting IPMI credentials" 2017-01-26 18:10:42 +00:00
Dmitry Tantsur
6e2ea6242d Allow diskless nodes introspection
There is a demand to use introspection on diskless nodes to figure out
what is possible to figure out.

We might need more changes to properly support diskless nodes, this
change is just to allow people to play with it.

The property ``local_gb == 0`` for a diskless node.

Change-Id: I21b2f2c069fdbf767367ec3d1fbf77bab6292b25
Partial-Bug: #1554243
2017-01-26 17:08:56 +01:00
Dmitry Tantsur
635db52b4d Deprecate setting IPMI credentials
This feature is dangerous, barely maintained and not covered by any CI.
As it was hidden behind a configuration option, we can remove it without
breaking our API contract too much. This change deprecates the option,
and create an API version with this feature already de-activated.

Change-Id: I9e05c36b8c1194f4eeeb80c1f811e808854974c4
Partial-Bug: #1654318
2017-01-17 14:01:25 +01:00
Chris Krelle
74565133b0 Add troubleshooting step for virtual box
This patch adds a note on how to allow inspector to work on a virtual
box guest. This can be helpful for devs with limited access to test
environments.

Change-Id: I3c23594ad8a66861598057879018e37327999e60
2017-01-07 18:23:05 -08:00
Jenkins
a704c52e42 Merge "Document upgrade procedure" 2016-12-02 11:06:58 +00:00
Dmitry Tantsur
2bb48c6196 Document upgrade procedure
Change-Id: I4f013488ef1b7a605cca909e12f2b84c133ff3f4
2016-12-01 18:01:42 +01:00
dparalen
7cb40d5fec Add API for listing all introspection statuses
This patch introduces an API endpoint to list introspection statuses.  The
endpoint supports pagination with an uuid-marker and a limit query string
fields.  Due to the pagination, this change introduces a new configuration
option: ``api_max_limit``.

APIImpact

Change-Id: I74d02698801d5290619161b2d8d7181ab51a0a5e
Partial-Bug: #1525238
2016-11-21 15:58:24 +01:00
OctopusZhang
2d228cd6b9 Add !requiretty to sudoers config in install document
When we use devstack to start ironic-inspector service, it starts
sucessfully because we have a tty in devstack screen. But when we try
to use service command to start it, we should add '!requiretty'in the
suoders config, or it will fail.

Change-Id: I1f9f539c8eafea726ca7015ef86773e26a5a5641
2016-11-16 09:44:56 +00:00
dparalen
3b15527580 UUID, started_at, finished_at in the status API
Enhance the introspection status with the fields:

* uuid
* started_at
* finished_at

Change-Id: I36caa7d954a9bfb029d3f849fdf5e73f06f3da74
Partial-Bug: #1525238
2016-10-21 00:25:38 +02:00