The charm should automatically add new compute to respective AZ

Bug #1873470 reported by Andrey Grebennikov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Nova Compute Charm
Triaged
Wishlist
Unassigned

Bug Description

When utilizing MAAS as the machines supplier, it is possible to retrieve information about the MAAS AZ that the machine belongs to. Juju provides this info as the environment variable JUJU_AVAILABILITY_ZONE.
In case there is the same structure of the availability zones in both MAAS and OpenStack, the charm should automatically add the new compute to the respective OpenStack AZ once deployed.

Revision history for this message
Chris MacNaughton (chris.macnaughton) wrote :

This feature already exists in the nova-compute charm. Per the charm readme:

There are two options to provide default_availability_zone config
for nova nodes:

    default-availability-zone
    customize-failure-domain

The order of precedence is as follows:

    1. Information from a Juju provider (JUJU_AVAILABILITY_ZONE)
    if customize-failure-domain is set to True and Juju
    has set the JUJU_AVAILABILITY_ZONE to a non-empty value;

    2. The value of default-availability-zone will be used
    if customize-failure-domain is set to True but no
    JUJU_AVAILABILITY_ZONE is provided via hook
    context by the Juju provider;

    3. Otherwise, the value of default-availability-zone
    charm option will be used.

Changed in charm-nova-compute:
status: New → Invalid
Revision history for this message
Andrey Grebennikov (agrebennikov) wrote :

Chris, I saw this before but it is not working as expected. This is nothing to do with having the machine automatically moved to the AZ.
These two options are only about the config setting in nova.conf of the scheduler, which will dictate the scheduler which AZ to spin up an instance in.

From the nova.conf reference:
"default_availability_zone = nova
This option determines the availability zone to be used when it is not specified in the VM creation request. If this option is not set, the default availability zone ‘nova’ is used."

Moreover, these options of juju do nothing when applied to the computes because the compute isn't responsible for the instance placement.

Revision history for this message
James Page (james-page) wrote :

I believe the part that is missing is the automatic creation of host aggregates for OpenStack AZ based on the underlying zone information provided to the charm from Juju.

default_availability_zone should be set on the compute nodes - however the host aggregates also need to be created to ensure that are exposed to end users of the cloud for placement.

Changed in charm-nova-compute:
status: Invalid → New
Revision history for this message
James Page (james-page) wrote :

This should probably be orchestrated by the nova-cloud-controller leader unit - with compute units presenting their zone placement via the relation to nova-cc. Host aggregates can then be created, and I think that the compute hosts will then *just* appear in the right place for placement usage.

Changed in charm-nova-compute:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Nobuto Murata (nobuto) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.