1095 Commits

Author SHA1 Message Date
Georgina Shippey
149d555d6b Readd some QEMU distro packages
Had issues where QEMU packages were not in sync and got an error:
... Note: only modules from the same build can be loaded. ...
The qemu package no longer lists dependencies on qemu-system, qemu-user,
qemu-utils in apt show.
Qemu-utils is recommended by other packages but I am unsure as to whether
this will guarantee an upgrade in all circumstances.
While qemu-system does list dependencies on the arm, mips, ppc... packages
they are unversioned and therefore do not keep in step.

Change-Id: I8ea4681a58a54bdc6a24ff053b11dfee5cc7af59
2019-11-21 20:03:56 +00:00
Cameron Loader
c0f95b09ac Add auth_type to the ironic section of nova.conf
Without auth_type, nova cannot authenticate to keystone to see
available ironic hypervisors/create new baremetal boots.

Change-Id: I709230061de4a743e1efc50ee3dd8d3c3465f10b
2019-11-07 09:18:24 -06:00
9fb1cf90dc Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: Iabe34d319135236424b7f0c84ffad483a42e7290
Sem-Ver: feature
2019-10-22 19:00:46 +00:00
Zuul
8bd5fda366 Merge "PDF Documentation Build tox target" 2019-10-18 19:56:22 +00:00
Zuul
a8586be346 Merge "Restore debian voting jobs" 2019-10-18 19:56:21 +00:00
Dmitriy Rabotyagov
283a6c0181 PDF Documentation Build tox target
This patch adds a `pdf-docs` tox target that will build
PDF versions of our docs. As per the Train community goal:

  https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html

Add sphinxcontrib-svg2pdfconverter to doc/requirements.txt
to convert our SVGs.

Change-Id: I6f3b5967ad906632d325b002b510e3fa96aac227
Story: 2006105
2019-10-18 17:18:44 +03:00
Dirk Mueller
efc6e0ebbb Update dependency list for openSUSE 15.x
In openSUSE 15.x genisoimage was replaced by mkisofs. Although
some projects have added autodetection, nova needs to be explicitly
told.

Also remove deprecated qemu-kvm (wrapper around qemu-system-x86_64).

Change-Id: If0cbd60790935141d52465abe61b40058f1829b1
2019-10-18 09:41:32 +00:00
Zuul
6611122dbb Merge "Add global override for service bind address" 2019-10-08 14:20:45 +00:00
Jonathan Rosser
0841c1cd6f Ensure libxml2 is available
In [1] many spurious packages were removed, and libxml2 was probably
a dependancy of a removed package. Add libxml2 as an explicit
requirement.

[1] https://review.opendev.org/662585

Change-Id: I6160b53ccfb161b8b8a161971795fd4962d86201
2019-10-05 06:56:38 +00:00
Mohammed Naser
83878a09a1 Restore debian voting jobs
In 656104, we dropped the voting jobs because of infra issues,
this patch is to make sure we restore and make jobs voting again.

Change-Id: I935f20565e2ed382be0444eef430fa07575986a9
2019-10-03 15:15:09 -04:00
Jonathan Rosser
450dc340fe Ensure git is available to clone novnc or spice
In [1] this package was moved to the 'devel' list mistakenly, it is
required on the compute host always.

In addition, due to infra. issues with Debian, this patch marks the
jobs as non-voting[2].

[1] https://review.opendev.org/662585
[2] https://review.opendev.org/686396

Change-Id: Iaa08e18d9da1a55a27241e4b5629eccb7969e2e0
2019-10-03 19:14:10 +00:00
Mohammed Naser
2e1647ea18 vars: package cleanup
- Created nova_compute_packages for compute common packages

All operating systems:
- bridge-utils because os-vif uses iproute2
- postgres headers because OpenStack doesn't support it
- python libraries as they are already installed
- python-openstackclient as it's not used in run-time

