Just like the beginning of every other release, remove the deprecated
config option aliases that were marked as deprecated in Icehouse.
Nova patch - https://review.openstack.org/#/c/88456/
Change-Id: Idd051c516002030e8e191c7b8d31f1ff408e1c7d
libvirt_cpu_mode was renamed to libvirt.cpu_mode
libvirt_type was renamed to libvirt.virt_type
This patch is needed before I346ee0248c03e60716bd7dc4a5ee4493610867cb can
land.
Change-Id: Ie8a39147ece3a3c86f4b146fa0af3641b1079319
Commit 08448e3a mistakenly updated the location of the Ironic compute
driver to be loaded from within the Nova tree. However, no such module
exists as the compute and scheduler drivers both live in the Ironic tree.
This reverts that and adds a note explaining the setting.
Change-Id: I7f32f77bd7e5fd1f6b41014ac71bbf6e1a7d84cf
Since at least 12.04, the kvm package is a transitional dummy
package intended to move users to the newer qemu-kvm package. This
removes the dependency on this dummy package, which will be going away
in 14.04, and instead depends on the proper qemu-kvm package.
Change-Id: I4a88ada3cf32106413a9fae6fe77c9c4c28a524e
Closes-bug: #1294557
The Ironic api_endpoint value in nova.conf (ironic section) is incorrectly
set to port 6358. This sets it to the correct port: 6385.
Change-Id: Ic591588e3480cc25c6e276f11103b7b0007d642a
Closes-Bug: #1297939
cluster_name opt for vSphere driver is MultiStrOpt and currently
users are not able to set multiple values from localrc. This is
fixed by using iniset_multiline function.
Thus, new usage would be :
VMWAREAPI_CLUSTER='cluster1 cluster2 cluster3'
where c1, c2, c3 are the name of the clusters
Change-Id: Ie0f3a48614e6134d849050754932a3613363ce66
When deploying Ironic, make use of the existing libvirt installation
and configuration used by the Nova libvirt driver. Ensures a functional
libvirt setup across distributions.
Change-Id: I904ae2bdd4e8299827270c351eb60b833f90ae75
Moves installation and setup of libvirt to a common functions-libvirt,
which can be used by other drivers in the future that may require
cross-distro libvirt installation and config but are not using
VIRT_DRIVER=libvirt (ie, Ironic).
Change-Id: I4a9255c8b4bacd5acfde9b8061c9e537aeea592c
with I1c9bea2fdeebc4199c4f7d8fca4580a6fb7fed5b nova removed
docker from it's driver tree.
We shouldn't have driver support inside of devstack that's not
part of upstream projects (this has been a line we've been
pretty clear on with Neutron drivers in the past).
Remove docker driver accordingly.
Change-Id: Ib91d415ea1616d99a5c5e7bc3b9015392fda5847
only turn on the libvirt debugging if we really need it, which
we could control in the gate via devstack-gate.
Change-Id: I5e6d41d5333357608ab6a614610c060400f70a10
libvirt debug setting was happening in a place where we weren't
actually resetting the daemon. Move it to into the hypervisor
plugin where we do.
Change-Id: Ia79b0ef50f6b8fb007a20ce5cb4e510a5e4600a5
When reading a file, it is expected that
the read process will exit 1 as this is
expected whenever the input reaches an EOF.
Because it is not clear if the 'exit 1' is
from a successful read or a more serious error,
and as this edge-case of 'read' is not well-known,
we instead change this code to read the file using
'cat'.
The new code is moved into a function, is_docker_running.
Furthermore, we now quote the variables and check
for the existance of the pid file for better and safer
error handling.
Change-Id: Idb56b87349a5a84d5d255715cfb7191341363118
Closes-Bug: 1286441
The behavior of the code being replaced was failing
with '-o errexit' should that, as in the common case,
the image has not been uploaded into Glance.
While we could workaround this using a '|| :', the existing
code also happened to overwrite the DOCKER_IMAGE global
which is used elsewhere. It seemed prudent to either change
this variable name or remove it altogether.
Finally, using 'glance image-show' is more deterministic
than grepping the output of 'glance image-list'.
Change-Id: I23188155966ae9db64259b4a9d25a0d98c63c912
Closes-Bug: 1286443
Check that function calls look like ^function foo {$ in bash8, and fix
all existing failures of that check. Add a note to HACKING.rst
Change-Id: Ic19eecb39e0b20273d1bcd551a42fe400d54e938
After the https://review.openstack.org/#/c/75314 merged
the /etc/polkit-1/rules.d/50-libvirt-stack.rules files contains
subject.user == '"stack"' instead of
subject.user == 'stack'.
Change-Id: I09f252b2d0e53f012facb9f7eaa21c1e1bdf492b
The libguestfs dependency tree includes a number
of packages that we may not want or work everywhere, such as fuse.
Now python-(lib)guestfs will install from lib/nova_plugins/hypervisor-libvirt
Change-Id: I6c3a614010ee8d65813eec66a56680def622514c
Add two end-of-file checks to bash8. Firstly, alert if heredoc hasn't
finished. Some heredocs were done like:
---
sudo bash -c "cat <<EOF > foo
...
EOF"
---
(A better way to do this is "cat <<EOF | sudo tee ..." as it retains
the usual heredoc layout in the code).
The trailing quote was throwing the matching in bash8 off and it kept
appending the next file as if it was still part of the heredoc. To
avoid this, we check if we're still in a heredoc when we start a new
file; if so raise an error and reset the heredoc status fresh. We
track the state of the previous file, line and lineno so we can give a
good error.
---
E012: heredoc did not end before EOF: 'cat <<EOF'
- lib/trove: L221
---
This includes fixes for the existing problem heredocs.
A similar EOF check is to ensure the previous file ended with a
newline.
---
E004: file did not end with a newline: '$MY_XTRACE'
- lib/neutron_plugins/embrane: L40
---
This requires only one fix
Change-Id: I5e547d87b3921fc7ce6588c28f074e5c9f489c1f
There is a patch up for nova right now that disables file injection by default.
This is a corresponding devstack change that only sets file injection options if
it is enabled in the devstack config. This is good to keep around so that we
can easily turn it on for testing.
The nova change is id Icff1304fc816acc843f8962727aef8bbbc7bbaa3.
Change-Id: I5015f2c351b1d680c205d7f9a5204febca490b91
This allows the tempest configuration to set the right
image for booting docker containers with Nova.
Since glance uploads are not yet integrated in devstack,
IMAGE_URLS remains empty.
Change-Id: I5df153cd1d5e1411bb3c11816122ce280148e129
For purposes of matching the VM image used
in devstack across hypervisors, set the
default container image for Docker to cirros.
This uses the CirrOS image from stackbrew,
the "standard library" for Docker.
Change-Id: I9d767a4e06c5caa7b92ffea25e6a9aeda9bf282a
As we are moving forward to test XenAPI in the gate, it is necessary to
move dom0 related modifications to be performed from domU. For this
purpose, a new user is created, and that user should be used to talk to
dom0 from domU. This change creates that user, makes it possible for
dom0 to log in to domU with that account, and configure that account to
be able to talk down to dom0.
Also move several steps to the nova xenserver plugin:
- dom0 plugin installation
- create kernels and images directory
- install console rotate script
- configure a cron to execute console rotate script
Configuration changes:
A new configuration option, DOMZERO_USER has been created, that
specifies a user account that is configured to be able to do
passwordless ssh to dom0.
Change-Id: If9de0b297a67b7cdb5de78d8dd0e8b2ca578b601
this isn't upstream default because of compatibility questions
with really old host on providers. However there is no reason not
to do it in devstack.
Change-Id: I6438c0efb297cfa5d3dbb5f00701b24f01c39d14
The global docker registry is where images are
being built and uploaded. It's effectively docker's
version of, say, 'pip'. The static tarballs are
not only an extra maintenance burden as they're outside
the standard build and publishing process, but are presently
outside the scope of an open development / release
process as well.
While this process does cause some trouble with
network-independence for CI purposes, the fetching
is still done from install-docker.sh; Additionally,
this driver is not currently tested via the community CI effort.
Change-Id: I3ee6bfee9c273cd3aabe1e00a1d1a8856a466189
Gate tests fail sometimes due to libvirt problems, but it is difficult
to investigate their reasons or workarounds because there is not any
log about libvirt.
This patch changes the log level of libvirtd to DEBUG for investigating
libvirt problems.
Change-Id: Ib6559ff978fa813d0332f2339d241dd3437196ee
Related-Bug: #1254872
The powervm virt driver was removed from nova in a
recent change. This functionality is no longer needed in
devstack.
Change-Id: Iec620938a8cce63e0830fc7b9e9a679b361b4389
Quite easily one ends up calling ./stack.sh in an environment that,
albeit being user "stack" (for example), doesn't quite meet the
expectations of devstack. The errors that follow can be rather hard to
track down, as the dependency on `USER` is not mentioned.
To remedy this situation, this commit
- uses STACK_USER instead of USER and
- mentions that dependency in the script headers of lib/*
Change-Id: If4cdc39b922ea64b4c0893a0e695ec06349fccc5
* script was trying to copy file from a source
that doesn't exist to destination that does.
* variable DOCKER_BRANCH no longer used.
Change-Id: I50fd55e97dfc4eaaa3c1f2bfc42e8cfc0e76cdf4
Since the Nova driver is in Nova core from the Havana release, this
will just clean the docker nova driver install.
Change-Id: Ic98012b8b5e54e727a1b11f4d32f6623d2067621
Address miscellaneous issues with Markdown formatting in comments which
are consumed by shocco when generating the online documentation.
Change-Id: I953075cdbddbf1f119c6c7e35f039e2e54b79078