142 Commits

Author SHA1 Message Date
James Page
9b0de9bbff Add support for FWaaS v2 logging
Enable support for configuration of FWaaS v2 firewall group
logging.

Configuration options mirror those for neutron-openvswitch
for security group logging.

This feature is currently only enabled for FWaaS v2 at Stein
for the charms (but is supported back to Queens in Neutron).

Change-Id: Ic60ee47078089c59ccb09b8659422e7ad7081149
Partial-Bug: 1831972
2019-06-25 16:53:24 +01:00
Sahid Orentino Ferdjaoui
068471e6e5 dpdk: update context to retrieve global mtu from neutron-api
In the last charmhelper version the NeutronAPIContext has been updated
to give possibility of retrieving the global mtu and the mtu by
physical networks configured in neutron-api. This will be necessary to
instruct the DPDK dvices.

NOTE: fixes unittests related to a charmsync changes.

Related-Bug: 1827256
Change-Id: I44f4f8bebad494041912b374b1efdad5b2d0a06c
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-05-14 17:13:16 +02:00
Chris MacNaughton
77805f1f2d Sync charm-helpers to enable Ubuntu Disco
Change-Id: I26f89d37c72c84e86392f51922c66787ac59c809
2019-04-05 17:15:51 +02:00
Chris MacNaughton
a5139c519c Sync charm-helpers for Stein release
As a part of the Stein release, we need to ensure
that charmhelpers is up to date.

Change-Id: I3ae2b657f27441a07b8c249846a50a9e26b76458
2019-04-04 10:16:55 +02:00
Corey Bryant
5e3ffa90e6 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

Change-Id: I77e3437a5241c9ded2ef5000639f984222bc4803
Closes-Bug: #1817672
2019-02-26 10:32:28 +00:00
David Ames
b6099422b0 Update charm-helpers-hooks.yaml and sync ch
Using the new version of the sync tool which removes the charmhelpers
directory before syncing, run charm helpers sync to find any unexpected
missing dependencies.

Change-Id: I3ed6181dd008f79a70d6299e615b1eff89cc4e74
2019-02-12 15:57:42 -08:00
Corey Bryant
63e590b6af Sync charm-helpers
Change-Id: Idd5bc62d5ee87f729b033dc37ae9959a8725f5c5
2019-01-11 14:38:38 +00:00
Zuul
97a6f8ef2a Merge "fix typos in the docstring" 2019-01-09 09:09:48 +00:00
Corey Bryant
eeaa8e4198 Sync charm-helpers
Change-Id: I26cb4c099580f8323b877a0bc5a8d6aaa2169d8f
2019-01-08 15:18:37 +00:00
melissaml
72b0339acd fix typos in the docstring
Change-Id: I14cb7f6a313352ea3bc007c683b46c89f097d703
2018-12-22 03:56:18 +08:00
Ryan Beisner
4aed9892fc
Sync charm-helpers
Change-Id: I0ee707fb54896ff8053a9d16cf75f553c6e26c5e
2018-11-07 15:35:17 -06:00
Vladimir Grevtsev
08a1b0cfb8 Charm-helpers sync
This change is a result of "make sync" for neutron-openvswitch charm.
Also, removing an "charmhelpers/tests" sync due to recent charm changes
(see commit 8daeaada for details).

Change-Id: I0f06bf2371d4ae57d0051406b11db19202a4c6df
2018-10-10 15:22:43 +03:00
Vladimir Grevtsev
40701500b5 Enable support for security group logging
Add support to enabling logging of security groups for
OpenStack Queens or later; this feature is enabled via
the neutron-api charm, with local charm configuration
options to allow control of rate and burst limits and to
set a local log output directory if require (allowing log
data to be written to a separate partition for example).

The feature is only compatible with the openvswitch firewall
driver and will not be enabled if this configuration option
is not set.

Basic deployment tests changes is included here since
nova-cloud-controller unit and relation was missing before,
and it leads to CI constantly failing.

Corresponding charm-helpers change:
https://github.com/juju/charm-helpers/pull/228

