Commit Graph

167 Commits

Author SHA1 Message Date
Alex Kavanagh f3bf6be831 Updates for caracal testing support
These updates, on the master branch, are to support testing the caracal
packages and support of the charms for caracal.  They do NOT lock the charms
down, and don't change the testing branches to stable branches.

Change-Id: Ib7947ab8dfd4c4b18c482f4df1a7c6f5b5e3756f
2024-02-24 19:57:46 +00:00
Corey Bryant b270391d80 Add 2023.2 Bobcat support
* sync charm-helpers to classic charms
* change openstack-origin/source default to bobcat
* add mantic to metadata series
* align testing with bobcat
* add new bobcat bundles
* add bobcat bundles to tests.yaml
* add bobcat tests to osci.yaml
* update build-on and run-on bases
* drop kinetic
* update charmcraft_channel to 2.x/stable

Change-Id: Iae47ffbcec08d40f430e6c942e332d56211a300a
2023-08-02 14:18:23 -04:00
Corey Bryant d9fc4b69c1 Enable jammy-antelope voting and drop kinetic-zed tests
* Voting was turned on for jammy-antelope in the
  project-template for charm-functional-jobs in zosci-config
* Voting for jammy-antelope bundles with non-standard names
  is turned on in individual charms
* Kinetic-zed bundles/tests are removed

Change-Id: Ic290801451f6537e25dfb0330a81598bbafa7135
2023-03-29 22:16:06 +00:00
Corey Bryant dc7ecbc6ec Add Antelope support
* sync charm-helpers to classic charms
* change openstack-origin/source default to antelope
* align testing with antelope
* add new antelope bundles
* add antelope bundles to tests.yaml
* add antelope tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases

Change-Id: I6795ce22f1330309771f4d8d43cee255e27c2a10
2023-03-07 20:28:58 +00:00
Felipe Reyes f414dbdf0a Update testing bundles.
- Drop extra-repositories from jammy-zed bundle. The repository
  ppa:openstack-charmers/swtpm is only needed when running on Focal,
  the Ubuntu Archive >= Jammy contains the needed packages.
- Drop 'source' config key from rabbitmq-server and
  mysql-innodb-cluster. The infrastructure support charm are sourced
  from 'distro' and they don't need to configure an UCA source.

Change-Id: Ia60e46b8b2d35034767a2932176ec799c2e086bf
Closes-Bug: #1994055
2022-10-24 18:38:27 -03:00
Corey Bryant d031a489a7 Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml

Change-Id: I506c53b4956024066bc769665525cb022438a0ae
2022-08-31 20:27:43 +01:00
Alex Kavanagh 6a11a54dde charmhelpers sync for yoga release
Charmhelpers sync and remove impish tests.

Change-Id: I2e392d6f249bb6fcebf5c964eabbc8162016dc9f
2022-04-08 20:41:18 -07:00
Billy Olsen a8c4cd7b29 Enable vTPM support in nova-compute
Enable vTPM support in nova-compute charm. This adds new packages to be
installed swtpm and swtpm-tools as well as updates the nova-compute.conf
file and the qemu.conf file to set appropriate user/groups for swtpm.

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/696

Change-Id: Idf0d19d75b9231f029fa6a7dc557d2a9ee04915b
2022-04-04 11:34:11 -07:00
Alex Kavanagh 50fd97c4ee Update to classic charms to build using charmcraft in CI
This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests.  This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.

Change-Id: Ic9e267db4934cb95125eebb2ff3b1ca09d64e003
2022-02-17 12:30:16 -05:00
Alex Kavanagh fcddc4a11b Migrate charm to charmhub latest/edge track
Change-Id: Ifac3f97c1ff1ab721ec033cc99980afa704ef4fe
2022-01-27 21:57:26 +00:00
Aurelien Lourot 8fb37dc0c1 Process subordinate releases packages map
For principal - subordinate plugin type relations where the
principal Python payload imports code from packages managed by a
subordinate, upgrades can be problematic.

