tripleo-aio-helpers/docs/notes.md
2023-10-19 16:26:55 +11:00

2 KiB

Installing os-migrate

I now have two RHOSP-16.2 AIOs running on my homelab so it's time to install os-migrate.

The intallation instructions are at: https://os-migrate.github.io/os-migrate/user/install-from-galaxy.html

I setup a new Fedora 38 VM to run os-migrate from:

virt-install -n os-migrate \
  --osinfo fedora37 \
  --memory 2048 \
  --vcpus 2 \
  --import \
  --disk /data/os-migrate.qcow2 \
  --graphics vnc \
  --cloud-init disable=on,clouduser-ssh-key=ncox.pub,root-password-file=rpw  \
  --network bridge=br0

This VM is running at 172.23.0.53, on test-04(173.23.0.25)

RHEL9 doesn't know about fedora38

Lots of stuffing around to get the bridge working

Install and run os-miograte

dnf install ansible

vi os-migrate-vars.yml

Largely copied from the ~/.config/openstack/clouds.yaml files

Hints from os-migrate doco:

export OSM_DIR=/root/.ansible/collections/ansible_collections/os_migrate/os_migrate
export OSM_CMD="ansible-playbook -v -i $OSM_DIR/localhost_inventory.yml -e @os-migrate-vars.yml"

Despite what the os-migrate docs say, do not install python3-openstacksdk because on f38 the version is too recent.

dnf install iputils python3-openstackclient

Let's try networks:

$OSM_CMD $OSM_DIR/playbooks/export_networks.yml

Hmm, problems with versions.

Going to need devel tools for openstacksdk

dnf install python3-devel
dnf group install "C Development Tools and Libraries"

We're going to need ansible-core in the venv or it will pick up system versions of things.

python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
python3 -m pip install --upgrade 'openstacksdk>=0.36,<0.99'
python3 -m pip install --upgrade 'ansible-core'

Try again:

OSM_CMD $OSM_DIR/playbooks/export_networks.yml
   60  less os-migrate-data-test-1/clouds.yaml 
   61  less os-migrate-data-test-1/networks.yml 
   67  $OSM_CMD $OSM_DIR/playbooks/export_subnets.yml 
   68  less os-migrate-data-test-1/subnets.yml