📝 Update documentation
This commit is contained in:
parent
23de20b1e5
commit
f930b5f746
4 changed files with 133 additions and 7 deletions
5
docs/create_aio_vm.md
Normal file
5
docs/create_aio_vm.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Documentation for create_aio_vm
|
||||
|
||||
## Networking
|
||||
|
||||
Networking has been a real pain. The RHOSP AIO deployment seems to force the vr-ctlplane interface to use dhcp. Originally I was trying to use static IPs configured with cloud-init (using bootcmd because of the version) but the deploy would die. To fix this I now speciiy MACs for the interfaces and then use an external DHCP server. Maybe this is configurable in the RHOSP standalone deploy. If so it would be better to use that. It would also be nice to do some feature switches so that if the version of virt-install allows I could use network-config instead of bootcmd
|
||||
84
docs/notes.md
Normal file
84
docs/notes.md
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
# 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:
|
||||
|
||||
```bash
|
||||
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:
|
||||
|
||||
|
||||
```bash
|
||||
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.
|
||||
|
||||
```bash
|
||||
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.
|
||||
```bash
|
||||
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
|
||||
```
|
||||
|
||||
```bash
|
||||
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
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue