DEPRECATED: Deploy OSM and Microstack together


One machine, one full solution.


The objective of this discourse topic is to show the fastest and easiest way of starting with OSM.

  1. Install Charmed OSM
  2. Install microstack
  3. Configure Charmed OSM to use microstack as a target VIM
  4. Exercise OSM

Installation steps

Preparing your host machine

Before installing Microstack, please review our Performance Tuning for system requirements.

Install Charmed OSM

sudo snap install microk8s --classic
sudo snap alias microk8s.kubectl kubectl
sudo snap install juju --classic
microk8s.status --wait-ready
microk8s.enable dashboard storage dns
juju bootstrap microk8s osm-on-k8s
juju add-model osm
juju create-storage-pool operator-storage kubernetes storage-class=microk8s-hostpath
juju create-storage-pool osm-pv kubernetes storage-class=microk8s-hostpath
juju create-storage-pool packages-pv kubernetes storage-class=microk8s-hostpath
juju deploy osm

Install Microstack

sudo snap install --classic --beta microstack
sudo snap restart microstack

Configure Charmed OSM to use microstack as a target VIM

osm vim-create --name microstack-site \
    --user admin \
    --password keystone \
    --auth_url \
    --tenant admin \
    --account_type openstack \
    --config='{security_groups: default, \
               keypair: david, \
               project_name: admin, \
               user_domain_name: default, \
               region_name: microstack, \
               insecure: True, \
               availability_zone: nova, \
               version: 3}'

Exercise OSM

Bootstrap microstack

    type: openstack
    auth-types: [userpass]

juju add-cloud --local microstack microstack.yaml

mkdir images
curl --output images/bionic-server-cloudimg-amd64.img
microstack.openstack image create --file images/bionic-server-cloudimg-amd64.img --public --container-format=bare --disk-format=qcow2 bionic
snap run --shell microstack.launch
juju autoload-credentials
mkdir simplestreams
juju metadata generate-image -d ~/simplestreams -i $IMAGE -s bionic -r microstack -u
microstack.openstack flavor create juju-controller --ram 2048 --disk 20 --vcpus 1
juju bootstrap --debug --config network=test --config external-network=external --config use-floating-ip=true --bootstrap-series=bionic --bootstrap-constraints instance-type=juju-controller --metadata-source $HOME/simplestreams/ microstack microstack

1 Like