This change will allow a subordinate charm that have opted into the
feature to inform its principal about all implemented release -
packages combinations ahead of time. With this information in place
the principal can do the upgrade in one operation without risk of
charm relation RPC type processing at a critical moment.

This makes use of
https://github.com/juju/charm-helpers/pull/643

This is similar to
https://review.opendev.org/c/openstack/charm-keystone/+/781822

Also fixed broken link to charm-guide.

Change-Id: Iaf5b44be70ee108cbe88b4a26f0f15f915d507fe
Closes-Bug: #1927277
2021-11-26 13:39:33 +01:00
Corey Bryant 80e0b1f8b1 Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* pin pyparsing for aodhclient
* pin cffi for py35
* add non-voting focal-yoga bundle
* add non-voting jammy-yoga bundle
* add series metadata for jammy
* switch xena bundles to voting
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata and tests

Change-Id: I212fd1f38c84ef11350209ad16b212020d005518
2021-11-12 11:18:58 -05:00
Alex Kavanagh ac90d670be Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0
- remove EOL groovy-victoria check

Change-Id: Id72bc716f5f9c354ea495301b1f2b862914e9102
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/648
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-10-04 15:18:26 +02:00
Aurelien Lourot 67fac5620c Increase nova-cloud-controller RAM in func tests
Recent test run(s) have shown memory exhaustion on the nova
cloud controller units. This exhibits itself as the controller
dropping messages from the compute nodes and logging messages like:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/oslo_service/threadgroup.py", line 268, in _perform_action_on_threads
  File "/usr/lib/python3/dist-packages/oslo_service/threadgroup.py", line 342, in <lambda>
    lambda x: x.wait(),
  File "/usr/lib/python3/dist-packages/oslo_service/threadgroup.py", line 61, in wait
    return self.thread.wait()
  File "/usr/lib/python3/dist-packages/eventlet/greenthread.py", line 180, in wait
    return self._exit_event.wait()
  File "/usr/lib/python3/dist-packages/eventlet/event.py", line 125, in wait
    result = hub.switch()
  File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 298, in switch
    return self.greenlet.switch()
  File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 350, in run
    self.wait(sleep_time)
  File "/usr/lib/python3/dist-packages/eventlet/hubs/poll.py", line 80, in wait
    presult = self.do_poll(seconds)
  File "/usr/lib/python3/dist-packages/eventlet/hubs/epolls.py", line 31, in do_poll
    return self.poll.poll(seconds)
MemoryError

to the nova-conductor log.

It seems very likely this issue is specific to Bionic Stein so it
may be a little wasteful to have increased the memory allocation
for all the bundles but I think consistancy between the bundles is
more important.

Change-Id: I4c693af04b291ebaa847f32c9169680228e22867
Co-authored-by: Liam Young <liam.young@canonical.com>
2021-09-29 10:43:48 +02:00
Zuul 203140252c Merge " Add 'virsh-audit' action in nova-compute" 2021-06-11 14:36:41 +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
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
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
Aurelien Lourot e94e4c1a8c Add Groovy to the test gate
Change-Id: Id0fbd7aa947ac397cecf87e6c9cc6f0a96543744
2021-01-11 12:11:16 +00: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
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
Liam Young eeaee2a094 Add test using erasure coded pools
Change-Id: I313ac69e7cd82e99e769a778fee81dfd30fa2ac3
2020-09-09 08:41:58 +00:00
Aurelien Lourot 7b7b2dd58f Add focal-victoria to the test gate
Change-Id: Ia549d26f3276eb5580525a91841bd5a9431950b6
2020-08-28 14:27:56 +02:00
Aurelien Lourot 9c30e3d6bf Add Victoria test bundles
Change-Id: I76eb9b34a7a8e603b1e9153c8653d0e18e9bf4fc
2020-07-08 14:33:34 +02:00
Alex Kavanagh 810ee1b37d Add focal-ussuri and bionic-ussuri bundle
This patch adds a focal-ussuri and bionic-ussuri bundles to the tests
for the charm.  The linked bug is concerned with installing
nova-network, which is not available on Ussuri.

