867 Commits

Author SHA1 Message Date
ZhiQiang Fan
e44016b7ae [Trivial] Remove executable privilege of doc/source/conf.py
It is a configuration file, rather than a script.

Change-Id: I2ead10575e9e306ec412d3ee20358bd043a81a72
2016-04-29 21:19:33 +08:00
Jenkins
1ddc801c65 Merge "curl is required for diskimage-builder" 2016-04-20 06:04:38 +00:00
Clint Byrum
9ff4017742 curl is required for diskimage-builder
On some minimal installs, it will not be present, and thus cannot be
assumed.

Change-Id: I8ffe253f76accc2185f5ee52f73bccb17295b05c
2016-04-19 08:46:40 -04:00
OpenStack Proposal Bot
4ff499f24c Updated from global requirements
Change-Id: Ia0fd6c59e2e80c21484ff7106f61c1ec77325bf9
2016-04-15 01:52:05 +00:00
stephane
c9d283a5c1 Allow for recent ironic sample config changes
In I1bc8b00eb98055a6e0f06af287cfa10c02ee2094 the
sample ironic.conf file was modified to prepare
for the transition to oslo-config-generator. Since
bifrost uses the sample config file, we need to
modify our regexps to match both the new and old
sample config file. We also need to replace lines
with the new style.

Change-Id: I1757cc26c7f687b8070ca1f9c61a933fbcee8774
2016-04-13 15:33:47 -07:00
OpenStack Proposal Bot
c630eb5117 Updated from global requirements
Change-Id: I8b95f4418c7d65affad59ed06b373d23062491fa
2016-04-07 17:06:47 +00:00
Julia Kreger
69937857f6 Fix DIB conditionals for CLI override
The conditionals on the DIB steps were lacking | bool and
as such they were previously not possible difficult to
override on the command line.

Change-Id: I69a263e7bedbadec52c88df72f592e3b05c3e52d
2016-03-29 10:38:29 -04:00
Julia Kreger
a4e9b4c460 Explicitly set language for DIB builds
Diskimage-builder passes the localization environment variables
through to the image being built. Ansible is explicitly setting
"en_US.UTF-8" by default. Depending on the DIB build underway,
and the base image, programs executing in that environment
may fail to execute if localization is not present in the base
image.

As such, we will override the settings for the DIB step.

Closes-Bug: #1563338
Change-Id: I05f0eeb71d3c227b2d8ece52c603c8cfe480c46c
2016-03-29 10:20:22 -04:00
stephane
fa5f65adef Correct test-bifrost-venv script
Remove a reference to a nonexistent playbook. Also remove
LOG_LOCATION since we now use collect-test-info.sh.

Change-Id: I646c7d83fa9f16cbe0a95309ab52aa833ebbad66
2016-03-23 09:57:41 -07:00
Jenkins
4c19753397 Merge "Update mitaka release notes source" 2016-03-22 18:39:20 +00:00
Chris Krelle
0bae180302 add paramiko to requirements.txt
adding paramiko to requirements.txt, while not a direct dependency of
Bifrost it is a dependency of ansible. Adding to requirements ensures
that it is installed.

Change-Id: I4cd18c43fa2a30f6003c374d3989c6d378ad39ef
Closes-bug: 1559586
1.0.0
2016-03-21 13:18:37 -07:00
Julia Kreger
43e1af7ef0 Introduce longer deployment wait with multi-node testing
The nature of multi-host interactions and testing can
be extremely racey. Since IPA can offer SSH, the wait
step can be short circuited resulting in us not waiting
long enough.

As such, introducing a longer wait _and_ re-check of SSH
connectivity.

While this does not completely fix the underlying race, it
is intended to help the test be more reliable in CI.

Partial-Bug: #1559764
Change-Id: Ief9ff9b2d158fa5322b5bb9be74105ba3d13b7fe
2016-03-21 16:44:05 +00:00
Jenkins
4ab75590ba Merge "Collect all test VM console logs" 2016-03-21 16:34:11 +00:00
Jenkins
d02bbf70e3 Merge "Add all defined baremetal hosts to the test group" 2016-03-21 16:06:16 +00:00
Julia Kreger
bdab0447c2 Collect all test VM console logs
Presently the post-test information collection script is only
collecting a single test virtual machine's console log.

As the DHCP test operates with multiple VMs, we need to collect
all console logs to help identify potential test failures.

