Juju Charm - Ironic
Go to file
Ghanshyam Mann cd3c8395f8 [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

charm repos need few updates on either py2 drop or updating
ussuri python template, tox.ini etc.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Needed-By: https://review.opendev.org/#/c/714728/

Change-Id: I533f383c7289759c71cf5a4096b38c9bd7c9ac0a
2020-03-25 06:13:55 +00:00
hooks Replace openstack.org git:// URLs with https:// 2019-03-24 20:32:58 +00:00
templates Initial commit 2017-12-04 23:06:40 -05:00
.gitignore Add missing tox.ini and .gitreview 2018-06-26 23:03:50 -04:00
.gitreview OpenDev Migration Patch 2019-04-19 19:37:04 +00:00
.zuul.yaml [ussuri][goal] Updates for python 2.7 drop 2020-03-25 06:13:55 +00:00
charm-helpers-sync.yaml Initial commit 2017-12-04 23:06:40 -05:00
config.yaml Initial commit 2017-12-04 23:06:40 -05:00
copyright Initial commit 2017-12-04 23:06:40 -05:00
icon.svg Initial commit 2017-12-04 23:06:40 -05:00
Makefile Initial commit 2017-12-04 23:06:40 -05:00
metadata.yaml Initial commit 2017-12-04 23:06:40 -05:00
README.md Improve readme 2017-12-04 23:41:55 -05:00
test-requirements.txt Add missing tox.ini and .gitreview 2018-06-26 23:03:50 -04:00
tox.ini [ussuri][goal] Updates for python 2.7 drop 2020-03-25 06:13:55 +00:00

Overview

This charm deploys and configures a node with OpenStack Ironic which has integration with other OpenStack components.

Configuration

Create an options.yaml file with the necessary configurations needed to deploy the charm:

ironic:
  series: xenial
  constraints: spaces=internal,public,baremetaldeploy,ipmimanagement
  num_units: 0
  annotations:
    "gui-x": "1353"
    "gui-y": "1078"
  options:
    openstack-origin: "cloud:xenial-newton"
    region: "RegionOne"
    enable-ipxe: False
    enabled-drivers: "pxe_ipmitool,agent_ipmitool"
    nodes-cleaning: False
    dhcp-provider: neutron
    debug: True
    verbose: True
    swift-url: "http://10.20.0.2:8787/"
    swift-account: "baremetal"
    swift-container: "images"
    swift-temp-url-duration: 1200
    swift-temp-url-key: "key"
    os-admin-network: "10.0.0.0/24"
    os-internal-network: "10.0.1.0/24"
    os-public-network: "10.0.2.0/24"
    os-deploy-network: "10.0.3.0/24"
    deploy-network-uuid: "7c3ee6a9-4f91-43d5-bb1c-44aea99abcf0"
    cleaning-network-uuid: "7c3ee6a9-4f91-43d5-bb1c-44aea99abcf0"

The above configurations can be used to deploy the charm using the OpenStack Newton release. Make sure you change the config options according to your needs. See the configuration section for details about the charm's config options.

Networking

OpenStack Ironic supports integration with Neutron, which is used as a DHCP provider for the ironic-conductor.

Usage

Deploy the charm and add the relations with the other OpenStack charms:

juju deploy --config options.yaml ironic

juju add-relation ironic mysql
juju add-relation ironic keystone
juju add-relation ironic rabbitmq-server
juju add-relation ironic glance
juju add-relation ironic neutron-api
juju add-relation ironic swift-proxy

To scale out horizontally:

juju add-unit ironic -n <number_of_units>

To scale down:

juju destroy-unit ironic/<unit_number>

To deploy locally

$ juju deploy $path_to_this_checkout --series xenial