Commit Graph

1321 Commits

Author SHA1 Message Date
OpenDev Sysadmins b3126beb67 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:34:01 +00:00
Liam Young 4dabbd68f2 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: Ie2160a08e431a2c681bda84dfe32a4fa11f2aaae
2018-06-28 09:08:08 +00:00
Liam Young 7effde7bee Retrieve cloud credentials directly from keystone
In a cells deployment the credentials for the nova-compute
application will no longer be available via the
nova-cloud-controller in the local cell. This change adds the
scaffolding for a cell to utilise a new cloud-credentials relation
to allow it to retrieve credentials directly from keystone.

Change-Id: I9d1a7353d730f7cb8e93cc9eea5b788f7c956c3d
2018-06-18 08:29:28 +00:00
Frode Nordahl f751b88746
Remove orphan symlink
Support for dfs was dropped in commit c4574ef859

Remove orphan symlink in the actions/ directory.

Change-Id: I4819ce8d1fdac1e918c12919b481e03e600c5d2d
2018-05-28 08:47:04 +02:00
Zuul dcd080b461 Merge "Allow nova-compute access to fc_host info" 2018-05-24 09:42:51 +00:00
Zuul 87b8ed5e07 Merge "Add action to retrieve hugepage config" 2018-05-23 12:25:39 +00:00
Edward Hope-Morley 7863093f9d Allow nova-compute access to fc_host info
Change-Id: Ic9cd7c39de745919e80e8388602c3287cf39e8bb
Closes-Bug: #1772633
2018-05-22 12:09:42 +01: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
David Ames 20e2f4c1dd Update PCI passthrough template for >= Pike
The [pci] header is necessary since pike [0]. This change updates the
pike template to add the [pci] header, rename pci_passthrough_whitelist
to passthrough_whitelist and add the config option pci-alias.

[0] https://docs.openstack.org/nova/pike/admin/pci-passthrough.html

Change-Id: I7a8c76f5989edb5b4a0b30036ce722ffb0ecb7ab
2018-05-16 10:16:55 -07:00
Zuul 6a0ed48a3a Merge "Add support for instance storage encryption" 2018-05-15 09:59:03 +00:00
James Page d10dd7795e Add support for instance storage encryption
Add support for encryption of the underlying block device providing
storage for local instances.

This commit introduces a new juju storage binding and configuration
option to provide a single block device for use for local instance
storage; this block device is formatted and mounted at
/var/lib/nova/instances.  In a MAAS deployment, this could be a
bcache fronted device.

The configuration option is preferred over the Juju storage binding
if both are supplied.

This block device can optionally be encrypted using dm-crypt/LUKS
with encryption keys stored in Hashicorp Vault using vaultlocker.

vaultlocker ensures that keys are never persisted to local storage,
providing assurance around security of data at rest in the event
that disks/server are stolen.

Charm support is implemented using a new configuration option 'encrypt'
which when set enforces a mandatory relationship to an instance
of the vault application.

Copy the 'ephemeral-unmount' config option and assocaited code from
the ceph-osd and swift-storage charms to enable testing in cloudy
environments.

Change-Id: I772baa61f45ff430f706ec4864f3018488026148
2018-05-15 08:27:10 +01:00
Zuul 39a642096f Merge "Drop notification based designate support" 2018-05-11 17:18:41 +00:00
Zuul 158ab60d91 Merge "Enable Bionic as a gate test" 2018-05-11 09:02:52 +00:00
Ryan Beisner c000ac286f Remove deprecated functional test targets
Change-Id: I339d4a369bf483abd573601d4f58a6ecb3f931e1
2018-05-09 16:37:12 -05:00
David Ames 32c34d2688 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I4f60a10b1b8983ae512312b2610bec4645b4c1ed
2018-05-09 09:34:26 -07:00
James Page d46628dd25 Drop notification based designate support
Deprecated at 18.02, removal for 18.05 release; superceeded by
Neutron Designate Extension driver.

Change-Id: I5bd824027a7bca80176d08f310c4e43a983e6c45
2018-05-09 14:33:26 +01:00
Zuul 1e919bcef4 Merge "Add 'nova-designate-relation-broken' hook" 2018-05-09 12:59:15 +00:00
James Page 74a9353e4c doc: Drop lvm from supported libvirt backends
lvm has never actually been supported in this charm; update config
docs to drop lvm - rbd or qcow2 are the only two supported types.

Related-Bug: 1610392

Change-Id: I94ac64a4a4a3a56e1e1793b5b7c618a55dbf6f22
2018-05-08 12:10:10 +02:00
Tytus Kurek 4d1220d1fb Add 'nova-designate-relation-broken' hook
This patchset add 'nova-designate-relation-broken' hook definition
which is required to update nova-compute configuration files when
removing the legacy relation with designate.