Debian removals:
- qemu-kvm because it's just a legacy wrapper for qemu-system-x86
- qemu-utils recommended by qemu-system-x86
- qemu-system-{arm,mips,misc,ppc,sparc,x86} required by qemu-system
- qemu-{system,user,utils} required by qemu
- vlan as nova no longer uses vconfig
- python3-{guestfs,libvirt} as python3 support is not there yet

RedHat removals:
- libvirt-daemon-config-{nwfilter,qemu} required by libvirt-daemon-kvm
- qemu-img-ev required by qemu-kvm-ev
- iscsi-initiator-utils required by libvirt-daemon-driver-storage-iscsi

SUSE removals:
- open-iscsi required by libvirt-daemon-driver-storage-iscsi
- libvirt-daemon-driver-storage-core required by libvirt-daemon-driver-storage-*
- device-mapper required by libvirt-daemon-driver-storage-disk
- nfs-utils required by libvirt-daemon-driver-storage-core
- qemu-block-{curl,dmg,ssh} as that block storage driver is not used

Change-Id: If81939f95042460dd83234160f44426692189376
2019-10-01 15:46:59 +00:00
Ralf Haferkamp
417ec1a296 Partially revert "Convert dynamic includes to static imports"
This reverts parts of commit 68d2839e1825d942f9afc76a6ee4329b9b031e26.

When running the nova playbooks without having "nova_virt_type" set. It
failed with:

"Error when evaluating variable in dynamic parent include path:
 drivers/{{ nova_virt_type }}/nova_compute_{{ nova_virt_type }}.yml.
 When using static imports, the parent dynamic include cannot utilize
 host facts or variables from inventory"

since the above commit. In ansible it's not allowed to call import_tasks
from a playbook which was included via include_tasks using a dynamic
include path. So we're switching back to "include_tasks" for the
affected playbook.

Change-Id: Ia0227886bd2cc59aab6d2861ef4aa9358d160925
Closes-Bug: 1845497
2019-09-26 16:50:00 +02:00
Zuul
6a7a4bd6a6 Merge "Convert dynamic includes to static imports" 2019-09-20 15:23:16 +00:00
chenxing
1584e8ce64 Remove useless code-block tag
Just make consistent with
https://docs.openstack.org/openstack-ansible-os_neutron/latest/index.html#example-playbook

Change-Id: I4cbef78170f64c056ea5e9f378ee6292d68656ac
2019-09-20 14:24:43 +03:00
Zuul
8d1acc6996 Merge "[redhat] Update variables to be version agnostic" 2019-09-19 22:49:46 +00:00
Mohammed Naser
83ddd84d90 [redhat] Update variables to be version agnostic
The RedHat-based operating systems such as CentOS have a pretty
stable list of packages, therefore, we don't need to pin it by
version and we can instead move to a much more generic redhat.yml
which will support a bigger range of systems.

Change-Id: I5eaa3cb6b3bcae96ff8ebebb368eb4a6fdfd1bae
2019-09-19 19:37:05 +03:00
Jimmy McCrory
f777a2de36 Only clone console repos on source based installs
For distro package based deployments, install the packaged nova console
proxies and console clients packages instead of git repos.

For debian/ubuntu installs, use the console client packages directly so
that the service configs of console proxy services are managed by OSA.

Change-Id: I27577ea263d38555e73ead078526cff1c3114b5a
2019-09-19 19:24:54 +03:00
Jonathan Rosser
39b991e45d Add global override for service bind address
Change-Id: I3cb765267182fc8c3b03fbe853fb95b9dba3af3f
2019-09-19 13:54:05 +01:00
Dmitriy Rabotyagov
68d2839e18 Convert dynamic includes to static imports
Change-Id: I14cf83e3691d5d39766bd71c4c0b051001fb703a
2019-09-13 20:12:33 +00:00
Zuul
38a4bbf6e6 Merge "Restore nova-key tag" 2019-09-10 05:08:22 +00:00
Zuul
e21c769538 Merge "Allow venv python interpreter to be overridden" 2019-09-10 05:08:21 +00:00
Zuul
0ec7675079 Merge "Add python3 libs to link into the nova venv for suse" 2019-09-09 23:26:40 +00:00
Jonathan Rosser
26053a6b1c Add python3 libs to link into the nova venv for suse
Change-Id: Ibc5f8f9f73905c4c04a254e589cd13fe2254521b
2019-09-09 08:47:13 +01:00
Zuul
6c4fcbe326 Merge "Start using uWSGI role" 2019-09-06 21:23:12 +00:00
Bjoern Teipel
71fdf84eb3 Restore nova-key tag
The nova-key tag is used to create and update SSH keys and
authorized keys among nova compute hosts. The execution
of this task isolated is a standard administrative task
to isolate and contain change to the minimum necessary activites.

