1566 Commits

Author SHA1 Message Date
Zuul
203140252c Merge " Add 'virsh-audit' action in nova-compute" 2021-06-11 14:36:41 +00:00
Aurelien Lourot
1f6d8c2aa7 Add impish to metadata.yaml
Change-Id: I97b9645ef3679e0c795602a53c445ca0cb2fc0bc
2021-06-03 11:22:14 +02:00
Peter Matulis
6d1450d565 Update README - scaling down
Remove section on scaling down as it has been documented
as a cloud operation in the CDG

Apply README template to the bottom of the README

Depends-On: I03493b30956eddcb77bd714360806aa53c126942
Change-Id: Iab6f0bdce05ee5115b0cdbb517cba79aa87dabf0
2021-05-14 17:15:33 -04:00
Martin Kalcok
5eea014dd5 Add action that returns number of running VMs on the unit.
Closes-Bug: #1911011
Change-Id: If9ae646bc91b6389876830843bbf905596963054
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/535
2021-05-12 09:44:17 +00:00
Zuul
ddc6662aba Merge "Add apparmor rule to support /usr/sbin" 2021-05-07 20:38:31 +00:00
Chris MacNaughton
d1bd93b6c5 Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Libraries sync.

hisute-wallaby test is disabled (moved to dev) due to [1] as bundle may
reference a reactive charm.

[1] https://github.com/juju-solutions/layer-basic/issues/194

Change-Id: I238e8a36b033594c67ffcefa325998f2eba2a659
2021-05-06 10:16:49 +00:00
Alex Kavanagh
c22787d88f Updates to flip all libraries back to master
This patchset updates all the requirements for charms.openstack,
charm-helpers, charms.ceph, zaza and zaza-openstack-tests back
to master branch.

Change-Id: I453eafd76c005cd5f10041c08e4a943fe235d474
2021-05-03 16:09:13 +01:00
Liam Young
120235f359 Add apparmor rule to support /usr/sbin
It seems that as of Disco *1 /sbin is a symlink to /usr/sbin. This
patch adds support for file in either location.

*1 https://lists.ubuntu.com/archives/ubuntu-devel-announce/2018-November/001253.html

Change-Id: I66fa27f3f5e29d83cfea0f1afb33374303ab4669
Closes-Bug: #1925511
2021-04-26 13:51:06 +00:00
Billy Olsen
bfc3436a32 Use get_availability_zone() on cloud-compute relation
Commit 9f4369d9 added a feature to set the availability zone of
the nova-compute unit on the cloud-compute relation. This uses the
value of the JUJU_AVAILABILITY_ZONE environment variable, which is
not consistent with how the nova-compute service sets its availability
zone.

Use the nova_compute_utils.get_availability_zone() method instead.

Closes-Bug #1925412

Change-Id: Ie68ecd808a60baf0d5bfe526f4355ce3c7ae5c77
2021-04-21 20:48:46 -07:00
Liam Young
fc835f8c54 CH Sync to pick up fixes to bug/1923739
Change-Id: I7b828e8fc13ab61dac7057ca5270ccabbf4d218d
Closes-Bug: 1923739
2021-04-15 13:00:02 +00:00
Alex Kavanagh
75975ff917 21.04 sync - add 'hirsute' in UBUNTU_RELEASES
The 'hirsute' key in c-h/core/host_factory/ubuntu.py:
UBUNTU_RELEASES had been missed out, and is needed for
hirsute support in many of the charms.  This sync is to
add just that key.  See also [1]

Note that this sync is only for classic charms.

[1] https://github.com/juju/charm-helpers/pull/598

Change-Id: I60b208bbf5a04a9ab598b76ff0cf7f8baf216cbb
2021-04-11 16:58:39 +01:00
Zuul
3709741027 Merge "21.04 libraries freeze for charms on master branch" 2021-04-06 18:43:33 +00:00
Alex Kavanagh
557b63b33e 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure stable/21.04 branch for charms.openstack
  - ensure stable/21.04 branch for charm-helpers