Change-Id: Id6ed09f714981e87838186d51a4f5e693bedb1d3
Closes-Bug: #1787397
Depends-On: https://review.openstack.org/602355
2018-10-09 18:55:04 +03:00
Vladimir Grevtsev
b3321ffe77 charm-helpers sync
Change-Id: Ia7cc8858f4b1c5b1047a5593981efd8bb3bbe75d
Related-Bug: #1787397
2018-09-19 08:57:42 +02:00
Vladimir Grevtsev
11211653fe sync charm-helpers to latest version
Change-Id: I5d6a14bfd5d54d58b5d5515aee9b014216b2c2d3
2018-09-14 18:27:59 +03:00
Ryan Beisner
e64f7490b5 Update functional test definitions
Change-Id: I5583203bbce303c0046cd55b3a8707e3d2bed27b
2018-08-27 18:16:41 -05:00
Chris MacNaughton
daa7106478 Sync charm-helpers to ensure Rocky support
Change-Id: Id0e96d7ea2b91a2facd1805820ce45ab0bb51890
2018-07-13 15:57:08 +02:00
Corey Bryant
07b6dbad86 Sync charm-helpers for Rocky series support
Change-Id: Ifce8be13f01170a310f17e1832a6d2921f552ed5
2018-06-21 19:02:38 +00:00
James Page
03016e4cc4 Resolve issues with long interface names
Resync charm helpers to pickup fixes to support veth wiring of
OVS bridges directly to Linux bridges created with MAAS.

Linux has a maximum interface name length of 15 charms; the
change ensures that the generated interface length for the veth
pair fits within this limitation.

Previous behaviour (that worked) is preserved to avoid duplicate
veth wiring or direct wiring of the Linux bridge to OVS.

Change-Id: Icef4efc179e8f812dd08f2423ed832a48573aa75
Closes-Bug: 1773353
2018-06-11 15:28:34 +01:00
Michael Skalka
07254a5c59 Enable IPFIX exporting for OVS bridges.
Adds a config option and calls to enable IPFIX exporting on all OVS
bridges created on a system by the OVS charm.

Closes-Bug: 1768016

Change-Id: Id2591ac5f39319d50ba235f6b9b5d493e7885d3a
2018-05-09 12:32:05 -04:00
Ryan Beisner
b32d02f7c6 Sync charm-helpers
Change-Id: Ie7fcd226afb62b9707f8a62af3cbd3b7f39e2d7f
2018-02-21 14:09:30 -06:00
Ryan Beisner
208e5f950a 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: I4e53ae77afb5b0afa5219941ddfddc87e2e601d6
2018-01-19 12:09:48 +00:00
James Page
fe9633856b 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: Ib954ddd1fb63d409af77949d8e76a6d6da8f2cde
2018-01-10 12:01:23 +00:00
James Page
92ecb6f527 Resync charmhelpers for py3 fixes
Includes fix for write_file encoding under py3.

Change-Id: I0ab95470c79bbb53d9177bc662d10d1d22369e86
Closes-Bug: 1735068
2017-11-29 09:28:31 +00:00
Chris MacNaughton
b025b2bb62 charmhelpers sync to fix py3 contexts
Change-Id: I2daa0098b808b22df0ae47772c9df8e7091a8b1c
2017-11-21 11:50:11 +01:00
David Ames
c01ddd3cea Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: Ibf0deb7fdb7b2e2df63e4f69bc1eb04efb06688a
2017-11-17 16:38:18 -08:00
Ryan Beisner
9c0366ead9 Sync charm-helpers
Change-Id: Ic7e68817ba1d2b700b7efd9f2772783603df0dd6
2017-08-24 17:11:17 -05:00
Zhang Hua
6b5273f415 Support polling-interval rpc-response-timeout and report-interval
These options are set in the neutron-api charm centrally, and
this patch allows neutron-openvswitch charm to continue doing:

1, polling_interval
   Just used by neutron l2 agents, so neutron-openvswitch charm
   gets it via it's relations and set it in [agent] of ml2_conf.ini
   or openvswitch_agent.ini(>=Mitaka)

2, rpc_response_timeout
   Used by all neutron agents, so both neutron-gateway charm and
   neutron-openvswitch charm get it via it's relations and set it
   in [default] of neutron.conf

3, report_interval
   Used by all neutron agents, so both neutron-gateway charm and
   neutron-openvswitch charm get it via it's relations and set it
   in [agent] of neutron.conf

Change-Id: I76c0c75d5f3b4fdd1eb3242b53fde2e829fedca5
Partial-Bug: #1685788
2017-08-07 09:57:46 +01:00
James Page
c47d2a3aa9 Update notification config >= mitaka
Use oslo_messaging_notifications for mitaka or later releases
including setting the transport_url to the value provided by
the AMQP context.

This removes use of deprecated configuration options for
ceilometer notifications.

