Commit Graph

35 Commits

Author SHA1 Message Date
Nobuto Murata 0e9136fe1e Expose max_local_block_devices as an explicit charm option
It's useful to force instance creations to fail if ephemeral drives are
requested when cloud admins want users to use persistent volumes always.

Closes-Bug: #1953561
Change-Id: I1c958b4bcf79512c06de6d81fe55c681bb5f38a7
2022-02-21 22:28:40 +09:00
Zhang Hua b182ffa7f7 Add the support to customize the console access port
For novnc, need to set novncproxy_port in proxy nodes and
novncproxy_base_url in nova-compute nodes.
For xvpvnc, need to set xvpvncproxy_port in proxy nodes and
xvpvncproxy_base_url in nova-compute nodes.
For spice, need to set spicehtml5proxy_port in proxy nodes and
spicehtml5proxy_base_url in nova-compute nodes.

When release >= Mitaka, novncproxy_port and xvpvncproxy_port
are moved from [default] section into [vnc] section.
spicehtml5proxy_port is renamed to html5proxy_port and moved
to [spice] section.

So eventually the console access port can be customized by:

juju config nova-cloud-controller console-access-protocol=novnc
juju config nova-cloud-controller console-access-port=xx

If console-access-port is not defined, then default port is 6080
for novpc, 6081 for xvpvnc, 6082 for spice.

Change-Id: I4775ad42ba11b0c28163bf7e3718c56d18a2031f
Closes-Bug: #1800753
Signed-off-by: Zhang Hua <joshua.zhang@canonical.com>
2019-03-16 10:46:44 +00:00
Andre Ruiz 5f21ea7124 Implement new option: enable_new_services
This change implements a new option in config.yaml that allows
services to come up disabled and be manually enabled later.

Change-Id: I345b56e347b63650ee3df07773ccb2e333610355
Closes-Bug: #1758776
2019-02-19 11:16:21 -03:00
Syed Mohammad Adnan Karim 95cd9bfd10 Add default project quota configuration for compute
Prior to this, the charm config did not support default quota
configurations for compute (ie. instances, compute, ram, etc.).
Default quota configuration changes will not impact existing
projects with modified quotas. Only new projects and projects with
unmodified quotas will adopt the defaults in the configuration file.

The following default quota settings were added:
instances
cores
ram
metadata_items
injected_files
injected_file_content_bytes
injected_file_path_length
key_pairs
server_groups
server_group_members

The functional test added checks that nova.conf quotas are set in
the correct section of the file.

Change-Id: Iae8c84dbfec97e1879d51963125f7674ea20ba22
Closes-Bug: 1386911
2018-12-17 20:29:03 +00:00
Alex Kavanagh 9c12812735 Switch the charm to support py3
Some major changes:
* the charm has been rebased (from a Python perspective) to be rooted in
  the charm directory.  This is a single root.
* Imports have been changed so that the don't add lots of imports to the
  namespace of the module doing the import.
* The code that used to run at module import time has been made lazy
  such that it only has to run if the relevant functions are called.
  This includes restart_on_change parameters, the harden function and
  the parameters to the guard_map.  Appropriate changes will be
  submitted to charm-helpers.
* Several tests had to be re-written as (incorrect) mocking meant that
  text fixtures didn't actually match what the code was doing.  Thus,
  the tests were meaningless.
* This has had a net positive impact on the unit tests wrt to importing
  modules and mocking.

Change-Id: Id07d9d1caaa9b29453a63c2e49ba831071e9457f
2018-10-18 15:43:03 +01:00
Liam Young 630a07013f Accept lists in pci-alias charm config
Allow json lists to be passed in via the pci-alias charm config
option so that multiple aliases can be set.

Increase amulet timeout due to gate failures

Change-Id: I3b5ea70224536f8d40f9c04482fa676c2b230bdd
Partial-Bug: #1735205
2018-10-05 10:07:51 +00:00
Edward Hope-Morley af5a4ec747 Add disk-allocation-ration config option
We already support configuring ram and cpu overcommit so
this patch adds the ability to control disk overcommit.

Change-Id: Ib172e8b48cb34de4beb9cec1a277dc43ded36eed
Closes-Bug: 1726346
2017-10-23 12:11:35 +01:00
Zhang Hua 2eabf254f3 Add pci-alias option
Add a new pci-alias option which supports the use of PCI
devices in flavors. This allows, for example, a GPU or
a SR-IOV device to be automatically allocated to an
instance using a specific flavor.

Change-Id: I249ba04085d37657df0c8e3bb21723a388f08938
Closes-Bug: 1649868
2017-06-29 13:43:33 +01:00
James Page 469ef8dced Add support for serial console proxy access
Support access to instances via optionally enabled serial console
feature provided in Nova.

Seria console access is enabled using a new config flag; this flag
plus the required base_url for the nova-serialproxy are also passed
over the cloud-compute relation for use in nova-compute units.

This is only supported in OpenStack Juno or later, and replaces
the standard output to the nova console-log.