Closes-Bug: #1872770

Change-Id: Iea5a682aaebeb6f6941cf9d8f5780473f457e455
2020-04-21 13:33:17 +01:00
Sahid Orentino Ferdjaoui 8490919e2f Migrate functional tests from amulet to zaza
Change-Id: I339748e528ac57879ae2210f8f1e196fd04093dc
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/229
Closes-Bug: 1828424
2020-04-14 14:56:29 +02:00
Alex Kavanagh fdb9d3e6ea Remove disco support from the charm
Remove defunct cosmic test as cosmic is EOL.

Change-Id: I390457fdbe94ed758537dc887fb7e80fff7a9f4b
2020-02-18 18:45:36 +00:00
Corey Bryant 77a20127da Enable functional tests for bionic-train
This patch also updates the smoke test to run bionic-train.

Change-Id: Ia9177d6cedd0224b54426f1eb5d52476e1d9e798
2019-10-22 15:22:17 -04:00
Frode Nordahl 87940caf39 Enable bionic/stein and disco/stein functional tests
Drop service check for ``glance-registry``.  The service is
removed as of Stein, and it really is not this charm functional
tests job of checking this anyway.  Any such detail should
be deferred to the ``charm-glance`` functional tests.

Update templates/usr.bin.nova-compute as nova-compute requires
read access to /etc/mime.types.

Change-Id: I9a894ef2a3395ead2509edd4a6b8885a1739e974
2019-04-10 18:26:47 +00:00
Zuul 4d55b76ad2 Merge "Enable Neutron for Trusty/Mitaka and later" 2019-03-20 13:47:47 +00:00
Chris MacNaughton e9e8fb1988 Add security-checklist action
This new action applies the recommended checks in
https://docs.openstack.org/security-guide/compute/checklist.html
to verify security settings on the nova-compute
processes

Change-Id: I3c348e8f141baae89a47cb38809fe4933272a226
Depends-On: https://github.com/juju/charm-helpers/pull/274
2019-03-13 10:33:27 +01:00
tpsilva ba67d3e1dc Enable Neutron for Trusty/Mitaka and later
Currently, Neutron is only enabled on functional tests for
Xenial/Ocata and later. This patch changes it to enable Neutron
for Trusty/Mitaka and later.

Change-Id: I61b3ae62f322a8bf54baa78f6c3d7da81c37abf2
2019-02-27 17:34:23 +00:00
Corey Bryant 9254beb043 Update rabbit driver config options
The stein version of python-oslo.messaging (9.0.0+) has removed
the following config options from the [oslo_messaging_rabbit]
section:

rabbit_host, rabbit_port, rabbit_hosts, rabbit_userid,
rabbit_password, rabbit_virtual_host rabbit_max_retries, and
rabbit_durable_queues.

The above change requires a sync from charm-helpers.

Additionally the transport_url directive has been moved to the
[DEFAULT] section.

These have been deprecated since Ocata, therefore this change
will be provided to pre-Stein templates in order to drop
deprecation warnings.

See release notes at:
https://docs.openstack.org/releasenotes/oslo.messaging/index.html

test_300_nova_config is also removed in this change as amulet tests
no longer need to confirm config file settings.

Change-Id: I63e5abfecb45d097afed14d082cb91457c4fa60b
Closes-Bug: #1817672
2019-02-26 12:56:31 +00:00
Ryan Beisner a3cac4e080
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: Id2d75d8e0edc7492f48b7cc4dacf619629a7eb83
2019-02-06 14:49:42 -06:00
Felipe Reyes ceab1e91dc Don't include libvirtd on pause/resume
libvirt needs to be running even when the pause action runs, this allows
commands like "virsh secret-list" run and having it running is safe
enough from a nova-compute unit point of view, because it won't touch
the already running instances.

