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

Add missing custom component files #575

Merged
merged 9 commits into from
Jun 9, 2023
Merged

Conversation

ayushthe1
Copy link
Contributor

@ayushthe1 ayushthe1 commented Apr 28, 2023

Description

This PR fixes #574 and fixes #583

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Signed-off-by: ayushthe1 <ayushsharmaa101@gmail.com>
Signed-off-by: ayushthe1 <ayushsharmaa101@gmail.com>
Signed-off-by: ayushthe1 <ayushsharmaa101@gmail.com>
@leecalcote
Copy link
Member

@ayushthe1 add a reviewer, please. add appropriate labels, too, please.

@ayushthe1
Copy link
Contributor Author

@leecalcote I don't have the permissions to do that. Could you please add it.

@ayushthe1 ayushthe1 requested a review from Aisuko May 10, 2023 10:55
@Aisuko Aisuko added the service-mesh/istio Issues related to Istio label May 11, 2023
@Aisuko
Copy link
Member

Aisuko commented May 11, 2023

Hi, guys. There are tons of files and are hard to review.

@leecalcote
Copy link
Member

@ayushthe1 you do have permission to manage issue labels...

@Aisuko you're right. It's completely overwhelming.

@Azanul

This comment was marked as outdated.

@Azanul

This comment was marked as outdated.

@gyohuangxin
Copy link
Member

@ayushthe1 Is there any new update, can we keep going? Thanks.

@Revolyssup
Copy link
Contributor

Revolyssup commented Jun 6, 2023

Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
@theBeginner86
Copy link
Member

Updated the model name

Signed-off-by: Ayush Sharma <ayushsharmaa101@gmail.com>
@gyohuangxin
Copy link
Member

There are still some failed CI tests, @theBeginner86 do you know how to resolve this?

@theBeginner86
Copy link
Member

theBeginner86 commented Jun 8, 2023

I added the missing model name in service-mesh-patterns/service-mesh-patterns#106.

Which should fix the last set of tests.

@theBeginner86
Copy link
Member

This PR service-mesh-patterns/service-mesh-patterns#107 would solve the last set of tests that checks the sample apps.

Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
…into addFiles

Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
@theBeginner86
Copy link
Member

updated filename reference for sample app design to bookInfo.yaml

@theBeginner86
Copy link
Member

@theBeginner86
Copy link
Member

All ✅

Lets merge this

@theBeginner86 theBeginner86 merged commit e6ab677 into meshery:master Jun 9, 2023
26 checks passed
@theBeginner86 theBeginner86 mentioned this pull request Jun 9, 2023
1 task
@gyohuangxin
Copy link
Member

Thank you for your efforts to resolve this issue !👍 Which release will contain this patch and when will it happen?

@theBeginner86
Copy link
Member

Thank you for your efforts to resolve this issue !👍 Which release will contain this patch and when will it happen?

Its already released in latest meshery-istio adapter. https://github.com/meshery/meshery-istio/releases/tag/v0.6.11

@gyohuangxin
Copy link
Member

@theBeginner86 I've updated meshery-istio to v0.6.11,
image

and this is my pattern yaml file:

name: Istio Installation with CryptoMB
services:
  istioservicemesh:
    name: istioservicemesh
    type: IstioMesh
    model: ISTIO
    namespace: "istio-system"
    settings:
      profile: default
      version: 1.17.2
    traits:
      components:
        ingressGateways:
        - enabled: true
          name: istio-ingressgateway
          k8s:
            overlays:
              - kind: Deployment
                name: istio-ingressgateway
                patches:
                - path: spec.template.spec.containers.[name:istio-proxy].args.[-1]
                  value: "--concurrency=4"
            # Limit CPU/MEM usage to 4 vCPUs/4 GB for QoS reasons.
            # Enable CPU manager static policy in kubelet to even more deterministic results.
            resources:
              requests:
                cpu: 4000m
                memory: 4096Mi
              limits:
                cpu: 4000m
                memory: 4096Mi
            hpaSpec:
              maxReplicas: 1
              minReplicas: 1
            podAnnotations: # this controls the SDS service which configures ingress gateway
              proxy.istio.io/config: |
                privateKeyProvider:
                  cryptomb:
                    pollDelay: 10ms
      automaticSidecarInjection:
        namespaces:
        - default
      meshmap:
        edges: []
        id: istioservicemesh
        label: istioservicemesh
        position:
          posX: 59.458251455094434
          posY: 5.53595199333449

but it still failed with error:
image

Is there something wrong with my configuration? Could you please give me an example for that?

@Revolyssup
Copy link
Contributor

@theBeginner86 I've updated meshery-istio to v0.6.11, image

and this is my pattern yaml file:

