DEPRECATED: Deploy OSM and Microstack together

MicroOSM

One machine, one full solution.

Objective

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 http://10.20.20.1:5000/v3 \
    --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

clouds:
  microstack:
    type: openstack
    endpoint: http://10.20.20.1:5000/v3
    auth-types: [userpass]
    regions:
      microstack:
        endpoint: http://10.20.20.1:5000/v3

juju add-cloud --local microstack microstack.yaml

mkdir images
curl https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img --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
exit
mkdir simplestreams
juju metadata generate-image -d ~/simplestreams -i $IMAGE -s bionic -r microstack -u http://10.20.20.1:5000/v3
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