Change-Id: I6f6f3d7f2e423aecf5be7cab08da560e291e5845
2017-08-01 09:07:40 +01:00
James Page
fb4bcd6b87 Updates for pike b1
Resync charmhelpers for pike support.

Add amulet tests, but leave disabled for now.

Change-Id: I520c6feecf64478e0d27c227fee0c2603acd9aec
2017-05-24 13:52:52 +01:00
Billy Olsen
d78ffcae0a Specify dns_domain in dhcp_agent.ini from neutron-api
Specify the dns_domain value in dhcp_agent.ini configuration
file in order to indicate the dns search domain which should
be advertised by the dnsmasq DHCP server.

Note, for neutron-openvswitch - this only takes effect when
the enable-local-dhcp-and-metadata flag is set to true.

Change-Id: If3529cf32a6e10d44c86423151cdacdad50445f8
Implements: blueprint charms-internal-dns
2017-05-15 09:39:28 -07:00
David Ames
25318707e0 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: Ifd77b31379fa55daa90a0e4d86ee3638ad3d74d7
2017-04-28 08:42:47 -07:00
Alex Kavanagh
4c916a02ac Fix alphanumeric comparisons for openstack and ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done
- fix tests which assumed mocks would just work on os_release()

Change-Id: Ifa495c37adeb24aa98e4e5e181b90cbbd5c0cddb
Related-Bug: #1659575
2017-04-03 17:59:54 +01:00
David Ames
9cd483e653 Enable Ocata Amulet Tests
- Add Zesty as a supported series to metadata.yaml.
- Turn on Xenial-Ocata Amulet test definitions.
- Sync charm helpers to get Juju 2.x amulet compatibility.
- Keeping Zesty-Ocata Amulet test definitions turned off until the
  metadata.yaml changes propagate to the charm store.

Change-Id: I99120d250e3de5015552a9dda1963a2a72ac7119
2017-03-09 14:35:00 -08:00
David Ames
4a8245cb6a Pre-release charm-helpers sync 17.02
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: I0f1514bb60bb2f0bb1d46b62580ec31778cfe142
2017-02-14 14:52:24 -08:00
Corey Bryant
a03bd758e5 Sync charm-helpers to pick up Ocata UCA support
Change-Id: I5c08d1060a1803d9d8c117d6f0d2b4c8c53c6ca5
2016-12-01 21:37:08 +00:00
Ryan Beisner
73e2e7b594 Update Amulet defs, series metadata and c-h sync
- Sync charm helpers if applicable.

- Fix test executable hashbags for virtualenv prep.

- Add Yakkety-Newton Amulet test definitions.

- Prep Xenial-Ocata Amulet test definitions (not yet enabled).

- Prep Zesty-Ocata Amulet test definitions (not yet enabled).

- Add Zesty charm series metadata.

- Remove Precise charm series metadata if present.

- Remove Precise Amulet test definitions if present.

Change-Id: Ie3c1f208dbb4497ad99f7f930457b7e8e057e6b3
2016-11-28 14:54:50 -06:00
Ryan Beisner
0ca5eb7122 Update amulet test definitions for Newton
- Remove Precise-Icehouse Amulet test definitions if they exist.

- Add Xenial-Newton Amulet test definitions.

- Add Yakkety-Newton Amulet test definitions.

- Use the percona-cluster charm in tests instead of the mysql charm.

Change-Id: Id9ca2fc92aebd310c03c9e0f11ef7354a641d2fa
2016-10-07 13:47:27 -05:00
David Ames
d381addef3 Pre-release charm-helpers sync 16.10
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: I01f5ed5d0105202bbaff672aea4267bd50508375
2016-09-30 09:08:21 -07:00
James Page
7e4bd68494 Add support for application version
Juju 2.0 provides support for display of the version of
an application deployed by a charm in juju status.

Insert the os_application_version_set function into the
existing assess_status function - this gets called after
all hook executions, and periodically after that, so any
changes in package versions due to normal system updates
will also be reflected in the status output.

This review also includes a resync of charm-helpers to
pickup hookenv and contrib.openstack support for this
feature.

Change-Id: Ia91a2de062fbc13fdb2b366217278bb96fc648fa
2016-09-20 12:32:57 +01:00
Liam Young
97a80fe777 Pre 1607 release charm-helpers sync
Sync charmhelpers to pick up bug fixes for 1607 release