Change-Id: I14762601bb124cfb03bd3f427fa4b1243ed2377b
2021-04-03 20:31:35 +01:00
Martin Kalcok
3f00b8f509 Add action that returns list of registered compute nodes.
List contains only nodes registered to the same nova-cloud-controller
as the nova-compute service running on targeted unit.

Closes-Bug: #1911013
Change-Id: I28d1a9bd18b3a87fc31ff4bca5bfe58449cdae57
2021-04-01 08:45:11 +02:00
Zuul
1989ec7890 Merge "Added action that returns nova-compute node name." 2021-03-31 20:55:40 +00:00
Martin Kalcok
38efefccdf Added action that returns nova-compute node name.
Closes-Bug: #1911012
Change-Id: Id9a7c3a675072ed4da3b9cb9fc997e70895205cb
2021-03-30 11:49:18 +02:00
Zuul
f28ae8a3e1 Merge "Cap the number of workers always when multiplier is not set" 2021-03-29 14:23:02 +00:00
Zuul
e76484fcd0 Merge "Added actions that enable clean removal of nova-compute unit from model" 2021-03-25 08:15:40 +00:00
Martin Kalcok
ceb8a68868 Added actions that enable clean removal of nova-compute unit from model
List of added actions:
* disable
* enable
* remove-from-cloud
* register-to-cloud

More detailed explanation of the process added to the README.md

Closes-Bug: #1691998
Change-Id: I45d1def2ca0b1289f6fcce06c5f8949ef2a4a69e
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/470
2021-03-24 16:07:58 +01:00
Zuul
70af11583e Merge "Add new osci.yaml" 2021-03-19 11:11:14 +00:00
Chris MacNaughton
da4243b591 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I996496c12e189257a27fdb39dd094ccb0a6df929
2021-03-18 07:21:52 +01:00
Edward Hope-Morley
433796779e Fix error when setting cpu-dedicated-set
Change-Id: Ic89d48f81af46682dc251cfdd6d88152c7039b0f
Closes-Bug: #1897275
2021-03-10 12:17:21 +00:00
Nobuto Murata
5db8e14d4d Cap the number of workers always when multiplier is not set
Previously the cap is only applied to the units in containers. However,
services in a bare metal also requires a sensible cap. Otherwise,
nova-compute, for example, will have 256 workers for nova-api-metadata
out of the box which is an overkill with the following system.

32 cores * 2 threads/core * 2 sockets * 2 (default multiplier) = 256

Let's cap the number of workers as 4 always, then let operators override
it with an explicit config to worker-multiplier.

Synced charm-helpers for
https://github.com/juju/charm-helpers/pull/553

Closes-Bug: #1843011
Change-Id: If98f12d7cf1a77fb267f1b55c44896a48a40909a
2021-03-05 13:28:50 +09:00
Alex Kavanagh
b49dbc252c Add hirsute and remove trusty from metadata.yaml
This update adds the new hirsute Ubuntu release (21.04) and
removes trusty support (14.04 which is EOL at 21.04).

Change-Id: I59840b672673aa4a8e253659300d9333c1b20a4b
2021-03-02 21:02:06 +00:00
James Page
08728a3adf apparmor: update profile for hardware offload
The nova-compute daemon requires access to a couple of additional
paths to support querying the underlying hardware in hardware
offload enabled scenarios.

Update apparmor profile to reflect these additional requirements.

Change-Id: I4283f12e4346b64f89dbc13bb64e5fb7edca2f62
Closes-Bug: 1895530
2021-03-02 10:55:49 +00:00
Billy Olsen
070d3d4bb1 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Id2be25cd198f2b5309fa1921730b6ee9d89d4ad7
2021-02-19 17:04:03 -07:00
Zuul
213f81ae06 Merge "Set availability_zone as part of the cloud-compute relation" 2021-02-18 13:38:58 +00:00
Ionut Balutoiu
9f4369d9c2 Set availability_zone as part of the cloud-compute relation
A new Juju action, to the nova-cloud-controller charm, will be
added to sync the nova-compute units Juju availability zones with
the availability from OpenStack.