Change-Id: I65d342b83649c626295c28096b3bb7c19e837fa9
2019-09-05 22:42:29 -05:00
Jonathan Rosser
abd30c19ca Allow venv python interpreter to be overridden
Change-Id: I9d189e9e2efa18d2ee5977495deadeab1107cd47
2019-09-05 17:43:46 +01:00
OpenStack Proposal Bot
f1560bdd9e Updated from OpenStack Ansible Tests
Change-Id: I607e6b144f82254a087ec061deae00fb0ff2227e
2019-09-04 15:17:20 +00:00
Dmitriy Rabotyagov
060a5beb70 Start using uWSGI role
Move service to use uWSGI role instead of iternal task for uwsgi
deployment. This aims to ease the maintenance of uWSGI and speedup
metal deployments as the same uwsgi environment will be used
across all services.

Depends-On: https://review.opendev.org/678200/
Depends-On: https://review.opendev.org/678055/
Change-Id: If5aeeefb93c8ba3c1368970de61ea1300218f637
2019-09-04 15:35:44 +03:00
Zuul
bc372732b8 Merge "Update invalid link for README" 2019-08-21 13:38:57 +00:00
Maksim Malchuk
8af53d4f9b Fix cell_v2 discover_hosts when Ironic enabled
When Ironic used the 'cell_v2 discover_hosts' should be executed
with '--by-service' option, otherwise the hosts doesn't discoverd.

Change-Id: I213be691187b261523c2d3b1c51b2da8a50b412a
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2019-08-21 11:59:49 +03:00
Zuul
05fa8b3ff5 Merge "Updated from OpenStack Ansible Tests" 2019-08-20 12:27:04 +00:00
Zuul
10c4c18564 Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-08-20 04:14:07 +00:00
OpenStack Proposal Bot
d3841c7860 Updated from OpenStack Ansible Tests
Change-Id: If272843bca3318eefc79cbe8e0069c5726e3efc0
2019-08-20 03:06:37 +00:00
ShangXiao
da8926e217 Update invalid link for README
The source code repository link is invalid.
Replace it with the available one.

Change-Id: I77a097fc8b7d4700ade8ba277844211e80a463c7
2019-08-19 01:06:16 -07:00
Mohammed Naser
3d99b2bd80 cleanup: reduce configuration vars
This patch reduces the number of configuration defaults that we
ship with no functional changes for users that were not overriding
them.

Change-Id: Iec7e7b0ca13e2503344d23095c0f1c30b46bb702
2019-08-14 21:43:12 -04:00
Mohammed Naser
ecfedcb0b8 config: cleanup configuration file
[DEFAULT]/use_stderr: matching default[1]
[DEFAULT]/rootwrap_config: matching default[2]
[DEFAULT]/instance_name_template: matching default[3]
[DEFAULT]/libvirt_vif_type: zero reference in nova code
[libvirt]/use_virtio_for_bridges: matching default[4]
[api]/auth_strategy: matching default[5]

[1]: https://docs.openstack.org/nova/latest/configuration/config.html#DEFAULT.use_stderr
[2]: https://docs.openstack.org/nova/latest/configuration/config.html#DEFAULT.rootwrap_config
[3]: https://docs.openstack.org/nova/latest/configuration/config.html#DEFAULT.instance_name_template
[4]: https://docs.openstack.org/nova/latest/configuration/config.html#libvirt.use_virtio_for_bridges
[5]: https://docs.openstack.org/nova/latest/configuration/config.html#api.auth_strategy