Change-Id: I65f5b4ea4f3a6d3bf56a4df2f11da2d750e68e7a
Closes-Bug: 1763614
2018-04-13 13:11:53 +02:00
Ryan Beisner 59cce54c67 Update tox.ini to stop using unverified package
As of pip 10.0, --allow-unverified is not permitted.

Use of the flag in this repo was previously used to force
installation of python-apt to accommodate certain unit tests.

The unverified package, python-apt, is no longer necessary
for test execution.

Related-Bug: #1760720

Change-Id: I42387c238e74415ccaf5adb5182ae252bcbf10bf
2018-04-03 16:33:50 +00:00
Liam Young d70c741ca7 Fix up amulet for queens
Switch to use Keystone v3 clients for Queens and setup
domains etc for new demo user.

Change-Id: I4a90a28212ec6e1a8e9f348b1318722141f35d2c
Requires: https://github.com/juju/charm-helpers/pull/119
2018-02-25 16:06:08 +00:00
Zuul 50315841ed Merge "Sync charm-helpers" 2018-02-22 09:50:52 +00:00
Zuul e2439856d5 Merge "Enable support for iscsi multipath connections" 2018-02-22 09:11:58 +00:00
Ryan Beisner 6bc38e0ab4 Sync charm-helpers
Change-Id: I0a6ef429133616140be7c8b2af5f435a498e4f51
2018-02-21 14:09:48 -06:00
Shane Peters 5cd8900103 Enable support for iscsi multipath connections
Adds new charm config option to enable multipath
connections to iscsi volumes. This is configured
in the [libvirt] section of the nova config.

Since newton, the option has been renamed to
'volume_use_multipath'. To accomodate this,
a newton template has been created.

Change-Id: Ibbf91547c5fc41215873c63219cd83303b1d37cd
Partial-Bug: #1518001
2018-02-21 13:58:12 -05:00
Zuul 08451fb162 Merge "Support libvirt group instead of libvirtd when hugepages set up" 2018-02-13 12:19:03 +00:00
Zuul 592f93ed1f Merge "Sync charm-helpers and use VolumeAPIContext" 2018-02-11 17:14:44 +00:00
Billy Olsen 465617c263 Sync charm-helpers and use VolumeAPIContext
Sync in the charm-helpers to use the new VolumeAPIContext object
in order to determine the volume catalog info to use in the
configuration file.

This is simply an alternative implementation for commit 5d92bc9f.
This will separate concerns for determining internal endpoints
and determining volume api versions.

Change-Id: I91009e1f9643f818b6f97898aa5d7c43e84684ed
Related-Bug: #1733566
2018-02-08 19:07:34 -07:00
Dmitrii Shcherbakov 6b9b02c112 emit notifications on notifications_designate
Change I804a34fb044090010ecfd2560594cc1f55e9bd21, commit hash
b89de21d47 dropped notifications_designate
completely to solve a problem described in pad.lv/1738100, however, to
make this change backwards compatible notifications_designate should be
used in addition to "notifications" topic used by default.

This way designate will continue to receive notifications on
notifications_designate from nova, and ceilometer will get notifications
using the "notifications" topic.

Change-Id: I245f5b263994c204a5e521dad542ed83952f54b8
Related-Bug: #1710831
Related-Bug: #1738100
2018-02-08 17:25:27 +03:00
Seyeong Kim 4daa7d1f5e Support libvirt group instead of libvirtd when hugepages set up
Adding check code if there is libvirt group or libvirtd group after
pike release.
Currently getting error when setting hugepage option in pike

Change-Id: I324b7d95c659ea047b0fe8e25c8e2faad1077f1a
Closes-Bug: #1747805
2018-02-07 12:18:30 +09:00
Ryan Beisner f4f195253a Sync charm-helpers
Notable issues resolved:

openstack_upgrade_available() broken for swift
https://bugs.launchpad.net/charm-swift-proxy/+bug/1743847

haproxy context doesn't consider bindings
https://bugs.launchpad.net/charm-helpers/+bug/1735421

regression in haproxy check
https://bugs.launchpad.net/charm-helpers/+bug/1743287

Change-Id: Ic3d379fc4794b68456b113ddb63166b1a12d70ee
2018-01-19 12:10:10 +00:00
James Page c4574ef859 Remove deploy from source support
Drop support for deployment from Git repositories, as deprecated
in the 17.02 charm release.  This feature is unmaintained and has
no known users.

Change-Id: I44a7a92d5d4ae493bab4d5b81e9757cb12149a66
2018-01-10 11:39:21 +00:00
James Page 7b9feea400 Drop postgresql support
Remove postgresql DB support; This feature is untested as part
of the charms, is not in use and was deprecated as part of
the 1708 charms release.