It is useful in the context of a MAAS deployment, in order to map
MAAS AZs to OpenStack AZs.

Change-Id: I62f68f0c0c97aeca20a8afb32095d2972abd8473
2021-02-06 11:37:35 +00:00
James Vaughn
c5eb1b01a2 Fix SPICE agent setting in Train nova.conf template
Prior to this commit the SPICE agent was hard set to True regardless of
the nova-cloud-controller spice-agent-enabled value, preventing the use
of hw_pointer_model=usbtablet for Windows guests.

Change-Id: I6553623414acfadeb415342e8601a00ba5d80660
2021-01-25 16:11:52 +00:00
Alex Kavanagh
e316cc66c3 Updates for testing period for 20.01 release
Includes updates to charmhelpers/charms.openstack for cert_utils
and unit-get for the install hook error on Juju 2.9

* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers
* Include fix for local_address() and NoBindingError

Change-Id: If413a2bdd97bf5a751eba7fd74664525be39bd8c
2021-01-20 18:07:55 +01:00
Liam Young
372da646b6 Allow neutron-plugin sub to publish nothing
A change landed to charm helpers to mark the
SubordinateConfigContext as incomplete if the subordinate supplied
no data *1. But the neutron-plugin subordinate may legitimately
supply no data if no special config is needed. This restores the
previous behaviour of marking the subordinate context for the
neutron-plugin relation as complete even if not data was supplied.

*1 https://github.com/juju/charm-helpers/pull/519

Change-Id: I34fa2d39171132e4fe7d0b7e5fd29162161a5060
Closes-Bug: #1912187
2021-01-19 14:49:57 +00:00
Zuul
0b0a5f8c0a Merge "Add Groovy to the test gate" 2021-01-14 10:02:30 +00:00
Aurelien Lourot
fad6a934c2 Remove Disco and Eoan bits
Change-Id: I1f0550727f2111b10019c87ed458580cb982c6fa
2021-01-12 14:01:48 +01:00
Zuul
71557cd090 Merge "Change the value of rbd_cache_size and rbd_cache_max_dirty to integer literal" 2021-01-12 09:29:28 +00:00
Aurelien Lourot
e94e4c1a8c Add Groovy to the test gate
Change-Id: Id0fbd7aa947ac397cecf87e6c9cc6f0a96543744
2021-01-11 12:11:16 +00:00
Marius Oprin
308154e53c Handle the extended ceph-access relation
If more than a single Ceph key is set as part of the relation data,
make sure that all of them are configured.

Makes sure that the previous relation data is handled as well
in order to maintain backwards compatibility.

Co-authored-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
Change-Id: I24be0ed48edd5af517e1699df77ef0d96ef20aa2
2021-01-06 13:18:01 +00:00
Zuul
2b133a1895 Merge " Added config option 'inject-password'" 2020-12-16 22:45:12 +00:00
Linda Guo
d58faab1e9 Added config option 'inject-password'
This config option is to enable admin
 password injection at instance boot time
 * Added unit test to verify the config
   is correctly set and nova.config is
   updated.
 * Updated all of the templates that have
   inject-password set
 * Moved inject_* options out of
   {if libvirt_images_type and rbd_pool}
   block as they are irrelevant.

Closes-Bug: #1755696
Change-Id: Ie766a14bfa6b16337aa957bf7adf2d869462f9d7
2020-12-17 08:43:05 +11:00
Linda Guo
98fba99b34 Add 'virsh-audit' action in nova-compute
This new action to list instances as
  virsh sees them on the node (virsh
  list --all), sometimes this disagrees
  with what nova thinks

  Add a new zaza functional test class to
  avoid breaking the older versions

  To run the action, issue command:
  $ juju run-action nova-compute/0 virsh-audit --wait
  unit-nova-compute-0:
  UnitId: nova-compute/0
  id: "134"
  results:
    virsh-domains: |2+
       Id   Name                State
      -----------------------------------
       1    instance-00000001   running
       2    instance-00000002   running
  status: completed
  timing:
    completed: 2020-12-08 11:05:02 +0000 UTC
    enqueued: 2020-12-08 11:04:58 +0000 UTC
    started: 2020-12-08 11:05:01 +0000 UTC

  Closes-Bug: #1907409
  func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/472

