1171 Commits

Author SHA1 Message Date
Jenkins
096e3798b3 Merge "Update reno for stable/newton" 2016-10-09 18:56:42 +00:00
Jenkins
253aa7fcb0 Merge "Force en_US language for tests" 2016-10-07 20:35:53 +00:00
linbing
156ddaa966 Force en_US language for tests
This patch forces the use of the en_US locale for tests run.
This is done to avoid tests failing due to message translation.
For example:

When asserting if the message of an exception is correct, those are
usually hardcoded in the tests.

Change-Id: Ia8068b454f1461f17994733afc57337f4b017460
2016-10-07 13:50:43 +00:00
Davanum Srinivas
f1a8fef5d0 Update reno for stable/newton
Change-Id: Ic91d44749eb85a0f53e023daf5d128cc25b5c2ce
2016-10-05 11:23:16 -07:00
Jenkins
bf3c4fb38c Merge "Fixed typo in doc file" 2016-10-05 02:15:36 +00:00
Dao Cong Tien
c2b305513a Invalid URL and typo in .rst files
Change-Id: I17377b4b7b2e8ecc0ce3dbc4ac7de9398912ada9
2016-10-03 13:38:07 +07:00
Jenkins
bc1cf13889 Merge "Add info on tinyipa to docs" 2016-09-28 21:00:33 +00:00
Anh Tran
8f8e9f921e Fixed typo in doc file
TrivialFix

Change-Id: I6e680ccae6c169eae433f376890a8f2e5a19849a
2016-09-28 08:45:07 +07:00
John L. Villalovos
f6acb7cc03 Add py35 to tox environments
Since we're running python 3.5 tests now, we should also be
running them when running all tests with just `tox`.

Change-Id: I3f57abcbeaa3550f49d56f08140a34d6989885c9
2016-09-22 11:17:41 -07:00
Pavlo Shchelokovskyy
1dcb656886 Add info on tinyipa to docs
Mention tinyipa in Image Builders section and in troubleshooting.

Change-Id: Ic6cfe64255aba0460cc960a98b18580b7798b204
2016-09-22 14:16:28 +03:00
OpenStack Proposal Bot
629b599d8b Updated from global requirements
Change-Id: I51982b914de8fee7132117bc00cee5e868a11aea
2016-09-21 19:06:47 +00:00
Jenkins
6f98e534f5 Merge "Add vendor, product to interface information" 2016-09-21 15:43:10 +00:00
Jenkins
a947a7c287 Merge "Improve error message while download image" 2016-09-21 15:28:43 +00:00
Jenkins
1fd53460da Merge "Enable SSH access to tinyipa" 2016-09-21 14:51:33 +00:00
Moshe Levi
fe3b630360 Add vendor, product to interface information
This patch updates the interfaces JSON to include
vendor and  product
u'interfaces': [
    {
        u'mac_address': u'00:0c:29:8c:11:b1',
        u'name': u'eth0',
        u'ipv4_address': None,
        u'switch_chassis_descr': None,
        u'switch_port_descr': None,
        u'lldp': None,
        u'vendor': u'0x15b3',
        u'product': u'0x1014,
    }]

Co-Authored-By: yogananth subramanian <ysubrama@redhat.com>

Closes-Bug: #1611856

Change-Id: I8fa58dde29601abee959f74b69b692ed9eaffb94
2016-09-21 10:14:26 -04:00
Galyna Zholtkevych
993149cfb4 Improve error message while download image
Collecting warning logs in the case of download failure
and write them to error logs in the end. This will help
a user to diagnose a problem when warning log was not
enabled.

Change-Id: I4198d7be08fc11b616b3f95c595ff53794436e24
Partial-Bug: 1512186
2016-09-21 10:02:22 -04:00
avnish
9f52f47acd Update home page link in cfg file
Change-Id: I2c6d8b2aefd1a64ca75162d054309aef9917d2b8
2016-09-20 14:42:14 +05:30
Pavlo Shchelokovskyy
2136ded582 Enable SSH access to tinyipa
might be useful sometimes,
for example debugging in normal terminal is usually more pleasant
than in QEMU console.

Add env variables `ENABLE_SSH` and `SSH_PUBLIC_KEY`,
documentation is amended accordingly.

Change-Id: I71352c2087e1fb9a7174affb78fe695932a924d7
2016-09-19 19:02:55 +03:00
Jenkins
dd69ef3cd5 Merge "Updated from global requirements" 2016-09-16 22:30:20 +00:00
Pavlo Shchelokovskyy
e20490ad7b Fix TINYCORE_MIRROR_URL option defaults
Change-Id: I4561116b4f8f2b60ebab9ad58ece8c2223f44abb
2016-09-16 10:54:18 +03:00
OpenStack Proposal Bot
4298e6cf07 Updated from global requirements
Change-Id: Ib4187ebeec2e6bafc4c32b5be58a0e03b3d72daa
2016-09-15 20:19:48 +00:00
Jenkins
c4c7115d4f Merge "Fix IPA for stable/mitaka with noauth mode" 2016-09-01 09:19:52 +00:00
John L. Villalovos
abf98ae84a Use namedtuple to improve code readability
Use the namedtuple class to improve code readability by creating a Host
class with namedtuple to store the 'hostname' and 'port'

