203 Commits

Author SHA1 Message Date
James Page
98459797bb Enable automatic host cell discovery
Configure the scheduler to automatically discover and
map hosts into cell1 every 30 seconds ensuring that
hosts are discovered automatically.

This will be completed by future work to orchestrate
the enablement and mapping of compute hosts into cells
using relations and actions at a later date.

Change-Id: I5ed10e67936388bb074739b63e3a5ecf9036035f
Partial-Bug: 1667124
2017-02-22 16:48:46 -05:00
Corey Bryant
1e2647a9b5 Enable minimal cells v2 support
A minimal cells v2 setup is required in Ocata, which includes the
following databases:
 1. An API database (named nova_api)
 2. A special cell0 database (named cell0)
 3. A "cell1" database (named nova - we're using the nova db as cell1)

The order of nova-manage commands is also updated in this commit.
The 'nova-manage api_db sync' must occur first because 'nova-manage
cell_v2' commands use the API database. 'nova-manage db sync' must
then be run after the 'nova-manage cell_v2' commands.

Finally, 'nova-manage cell_v2 discover_hosts' must be run whenever a
new compute node is introduced to add the host to cell1.

This commit includes a sync of charm-helpers to pick up AMQPContext
updates for transport_url.

Change-Id: Ia6f36ca8a360dc8490e9f41b62d499fa4d73d0b9
2017-02-16 18:23:21 +00:00
Corey Bryant
2564cf5a5f Enable nova-placement-api
This change installs the nova-placement-api, runs it under
mod_wsgi with apache2, updates nova.conf accordingly, and
registers its endpoints.

Change-Id: I4af4afa591cf68964e6146ca0ca0c51d1ddb8a64
2017-02-09 21:30:13 +00:00
Frode Nordahl
2eef644a5c Revert "Update policy.json to give service role access"
This reverts commit ec2579a8448281cdf1154018c0a56c9d4b174e36.

We are not quite ready for fine grained RBAC for service
accounts.

Change-Id: I210685d7b9036abb191073d512f8a65ebff30613
Closes-Bug: 1655028
2017-01-11 15:33:11 +01:00
Frode Nordahl
ec2579a844 Update policy.json to give service role access
Role check is scoped to the configured service project and access
is granted to os_compute_api:servers:detail:get_all_tenants.

This change is required to allow Ceilometer to operate using a
non-Admin user.

Change-Id: I17729e2089cc658588eaea93f8de5051369e5dff
Closes-Bug: 1636098
2016-11-29 08:41:49 +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
James Page
920deeaf61 Enable use of use_neutron flag
For mitaka onwards, use of the 'use_neutron' flag should be made
instead of setting the network API class.

For newton, this is required as the network_api_class is ignored.

Change-Id: I843d82eb0518a0c27858816becf0f8b392bdb5eb
2016-07-20 13:31:02 +01:00
Corey Bryant
01148cc7a9 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: Ie71aed8c1f28204d5fbd735d51cea6d77977a637
2016-07-07 11:05:45 +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
Liam Young
44a5cc737c Update keystone_auth section for Mitaka
The keystone_auth section has changed for Mitaka. The Liberty format
,which is currently being used, is incompatible with keystone v3 on
Mitaka as it assumes the id of the default domain is default where
as in Mitaka it is a uuid.

The install documentation for Mitaka dictates that domain name should
be used rather than id when setting project_domain and user_domain

Change-Id: Id79a3dc10f3f08f837e6efdfb446380bb00a5891
Partial-Bug: 1571347
2016-04-17 16:59:46 +00:00
Jenkins
1e17fbc64e Merge "Drop support for Neutron functionality" 2016-04-11 08:24:26 +00:00
Corey Bryant
902224c44b Update config templates for Mitaka
Update api-paste.ini to align with the upstream Mitaka version.

Add nova.conf for Mitaka, dropping all EC2 config options as the
EC2 API was dropped from the nova source tree in Mitaka.

Change-Id: I341d0043d2580db2aa7974537321913dac70c3b7
2016-04-08 15:40:59 +00:00
James Page
c2bc02e3ab Drop support for Neutron functionality
Neutron functionality was deprecated last release; remove
direct support for managing the neutron-server process and
associated plugin support from this charm.

All neutron-server support is now provided by the neutron-api
charm.

Change-Id: Iec7bd5ec6d835b573a15f8163fa5f78842bd672b
2016-04-08 11:46:52 +01: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
Jenkins
25c7a5968e Merge "Add Liberty template with keystone v3 support" 2016-03-30 08:37:29 +00: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
James Page
6e8dcf8af8 Drop support for OpenStack releases < Icehouse
Rollup all old configuration file templates, remove any related
to Quantum which was renamed in the Havana release.

Drop references in code to Quantum, refactor unit tests to baseline
on Icehouse rather than anything older.

Drop relation and associated references to nova-volume service;
deprecated in Folsom and removed in Havana.

Drop ml2 migration - this was required when migrating to Icehouse
from older releases.

Change-Id: I6f5d641ffef2599d0dfc8e16a2dce3cc7be88bd4
2016-03-23 12:40:37 +00:00
James Page
90f376453b Add nova-api database setup for Mitaka
Mitaka requires the use of a separate nova-api database;
ensure that this is setup on the shared-db relation and add
a new [api_database] section to the mitaka nova.conf file.

Add a new NovaAPISharedDBContext wrapper to prefix the key
names for the nova-api database with 'nova_api_' so that we
can present two database connections to the same configuration
file.

Ensure that 'nova-manage api_db sync' is called for database
setup for >= mitaka release.

For upgrades, ensure that the database migration and service
start is deferred until the nova_api database has been
setup by the related mysql service.

Closes-Bug: #1556896

Change-Id: If1c9a037b1e0745a486a57fddf885e26aa7e313d
2016-03-18 12:28:57 +00:00
billy.olsen@canonical.com
8808bf9302 Update code with feedback from code review:
1. Rebase
2. Update the new mitaka/nova.conf template
3. Add related_unit call to get the units
2016-02-17 10:24:59 -07:00
billy.olsen@canonical.com
b492f1a79e Merge with trunk. 2016-02-17 09:35:07 -07: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
James Page
1e8a5fc028 Fixup template header 2016-02-12 11:53:43 +00:00
James Page
e5e8a7044a Username ffs 2016-02-09 12:46:31 +00:00
James Page
61a89dacb4 More depreprecation warnings 2016-02-09 12:42:21 +00:00
James Page
bc46078b86 Set region as well 2016-02-09 12:41:14 +00:00
James Page
3021763bb6 More fixes 2016-02-09 12:39:37 +00:00
James Page
556971804c Attempt to fixup neutron 2016-02-09 12:35:49 +00:00
Liam Young
c68cb753ae Update api-paste.ini from https://git.launchpad.net/~ubuntu-server-dev/ubuntu/+source/nova/tree/etc/nova/api-paste.ini 2016-01-20 11:50:19 +00:00
Liam Young
bd2de4a870 Fix up paste ini for mitaka 2016-01-15 14:34:22 +00:00
Matt Dupre
bc92d3d3d3 Set Nova security group configuration for Calico on Juno as well 2016-01-11 12:47:12 -05:00
Subbarayudu Mukkamala
1525f2129b Merge from lp:~openstack-charmers/charms/trusty/.../next/ 2015-10-27 07:51:11 -07:00
Christopher Glass
ca94f0699d Enable rate-limiting for the API. 2015-10-02 14:05:06 +02: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
Subbarayudu Mukkamala
2fcaeea48c Merge from lp:~openstack-charmers/.../next 2015-07-26 19:42:39 -07: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
0440a4dc78 Fix template format err. 2015-07-22 20:33:59 +08:00
Hui Xiang
d61aa28daf Fix comments. 2015-07-22 20:01:24 +08:00
Hui Xiang
6eef99c3af Support noVNC session for SSL. 2015-07-21 10:42:36 +08:00
Subbarayudu Mukkamala
5d4df943ed Merge with ~openstack-charmers/charms/trusty/nova-cloud-controller/next 2015-05-27 16:29:46 -07:00
Subbarayudu Mukkamala
ac7756acaf Add nuage neutron pluin config file: nuage_plgini.ini 2015-05-10 19:44:55 -07:00
James Page
4ba38a7c53 Revert previous commit, work incomplete 2015-04-20 11:21:36 +01:00
Corey Bryant
709209244d Deploy from source 2015-04-15 14:17:56 +00:00
James Page
a28b7517de [smukkamala,narindergupta] Add support for Nuage VSP. 2015-04-13 09:49:59 +01:00
Subbarayudu Mukkamala
e4d73595e6 Merge from lp:~openstack-charmers/.../next 2015-04-09 19:39:10 -07: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