Change-Id: I3bfcca88bd6147be337e6d770db7348170b914e6
2016-09-15 12:37:33 +01:00
Jenkins 5c9a385430 Merge "Add support for SR-IOV enablement via neutron-api" 2016-06-23 09:59:23 +00:00
Timothy Kuhlman 422c2797b3 Add support for SR-IOV enablement via neutron-api
The neutron-api charm will present an 'enable-sriov' flag to the
nova-cloud-controller charm when SR-IOV support has been enabled by the
end user; ensure that the PciPassthroughFilter is added to the filter
chain when SR-IOV is enabled, so that instances with SR-IOV device
assignments are scheduled to the correct compute hosts.

Change-Id: Iffa77abf22823ce37999ea08f943ce5eeb6af492
2016-05-25 10:28:57 -06:00
Ryo Tagami 854e3e7533 Add MidoNet support in nova-cc
When using MidoNet as Neutron plugin, booting instance with security
group other than `default` will result in failure.  This is because some
of the essential configuration options are missing from `nova.conf` on
Nova controller, namely `firewall_driver`, `libvirt_vif_driver`, and
`security_group_api`.

This commit will fix this problem by configuring those configuration
options in `nova.conf` on Nova controller.

Change-Id: Ibbaf6720bb27512a9d7dfe68d3258dd84ed17b0b
Signed-off-by: Ryo Tagami <rtagami@airstrip.jp>
2016-05-02 13:05:40 +09:00
Edward Hope-Morley 24514dcd5b Support using internal network for clients
Openstack mostly defaults to using public endpoints for
internal communication between services. This patch adds
a new option use-internal-endpoints which, if set to True,
will configure services to use internal endpoints where
possible.

Closes-Bug: 1456876
Change-Id: I0f13fa1ab66864859d3adb37e5ec64bd95d7025d
2016-04-01 12:40:06 +01:00
Liam Young 0e58516b13 Add Liberty template with keystone v3 support
This change adds a template for liberty or above that works with a keystone
v3 endpoint. It also removes the Mitaka template as it duplicated the liberty
one.

Change-Id: Ic0bd24c8516b541c44dac9c8a92357050e75fcf6
Partial-Bug: 1522397
2016-03-29 08:20:24 +00:00
billy.olsen@canonical.com 19df3b6430 [billy-olsen,r=] Add region information to the conf files, relations.
This change adds the appropriate region information to the conf files
and to the cloud-compute relations in order to ensure that the region
can be configured on all nova components.

Closes-Bug: #1468306
2016-02-12 10:38:21 -07:00
Felipe Reyes 894949fd5b Expose scheduler_default_filters as a config option
Fixes LP: #1387073
2015-09-17 17:15:37 -03:00
bbaqar@plumgrid.com 7abb079882 Enabling neutron security groups for PLUMgrid plugin 2015-08-25 20:34:46 +05:00
Edward Hope-Morley c95bd4e655 [xianghu,r=hopem]
Add Console SSL support. This allows SSL to be used for
instance console sessions independently of whether SSL
is used for the Nova API endpoint.

Closes-Bug: 1476455
2015-07-24 13:29:29 +01:00
Hui Xiang d61aa28daf Fix comments. 2015-07-22 20:01:24 +08:00
James Page a28b7517de [smukkamala,narindergupta] Add support for Nuage VSP. 2015-04-13 09:49:59 +01:00
Edward Hope-Morley 5b86b3ae22 [hopem,r=]
Fixes novnc SSL (ha and single unit)

Closes-Bug: 1441143
2015-04-08 13:10:09 +01:00
James Page 4685c40f52 Rebase 2015-03-31 15:56:11 +01:00
James Page 576a4a91a8 [cory-benfield,r=james-page] Add support for Calico plugin. 2015-03-31 12:39:19 +01:00
James Page eaa0fc5093 Rebase, resync 2015-03-30 18:00:34 +01:00
James Page be00c7931e Switch to using charm-helper templates for keystone authtoken 2015-03-25 09:25:53 +00:00
James Page f44862fa16 Switch to using charm-helper templates for rabbitmq 2015-03-25 09:22:41 +00:00
James Page 2411a3b5fd Update kilo config 2015-03-24 17:38:28 +00:00
James Page 22f83cf13e Rebase 2015-03-16 14:17:04 +00:00
James Page 7314ddc353 Reorder zeromq inclusion 2015-02-24 13:47:28 +00:00
James Page 6fd98455f9 Move zeromq section to correct part of file 2015-02-24 13:35:33 +00:00
James Page 6e15380ff0 Add zeromq support for kilo 2015-02-24 11:51:47 +00:00
Edward Hope-Morley 0bd820b1e7 added signing_dir field to template 2015-02-20 10:21:52 +00:00
James Page 327cb68791 Mark template as for kilo 2015-01-21 09:24:29 +00:00
James Page 560720ca7b Add sectional glance for kilo 2015-01-20 15:06:54 +00:00
James Page a9a716511d add kilo support 2015-01-20 14:59:01 +00:00