Closed dnviti closed 8 months ago
@dnviti
the PROXMOX_URL: "https://pve.dev.local/api2/json"
is wrong,
Please just use PROXMOX_URL: "https://pve.dev.local"
It didn't work either way.
BTW this morning it gives me the error:
[default@capi-bootstrapper ~]$ clusterctl init --infrastructure proxmox --ipam in-cluster --core cluster-api:v1.5.3
Fetching providers
Error: failed to get provider components for the "proxmox" provider: failed to get repository client for the InfrastructureProvider with name proxmox: error creating the GitHub repository client: failed to get latest release: release not found for version v0.2.0, please retry later or set "GOPROXY=off" to get the current stable release: 404 Not Found
if i only run clusterctl init
it works but it does not initialize the proxmox provider.
yeah, we are currently releasing v0.2.0.
you can enforce the version by
clusterctl init --infrastructure proxmox:v0.1.1 --ipam in-cluster --core cluster-api:v1.5.3
Fetching providers
yeah, we are currently releasing v0.2.0.
you can enforce the version by
clusterctl init --infrastructure proxmox:v0.1.1 --ipam in-cluster --core cluster-api:v1.5.3 Fetching providers
Nope, not working either, i'm going to wait for the v0.2.0 and try again.
Now it just hangs on Fetching providers
...
Anyway, where can i check available providers/infrastructures? can't find the list anywhere...
please retry or put this in your clusterctl
providers:
- name: proxmox
url: https://github.com/ionos-cloud/cluster-api-provider-proxmox/releases/download/v0.1.1/infrastructure-components.yaml
type: InfrastructureProvider
It starts but gives the same error
I0124 23:54:17.007521 1 main.go:87] "setup: starting capmox"
I0124 23:54:17.008105 1 listener.go:44] "controller-runtime/metrics: Metrics server is starting to listen" addr="localhost:8080"
I0124 23:54:17.008556 1 main.go:126] "setup: feature gates: ClusterTopology=false\n"
E0124 23:54:20.031775 1 main.go:133] "setup: unable to setup proxmox API client" err="unable to initialize proxmox api client: not authorized to access endpoint"
Can't really figure out why, i strictly followed documentation steps.
@dnviti Do you think the token is correct?
OR maybe you should add the port PROXMOX_URL: "https://pve.dev.local:8006"
@dnviti you're sure the token is correct?
it worked using a token from user root@pam could it be the pve realm has different capabilities?
@dnviti Do you think the token is correct?
OR maybe you should add the port PROXMOX_URL: "https://pve.dev.local:8006"
nope that, my access is granted and managed by an HAProxy so i use another domain, that was a random example
I think I remember this issue:
Please disable privilege separation or use root token,
I think I remember this issue:
Please disable privilege separation or use root token,
yes, i disabled previously "Privilege Separation" also on the other user and it worked using ansible.
Now all started and that is the log.
NAME READY SEVERITY REASON SINCE MESSAGE
Cluster/proxmox-quickstart False Warning ScalingUp 4m16s Scaling up control plane to 3 replicas (actual 1)
├─ClusterInfrastructure - ProxmoxCluster/proxmox-quickstart True 4m24s
├─ControlPlane - KubeadmControlPlane/proxmox-quickstart-control-plane False Warning ScalingUp 4m16s Scaling up control plane to 3 replicas (actual 1)
│ └─Machine/proxmox-quickstart-control-plane-xhdfp False Warning CloningFailed 4m21s 1 of 2 completed
└─Workers
└─MachineDeployment/proxmox-quickstart-workers False Warning WaitingForAvailableMachines 4m24s Minimum availability requires 3 replicas, current 0 available
└─3 Machines... False Info WaitingForBootstrapData 4m23s See proxmox-quickstart-workers-qllcb-ds486, proxmox-quickstart-workers-qllcb-twctl, ...
Should the VM template be created using a specific method? i used a standard almalinux cloud init image (Generic Cloud)...
Does your image have kubeadm, kubelet, kubectl, containerd
installed?
Does your image have
kubeadm, kubelet, kubectl, containerd
installed?
nope, if i only need those dependencies i'll cook a new one right away!
Does your image have
kubeadm, kubelet, kubectl, containerd
installed?nope, if i only need those dependencies i'll cook a new one right away!
you can add this almalinux to image-builder otherwise, you can build ubuntu images.
v0.2.0 is now released https://github.com/ionos-cloud/cluster-api-provider-proxmox/releases/tag/v0.2.0
Which means that the issue that you had before, should be fixed.
v0.2.0 is now released https://github.com/ionos-cloud/cluster-api-provider-proxmox/releases/tag/v0.2.0
Which means that the issue that you had before, should be fixed.
I also developed this script: https://gitlab.com/dnviti/Bash-Scripts/-/blob/master/capi-proxmox-deps.sh its purpose it's to prepare an image from scratch in au automated way. it references another script of mine, to install docker and all its deps.
Installed all dependencies into a new VM tempate and still CloningFailed message appears upon cluster deploy. It's not even trying to clone it anyway.
join this channel to get support: https://kubernetes.slack.com/archives/C06FC9P0FK7
What steps did you take and what happened: After installing all prerequisites and running the command
when watching pods creating i notice that the capmox-controller is in CrashLoopback. Pod Logs:
clusterctl.yaml
capi@pve!token1 is proxmox Administrator on / so it's cluster admin. Yesyed the user on terraform and packer and ansible and everything works fine there.
What did you expect to happen: The capmox-controller should connect to proxmox and continue provisioning
Anything else you would like to add: Using kind as local kubernetes provisioner and docker rootless as driver, everything it at default configuration.
Environment:
kubectl version
):/etc/os-release
):ALMALINUX_MANTISBT_PROJECT="AlmaLinux-9" ALMALINUX_MANTISBT_PROJECT_VERSION="9.3" REDHAT_SUPPORT_PRODUCT="AlmaLinux" REDHAT_SUPPORT_PRODUCT_VERSION="9.3"