https://rancher.com/ logo
Docs
Join the conversationJoin Slack
Channels
academy
amazon
arm
azure
cabpr
chinese
ci-cd
danish
deutsch
developer
elemental
epinio
espanol
events
extensions
fleet
français
gcp
general
harvester
harvester-dev
hobbyfarm
hypper
japanese
k3d
k3os
k3s
k3s-contributor
kim
kubernetes
kubewarden
lima
logging
longhorn-dev
longhorn-storage
masterclass
mesos
mexico
nederlands
neuvector-security
office-hours
one-point-x
onlinemeetup
onlinetraining
opni
os
ozt
phillydotnet
portugues
rancher-desktop
rancher-extensions
rancher-setup
rancher-wrangler
random
rfed_ara
rio
rke
rke2
russian
s3gw
service-mesh
storage
submariner
supermicro-sixsq
swarm
terraform-controller
terraform-provider-rancher2
terraform-provider-rke
theranchcast
training-0110
training-0124
training-0131
training-0207
training-0214
training-1220
ukranian
v16-v21-migration
vsphere
windows
Powered by Linen
hobbyfarm
  • a

    astonishing-engine-86351

    03/16/2023, 8:43 PM
    That's coming from the shim
  • a

    astonishing-engine-86351

    03/16/2023, 8:44 PM
    I have everything in 'hobbyfarm-system'
  • a

    astonishing-engine-86351

    03/16/2023, 8:44 PM
    I'll redeploy later into 'hobbyfarm' and try again
  • a

    astonishing-engine-86351

    03/16/2023, 8:48 PM
    If I export the manifests and rename them, can I do so as long as I keep the prefixes on the name that is 'vmt-myname`
    s-myname
    etc?
    f
    • 2
    • 1
  • a

    astonishing-engine-86351

    03/17/2023, 1:38 PM
    I'm closer now. I'm stuck here this is coming from hf-shim when trying to provision vms dynamically from ec2
    2023-03-17T13:33:40.346Z    INFO    controller-runtime.metrics    metrics server is starting to listen    {"addr": ":8080"}                                                                                                                                                │
    │ 2023-03-17T13:33:40.354Z    INFO    setup    starting manager                                                                                                                                                                                                              │
    │ 2023-03-17T13:33:40.357Z    INFO    controller-runtime.manager    starting metrics server    {"path": "/metrics"}                                                                                                                                                          │
    │ 2023-03-17T13:33:40.361Z    INFO    controller-runtime.controller    Starting EventSource    {"controller": "virtualmachine", "source": "kind source: /, Kind="}                                                                                                           │
    │ 2023-03-17T13:33:40.469Z    INFO    controller-runtime.controller    Starting EventSource    {"controller": "virtualmachine", "source": "kind source: /, Kind="}                                                                                                           │
    │ 2023-03-17T13:33:40.570Z    INFO    controller-runtime.controller    Starting EventSource    {"controller": "virtualmachine", "source": "kind source: /, Kind="}                                                                                                           │
    │ 2023-03-17T13:33:40.672Z    INFO    controller-runtime.controller    Starting EventSource    {"controller": "virtualmachine", "source": "kind source: /, Kind="}                                                                                                           │
    │ 2023-03-17T13:33:40.774Z    INFO    controller-runtime.controller    Starting EventSource    {"controller": "virtualmachine", "source": "kind source: /, Kind="}                                                                                                           │
    │ 2023-03-17T13:33:40.876Z    INFO    controller-runtime.controller    Starting EventSource    {"controller": "virtualmachine", "source": "kind source: /, Kind="}                                                                                                           │
    │ 2023-03-17T13:33:40.979Z    INFO    controller-runtime.controller    Starting Controller    {"controller": "virtualmachine"}                                                                                                                                               │
    │ 2023-03-17T13:33:40.979Z    INFO    controller-runtime.controller    Starting workers    {"controller": "virtualmachine", "worker count": 20}                                                                                                                              │
    │ 2023-03-17T13:35:47.261Z    ERROR    controller-runtime.controller    Reconciler error    {"controller": "virtualmachine", "name": "dynamic-hywxhhkaqj-02260ede", "namespace": "hobbyfarm", "error": "Operation cannot be fulfilled on <http://virtualmachines.hobbyfarm.io|virtualmachines.hobbyfarm.io> \"dyna │
    │ <http://github.com/go-logr/zapr.(*zapLogger).Error|github.com/go-logr/zapr.(*zapLogger).Error>                                                                                                                                                                                                                                 │
    │     /go/pkg/mod/github.com/go-logr/zapr@v0.1.0/zapr.go:128                                                                                                                                                                                                                 │
    │ <http://sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler|sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler>                                                                                                                                                                                      │
    │     /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.5.14/pkg/internal/controller/controller.go:257                                                                                                                                                                           │
    │ <http://sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem|sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem>                                                                                                                                                                                   │
    │     /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.5.14/pkg/internal/controller/controller.go:231                                                                                                                                                                           │
    │ <http://sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker|sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker>                                                                                                                                                                                                │
    │     /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.5.14/pkg/internal/controller/controller.go:210                                                                                                                                                                           │
    │ <http://k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1|k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1>                                                                                                                                                                                                                        │
    │     /go/pkg/mod/k8s.io/apimachinery@v0.17.2/pkg/util/wait/wait.go:152                                                                                                                                                                                                      │
    │ <http://k8s.io/apimachinery/pkg/util/wait.JitterUntil|k8s.io/apimachinery/pkg/util/wait.JitterUntil>                                                                                                                                                                                                                              │
    │     /go/pkg/mod/k8s.io/apimachinery@v0.17.2/pkg/util/wait/wait.go:153                                                                                                                                                                                                      │
    │ <http://k8s.io/apimachinery/pkg/util/wait.Until|k8s.io/apimachinery/pkg/util/wait.Until>                                                                                                                                                                                                                                    │
    │     /go/pkg/mod/k8s.io/apimachinery@v0.17.2/pkg/util/wait/wait.go:88                                                                                                                                                                                                       │
    │ time="2023-03-17T13:35:47Z" level=info msg="creating new keypair"                                                                                                                                                                                                          │
    │ 2023-03-17T13:35:47.784Z    ERROR    controller-runtime.controller    Reconciler error    {"controller": "virtualmachine", "name": "dynamic-hywxhhkaqj-02260ede", "namespace": "hobbyfarm", "error": "Secret \"dynamic-hywxhhkaqj-02260ede-secret\" not found"}            │
    │ <http://github.com/go-logr/zapr.(*zapLogger).Error|github.com/go-logr/zapr.(*zapLogger).Error>                                                                                                                                                                                                                                 │
    │     /go/pkg/mod/github.com/go-logr/zapr@v0.1.0/zapr.go:128                                                                                                                                                                                                                 │
    │ <http://sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler|sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler>                                                                                                                                                                                      │
    │     /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.5.14/pkg/internal/controller/controller.go:257                                                                                                                                                                           │
    │ <http://sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem|sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem>                                                                                                                                                                                   │
    │     /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.5.14/pkg/internal/controller/controller.go:231                                                                                                                                                                           │
    │ <http://sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker|sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker>                                                                                                                                                                                                │
    │     /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.5.14/pkg/internal/controller/controller.go:210                                                                                                                                                                           │
    │ <http://k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1|k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1>                                                                                                                                                                                                                        │
    │     /go/pkg/mod/k8s.io/apimachinery@v0.17.2/pkg/util/wait/wait.go:152
    • 1
    • 3
  • a

    astonishing-engine-86351

    03/17/2023, 2:10 PM
    I'm completely stuck @faint-optician-47536 or @worried-fountain-60974 if y'all have some zoom time this morning. I'm sure I'm missing something that should be obvious
  • f

    faint-optician-47536

    03/17/2023, 2:14 PM
    unfortunately i am not quite sure how to get hf-shim running. we are still using the tf-controller here. i know that some guy got aws + tf running, but he had to update the module manually (this is for terraform only)
  • f

    faint-optician-47536

    03/17/2023, 2:15 PM
    This message from hf-shim would indicate that the secret is not created, i guess you have checked that already and it is indeed missing?
  • a

    astonishing-engine-86351

    03/17/2023, 2:15 PM
    I think it eventually created the secret
  • w

    worried-fountain-60974

    03/17/2023, 2:15 PM
    yeah let's mess with this JvB. I'm tied up until top of the hour (10a CST) then we could
    👍 1
  • a

    astonishing-engine-86351

    03/17/2023, 2:34 PM
    Looking through the shim reconciler. vm.status is not being set to SecretCreated. It's stuck in readyforprovisioning, even though it looks like it should work just fine
  • f

    faint-optician-47536

    03/17/2023, 2:41 PM
    oh is hfShim not calling updateStatus yet @worried-fountain-60974. as of https://github.com/hobbyfarm/gargantua/commit/27779a010998aa86adf1145113469065041fdb1d status is added as a subresource in gargantua. maybe this effects hf-shim too
  • a

    astonishing-engine-86351

    03/17/2023, 2:42 PM
    I think it's doing it wrong looking at the code now
  • a

    astonishing-engine-86351

    03/17/2023, 2:51 PM
    It should be working fine. But it's not, I walked through in the debugger
  • a

    astonishing-engine-86351

    03/17/2023, 2:52 PM
    It's been a good while since I worked controller code, so I might be missing something
  • a

    astonishing-engine-86351

    03/17/2023, 2:53 PM
    That might be it @faint-optician-47536
  • a

    astonishing-engine-86351

    03/17/2023, 2:53 PM
    What you said
  • f

    faint-optician-47536

    03/17/2023, 2:53 PM
    Yes that was a change in the underyling CRDs.
  • f

    faint-optician-47536

    03/17/2023, 2:54 PM
    and i guess that hf-shim is not yet doing this. so we would have to update hf-shim.
  • f

    faint-optician-47536

    03/17/2023, 2:54 PM
    you might use terraform + aws module to get it running for now. but lets wait for what eamon has to say 🙂
  • w

    worried-fountain-60974

    03/17/2023, 3:02 PM
    ahh crap if it isn't that's going to be part of the problem
  • w

    worried-fountain-60974

    03/17/2023, 3:03 PM
    I can probably fix that momentarily if you are okay running a very fresh RC
  • w

    worried-fountain-60974

    03/17/2023, 3:03 PM
    Give me 10?
  • a

    astonishing-engine-86351

    03/17/2023, 3:03 PM
    It's not implementing UpdateStatus, that's correct
  • a

    astonishing-engine-86351

    03/17/2023, 3:03 PM
    Yeah I can give an RC a go
  • w

    worried-fountain-60974

    03/17/2023, 3:03 PM
    Good cuz the alternative is it stays broken 😉
  • w

    worried-fountain-60974

    03/17/2023, 3:04 PM
    ugh https://github.com/hobbyfarm/hf-shim-operator/issues/12
  • w

    worried-fountain-60974

    03/17/2023, 3:04 PM
    I was fixing this lol
  • w

    worried-fountain-60974

    03/17/2023, 3:06 PM
    Thread for this here. So we stop bothering people unnecessarily.
    👍 1
    a
    • 2
    • 69
  • c

    careful-mouse-42236

    03/17/2023, 5:00 PM
    @astonishing-engine-86351 I will be very interested to get your feedback to improve the docs, if you can
Powered by Linen
Title
c

careful-mouse-42236

03/17/2023, 5:00 PM
@astonishing-engine-86351 I will be very interested to get your feedback to improve the docs, if you can
View count: 1