Skip to content

Instantly share code, notes, and snippets.

View alanmeadows's full-sized avatar

Alan Meadows alanmeadows

View GitHub Profile
alan@vpn-68-121-13-203  ~/Workbench/streamingwars/myproj  for i in `seq 0 26`; do scripts/test.sh $i; done;  ✔  2319  05:42:21
real 0m4.056s
user 0m0.046s
sys 0m0.059s
real 0m0.684s
user 0m0.057s
sys 0m0.040s
Files /tmp/stream_test_0_results.txt and /tmp/stream_test_initial_0_results.txt are identical
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: Metal3MachineTemplate
metadata:
name: ***kustomize puts in result of checksum SELF***
spec:
template:
metadata:
annotations:
checksum/config: ***kustomize puts in result of checksum SELF***
spec:
Wait for the target cluster to become available
Extract [metal3] secret/rdm9-kubeconfig
Poll for successful kubectl version
Follow this up with a pivot to the kubeadm controlplane provider which may reveal a status in the Cluster object to query
Extract the target cluster kubeconfig [metal3] secret/rdm9-config and merge it into .airship/kubeconfig
This has specific naming conventions, using _target and _ephemeral suffixes to denote which is which which requires some kind of merge from what we get from capi
Run airshipctl initinfra --cluster-type=target
run clusterctl move against ephemeral and target
How do we feed it this combined kubeconfig (above), does this need individuals for the two clusters?
Manually move the rdm9r008c003 BMH host
{"level":"info","ts":1583534602.0299861,"logger":"baremetalhost","msg":"saving host status","Request.Namespace":"metal3","Request.Name":"rdm9r008c002","provisioningState":"","operational status":"OK","provisioning state":"registering"}
{"level":"error","ts":1583534602.0318298,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"metal3-baremetalhost-controller","request":"metal3/rdm9r008c002","error":"failed to save host status after \"\": baremetalhosts.metal3.io \"rdm9r008c002\" not found","errorVerbose":"baremetalhosts.metal3.io \"rdm9r008c002\" not found\nfailed to save host status after \"\"\ngithub.com/metal3-io/baremetal-operator/pkg/controller/baremetalhost.(*ReconcileBareMetalHost).Reconcile\n\t/go/src/github.com/metal3-io/baremetal-operator/pkg/controller/baremetalhost/baremetalhost_controller.go
filters:
iForgetTheirNames:
enabled: true
anotherOneIForget:
enabled: false
str() around re.sub or whatever will be more appropriate
doesnt exist yet?
document speedup (yield)
is this in?
deepcopy.copy fix for substition
https://review.gerrithub.io/#/c/398510/6/deckhand/utils.py
older substition fix
conf:
nova:
default:
debug: False
conf:
labels:
supernode:
nova:
default:
root@csoaiclab01-87:/root/demo-bundle# docker run --net=host -it -v /etc/kubernetes/admin/pki:/etc/kubernetes/admin/pki -v /etc/kubernetes/admin/kubeconfig.yaml:/root/.kube/config -v /root/demo-bundle:/root/demo-bundle quay.io/attcomdev/armada:latest armada apply /root/demo-bundle/promenade-armada.yaml
Unable to find image 'quay.io/attcomdev/armada:latest' locally
latest: Pulling from attcomdev/armada
23a6960fe4a9: Already exists
e9e104b0e69d: Already exists
cd33d2ea7970: Already exists
534ff7b7d120: Already exists
7d352ac0c7f5: Already exists
a3ed95caeb02: Pull complete
a67609b392a6: Pull complete
[nova-compute-2jlmr][nova-compute] | ',key_name='test-key',keypairs=<?>,launch_index=0,launched_at=2017-06-21T17:29:55Z,launched_on='csoaiclab01-84',locked=False,locked_by=None,memory_mb=8192,metadata={},migration_context=<?>,new_flavor=None,node='csoaiclab01-84',numa_topology=<?>,old_flavor=None,os_type=None,pci_devices=<?>,pci_requests=<?>,power_state=1,progress=0,project_id='ded0302552204d989eae7c9fac49bdf7',ramdisk_id='',reservation_id='r-enk4mlud',root_device_name='/dev/vda',root_gb=80,security_groups=SecurityGroupList,services=<?>,shutdown_terminate=False,system_metadata={clean_attempts='1',image_base_image_ref='a23085fa-725a-44d0-9399-2e6b105d3a14',image_container_format='bare',image_disk_format='qcow2',image_min_disk='80',image_min_ram='0'},tags=<?>,task_state='migrating',terminated_at=None,updated_at=2017-06-21T17:32:43Z,user_data=None,user_id='294a9239a84f45b3b7fd061e56782a05',uuid=27533248-46e0-44a1-9dc9-c0c70977419a,vcpu_model=<?>,vcpus=4,vm_mode=None,vm_state='active') vif={"profile": {"pci_slot
curl -s 'https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e' | sudo apt-key add --import