[sysrepo-devel] not able to commit

Joan Landry JoLandry at advaoptical.com
Wed Sep 28 16:13:23 UTC 2016


I loaded the devel branch and commit does not work - I put in a bug report on commit as it is not working - but with different symptoms.

I also tried a get on ietf-netconf-monitoring and got no data - so is there something I am not initializing correctly?

This is the debug results from net-opeer2
netopeer2-server[31569]: Session 1: received message:
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="27"
  xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <get-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
    <source>
      <startup/>
    </source>
    <filter><netconf-state xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
      </netconf-state>
    </filter>
  </get-config>
</rpc>
netopeer2-server[31569]: (cl_request_process:401) Sending session-switch-ds request.
netopeer2-server[31569]: (cl_request_process:423) session-switch-ds request sent, waiting for response.
netopeer2-server[31569]: (cl_request_process:445) session-switch-ds response received, processing.
netopeer2-server[31569]: (cl_request_process:401) Sending session-refresh request.
netopeer2-server[31569]: (cl_request_process:423) session-refresh request sent, waiting for response.
netopeer2-server[31569]: (cl_request_process:445) session-refresh response received, processing.
netopeer2-server[31569]: Session 1: received message:
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="28"
  xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <get-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
    <source>
      <running/>
    </source>
    <filter><netconf-state xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
      </netconf-state>
    </filter>
  </get-config>
</rpc>
netopeer2-server[31569]: (cl_request_process:401) Sending session-switch-ds request.
netopeer2-server[31569]: (cl_request_process:423) session-switch-ds request sent, waiting for response.
netopeer2-server[31569]: (cl_request_process:445) session-switch-ds response received, processing.
netopeer2-server[31569]: (cl_request_process:401) Sending session-refresh request.
netopeer2-server[31569]: (cl_request_process:423) session-refresh request sent, waiting for response.
netopeer2-server[31569]: (cl_request_process:445) session-refresh response received, processing.
netopeer2-server[31569]: Session 1: received message:
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="29"
  xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <get-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
    <source>
      <candidate/>
    </source>
    <filter><netconf-state xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
      </netconf-state>
    </filter>
  </get-config>
</rpc>
netopeer2-server[31569]: (cl_request_process:401) Sending session-switch-ds request.
netopeer2-server[31569]: (cl_request_process:423) session-switch-ds request sent, waiting for response.
netopeer2-server[31569]: (cl_request_process:445) session-switch-ds response received, processing.


Replies:
yangcli root at 10.64.204.119> get-config filter=@t159.flt source=startup
RPC Data Reply 27 for session 1:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data/>
</rpc-reply>

yangcli root at 10.64.204.119> get-config filter=@t159.flt source=running
RPC Data Reply 28 for session 1:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data/>
</rpc-reply>

yangcli root at 10.64.204.119> get-config filter=@t159.flt source=candidate
RPC Data Reply 29 for session 1:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data/>
</rpc-reply>



-----Original Message-----
From: Rastislav Szabo -X (raszabo - PANTHEON TECHNOLOGIES at Cisco) [mailto:raszabo at cisco.com] 
Sent: Wednesday, September 28, 2016 7:14 AM
To: Joan Landry <JoLandry at advaoptical.com>; sysrepo-devel at sysrepo.org
Subject: RE: not able to commit

Hi,

Your issue is somehow connected to the #326, although the syptoms are little bit different. Deep inside of sysrepo they have the same root-case, which has been already fixed in the devel branch.

You don't need to initialize the contents of ietf-netconf-monitoring. Please try the code in the devel branch to see whether it works, or wait few days until it will be merged into master.

Thanks,
Rastislav

-----Original Message-----
From: Joan Landry [mailto:JoLandry at advaoptical.com] 
Sent: Wednesday, September 28, 2016 1:02 PM
To: Rastislav Szabo -X (raszabo - PANTHEON TECHNOLOGIES at Cisco) <raszabo at cisco.com>; sysrepo-devel at sysrepo.org
Subject: RE: not able to commit

>From what I can tell 326 involves a change to a leaf that is declared with a default setting.

The only item I changed in the Candidate was the ietf_interfaces, eth0 description leaf.

When I do a commit on that one change I get an error regarding netconf-state which I think is part of the ietf-netconf-monitoring which I did not modify.

So is this the same issue - or is there something I am not doing correctly with ietf-netconf-monitoring?

Do I need to initialize the contents of ietf-netconf-monitoring?

Also,  when I issue a <get-schema> request, say, 
      <get-schema>
           <identifier>ietf-netconf</identifier>
           <version>2011-06-01</version>
           <format>yang</format>
         </get-schema>

Reply is 

<?xml version="1.0" encoding="utf-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="11">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-not-supported</error-tag>
    <error-severity>error</error-severity>
    <error-message xml:lang="en">Request could not be completed because the requested operation is not supported by this implementation.</error-message>
  </rpc-error>
</rpc-reply>

-----Original Message-----
From: Rastislav Szabo -X (raszabo - PANTHEON TECHNOLOGIES at Cisco) [mailto:raszabo at cisco.com] 
Sent: Wednesday, September 28, 2016 3:25 AM
To: Joan Landry <JoLandry at advaoptical.com>; sysrepo-devel at sysrepo.org
Subject: RE: not able to commit

Hi,

This is a known issue in the current master branch (see https://github.com/sysrepo/sysrepo/issues/326), it is already fixed in the devel branch. Devel will be merged into master in the next few days.

Regerds,
Rastislav

-----Original Message-----
From: sysrepo-devel [mailto:sysrepo-devel-bounces at sysrepo.org] On Behalf Of Joan Landry
Sent: Wednesday, September 28, 2016 2:55 AM
To: Joan Landry <JoLandry at advaoptical.com>; sysrepo-devel at sysrepo.org
Subject: [sysrepo-devel] not able to commit

I get the following error when I try to execute commit.


[ERR] (rp_dt_commit:690) Data validation failed: Unknown element "netconf-state".


Any ideas how to resolve this?

I do not know what netconf-state is.
_______________________________________________
sysrepo-devel mailing list
sysrepo-devel at sysrepo.org
http://lists.sysrepo.org/listinfo/sysrepo-devel


More information about the sysrepo-devel mailing list