【openstack】使用devstack集成openstack和odl过程中出现404 Not Found错误

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/zsWang9/article/details/81567429

错误代码:2018-08-10 06:05:25.593 | ++/opt/stack/networking-odl/devstack/functions:_wget:20 rm -f /opt/stack/opendaylight/maven-metadata.xml

2018-08-10 06:05:25.600 | ++/opt/stack/networking-odl/devstack/functions:_wget:23 wget -O /opt/stack/opendaylight/maven-metadata.xml httg/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf/-SNAPSHOT/maven-metadata.xml

2018-08-10 06:05:25.602 | --2018-08-10 14:05:25-- https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylion-karaf/-SNAPSHOT/maven-metadata.xml

2018-08-10 06:05:25.695 | Resolving nexus.opendaylight.org (nexus.opendaylight.org)... 199.204.45.87, 2604:e100:1:0:f816:3eff:fe45:48d6

2018-08-10 06:05:25.992 | Connecting to nexus.opendaylight.org (nexus.opendaylight.org)|199.204.45.87|:443... connected.

2018-08-10 06:05:26.999 | HTTP request sent, awaiting response... 404 Not Found

2018-08-10 06:05:26.999 | 2018-08-10 14:05:26 ERROR 404: Not Found.

2018-08-10 06:05:26.999 |

2018-08-10 06:05:27.008 | +/opt/stack/networking-odl/devstack/functions:_wget:1 exit_trap

2018-08-10 06:05:27.014 | +./stack.sh:exit_trap:494 local r=8

2018-08-10 06:05:27.021 | ++./stack.sh:exit_trap:495 jobs -p

2018-08-10 06:05:27.027 | +./stack.sh:exit_trap:495 jobs=

2018-08-10 06:05:27.033 | +./stack.sh:exit_trap:498 [[ -n '' ]]

2018-08-10 06:05:27.040 | +./stack.sh:exit_trap:504 kill_spinner

2018-08-10 06:05:27.047 | +./stack.sh:kill_spinner:390 '[' '!' -z '' ']'

2018-08-10 06:05:27.054 | +./stack.sh:exit_trap:506 [[ 8 -ne 0 ]]

2018-08-10 06:05:27.060 | +./stack.sh:exit_trap:507 echo 'Error on exit'

2018-08-10 06:05:27.060 | Error on exit

2018-08-10 06:05:27.066 | +./stack.sh:exit_trap:508 generate-subunit 1533880916 211 fail

2018-08-10 06:05:27.294 | +./stack.sh:exit_trap:509 [[ -z /opt/stack/logs ]]

2018-08-10 06:05:27.302 | +./stack.sh:exit_trap:512 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs

2018-08-10 06:05:27.767 | +./stack.sh:exit_trap:518 exit 8

类似404 Not Found的错误原因:

由于路径在新的Maven仓库中有所变化,导致不能找到相应的文件。

方案一:

打开文件:

vim /opt/stack/networking-odl/devstack/functions

找到:_wget函数在23行:将相应文件的路径进行修改:如

$URL 替换为https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/karaf/0.8.3-SNAPSHOT/maven-metadata.xml

方案二:

将所有ODL_PKG 变量对应的路径的opendaylion-karaf,都修改为karaf。

方案三:

找到对应文件,可以把文件下载到本地再放到对应路径下即可。

展开阅读全文

没有更多推荐了,返回首页