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

Get values frome kvstore #1794

Open
wenchao5211 opened this issue Mar 30, 2021 · 5 comments
Open

Get values frome kvstore #1794

wenchao5211 opened this issue Mar 30, 2021 · 5 comments

Comments

@wenchao5211
Copy link

Hi, i,m a developer, recently I was trying a feature myself, but I was having trouble getting data from the cache. How can I get runtime data from the key?I think I need some help

@wenchao5211
Copy link
Author

I try to DumpValuesByKeyPrefix and DumpValuesByKeyPrefix, but it can't works ,

@chrismetz09
Copy link

Hi.Those look like REST calls? What did you see? Assuming you have running VPP agent (+ VPP) container?

On official docker image, curl -X GET "http://localhost:9191/scheduler/dump?view=SB&key-prefix=config/vpp/v2/interfaces/" worked for me.

Try agentctl dump.

@wenchao5211
Copy link
Author

i want get key-value in vpp-agent, i I created a new one descriptor, this descriptor value don't set to vpp, it only exit in runtime, but, i can't get key-value in other descriptor,How can I get runtime data ? I think I need some help

@chrismetz09
Copy link

Let's try the following:

Next, gather info

  • log with debug turned on: docker run -it --rm --name vpp-agent --env INITIAL_LOGLVL=debug -p 5002:5002 -p 9191:9191 --privileged ligato/vpp-agent

@wenchao5211
Copy link
Author

You may have misunderstood what I want to express. I want to get the value described by B in the Creat func described by A in the VPP-agent, but when I use DumpValuesByDescriptor or DumpValuesByKeyPrefix, the VPP-agent appears in a state of suspended animation. Now I have two doubts, one is --- graphR := s.graph.read () --- and the other is --- s.txnlock.lock ()---, whether these two func cause the suspended animation of the VPP-agent. When I use the curl -x GET http://localhost:9191/scheduler/dump?. View = SB&key - prefix = config/VPP/v2 / interfaces/" this curl, it is no problem, but when I call in VPP - agent DumpValuesByDescriptor or DumpValuesByKeyPrefix this two func, program is a state of suspended animation。
I wonder whether I get the value of the wrong direction, or I write is the starting point is wrong。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants