[sysrepo-devel] import question
Rastislav Szabo -X (raszabo - PANTHEON TECHNOLOGIES at Cisco)
raszabo at cisco.com
Wed Sep 28 12:49:57 UTC 2016
Hi,
If you are sure that your subscription was active while importing data, then it probably would be a bug. Please open an issue on github and add all relevant logs from sysrepo daemon (execute the daemon with sysrepod -d -l4).
BTW. Another option would be to import the data into startup datastore - see --datastore option of sysrepocfg.
Thanks,
Rastislav
-----Original Message-----
From: Joan Landry [mailto:JoLandry at advaoptical.com]
Sent: Wednesday, September 28, 2016 1:28 PM
To: Rastislav Szabo -X (raszabo - PANTHEON TECHNOLOGIES at Cisco) <raszabo at cisco.com>; sysrepo-devel at sysrepo.org
Subject: RE: import question
Sorry that did not help as I already had an active subscription via code running when I issued the cmd.
rc = sr_module_change_subscribe(session, "adva-ensemble-services", list_changes_servcb, &sync, 0, SR_SUBSCR_DEFAULT, &sub);
if (SR_ERR_OK != rc) {
goto cleanup;
}
And wanted to load the datastore via a .json file via [root at MaestrOS tmp]# sysrepocfg --import=/tmp/service.json --format=json adva-ensemble-services Cannot operate on the running datastore as there are no active subscriptions.
Cancelling the operation.
[root at MaestrOS tmp]#
But it fails even though I have an active subscription.
Any help would be greatly appreciated.
Thanks
-----Original Message-----
From: Rastislav Szabo -X (raszabo - PANTHEON TECHNOLOGIES at Cisco) [mailto:raszabo at cisco.com]
Sent: Wednesday, September 28, 2016 3:23 AM
To: Joan Landry <JoLandry at advaoptical.com>; sysrepo-devel at sysrepo.org
Subject: RE: import question
Hi,
This page contains the answer to your question: https://github.com/sysrepo/sysrepo/wiki/Frequently-Asked-Questions-(FAQs)
Regards,
Rastislav
-----Original Message-----
From: sysrepo-devel [mailto:sysrepo-devel-bounces at sysrepo.org] On Behalf Of Joan Landry
Sent: Wednesday, September 28, 2016 2:36 AM
To: sysrepo-devel at sysrepo.org
Subject: [sysrepo-devel] import question
I get the following error when I try to import data, any ideas what an active subscription is?
Or what I need to do to be able to import data to the data store?
thanks
[root at MaestrOS tmp]# sysrepocfg --import=/tmp/service.json --format=json adva-ensemble-services Cannot operate on the running datastore as there are no active subscriptions.
Cancelling the operation.
[root at MaestrOS tmp]#
_______________________________________________
sysrepo-devel mailing list
sysrepo-devel at sysrepo.org
http://lists.sysrepo.org/listinfo/sysrepo-devel
More information about the sysrepo-devel
mailing list