22 Commits

Author SHA1 Message Date
Dmitry Tantsur
d6404d2f99 Rename discoverd -> inspector
As agreed on the summit I'm renaming the python modules
and doing some adjustments:
* This is a breaking change, so version is bumped to 2.0.0
* Used this chance to split conf options over proper sections
* RELEASES.rst is gone; it's too hard to keep it up-to-date;
  anyway git does better job at doing history
* Dropped deprecated option ports_for_inactive_interfaces
* Dropped old /v1/discover endpoint and associated client call
* No longer set on_discovery and newly_discovered in Node.extra
  (deprecated since 1.0.0, superseded by the get status API)
* Default firewall chain name is "ironic-inspector" and
  is configurable

Notes:
* Some links will be updated after real move.
* Stable branches will probably use the old name.
* Some usage of discovery word is left in context of
  "discovered data"
* DIB element will probably be deprecated, so leaving it
  alone for now.
* Some usages of word "discovery" in the README will be updated
  later to make this patch a bit smaller
* Ramdisk code will be moved to IPA, so not touching it too much

Change-Id: I59f1f5bfb1248ab69973dab845aa028df493054e
2015-05-29 09:06:56 +02:00
YuikoTakada
9ec4f0fbc8 Switch to oslo.config
This patch set adds support for generating config files
using oslo-config-generator.

Old invocation without --config-file is no longer supported.

Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com>
Change-Id: If640e6dc83c971a8f82f9b245a4496d298dfd042
Closes-Bug: #1398359
2015-03-24 15:57:14 +01:00
Dmitry Tantsur
e7e9e0b6f9 Properly implement authentication via keystonemiddleware
This requires introducing new option 'identity_uri'.

Change-Id: Ibed9cf163357c7b38f6e9a980900bcc1d9d12804
Closes-Bug: #1427125
2015-03-02 17:13:12 +01:00
Jenkins
f85d1ca41d Merge "Update functest to new ramdisk code" 2015-02-23 12:56:08 +00:00
Dmitry Tantsur
56714d50a0 Update functest to new ramdisk code
Change-Id: I193a228f86d5273ab2f928fd090a67f072dd005b
2015-02-16 11:48:59 +01:00
Dmitry Tantsur
b12ba4a7d0 Functional test for setting IPMI credentials
Implements: blueprint setup-ipmi-credentials-take2
Change-Id: I158b1151254c08f2ed296d5d919b56c42bd9b309
2015-02-13 16:38:50 +01:00
Dmitry Tantsur
e69dd8222e Download jq utility when running functest
It's going to be used by the ramdisk soon.

Change-Id: I0504a0281747571d09daab647ccc15b46c37e7ba
2015-02-12 17:22:51 +01:00
Dmitry Tantsur
f656333d52 Functional test for boot interface detection
Also adds missing documentation.

Change-Id: I6eece4d022d929630be9b7612fdb860a07ee0c5e
Implements: blueprint better-boot-interface-detection
2015-02-09 16:55:19 +01:00
Dmitry Tantsur
51551b5984 Get rid of thread=False monkey-patching hack
I can no longer reproduce the bug on any of my systems
and Eventlet 0.16 should fix Python 3k.

Closes-Bug: #1410709
Change-Id: Id933f5c4dd3af1838db50941bf42bd21a31a2122
2015-02-09 13:06:50 +01:00
Dmitry Tantsur
ff7c5c9829 Update functest to use new ramdisk file name
Change-Id: I908f0f2e5fe05b4bf33a3f72139bc6d655a513fc
2015-01-27 13:21:08 +00:00
Dmitry Tantsur
f6b2241864 Revert "Get rid of monkey patching work around for Python 2 in main.py"
This does not work, greenthread just hangs.
Needs further investigation as part of 1.1 series.

This reverts commit 2e459037f25f5484ec9cb568d38b6a9abf3cfb5a.

Change-Id: I952e8307cec534aa09f48a3d476f58b338b9aea8
2015-01-22 11:46:31 +01:00
Jenkins
881e84e7e9 Merge "Get rid of monkey patching work around for Python 2 in main.py" 2015-01-20 17:26:10 +00:00
Dmitry Tantsur
2e459037f2 Get rid of monkey patching work around for Python 2 in main.py
Change-Id: I83a7e9473a1eeb0872279317d75bda8737911953
Closes-Bug: #1410709
2015-01-20 12:18:17 +01:00
Dmitry Tantsur
1d534812e7 Use --config-file argument in functional testing
Leftover of bug #1411194

Change-Id: I91a8ec4c5a16f12e858fd6a8a266f17bc82fcce5
2015-01-20 12:01:51 +01:00
John Trowbridge
79a9fae6ca Changes utils.get_keystone(token) to utils.check_is_admin(token)
We never use the client that get_keystone returns. We are actually
interested in whether the provided token belongs to an admin user.
This patch changes the function name to reflect this fact. It also
adds a check to make sure the token is from a user with the admin
role on the tenant provided in the admin_tenant_name configuration
option.

Change-Id: I657d14921e9a3db7fea4499144a77659bb3f390d
Closes-Bug: 1391866
2015-01-14 10:29:44 -05:00
Dmitry Tantsur
f39c8a29aa Add introspect client call and switch functest to it
Also make README reflect the current reality, as it wasn't updated
in the previous (already merged) patch.

Change-Id: I32a95a7f428f08fec564c3e3bc2b6413bd38bf3a
Implements: blueprint v1-api-reform
2015-01-13 12:19:08 +01:00
Dmitry Tantsur
abc9541c4d Support new Kilo state machine
Implements: blueprint kilo-state-machine
Change-Id: I8f35b523a9cf2613f98e79816bbcb43611d04893
2015-01-12 13:30:39 +01:00
Dmitry Tantsur
3f903a7b1e Implement get status endpoint
* New endpoint /v1/introspection/<uuid>
* Backed by new function node_cache.get_node
* New client function get_status
* Functional test

Change-Id: Ib072b2ff711e7df232a793bf5e17c7880e97b92d
Implements: blueprint get-status-api
2015-01-09 13:35:39 +01:00
Dmitry Tantsur
b340f08960 Make database a required configuration option
The more we rely on this database, the less sane is to use
temporary file as the default.

Change-Id: I8e04d76c6310c1db3576e0dc37d38a8b3af8c4b8
Closes-Bug: #1407602
2015-01-06 15:18:26 +01:00
Dmitry Tantsur
cb09de9500 Make firewall management optional
Adds configuration option "manage_firewall" that allows disabling
firewall management completely. Handy for testing and for future
IPA integration work.

Change-Id: I8db1d5528650e24336ad87976459c57c753486a7
Closes-Bug: #1400475
2014-12-19 14:14:28 +01:00
Dmitry Tantsur
71451867ed Enable functional testing with local ramdisk source
Change-Id: Ie0028133c088e393df3c0723d9cdf297b4316fbc
2014-12-18 16:07:35 +01:00
Dmitry Tantsur
f6b28e8244 Simple functional testing for discoverd and the reference ramdisk
New 'tox -efunc' command fetches the ramdisk from Github and
executes some simple testing with it. Ironic and Keystone API
are faked. Tools used by ramdisk are faked too.

Change-Id: I0158000cfb50372d6000d1f675aa1370a6c09d13
2014-12-16 12:14:14 +01:00