List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
Thread-index: AczWy4U68GgyYJ1kTGOfwYSxaCSkTQ==
Thread-topic: [Xen-API] Xenstore data not getting updated in running VM
Hi,
At the moment "add_to_xenstore" data isn't 'live': a reboot (or migrate) is required to refresh it.
What kind of data are you using xenstore for? It tends to be good for rarely-changing configuration data but bad for anything which updates frequently. It's also a bit 'fire and forget' while people often want something like an RPC interface.
What 'correct data' you mean? If you write data/foo "bar" from domU
you can read them from dom0 as /local/domain/$domid/data/foo
I'm using API VM.add_to_xenstore_data to add data to a running domU which is reflected in xe vm-param-get param-name=xenstore-data uuid=UUID_OF_VM but if I do "xenstore-ls data" in domU then it does not reflect the updated/new entries.
If I reboot the domU then it is able to show updated entries with same "xenstore-ls data" command.
On 18.01.2012 18:31, R J wrote:
Hello List,
I'm not able to fetch correct xenstore data in guest. If I reboot
the guest then it loads with latest xenstore data but if I change
the content of xenstore data while the VM is running then the data
does not reflect in guest.
Is this normal or am I missing anything ?
Note: XCP version 1 and guest tools are installed.