我尝试添加一个 netconf 服务器挂载点,破坏了我的 OpenDaylight 安装。我相信如果我可以删除我添加到操作清单(/restconf/operational/opendaylight-inventory:nodes/node/netconfserver)的节点,我可以修复系统。如何删除?关于我如何破坏 ODL 的详细信息如下。
我试图按照示例OpenDaylight Controller:Config:Examples:Netconf将 OpenDaylight 连接到 netconf 服务器。我将以下 curl 请求发送到正在运行的 opendaylight 服务器:
curl -v -X POST -H "Content-Type:application/xml" -T ./mount_netconfserver.xml -u admin:admin http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/controller -config/yang-ext:mount/config:modules
mount_netconfserver.xml:
<snapshot>
<configuration>
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
<module>
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">prefix:sal-netconf-connector</type>
<name>netconf_server</name>
<port xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">8181</port>
<username xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">admin</username>
<address xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">*address_removed_for_privacy*</address>
<tcp-only xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">false</tcp-only>
<password xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">admin</password>
<event-executor xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-event-executor</type>
<name>global-event-executor</name>
</event-executor>
<binding-registry xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">prefix:binding-broker-osgi-registry</type>
<name>binding-osgi-broker</name>
</binding-registry>
<dom-registry xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">prefix:dom-broker-osgi-registry</type>
<name>dom-broker</name>
</dom-registry>
<client-dispatcher xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:config:netconf">prefix:netconf-client-dispatcher</type>
<name>global-netconf-dispatcher</name>
</client-dispatcher>
<processing-executor xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:threadpool">prefix:threadpool</type>
<name>global-netconf-processing-executor</name>
</processing-executor>
</module>
</modules>
</data>
</configuration>
<required-capabilities>
<![CDATA[urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf?module=odl-sal-netconf-connector-cfg&revision=2013-10-28]]>
</required-capabilities>
</snapshot>
之后,OpenDaylight 的命令行开始给我这个错误,dlux 界面将变得无响应,如果我尝试发送命令,命令行将开始抛出空指针异常。当我重新启动它时,ODL 将暂时工作。
!ENTRY org.apache.oltu.oauth2.resourceserver 4 0 2015-01-13 15:53:18.047
!MESSAGE FrameworkEvent ERROR
!STACK 0
java.io.IOException: Exception in opening zip file: /opt/distribution-karaf-0.2.1-Helium-SR1/data/cache/org.eclipse.osgi/bundles/207/1/bundlefile
at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:291)
...