Change-Id: I222a119199ada82186e2058402a31a40baf7fd7b
2020-12-17 08:37:04 +11:00
Aurelien Lourot
afdf2329d1 Sync release-tools
Sync release-tools boilerplate containing these changes
in order to pin pip < 20.3:
https://github.com/openstack-charmers/release-tools/pull/125
https://github.com/openstack-charmers/release-tools/pull/126
https://github.com/openstack-charmers/release-tools/pull/127
https://github.com/openstack-charmers/release-tools/pull/129

Change-Id: I784af3e2c2d61f40926a83bfa8dbacbc74a31d61
2020-12-15 10:53:05 +01:00
Rodrigo Barbieri
835d4b167a Add/update region config in nova.conf
On multi-region deployments, Nova may talk to the wrong
neutron endpoint (from the wrong region) if the region
is unspecified.

On Rocky+ it will also require updating the
os_region_name config to region_name, as os_region_name
has been deprecated, otherwise Nova will talk to the wrong
placement endpoint as well.

This fix addresses the issue where nova-compute will not
register the node to the correct nova_api/placement
database, and will also not be able to complete live-migrations.

Given that the template for the [placement] section is
applied to every release, it is included both old and
new config options.

Change-Id: I9500ba400d55e6f1bc11f2ba05b25b4714cda578
Closes-bug: #1903210
2020-11-06 17:17:26 -03:00
taodd
1390ebf41b Change the value of rbd_cache_size and rbd_cache_max_dirty to integer literal
Change-Id: I6a8fa178ed2d8b1b4ea0693a93eae4219fcb658e
Closes-Bug: #1894182
2020-10-27 13:46:46 +08:00
Frode Nordahl
b5674161ea
Add blurb about Ceph BlueStore compression
Change-Id: Ide04a2aab6ac55b114eb27a256c523e57bb9558a
2020-10-20 13:13:42 +02:00
Zuul
025af8ce72 Merge "Sync libraries & common files prior to freeze" 2020-10-08 16:08:09 +00:00
Zuul
1a6ad6a71e Merge "Send application name to ceph-mon" 2020-10-02 09:49:42 +00:00
Peter Matulis
d381f25593 Update README for Ceph EC pools
This updates the README for erasure coded
Ceph pools for the case of Ceph-backed Nova
images.

The new text should be as similar as possible
for all the charms that support configuration
options for EC pools. See the below review for
the first of these charms whose README has been
updated.

https://review.opendev.org/#/c/749824/

Add basic README template sections (Actions,
Bugs, Configuration). Standardise Network spaces
section.

Demystify the ceph-access endpoint relation.

Change-Id: I9c7426dc8a8a53f412e7222e125f9746cf2ae804
2020-10-01 12:26:05 -04:00
Liam Young
5f6668d6f3 Send application name to ceph-mon
Send application name to ceph-mon as ceph-mon cannot derive it from
CMR relations.

Change-Id: I0da4d7a55b1df947c10a8c7a4ae0f514c91be1eb
2020-10-01 10:33:57 +00:00
Zuul
b398e40165 Merge "Add Ceph BlueStore Compression support" 2020-09-30 07:52:18 +00:00
Alex Kavanagh
1643979f79 Sync libraries & common files prior to freeze
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard

Change-Id: I79af80dd7a0faa9175c9dca1fac669f8c187e3f5
2020-09-26 18:37:33 +01:00
Frode Nordahl
772291003b
Add Ceph BlueStore Compression support
Sync c-h.

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/429
Change-Id: I3bbf41350c18ac5cc045392ace6e14118b04e1e8
2020-09-25 11:22:30 +02:00