Change-Id: I8ddfb7870ea57b51f6340db4ba388c13cc35c059
2016-03-21 11:52:04 -04:00
Jenkins
0a7af82af4 Merge "Allow a defined but not dhcp addressing_mode" 2016-03-21 15:50:28 +00:00
Jenkins
0d0e60b1a9 Merge "Cleanup inspection module location" 2016-03-21 15:32:02 +00:00
Julia Kreger
11cbbc46fe Add all defined baremetal hosts to the test group
The ansible add_host module only triggers once per play and as
such we need to loop over the hosts in our baremetal group, and
explicitly add each host.

Change-Id: I603586fe0d46bdf0e61ee00c14f74811a2c02ba8
2016-03-20 18:26:28 -04:00
Julia Kreger
79b21f75f7 Update mitaka release notes source
Direct the mitaka release notes generation to an
origin/stable/mitaka branch for when the branch
has been cut.

Change-Id: I55c61e8fa63dacc1b22d9b91694013704d711706
2016-03-20 15:29:01 -04:00
Julia Kreger
23fc7aefb4 Cleanup inspection module location
The inspection module has been submitted for inclusion in ansible,
and as such a duplicate is no longer required. Removing duplicate
and adding call to retreieve the module if missing.

Change-Id: Ib4b395bee5ae80c4cafc9628710b536db895d952
2016-03-20 14:21:11 -04:00
Clint Byrum
0ce8c23ccf Fix nics typing in configdrive generation
network_metadata's parameter "nics" is expected to be a list. In some
instances it will be left as a string unless the type is explicitly
set. Also the default of '' is incorrect since a string is not expected
but a list. Omitting it is the correct way, since it is not rquired.

Change-Id: If3376ee24507ed6f22e269e4440d2e371ff33eb4
2016-03-20 08:53:53 -07:00
Clint Byrum
160939d887 Allow a defined but not dhcp addressing_mode
In some work we're doing, we override addressing_mode with the
string 'static'. This should lead to getting network_info.json in our
configdrives, but it doesn't because the test logic in these tasks isn't
right. It has been tested, and the undefined test short circuits, so
we don't ever get errors whether the value is defined as dhcp, static,
or undefined.

Change-Id: I01f42c003dae21b3f25e2f760214ba876ae1aea9
2016-03-19 14:43:10 -07:00
Jenkins
2bbe254017 Merge "Change standard test to invoke inspection" 2016-03-18 19:17:43 +00:00
Jenkins
e65fb054db Merge "Change inspector config to use MySQL" 2016-03-18 19:12:41 +00:00
Jenkins
8597d5748f Merge "make dhcp lease file removal more ansible like" 2016-03-18 19:12:33 +00:00
Jenkins
54496554c9 Merge "Ensure uuid-runtime is presesent on Debian based systems" 2016-03-18 17:33:25 +00:00
Chris Krelle
d090e9f536 make dhcp lease file removal more ansible like
changes "command: rm ..." to use file module.

Change-Id: I427d59df53d3671d0d39356ddea1805efcbef538
2016-03-18 09:53:34 -07:00
Jenkins
6fc3df7c21 Merge "DHCP test improvements" 2016-03-18 16:33:08 +00:00
Jenkins
6e56f0742f Merge "Allow mysql_username and mysql_password to be passed via env var." 2016-03-18 11:41:46 +00:00
Jenkins
42a4816c53 Merge "Fix and improve test job data collection" 2016-03-17 23:09:06 +00:00
Chris Krelle
ae5e64ba80 Allow mysql_username and mysql_password to be passed via env var.
This change allows mysql_username and mysql_password to be passed to
bifrost-ironic-install via the environment variables mysql_user and
mysql_pass. This is useful when there is a preexisting mysql installation
with passwords alreay set.

Change-Id: I6dfd3ec0e769f0af6b157cde106885eabc24d120
2016-03-17 14:50:30 -07:00
Julia Kreger
8a4d9ff32a DHCP test improvements
The DHCP test ultimately relies upon bifrost putting in place
the correct DHCP configuration to reliably boot machines, and then
(hopefully) ensure that no unknown machines are given leases.

This is in order to help simulate the Infracloud configuration.

In order to do this, and hopefully get the CI test into a passing
state, I have increased the amount of memory allocated to each VM
as the realistic minimum for IPA is 1 GB, and introduced specific
stops and starts to VMs present during the test sequence in order
to limit the number of concurrent running virtual machines.

Change-Id: Ia612414edd80d154200e9df12b410a327db19cff
2016-03-17 09:17:00 -04:00
Jenkins
b716b2c736 Merge "add scripts/README and tools/README" 2016-03-16 23:26:47 +00:00
Julia Kreger
917983e5ce Fix and improve test job data collection
Corrected the netstat data collection as the --version flag causes
a non-zero exit code with netstat.

Added interface counter data collection to allow for additional
troubleshooting context.