Change-Id: I5bffb58cba2caafc020c726e9741878361c96497
2019-08-10 15:57:34 -04:00
Jonathan Rosser
9376fd253d Remove support for the nova-lxd driver
This driver has been retired [1] and tests are now failing becasue the
nova-lxd repo master branch is now empty.

[1] https://review.opendev.org/#/c/672283/

Change-Id: I9906ede54f6b41972a03bfa1d39ba5f99c6235ed
2019-08-10 15:28:47 -04:00
Logan V
e57db22374 Fix nova_rbd_inuse var
The var did not contain jinja braces even though it is a jinja
expression.

Change-Id: Ibcd5a9292390bb9b60c33570649c9afb05e17fff
2019-08-03 23:56:37 +00:00
Zuul
5657b56f6f Merge "config: disable notifications by default" 2019-08-01 22:18:05 +00:00
Zuul
868615f6f3 Merge "Ensure that UEFI firmware is present for aarch64" 2019-07-31 17:48:54 +00:00
Mohammed Naser
edde66b9a0 config: disable notifications by default
We are currently pushing out notifications even if Ceilometer is
not enabled resulting in huge queues.  Let's not do that.

Change-Id: I0f8f5e3beaf9eca9127f1a37ffa93e0a5dac2974
2019-07-31 13:07:18 -04:00
Zuul
4ce24595d8 Merge "Updated from OpenStack Ansible Tests" 2019-07-30 20:25:20 +00:00
OpenStack Proposal Bot
54befc8f23 Updated from OpenStack Ansible Tests
Change-Id: I4af1f97e086758248502456dbc149b15339a1844
2019-07-30 19:42:29 +00:00
Mohammed Naser
12a5bc7a9f rbd: add var for inuse and enable setting secret
This patch refactors a variable to determine if we RBD is in
use (either directly or via cinder-volume).

It also uses this to make sure to always set rbd_user and the
rbd_secret_uuid both are set so booting from Cinder with local
storage works.

Change-Id: I052f50cd527ea222e74fdc3684613499f2b55d8e
2019-07-30 12:36:52 -04:00
Zuul
cb53967f85 Merge "service_setup: Update services tasks" 2019-07-29 22:23:13 +00:00
Mohammed Naser
efe094aa67 tasks: add conditionals for ironic
This patch avoids running the nova_compute.yml playbook
entirely because we already skip the setup portion and we
don't need to setup SSH keys (as there's no live migration)
nor setting up NFS.

It also gets rid of the set_fact inside nova_virt_detect.yml
because it was non-functional in the first place.  This is
because the nova_virt_type was set to 'ironic' in the
group_vars which meant that the autodetect code was
skipped and therefore that portion never ran.

Change-Id: Ic5548f08d200402538a0334f801834ee7ef8a39b
2019-07-29 11:48:11 -04:00
Dmitriy Rabotyagov
132d222053 service_setup: Update services tasks
During distribution of service_setup.yml it appeared that some services
have extra requirments and usecases. So this patch updated service_setup
and brings it into accordance across the roles.

Change-Id: I834109f6e0420642e61eac828efe1fbec9b1fdd8
2019-07-29 13:54:28 +03:00
Jonathan Rosser
999e1b91a0 Ensure that UEFI firmware is present for aarch64
The qemu-efi package will pull in the x86_64 and aarch64 uefi firmware
ensuring both architectures are supported on debian/ubuntu

Change-Id: Id2f266def07e0ba6967746738efd07cff628a19a
2019-07-27 17:34:22 +01:00
OpenStack Proposal Bot
80aef4671d Updated from OpenStack Ansible Tests
Change-Id: Ibdbb1ecd94739ceda2d8144bd64b730892346a2c
2019-07-20 09:36:08 +00:00