Change-Id: I8a2a7eb08d846150fa800ad2f19f20f27cca478f
2016-07-21 14:21:32 +00:00
David Ames
6c69341940 Pre-release charm-helpers sync
To begin release testing get each charm up to date with lp:charm-helpers

Change-Id: Ic85e647d718246af2d7244cbad82f27f0a66c04e
2016-07-15 10:33:38 -07:00
Corey Bryant
faaf51e7ba Add systemd init support for deploy from source
systemd is used instead of upstart by default since Ubuntu 15.10
(Wily).  This adds systemd init file support for nova services
that are deployed from source.

Change-Id: I7d031e86853a3fb8b91501dc6bbd7f5f1b67701d
2016-07-13 19:25:46 +00:00
James Page
76f4183dff Resync charmhelpers for licensing change
The charm-helpers project have re-licensed to Apache 2.0
inline with the agreed licensing approach to intefaces,
layers and charms generally.

Resync helpers to bring charmhelpers inline with charm
codebase.

Change-Id: I1b988a174d4a236599cffef8334a2923bf031fff
2016-07-06 16:38:31 +01:00
Corey Bryant
9ad5cf9637 Add defaults for openstack-origin-git config option
openstack-origin-git currently only supports YAML that specifies
the git repositories to deploy from.

This adds support for default openstack-origin-git values. The
default values supported are: icehouse, kilo, liberty, mitaka,
and master.  For example: openstack-origin-git=master.

Change-Id: I032cb58283d54a9ccfcc268a7fd70b460a03aa58
2016-06-20 09:42:16 -04:00
James Page
6ee7c2fc17 Switch to using charm-store for amulet tests
All OpenStack charms are now directly published to the charm store
on landing; switch Amulet helper to resolve charms using the
charm store rather than bzr branches, removing the lag between
charm changes landing and being available for other charms to
use for testing.

This is also important for new layered charms where the charm must
be build and published prior to being consumable.

Change-Id: I1b601d88e32368b0f0705795ba03272a13816bb2
2016-06-17 11:50:54 +01:00
James Page
dc63d80dd9 Resync charm helpers
Add support for OpenStack Newton and Ocata.

Rework version detection code to just match on major version for
OpenStack projects using semantic versioning.

Provide fallback version detection based on major.minor versions
for swift packages.

Rework config-flags support helpers.

Fix is_ip function to correctly detect both IPv4 and IPv6 addresses.

Change-Id: Iacf0f688a6a74dbadde8591f0fa05c83d5c92b4e
2016-05-27 12:28:43 +01:00
James Page
f22e739c2c Resync charm-helpers
Avoid use of 'service --status-all' which is currently
broken on trusty for upstart managed daemons; the change
moves to detecting how the daemon is managed, and then
using upstart status XXX or the return code of service XXX
status to determine whether a process is running.

Fixes for IPv6 network address detection under Ubuntu
16.04 which changes the output format of the ip commands
slightly.

Update the version map to include 8.1.x as a Neutron
version for Mitaka.

Change-Id: I023dbb4b3d7e16d7ec50e5b78636e5c7688ff9cc
Closes-Bug: 1581171
Closes-Bug: 1581598
Closes-Bug: 1580674
2016-05-18 14:08:44 +01:00
Liam Young
cb0d08942a Charmhelper sync before 1604 testing
Change-Id: I74e737bd374966018421725321acbdee22526d0d
2016-04-12 14:08:57 +00:00
James Page
acd617f4ca Add support for DPDK userspace networking
Add full support for DPDK; this includes a number of configuration
options to allow the number of cores and memory allocated per
NUMA node to be changed.  By default, the first core and 1024MB of
RAM of each NUMA node will be configured for DPDK use.

When DPDK is enabled, OVS bridges are configured as datapath type
'netdev' rather than type 'system' to allow use of userspace
DPDK packet processing; Security groups are also disabled, as
iptables based rules cannot be applied against userspace sockets.

DPDK device binding is undertaken using /etc/dpdk/interfaces and
the dpdk init script provided as part of the DPDK package; device
resolution is determined using the data-port configuration option
using the <bridge:<mac address> format - MAC addresses are used
to resolve underlying PCI device names for binding with DPDK.

It's assumed that hugepage memory configuration is either done as
part of system boot as kernel command line options (set via MAAS)
or using the hugepages configuration option on the nova-compute
charm.

Change-Id: Ieb2ac522b07e495f1855e304d31eef59c316c0e4
2016-04-07 12:42:16 +01:00