Change-Id: I7e0e26cc735d6c0ad9052547bc0eefe3ed3877ae
2016-03-16 18:54:56 -04:00
Julia Kreger
f6d4446faf Ensure uuid-runtime is presesent on Debian based systems
DIB based tests appear to fail when uuidgen is not present.
On Debian based systems, this is packaged in uuid-runtime.

Change-Id: Ib040406779a4144c6c0409cefa5e420c15ad2bcb
2016-03-16 15:06:10 -04:00
Devananda van der Veen
040ccabeeb add scripts/README and tools/README
Add two README files to avoid any confusion about the intent of the
scripts/ and tools/ directories.

Change-Id: I50d94088649ec6b6d7f0799f40760e03b5aad371
2016-03-16 18:42:29 +00:00
Jenkins
d4e765189c Merge "Install python if it's not there" 2016-03-14 17:23:03 +00:00
Jenkins
d104858599 Merge "Only pause in VMs when performing multinode testing" 2016-03-14 17:17:22 +00:00
Jenkins
cbd3c2a98a Merge "Update the reno index" 2016-03-14 17:00:55 +00:00
Jenkins
3b39802a06 Merge "Correct release note syntax" 2016-03-14 17:00:46 +00:00
Yolanda Robla
ce1fda5efa Only pause in VMs when performing multinode testing
When we use a single VM, there is no need to wait extra
time for keyscan to complete. Add a flag to wait this
additional time when we perform multinode testing, such
as in DHCP test.

Change-Id: I10a54a91af145d6d44873865f5b7df48c68c59c7
2016-03-10 08:20:21 +01:00
Julia Kreger
87e8c32572 Update the reno index
When we implemented reno support, we did so early on and never put
in place the proper index for the release notes. With the upcoming
release, this needed to be corrected.

Change-Id: I73f7f7c3b399c8bc1805c8caab88876dafdd80dc
2016-03-08 18:03:37 -05:00
Julia Kreger
bbcd63f18b Correct release note syntax
Colon characters are magical characters in yaml, and as such we
can't have them in release notes.

This is also called the realization that TheJulia needs to put
reno check job in-place.

Change-Id: I6eee79af773574db7f113e99223d75cbef7e8b0b
2016-03-08 17:57:47 -05:00
Devananda van der Veen
ff67711f8d Make install-ironic skip IPA download if create_ipa_image == true
The flag "create_ipa_image: true" may be ignored if the IPA image file
is already present on the local disk.

However, because "download_ipa" defaults to true and runs first, the IPA
image file is always present before the tests to determine whether to
create it or not (unless one specifically sets "download_ipa: false").

This change causes the "create_ipa_image: true" flag to override
the behavior of the "download_ipa" flag.

Change-Id: I5f8e8f1d8893a279aae5b733cde5c07265197f5d
2016-03-08 09:53:32 -08:00
Jenkins
a8a262c67c Merge "Add script and playbook to test dhcp" 2016-03-08 17:26:20 +00:00
Julia Kreger
5456fdd975 Change standard test to invoke inspection
Changing the standard test to invoke inspection in
order to help raise any inspector related issues faster
and improve overall quality.

Change-Id: I85af6c21e17a965323051eaca77e41817ce02875
2016-03-08 09:51:45 -05:00
Julia Kreger
be2e28d013 Change inspector config to use MySQL
As a result of the playbooks combined with the use of the
sqllite database file, the inspector functionality was partially
broken and could not be re-run without clean-up, in the form of
the sqllite database file being removed, between test runs.

Closes-Bug: #1554174
Change-Id: I77d33546dd97348298072b5047502b6705dfca11
2016-03-08 09:41:49 -05:00
Jenkins
789987dcc8 Merge "Fixing virtualenv issues" 2016-03-03 06:07:19 +00:00
stephane
0dc604f304 Install python if it's not there
We may not have python when we install. One example
is on Ubuntu 15.10 which only has python3. Ansible
currently requires python 2.6 or 2.7. Install it
via the package manager if it's missing.

Change-Id: Ic824f9cd131eca4d771c22d25d5646731ce78ae3
Partial-Bug: #1515071
2016-03-01 10:47:50 -08:00
Yolanda Robla
a93a1e6b61 Add script and playbook to test dhcp
It will run a play where it will spin up five vms, and will
truncate inventory to consider only three. The play will
configure dns using dynamic inventory, and will take an
extra parameter to specify if we want static ips or not.
It will perform a test on dnsmasq leases file, to ensure that
the dhcp behaviour is working as expected, depending on
the settings.

Change-Id: If56488f78524ceba201b50f76df306620744cda5
2016-03-01 13:45:26 +01:00