https://github.com/sbueringer/cluster-api-provider-openstack-images
https://github.com/sbueringer/cluster-api-provider-openstack-images
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sbueringer/cluster-api-provider-openstack-images
- Owner: sbueringer
- License: apache-2.0
- Created: 2021-03-21T05:59:20.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-28T09:31:39.000Z (about 4 years ago)
- Last Synced: 2025-01-24T13:12:36.622Z (5 months ago)
- Language: Shell
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Images for CAPI
These images are only used to test Cluster API provider OpenStack.
# Devstack OS Image
## Manual Devstack build
```bash
export PACKER_FLAGS="-on-error=ask -var 'headless=false' -var 'cpus=12' -var 'disk_size=15360' -var 'memory=24576'"
export PACKER_LOG=1
export PACKER_LOG_PATH=/tmp/packer.log
make build-qemu-ubuntu-2004# Debugging
## Find ssh port via
ps aux | grep kvm
# e.g.
180143 52.4 3.1 22261992 2042452 pts/4 Sl+ 08:07 4:47 /usr/bin/qemu-system-x86_64 -display gtk -machine type=pc,accel=kvm -boot once=d -vnc 127.0.0.1:40 -name devstack -device virtio-scsi-pci,id=scsi0 -device scsi-hd,bus=scsi0.0,drive=drive0 -device virtio-net,netdev=user.0 -drive if=none,file=output/devstack/devstack,id=drive0,cache=writeback,discard=ignore,format=qcow2 -netdev user,id=user.0,hostfwd=tcp::3614-:22 -cdrom ${GITHUB_HOME}/sbueringer/cluster-api-provider-openstack-images/packer_cache/48e4ec4daa32571605576c5566f486133ecc271f.iso -m 16144M -smp cpus=4,sockets=4
# port: 3614## Connect via ssh (pw: builder)
ssh [email protected] -p 3614
```## Publish image manually
```bash
gsutil cp ./output/devstack.raw.tar.gz gs://artifacts.k8s-staging-capi-openstack.appspot.com/test/devstack/$(date +%Y-%m-%d)/devstack.raw.tar.gz
gcloud compute images create devstack --project rich-surge-165507 --source-uri gs://artifacts.k8s-staging-capi-openstack.appspot.com/test/devstack/$(date +%Y-%m-%d)/devstack.raw.tar.gz \
--licenses "https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"
```## Test image
```bash
# create network and firewall rules according to ${CAPO_HOME}/hack/ci/devstack-on-gce-project-install.sh
gcloud compute instances create openstack \
--project ${GCP_PROJECT} \
--zone ${GCP_ZONE} \
--image devstack \
--boot-disk-size 100G \
--boot-disk-type pd-ssd \
--can-ip-forward \
--tags http-server,https-server,novnc,openstack-apis \
--min-cpu-platform "Intel Skylake" \
--machine-type "n1-standard-8" \
--network-interface=network="capo-e2e-mynetwork,subnet=capo-e2e-mynetwork,aliases=/24" \
--metadata-from-file user-data=${CAPO_HOME}/hack/ci/devstack-cloud-init.yaml
```# Release via
(for now this only works with Ubuntu)
* make some changes
* execute:```bash
RELEASE_NUMBER=1# Ubuntu
git tag ubuntu-2004-v1.18.15-${RELEASE_NUMBER} -f; git push origin ubuntu-2004-v1.18.15-${RELEASE_NUMBER} -f# Devstack
git tag devstack-victoria-${RELEASE_NUMBER} -f; git push origin devstack-victoria-${RELEASE_NUMBER} -f# Amphora
git tag amphora-victoria-${RELEASE_NUMBER} -f; git push origin amphora-victoria-${RELEASE_NUMBER} -f
```