Change-Id: I327a686a35edf9b6ff5c1c3cbc4165f8faeef688
2017-12-21 12:00:20 +00:00
Zuul 7ae5ab6a28 Merge "drop driver and topic settings in designate ctx" 2017-12-15 14:53:59 +00:00
Zuul f6437dcee2 Merge "Drop zeromq support" 2017-12-15 10:35:25 +00:00
Dmitrii Shcherbakov b89de21d47 drop driver and topic settings in designate ctx
A similar change will land in designate to drop this extra topic as
well.

Also, driver and topic overrides in a service-specific context are not a
good idea.

Change-Id: I804a34fb044090010ecfd2560594cc1f55e9bd21
Closes-Bug: #1710831
Closes-Bug: #1738100
2017-12-15 12:48:14 +03:00
Edward Hope-Morley 5d92bc9f7e Use volumev3 for internal endpoint in >= Pike
volumev2 api is deprecated for >= Pike so switch
internal endpoint to v3 for Pike onwards.

Change-Id: I23dffc61a5bfdb4990c744975f13b0e55ef40cbc
Partial-Bug: 1733566
2017-12-08 10:05:10 +00:00
James Page 97b7b8d31c Drop zeromq support
Support for the ZeroMQ messaging driver has bit-rotted over the
last few years across the OpenStack charms; drop support for ZMQ
inline with deprecation notices issues in 17.02 charm release.

Change-Id: I66330dd29972e39e45e9bf81cb0570d5749b8312
2017-12-07 14:19:34 +00:00
Zuul 3bf032804d Merge "Add Bionic and remove Zesty series and tests" 2017-12-06 16:49:46 +00:00
Zuul 8814ec7198 Merge "Py3 Fixes" 2017-12-05 17:11:39 +00:00
Ryan Beisner a48c32a8fb Add Bionic and remove Zesty series and tests
Bionic, being the next LTS, is important to enable for dev
and test as early as possible ahead of 18.02.

Zesty goes EOL in Jan 2018. The next stable charms release (18.02)
will not provide Zesty series support, as it was an interim
(non-LTS) release.

Change-Id: Ie4189fab0c8ce04f60ada98ec94de98f2a79e302
2017-12-05 14:01:22 +00:00
Chris MacNaughton 77267efd51 Update tests to match expectations
In the change from py2 -> py3, some expectations around
file modes have changed,and this update changes the tests
to match those expectations.

Change-Id: I6c1348e02024368b70c10d91137f1ed6d9d5a483
2017-12-05 07:29:52 +01:00
David Ames 4548b9d1f2 Py3 Fixes
Charm-helpers sync to get python3 fixes.

Change-Id: I020028a930617a865f3a8fc039f3876cb2529804
2017-12-05 00:12:42 +00:00
James Page 1e40d18a6a Resync charmhelpers for py3 fixes
Includes fix for write_file encoding under py3.

Change-Id: Iaa48b13822fe5b10b6ece1e55ced027ad5481b85
Closes-Bug: 1735068
2017-11-29 09:48:02 +00:00
Chris MacNaughton 009b27871c b64decoded data bust be written as binary
Change-Id: I41e92106b5b53685b2b8e9b8f1f420dd2baca3ed
2017-11-24 14:05:26 +01:00
Zuul f65fd7aaed Merge "Add ceph paths to usr.bin.nova-compute aa profile" 2017-11-24 09:53:23 +00:00
Liam Young a94fa1d584 Fix writing text after py3 conversion
During the recent py3 conversion of the charm a couple of places
where the charm writes text in binary mode were missed. This
fixes that problem. Without this fix the charm errors with:

"TypeError: a bytes-like object is required, not 'str'"

Change-Id: I5c2af1dce12092c1ba1be4b4ad9a50261000e886
2017-11-22 15:40:47 +00:00
Zuul a9ff556ab1 Merge "Update to run under Python 3" 2017-11-21 18:47:11 +00:00
Author Name b24555e224 Update to run under Python 3
Updating charm to support execution under Python 3.

Change-Id: I9013860b5eefef05bee5b473e30217229fb6a739
2017-11-20 11:04:26 +00:00
Edward Hope-Morley 0423eae1df Add ceph paths to usr.bin.nova-compute aa profile
The current profile does not include ceph paths
which breaks nova-compute if
libvirt-image-backend=rbd when in enforce mode.
Also fix access to /tmp and /var/tmp.

Change-Id: Ie03a43ef73ca5f97f4f9e5edcefd261a0e36abf9
Closes-Bug: 1732492
2017-11-17 11:01:31 +00:00