Change-Id: Idec9e2b7c6275c4c5485942574120289552f2955
Closes-Bug: 1802917
2019-01-25 16:51:59 -03:00
Edward Hope-Morley 6c8d3b47fc Properly remove libvirt default network
As well as destroying the network we should also undefine it
to ensure it does not return.

Change-Id: I57738856adb25c190357b1b23dd8a1245798cb14
Closes-Bug: #1800160
2018-11-01 09:02:11 -06:00
Liam Young e5a8c29f4f Support for neutron context without credentials
If the compute node is deployed in a cell it will get service
credentials via a direct relationship with keystone and not
from a nova-cloud-controller relation. This change adds support
for having a complete CloudComputeContext without having
service credentials.

Change-Id: Id39262c53f207bb61b0a60954d5a077562e4e6f3
2018-10-05 14:36:30 +00:00
Ryan Beisner 4b3aa9732d Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: I2bfad541c96b942f0fd44171d8dd2e46b617d8c1
2018-10-03 13:10:59 -05:00
Ryan Beisner ffda90dfd2 Add cosmic
Add a tactical change which is already merged into charm-helpers.

This needs to go into all charms to solve the chicken:egg issue
where cosmic is untestable until this change exists.

Reference:

4835c6c167

Change-Id: I21a102c9454b3d824f6345dbc94363613d494397
2018-09-19 13:32:00 +02:00
David Ames 5a5c3e9455 Series Upgrade
Implement the series-upgrade feature allowing to move between Ubuntu
series.

Change-Id: I092a0558b4dd6a9fd15851753900cc116b6796b2
2018-09-18 10:01:56 +00:00
Frode Nordahl 3039c05c9c Sync charm helpers and enable Rocky func test
Change-Id: I3980c0ffc002833634008ac0832221f845b24300
2018-08-28 14:59:12 -05:00
Ryan Beisner 204e498d42 Update functional test definitions
Change-Id: Ied188db7ab910dce3a4d5b7aafd4ac4061cd9afb
2018-07-18 18:37:39 -04:00
Zuul 82399d770a Merge "Remove databases relation" 2018-07-17 15:01:24 +00:00
Chris MacNaughton 6b2cdcc797 Sync charm-helpers to ensure Rocky support
Change-Id: Iff9aedecb21c7c2804a51c1bdf7a104c7a397877
2018-07-13 15:57:46 +02:00
Ryan Beisner 03b298a1ec Update series metadata
Ensure that EOL releases are removed from metadata
and tests, and that the current dev release is enabled
in metadata.  Dev release tests are enabled separately
because of chickens and eggs.

Change-Id: I20ebd183dc6758337e411574c75048143dadb09a
2018-07-11 14:06:50 -05:00
Corey Bryant c744e05234 Sync charm-helpers for Rocky series support
Change-Id: I681c4bc080eb276cc01fd00dfbe986256e42d0d1
2018-06-21 18:58:52 +00:00
Felipe Reyes 584a8414fe Remove databases relation
Since Icehouse nova-compute does not need to access to a database, all
accesses are made through nova-conductor.

This patch removes shared-db relation and their hook handler.

Change-Id: I7c4f6a70785d7dad1727d52cf86508209849ca35
Closes-Bug: 1713807
2018-06-14 12:21:49 -04:00
Zuul 87b8ed5e07 Merge "Add action to retrieve hugepage config" 2018-05-23 12:25:39 +00:00
Peter Sabaini bd9e853604 Add action to retrieve hugepage config
Return current hugepage usage and kernel cmdline
for static hugepage allocation

Change-Id: Ib34b2d7c3da5aacd117b19249be41bb95b91dfcd
Closes-Bug: #1734360
2018-05-16 22:22:46 +02:00