name: Istio Installation with CryptoMB
services:
  istioservicemesh:
    name: istioservicemesh
    type: IstioMesh
    model: ISTIO
    namespace: "istio-system"
    settings:
      profile: default
      version: 1.17.2
    traits:
      components:
        ingressGateways:
        - enabled: true
          name: istio-ingressgateway
          k8s:
            overlays:
              - kind: Deployment
                name: istio-ingressgateway
                patches:
                - path: spec.template.spec.containers.[name:istio-proxy].args.[-1]
                  value: "--concurrency=4"
            # Limit CPU/MEM usage to 4 vCPUs/4 GB for QoS reasons.
            # Enable CPU manager static policy in kubelet to even more deterministic results.
            resources:
              requests:
                cpu: 4000m
                memory: 4096Mi
              limits:
                cpu: 4000m
                memory: 4096Mi
            hpaSpec:
              maxReplicas: 1
              minReplicas: 1
            podAnnotations: # this controls the SDS service which configures ingress gateway
              proxy.istio.io/config: |
                privateKeyProvider:
                  cryptomb:
                    pollDelay: 10ms
      automaticSidecarInjection:
        namespaces:
        - default
      meshmap:
        edges: []
        id: istioservicemesh
        label: istioservicemesh
        position:
          posX: 59.458251455094434
          posY: 5.53595199333449

but it still failed with error: image

Is there something wrong with my configuration? Could you please give me an example for that?

Can you share the logs of istio adapter?

@Revolyssup
Copy link
Contributor

@gyohuangxin Did you create the above configuration from Meshmap or is it handtyped

@gyohuangxin
Copy link
Member

@Revolyssup I handtyped it, and I didn't see any logs in Istio adapter, the error happened in meshery main process:

meshery-meshery-1        | time="2023-06-12T05:51:21Z" level=info msg="kubernetes contexts successfully retrieved from remote provider"
meshery-meshery-1        | time="2023-06-12T05:51:21Z" level=info msg="attempting to fetch patterns resource from cloud"
meshery-meshery-1        | time="2023-06-12T05:51:21Z" level=info msg="pattern resources successfully retrieved from remote provider"
meshery-meshery-1        | map[string]interface {}{"name":"Istio Installation with CryptoMB", "services.istioservicemesh.id":"47565a89-f7c3-4d76-9304-10c8d67fd999", "services.istioservicemesh.model":"ISTIO", "services.istioservicemesh.name":"istioservicemesh", "services.istioservicemesh.namespace":"istio-system", "services.istioservicemesh.settings.profile":"default", "services.istioservicemesh.settings.version":"1.17.2", "services.istioservicemesh.traits.automaticSidecarInjection.namespaces.0":"default", "services.istioservicemesh.traits.components.ingressGateways.0.enabled":true, "services.istioservicemesh.traits.components.ingressGateways.0.k8s.hpaSpec.maxReplicas":1, "services.istioservicemesh.traits.components.ingressGateways.0.k8s.hpaSpec.minReplicas":1, "services.istioservicemesh.traits.components.ingressGateways.0.k8s.overlays.0.kind":"Deployment", "services.istioservicemesh.traits.components.ingressGateways.0.k8s.overlays.0.name":"istio-ingressgateway", "services.istioservicemesh.traits.components.ingressGateways.0.k8s.overlays.0.patches.0.path":"spec.template.spec.containers.[name:istio-proxy].args.[-1]", "services.istioservicemesh.traits.components.ingressGateways.0.k8s.overlays.0.patches.0.value":"--concurrency=4", "services.istioservicemesh.traits.components.ingressGateways.0.k8s.podAnnotations.proxy.istio.io/config":"privateKeyProvider:\n  cryptomb:\n    pollDelay: 10ms\n", "services.istioservicemesh.traits.components.ingressGateways.0.k8s.resources.limits.cpu":"4000m", "services.istioservicemesh.traits.components.ingressGateways.0.k8s.resources.limits.memory":"4096Mi", "services.istioservicemesh.traits.components.ingressGateways.0.k8s.resources.requests.cpu":"4000m", "services.istioservicemesh.traits.components.ingressGateways.0.k8s.resources.requests.memory":"4096Mi", "services.istioservicemesh.traits.components.ingressGateways.0.name":"istio-ingressgateway", "services.istioservicemesh.traits.meshmap.id":"istioservicemesh", "services.istioservicemesh.traits.meshmap.label":"istioservicemesh", "services.istioservicemesh.traits.meshmap.position.posX":59.458251455094434, "services.istioservicemesh.traits.meshmap.position.posY":5.53595199333449, "services.istioservicemesh.type":"IstioMesh"}
meshery-meshery-1        | IstioMesh ISTIO
meshery-meshery-1        | time="2023-06-12T05:51:21Z" level=error msg="could not find component with name: IstioMesh, model: ISTIO, apiVersion: "
meshery-meshery-1        | time="2023-06-12T05:51:21Z" level=error msg="could not find component with name: IstioMesh, model: ISTIO, apiVersion: " app=meshery code=2012 probable-cause= severity=2 short-description="unable to Create Comp Config..could not find component with name: IstioMesh, model: ISTIO, apiVersion: " suggested-remediation=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-mesh/istio Issues related to Istio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] IstioMesh components not being registered Add missing custom component files
7 participants