Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating Reservation #52

Open
stefano81 opened this issue May 3, 2024 · 2 comments
Open

Error when creating Reservation #52

stefano81 opened this issue May 3, 2024 · 2 comments
Assignees
Labels
bug Something isn't working low priority Low priority issue

Comments

@stefano81
Copy link
Contributor

I am seeing this error when manually creating a Reservation:

E0503 06:55:19.628850       1 reservation_controller.go:77] Error when getting PeeringCandidate fluidos/reservation-sample before reconcile: PeeringCandidate.advertisement.fluidos.eu "peeringcandidate-fluidos.eu-k8s-fluidos-fa8bdf95" not found
2024-05-03T06:55:19Z    ERROR   Reconciler error        {"controller": "reservation", "controllerGroup": "reservation.fluidos.eu", "controllerKind": "Reservation", "Reservation": {"name":"reservation-sample","namespace":"fluidos"}, "namespace": "fluidos", "name": "reservation-sample", "reconcileID": "00eb1568-0281-4dd5-b613-5674f988005d", "error": "PeeringCandidate.advertisement.fluidos.eu \"peeringcandidate-fluidos.eu-k8s-fluidos-fa8bdf95\" not found"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.1/pkg/internal/controller/controller.go:324
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.1/pkg/internal/controller/controller.go:265
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.1/pkg/internal/controller/controller.go:226
E0503 06:55:19.654411       1 reservation_controller.go:77] Error when getting PeeringCandidate fluidos/reservation-sample before reconcile: PeeringCandidate.advertisement.fluidos.eu "peeringcandidate-fluidos.eu-k8s-fluidos-fa8bdf95" not found
2024-05-03T06:55:19Z    ERROR   Reconciler error        {"controller": "reservation", "controllerGroup": "reservation.fluidos.eu", "controllerKind": "Reservation", "Reservation": {"name":"reservation-sample","namespace":"fluidos"}, "namespace": "fluidos", "name": "reservation-sample", "reconcileID": "df59614a-84b4-44c8-ba6a-da05b885b3af", "error": "PeeringCandidate.advertisement.fluidos.eu \"peeringcandidate-fluidos.eu-k8s-fluidos-fa8bdf95\" not found"}

Note that the peering candidate exists:

% kubectl get -n fluidos peeringcandidates                                                                                     
NAME                                               AGE
peeringcandidate-fluidos.eu-k8s-fluidos-fa8bdf95   2m54s

And that is the content of the reservation manifest:

apiVersion: reservation.fluidos.eu/v1alpha1
kind: Reservation
metadata:
  name: reservation-sample
spec:
  solverID: solver-sample
  # Retrieve from configmap
  buyer:
    domain: fluidos.eu
    ip: 172.18.0.4:30000
    nodeID: xbjnoc2npb
  seller:
    domain: fluidos.eu
    ip: 172.18.0.6:30001
    nodeID: tn3ndwttnh
  partition:
    architecture: amd64
    cpu: "1000m"
    memory: "1Gi"
    pods: "50"
  # Set it to reserve
  reserve: true
  purchase: false
  peeringCandidate:
    name: peeringcandidate-fluidos.eu-k8s-fluidos-fa8bdf95

spec.seller and spec.buyer information are retrieved from the Discovery and ConfigMap, respectively.

Am I missing something?

@stefano81 stefano81 added the bug Something isn't working label May 3, 2024
@fracappa
Copy link
Contributor

fracappa commented May 3, 2024

Hi @stefano81 .
Did you also change the .spec.peeringCandidate.name value according to the PeeringCandidate you're trying to connecto to?

@fracappa
Copy link
Contributor

fracappa commented May 3, 2024

OK I see you did.
That's strange as you should be able to see the peering candidate after the discovery.
Do the .spec.seller information match the one available into the PeeringCandidate CR?

@fracappa fracappa added the low priority Low priority issue label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low priority Low priority issue
Projects
None yet
Development

No branches or pull requests

3 participants