question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When I get istio resources object (Gateway, VirtualService), found ValueInstantiationException

See original GitHub issue

Describe the bug

version info:

  • fabric kubernates client version: 5.11.2
  • fabric istio client version: 5.11.2
  • kubernates version: 1.18.10
  • istiod version: 1.11.8

Fabric8 Kubernetes Client version

5.11.2

Steps to reproduce

  1. call fabric istio client
 istioClient.v1alpha3().virtualServices().inNamespace(namespace).withName(name).get()
  1. found AnalysisMessageBaseLevel null exception, value is 3
public static AnalysisMessageBaseLevel fromValue(String value) {
	AnalysisMessageBaseLevel constant = CONSTANTS.get(value);
	if (constant == null) {
		throw new IllegalArgumentException(value);
	} else {
		return constant;
	}
}

Expected behavior

  1. get istio resource successful
  2. how do I view the relationship between istio client version and istio component version

Runtime

Kubernetes (vanilla)

Kubernetes API Server version

other (please specify in additional context)

Environment

Linux

Fabric8 Kubernetes Client Logs

com.fasterxml.jackson.databind.exc.ValueInstantiationException: Cannot construct instance of `io.fabric8.istio.api.analysis.v1alpha1.AnalysisMessageBaseLevel`, problem: 3
 at [Source: (BufferedInputStream); line: 1, column: 1580] (through reference chain: io.fabric8.istio.api.networking.v1alpha3.VirtualService["status"]->io.fabric8.istio.api.meta.v1alpha1.IstioStatus["validationMessages"]->java.util.ArrayList[0]->io.fabric8.istio.api.analysis.v1alpha1.AnalysisMessageBase["level"])

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
Sgitariocommented, Aug 9, 2022

For some reason, the transformer didn’t find the enum values for AnalysisMessageBase.Level. I will take a deeper look during this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get gateway and virtualservice not found - Discuss Istio
Hi, I'm not able to retrieve gateways and virtualservices via the commands. kubectl get gateway kubectl get virtualservice,
Read more >
Istio / Virtual Service
A VirtualService defines a set of traffic routing rules to apply when a host is ... Service inside the mesh, i.e., those found...
Read more >
Istio / Gateway
A VirtualService can then be bound to a gateway to control the forwarding of traffic arriving at a particular host or gateway port....
Read more >
Istio / Understand your Mesh with Istioctl Describe
Shows you how to use istioctl describe to verify the configurations of a pod in your mesh.
Read more >
`kubectl get all` doesn't show istio resources - Discuss Istio
Running kubectl get all the istio resources are not listed, ... kubectl get virtualservice NAME GATEWAYS HOSTS AGE bookinfo ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found