Results 1 to 1 of 1

Thread: Openstack on LXD and Juju issue

  1. #1
    Join Date
    Oct 2006
    Beans
    20

    Openstack on LXD and Juju issue

    So I have a large 18.04 VM running and have successfully configured LXD. I followed the instructions on the Openstack-on-LXD page to get a stack running using Juju. All is good. I also did this using conjure-up but the deployment with conjure-up did not include Heat.

    Now comes my issue. Openstack-on-LXD creates compute nodes with QEMU as the default virt-type while conjure-up uses LXD. In both installs, I want to create (2) host aggregates and availability zones, place (1) compute node in each host aggregate, then set the virt-type on one to KVM and the other as LXD. Neither install method seems to allow me to do this and neither deployed environment seems to allow me to manage this post install.

    Primarily, with Juju, when I go to the Juju GUI I can not configure each compute node independent of each other. I can create the AZ's and HA's in the Horizon dashboard but when I go to the compute container, the nova.conf tells me it is manages by Juju and any edits will be overwritten.

    So, I am guessing that I can edit the "bundle-bionic-queens.yaml" file and add the virt-type option to the nove-compute section as follows:

    nova-compute:
    annotations:
    gui-x: '250'
    gui-y: '250'
    charm: cs:nova-compute
    num_units: 2
    options:
    enable-live-migration: False
    enable-resize: False
    migration-auth-type: ssh
    openstack-origin: cloud: xenial-queens
    force-raw-images: False
    virt-type: kvm

    But can I create (2) compute nodes by adding in a second nova-compute stanza like this:

    nova-compute:
    annotations:
    gui-x: '250'
    gui-y: '250'
    charm: cs:nova-compute
    num_units: 1
    options:
    enable-live-migration: False
    enable-resize: False
    migration-auth-type: ssh
    openstack-origin: cloud: xenial-queens
    force-raw-images: False
    virt-type: kvm
    default-availability-zone: azKVM
    nova-compute:
    annotations:
    gui-x: '250'
    gui-y: '250'
    charm: cs:nova-compute
    num_units: 1
    options:
    enable-live-migration: False
    enable-resize: False
    migration-auth-type: ssh
    openstack-origin: cloud: xenial-queens
    force-raw-images: False
    virt-type: lxd
    default-availability-zone: azLXD

    Also, in the charm it says "NOTE: Availability zones must be created manually using the 'openstack aggregate create' command." That seems to be an issue as I have to have openstack installed first and cannot have them created in one of the other charms at install. I don't see how I can I run a base install with (1) compute node, create the AZ's then add the second compute node in the Juju GUI then set the virt-type and AZ at that time for the second compute node as JuJu doesn't let me set the properties for each compute-node.

    I am confident that what I am trying to do is possible but I cannot seem to find any info to get me to the next step. Any help would be appreciated.
    Last edited by quartzeye; June 14th, 2018 at 11:20 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •