Skip to content

Instantly share code, notes, and snippets.

View antonym's full-sized avatar
👨‍💻

Antony Messerli antonym

👨‍💻
View GitHub Profile
#!ipxe
# for use with eqmetal
imgfree
kernel https://github.com/netbootxyz/core-image/releases/download/latest/core-kernel os_name=rocky os_version=9 initrd=core-initrd.img console=ttyS1,115200n8 playbook=kexec
initrd https://github.com/netbootxyz/core-image/releases/download/latest/core-initrd.img
boot
FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && \
apt-get install -y \
dosbox \
dosfstools \
git \
| raid_interface | idrac-wsman
| target_raid_config | {'logical_disks': [{'controller': 'RAID.Slot.6-1', 'physical_disks': ['Disk.Bay.0:Enclosure.Internal.0-1:RAID.Slot.6-1', 'Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.6-1'], 'size_gb': 'MAX', 'raid_level': '1', 'volume_name': 'RAID', 'is_root_volume': True}]}
Clean Steps
[{
"interface": "raid",
"step": "delete_configuration"
},
2019-05-29 13:29:28.075 118434 ERROR cinder.cmd.manage Traceback (most recent call last):
2019-05-29 13:29:28.075 118434 ERROR cinder.cmd.manage File "/openstack/venvs/cinder-19.0.0.0rc2.dev60/lib/python2.7/site-packages/cinder/cmd/manage.py", line 354, in _run_migration
2019-05-29 13:29:28.075 118434 ERROR cinder.cmd.manage found, done = migration_meth(ctxt, count)
2019-05-29 13:29:28.075 118434 ERROR cinder.cmd.manage File "/openstack/venvs/cinder-19.0.0.0rc2.dev60/lib/python2.7/site-packages/cinder/cmd/manage.py", line 128, in shared_targets_online_data_migration
2019-05-29 13:29:28.075 118434 ERROR cinder.cmd.manage non_shared_hosts, total_vols_to_update = _get_non_shared_target_hosts(ctxt)
2019-05-29 13:29:28.075 118434 ERROR cinder.cmd.manage File "/openstack/venvs/cinder-19.0.0.0rc2.dev60/lib/python2.7/site-packages/cinder/cmd/manage.py", line 111, in _get_non_shared_target_hosts
2019-05-29 13:29:28.075 118434 ERROR cinder.cmd.manage capabilities = rpcapi.get_capabilities(ctxt, servic
@antonym
antonym / gist:f43a967fac0f1c2bcf00f976295cba0f
Created May 9, 2016 15:33
openstack_user_config.yml for openstack-ansible blog
---
# container networks, safe to leave these as defaults
cidr_networks:
container: 172.29.236.0/22
tunnel: 172.29.240.0/22
storage: 172.29.244.0/22
# IPs from your tunnel and container networks that you want to reserve for the hosts
used_ips:
- 172.29.236.1
rroot@infra1:/etc/systemd/network# systemctl restart nspawn-macvlan
root@infra1:/etc/systemd/network# ls -al
total 20
drwxr-xr-x 2 root root 4096 Jul 11 17:44 .
drwxr-xr-x 7 root root 4096 Jul 11 17:42 ..
-rw-r--r-- 1 root root 81 Jul 11 17:44 0-nspawn_host-mv-nspawn0.netdev
-rw-r--r-- 1 root root 147 Jul 11 17:44 0-nspawn_host-mv-nspawn0.network
-rw-r--r-- 1 root root 99 Jul 11 17:44 99-default.link
root@infra1:/etc/systemd/network# systemctl status nspawn-macvlan
● nspawn-macvlan.service - nspawn host macvlan integrations
7:29:38 echo "#### BEGIN LOG COLLECTION ###"
17:29:38 #### BEGIN LOG COLLECTION ###
17:29:38
17:29:38 collect_logs_cmd="ansible-playbook"
17:29:38 collect_logs_cmd+=" --ssh-common-args='-o StrictHostKeyChecking=no'"
17:29:38 collect_logs_cmd+=" --extra-vars='artifacts_dir=${RE_HOOK_ARTIFACT_DIR}'"
17:29:38 collect_logs_cmd+=" --extra-vars='result_dir=${RE_HOOK_RESULT_DIR}'"
17:29:38
17:29:38 if [[ $RE_JOB_IMAGE =~ .*mnaio.* ]]; then
17:29:38 collect_logs_cmd+=" --extra-vars='target_hosts=pxe_servers'"
@antonym
antonym / gist:a7f8ffb5105d0cdcd6020a1deae2a675
Last active November 20, 2017 01:55
/etc/network/interfaces for openstack-ansible blog
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# Physical interface 1
auto em1
iface em1 inet manual
PR_{repo_name}-{series}-{image}-{scenario}-{action}
PM_{repo_name}-{branch}-{image}-{scenario}-{action}
#### rpc-upgrades-newton-aio (series newton_aio)
PR_rpc-upgrades-newton_aio-trusty-swift-liberty
PR_rpc-upgrades-newton_aio-trusty-swift-r12.2.8
PM_rpc-upgrades-master-trusty-swift-liberty
PM_rpc-upgrades-master-trusty-swift-r12.2.8
#### rpc-upgrades-r14.5.0-aio (series r14.5.0_aio)
root@rpco-liberty:/opt/rpc-leapfrog/openstack-ansible-ops/leap-upgrades/upgrade-utilities# export | grep -i CONT
##### SOURCE DEFAULT VAR ######
root@rpco-liberty:/opt/rpc-leapfrog/openstack-ansible-ops/leap-upgrades/upgrade-utilities# source ../lib/vars.sh
root@rpco-liberty:/opt/rpc-leapfrog/openstack-ansible-ops/leap-upgrades/upgrade-utilities# cat ../lib/vars.sh | grep -i CONTAINERS_TO_DESTROY
export CONTAINERS_TO_DESTROY="${CONTAINERS_TO_DESTROY:-all_containers:!galera_all:!neutron_agent:!ceph_all:!rsyslog_all}"
root@rpco-liberty:/opt/rpc-leapfrog/openstack-ansible-ops/leap-upgrades/upgrade-utilities# export | grep -i CONT
declare -x CONTAINERS_TO_DESTROY="all_containers:!galera_all:!neutron_agent:!ceph_all:!rsyslog_all"
##### Uses multiple single quotes, correct hosts added ####### 'destroy_hosts='${CONTAINERS_TO_DESTROY}''