Replace foo[0] with foo.hostname, and foo[1] with foo.port to make code
more readable.

Change-Id: Ie2b5f9cf89e7ccbbcf0a2573dab6f6c5d14c018b
2016-08-30 16:12:29 -07:00
Luong Anh Tuan
ddb78ec4b3 Remove unused requirements
oslo.serialization are not imported. Thus, remove them from requirements.txt

Change-Id: I59185786c812c504d043f9c1ae72952a4c2fab35
2016-08-30 16:55:34 +07:00
Jenkins
d60aa8ef65 Merge "Enforce upper-constraints when building ramdisks" 2016-08-29 20:49:23 +00:00
Jenkins
aa4c889a06 Merge "Using assertIsNone() is preferred over assertEqual()" 2016-08-29 18:43:18 +00:00
Gábor Antal
4facf2c385 Changed an assert to more specific assert method
Following OpenStack Style Guidelines [1], I changed:
assertFalse(sth in sth) to assertNotIn(sth, sth).

After this change, a more specific message is shown on error.

[1]: http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises

Change-Id: I5d47d775dcff194693d97db6b797b7b027cbab56
2016-08-29 15:40:44 +02:00
Luong Anh Tuan
814b60def3 Using assertIsNone() is preferred over assertEqual()
Following OpenStack Style Guidelines[1]:
http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises

[H203] Unit test assertions tend to give better messages for more specific assertions.
As a result, assertIsNone(...) is preferred over assertEqual(None, ...)

Change-Id: I53c6d6d3e53d9fac38c50faf065c131d3aa55224
2016-08-29 05:22:33 +00:00
Julia Kreger
fb1cbbdafc Fix IPA for stable/mitaka with noauth mode
In noauth mode when running stable/mitaka, Ironic responds to the
initial lookup request with code 406, NOT_ACCEPTABLE, due to the client
supplied microversion of 1.22 by IPA.

As such, we should fallback upon receiving the 406 error code.

Related-Bug: #1616461
Change-Id: Ief9c151cf27a3c38c33a837bb7d6581868a3dc22
2016-08-26 13:06:34 +00:00
Mathieu Mitchell
a0ca6ce157 Enforce upper-constraints when building ramdisks
Currently, building ramdisks installs ironic-python-agent without any
upper-constraints. This causes the package to be installed with newer,
untested dependencies.

This commits introduces a tool to generate a local upper-constraints
file based on predefined strategies (below). Additionally, the fallback
to the openstack/requirements uses the URL defined in tox.ini instead of
redefining it. This prevents having to keep track of two separate
variables when releasing.

upper-constraints lookup strategies (in order):

  * UPPER_CONSTRAINTS_FILE points to a local file
  * UPPER_CONSTRAINTS_FILE points to a URL
  * /opt/stack/new/requirements/upper-constraints.txt
  * upper-constraints.txt from openstack/requirements git repository

Partial-bug: #1616554
Change-Id: Ib5c0c57cafdb6ffd7456e61f3b1bb5fa57520e5a
2016-08-26 09:06:24 -04:00
Julia Kreger
95f31be108 Re-use API client for Heartbeat operations
Re-initialization of the API client causes the identification
of an older ironic API to be forgotten.

As such, we need to re-use the API client from the initial lookup
for the heartbeat.

Tested with current master branch and stable/mitaka ipa
in noauth mode, and was able to deploy without any issues.

Closes-Bug: #1616461
Change-Id: I3ae1e2ce83f614b5b936a3cbb1b9587c6c55a89a
2016-08-26 12:53:30 +00:00
OpenStack Proposal Bot
e3c7f7c7cc Updated from global requirements
Change-Id: I04f49177cf66aec7d4cbe484a77c4a51ce9b0fcc
2016-08-26 05:08:26 +00:00
Jenkins
21c2a79816 Merge "Update hacking test-requirement" 2016-08-25 23:31:58 +00:00
OpenStack Proposal Bot
4e7077f140 Updated from global requirements
Change-Id: I071cab31fd63826a3da1c971903c9cf0c83e851f
2016-08-23 22:17:14 +00:00
John L. Villalovos
a12f21aee7 Update hacking test-requirement
Update the hacking test-requirement to match openstack/requirements
global-requirements.txt

The hacking requirement is not updated by the proposal bot.

Change-Id: I6cfbaf55abad0c33cbcbe8063d873db717f5252e
2016-08-23 13:20:08 -07:00
Jenkins
007654a9b6 Merge "Build socket list right before select call" 2016-08-19 20:51:25 +00:00
Jim Rollenhagen
8de195a3d5 Use upper-constraints for all tox targets
The issue has been resolved by infra [0], so we can use upper
constraints for all targets.

