Skip to content

Instantly share code, notes, and snippets.

@rgl
Last active July 16, 2021 08:04
Show Gist options
  • Select an option

  • Save rgl/4e21553a305984adc253a857a948ed88 to your computer and use it in GitHub Desktop.

Select an option

Save rgl/4e21553a305984adc253a857a948ed88 to your computer and use it in GitHub Desktop.

Revisions

  1. rgl revised this gist Jul 16, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions sidero-configdata-endpoint-404.md
    Original file line number Diff line number Diff line change
    @@ -48,9 +48,9 @@ metadata:
    resourceVersion: ""
    selfLink: ""

    root@pandora:~# wget "http://$control_plane_ip/config?uuid=$server_uuid"
    --2021-07-16 08:59:47-- http://10.3.0.2/config?uuid=00000000-0000-4000-8000-080027000000
    root@pandora:~# wget "http://$control_plane_ip/configdata?uuid=$server_uuid"
    --2021-07-16 09:04:26-- http://10.3.0.2/configdata?uuid=00000000-0000-4000-8000-080027000000
    Connecting to 10.3.0.2:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2021-07-16 08:59:47 ERROR 404: Not Found.
    2021-07-16 09:04:26 ERROR 404: Not Found.
    ```
  2. rgl created this gist Jul 16, 2021.
    56 changes: 56 additions & 0 deletions sidero-configdata-endpoint-404.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,56 @@
    ```console
    root@pandora:~# kubectl get servers -o yaml
    apiVersion: v1
    items:
    - apiVersion: metal.sidero.dev/v1alpha1
    kind: Server
    metadata:
    creationTimestamp: "2021-07-16T05:05:21Z"
    finalizers:
    - storage.finalizers.server.k8s.io
    generation: 6
    name: 00000000-0000-4000-8000-080027000000
    resourceVersion: "45147"
    uid: ec8ce2f2-5b87-4038-987a-1a8691c1cc9b
    spec:
    accepted: true
    configPatches:
    - op: replace
    path: /machine/install
    value:
    disk: /dev/vda
    extraKernelArgs:
    - ipv6.disable=1
    cpu:
    manufacturer: QEMU
    version: pc-i440fx-focal
    hostname: cp1
    system:
    family: Unknown
    manufacturer: your vendor name here
    productName: your product name here
    serialNumber: your product serial number here
    skuNumber: your product SKU here
    version: your product version here
    status:
    addresses:
    - address: 10.3.0.100
    type: InternalIP
    conditions:
    - lastTransitionTime: "2021-07-16T07:28:00Z"
    status: "True"
    type: PowerCycle
    isClean: true
    power: "on"
    ready: true
    kind: List
    metadata:
    resourceVersion: ""
    selfLink: ""

    root@pandora:~# wget "http://$control_plane_ip/config?uuid=$server_uuid"
    --2021-07-16 08:59:47-- http://10.3.0.2/config?uuid=00000000-0000-4000-8000-080027000000
    Connecting to 10.3.0.2:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2021-07-16 08:59:47 ERROR 404: Not Found.
    ```