[0]
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: If075c2752fa77547e23e3dda4688386185f79dca
2016-08-19 08:50:20 -04:00
Jenkins
705eed8d09 Merge "Use CoreOS 1068.9.0" 2016-08-17 22:37:42 +00:00
Robert Li
9e4b769055 Build socket list right before select call
This will make sure the socket list and the interface list are
always in sync, and the select call is on the right list of
sockets.

Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com>
Closes-Bug: #1533892
Change-Id: Id6710f4648203b7d476a2a16ea647224baca1bb9
2016-08-17 16:35:07 +02:00
Jenkins
d34bc0559c Merge "Minor updates to metrics documentation" 2016-08-15 23:55:01 +00:00
Mathieu Mitchell
3b64950247 Use CoreOS 1068.9.0
The differences between 1010.6.0 and 1068.9.0 are published by the
CoreOS team [1] and are noted below.

1068.9.0
========

Security Updates:

* libcurl 7.50.1 for CVE-2016-5419, CVE-2016-5420, CVE-2016-5421,
  CVE-2016-4802, CVE-2016-3739

1068.8.0
========

Security Updates:

* libpcre 8.38-r1 for CVE-2014-8964, CVE-2014-8964, CVE-2015-5073,
  CVE-2015-5073, CVE-2015-5073, CVE-2015-8380, CVE-2015-8381,
  CVE-2015-8383, CVE-2015-8384, CVE-2015-8385, CVE-2015-8386,
  CVE-2015-8387, CVE-2015-8388, CVE-2015-8389, CVE-2015-8390,
  CVE-2015-8391, CVE-2015-8392, CVE-2015-8393, CVE-2015-8394,
  CVE-2015-8395, CVE-2016-1283, CVE-2016-1283

Bug Fixes:

* Properly escape systemd specifiers (#1459)

1068.6.0
========

Bug Fixes:

* Fix parsing of the user database which caused systemd-sysusers to crash (#1394)
* Fix handling of certain unicode characters in bash (#1411)
* Fix issue when starting transient services (#1430)
* Include work-around for empty SSH host keys (#106)

Changes:

* Removed Kubernetes kubelet
  * The Stable channel has never contained a version which included the
    kubelet. If an instance was booted from the Beta or Alpha channels
    and then moved to the Stable channel, it will lose the kubelet when
    it updates to this release.
* Set group for /dev/kvm

Updates:

* coreos-metadata v0.4.1
* bash 4.3_p46

[1] https://coreos.com/releases/

Change-Id: I00c2114aeea9d4c1b8e38f5786158f248875970d
2016-08-12 12:12:46 -04:00
Lucas Alvares Gomes
09d5d0c377 Fallback to the old /lookup endpoint on 401
Prior to this patch the ironic-python-agent service would only fallback
to use the old endpoints for /lookup and /heartbeat on a 404 error but,
since Ironic will check auth (if enabled) before it routes the requests
a 401 (Unauthorized) was returned.

Closes-Bug: #1612696
Change-Id: Idba5fed587e77aaa683d2c2b2126a520214712ce
2016-08-12 16:41:51 +01:00
Ruby Loo
ad7926365e Minor updates to metrics documentation
This is a follow up to Ic08d4ff78b6fb614b474b956a32eac352a14262a.
It enhances an example, fixes a spelling error, and modifies some
sentences for better readability.

Change-Id: Icfc89edd426ddee6a93be40c5b2f56d9d78fbd0c
2016-08-11 23:09:12 -04:00
Jim Rollenhagen
5f146d465d Make code blocks real code blocks in metrics docs
Makes them an RST block quote and 4 space indents instead of 2.

Change-Id: If2b727ac431e70d714f3df0c622c5516901f3393
2016-08-11 07:24:06 -04:00
Jenkins
dfaf92b611 Merge "Add metrics support to IPA" 2016-08-09 16:15:29 +00:00
Jenkins
c1b1d7e670 Merge "Add erase_devices_metadata cleaning step" 2016-08-09 11:06:01 +00:00
Jenkins
87b2b82478 Merge "Use new agent API if available" 2016-08-07 02:44:48 +00:00
Dmitry Tantsur
09265ba4b5 Use new agent API if available
Falls back to vendor passthru on receiving 404.

Also fixes logging around lookup: log traceback on unexpected
exceptions, log successful lookup and replace % with ,

Change-Id: I7160c99ca63585fc333482fa578fdf5e0962b2b6
Depends-On: I9080c07b03103cd7a323e2fc01be821733b07eea
Partial-Bug: #1570841
2016-08-05 12:02:41 +02:00
OpenStack Proposal Bot
277d97ba2b Updated from global requirements
Change-Id: I501fc9df20913558850bbca4e9662922ebc88448
2016-08-04 02:35:43 +00:00
Josh Gachnang
fd874652e3 Add metrics support to IPA
This utilizes the new metrics support in ironic-lib to allow the agent to
report timing metrics for agent API methods as configured in ironic-lib.

Additionally, this adds developer docs on how to use metrics in IPA,
including some caveats specific to ironic-lib.metrics use in IPA.

Co-Authored-By: Jay Faulkner <jay@jvf.cc>
Co-Authored-By: Alex Weeks <alex.weeks@gmail.com>
Change-Id: Ic08d4ff78b6fb614b474b956a32eac352a14262a
Partial-bug: #1526219
2016-08-03 11:24:54 -07:00