• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

CAS CVM无法添加CVK主机

2021-05-27提问
  • 0关注
  • 1收藏,1767浏览
粉丝:1人 关注:0人

问题描述:

设置列表

  • 有序列表
  • 无序列表

对齐方式

  • 靠左
  • 居中
  • 靠右
  • 报错信息
  • at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212] 
  • 2021-05-27 11:17:05 [ERROR] [http-nio-8080-exec-9] [com.virtual.plat.server.vm.ssh.SecureShellManagerImpl::execCmd] Execute command Error Msg:cat: /etc/tomcat8/Catalina/localhost/.key: No such file or directory 
  •  2021-05-27 11:17:06 [ERROR] [http-nio-8080-exec-9] [com.virtual.plat.server.vm.ssh.SecureShellManagerImpl::execCmd] Execute command Error Msg:bash: movesureservice: command not found
  •  2021-05-27 11:17:06 [ERROR] [Thread-180] [com.virtual.common.ErrorStreamHandlerThread::a]
  •  2021-05-27 11:17:06 [ERROR] [Thread-10] [com.virtual.plat.server.RequestHandler::a] requestHandler: msg id is 0, waiting. countDown is 5 
  • 2021-05-27 11:17:07 [ERROR] [Cluster Request Processor Manager 1] [com.virtual.plat.server.vm.ssh.SecureShellManagerImpl::execCmd] Execute command Error Msg:bash: movesureservice: command not found 
  •  2021-05-27 11:17:07 [ERROR] [Cluster Request Processor Manager 1] [com.virtual.plat.server.vm.vmm.SshHostTool::getAllVSwitch] ovs-vsctl list-br result is vswitch0
  •  2021-05-27 11:17:07 [ERROR] [Cluster Request Processor Manager 1] [com.virtual.plat.server.vm.vmm.SshHostTool::getAllVSwitch] host is 10.12.174.43 
  • 2021-05-27 11:17:07 [ERROR] [Cluster Request Processor Manager 1] [com.virtual.plat.server.network.NetworkUtils::getManagerVs] manager vswitch is null
  •  2021-05-27 11:17:07 [ERROR] [Cluster Request Processor Manager 1] [com.virtual.plat.server.host.HostHandler::addHost] add host error java.lang.NullPointerException: null at com.virtual.plat.server.network.Interfaces.b(vmc:337) ~[vmc.jar:?] 
  •  at com.virtual.plat.server.network.Interfaces.getIface(vmc:397) ~[vmc.jar:?] at com.virtual.plat.server.vm.vmm.SshHostTool.getMacAddressByVsName(vmc:3316) ~[vmc.jar:?] 
  •  at com.virtual.plat.server.network.NetworkUtils.getManagerVSwitch(vmc:44) ~[vmc.jar:?] 
  •  at com.virtual.plat.server.host.HostHandler.addHost(vmc:2285) [vmc.jar:?] 
  •  at com.virtual.plat.server.ClusterRequestProcessor.run(vmc:501) [vmc.jar:?] 
  •  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
  •  2021-05-27 11:17:07 [ERROR] [Cluster Request Processor Manager 1] [com.virtual.plat.server.ClusterRequestProcessor::run] null com.virtual.common.AppException: [11 - 未知错误。] 
  •  at com.virtual.plat.server.host.HostHandler.addHost(vmc:2614) ~[vmc.jar:?] 
  •  at com.virtual.plat.server.ClusterRequestProcessor.run(vmc:501) [vmc.jar:?] 
  •  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]

组网及组网描述:


最佳答案

粉丝:38人 关注:3人

请问前台界面添加的具体报错是什么?

要添加的主机和CVM网络通信正常吗?

22,8080,8081等端口放通了吗

暂无评论

2 个回答
dll 九段
粉丝:58人 关注:5人

是不是主机物理网卡没有eth0,vswitch重新绑定物理网卡试试

参考案例:https://zhiliao.h3c.com/theme/details/127198

暂无评论

粉丝:1人 关注:0人

补充配置信息:

CVM: 


网卡信息:

[root@cvknode1 ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.12.175.165 netmask 255.255.252.0 broadcast 10.12.175.255
inet6 fe80::20c:29ff:fe2c:1b81 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:2c:1b:81 txqueuelen 1000 (Ethernet)
RX packets 1470452 bytes 94684710 (90.2 MiB)
RX errors 0 dropped 601 overruns 0 frame 0
TX packets 18137 bytes 1693431 (1.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.12.175.109 netmask 255.255.252.0 broadcast 10.12.175.255
inet6 fe80::20c:29ff:fe2c:1b8b prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:2c:1b:8b txqueuelen 1000 (Ethernet)
RX packets 1475577 bytes 96163653 (91.7 MiB)
RX errors 0 dropped 3 overruns 0 frame 0
TX packets 13377 bytes 19456488 (18.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 489168 bytes 189574550 (180.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 489168 bytes 189574550 (180.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vswitch0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.12.175.109 netmask 255.255.252.0 broadcast 10.12.175.255
inet6 fe80::20c:29ff:fe2c:1b8b prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:2c:1b:8b txqueuelen 1000 (Ethernet)
RX packets 1466187 bytes 74485632 (71.0 MiB)
RX errors 0 dropped 40 overruns 0 frame 0
TX packets 13351 bytes 19455258 (18.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vswitch0 信息

[root@cvknode1 ~]# ovs-vsctl show
d70c9537-c683-4419-b711-0373b0c414ab
Bridge "vswitch0"
Port "eth1"
Interface "eth1"
Port "vswitch0"
Interface "vswitch0"
type: internal
ovs_version: "2.9.1"
[root@cvknode1 ~]#

SSH测试正常

[root@cvknode1 ~]# ssh 10.12.174.43
Authorized users only. All activity may be monitored and reported
root@10.12.174.43"s password:
Last login: Thu May 27 11:16:21 2021 from 10.12.175.165
| | --- |
|---| --| | * |--| | | \/
| | --- |___ | | | |__| /\ Instance (H3Linux Release 1.1.0)


[root@cvk1 ~]#


CVK配置信息

网卡信息

[root@cvk1 ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::20c:29ff:fefe:750b prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:fe:75:0b txqueuelen 1000 (Ethernet)
RX packets 1517839 bytes 97774805 (93.2 MiB)
RX errors 0 dropped 5 overruns 0 frame 0
TX packets 10425 bytes 1150626 (1.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::20c:29ff:fefe:7515 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:fe:75:15 txqueuelen 1000 (Ethernet)
RX packets 1502211 bytes 96178432 (91.7 MiB)
RX errors 0 dropped 627 overruns 0 frame 0
TX packets 36 bytes 3096 (3.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 9320 bytes 903410 (882.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9320 bytes 903410 (882.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vswitch0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.12.174.43 netmask 255.255.252.0 broadcast 10.12.175.255
inet6 fe80::20c:29ff:fefe:750b prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:fe:75:0b txqueuelen 1000 (Ethernet)
RX packets 1508506 bytes 75493400 (71.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10427 bytes 1152058 (1.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Vswitch信息

[root@cvk1 ~]# ovs-vsctl show
f2df0f84-d1e7-4f8a-9bcd-aae9ba4c67da
Bridge "vswitch0"
Port "vswitch0"
Interface "vswitch0"
type: internal
Port "eth0"
Interface "eth0"
ovs_version: "2.9.1"

SSH 端口正常

[root@cvk1 ~]# ssh 10.12.175.109
Authorized users only. All activity may be monitored and reported
root@10.12.175.109"s password:
Last login: Thu May 27 14:21:45 2021 from 10.12.164.136
| | --- |
|---| --| | * |--| | | \/
| | --- |___ | | | |__| /\ Instance (H3Linux Release 1.1.0)


[root@cvknode1 ~]#

可以访问CVM的 8080 8081端口

[root@cvk1 ~]# curl https://10.12.175.109:8080
curl: (35) SSL received a record that exceeded the maximum permissible length.
[root@cvk1 ~]# curl https://10.12.175.109:8081
curl: (60) Issuer certificate is invalid.
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn"t adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you"d like to turn off curl"s verification of the certificate, use
the -k (or --insecure) option.
[root@cvk1 ~]#




网络可能确实有点问题

CVM上的arp -a 

[root@cvknode1 ~]# arp -a gateway (10.12.172.1) at 38:97:d6:30:c7:ee [ether] on vswitch0 ? (10.12.174.43) at <incomplete> on eth1 gateway (10.12.172.1) at 38:97:d6:30:c7:ee [ether] on eth1 [root@cvknode1 ~]#

CVK的arp -a 


  [root@cvk1 ~]# arp -a ? (10.12.175.109) at <incomplete> on eth0 gateway (10.12.172.1) at 38:97:d6:30:c7:ee [ether] on vswitch0 [root@cvk1 ~]# ifconfig eth0 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.12.174.43 netmask 255.255.252.0 broadcast 10.12.175.255 inet6 fe80::20c:29ff:fefe:750b prefixlen 64 scopeid 0x20<link> ether 00:0c:29:fe:75:0b txqueuelen 1000 (Ethernet) RX packets 61034 bytes 3923288 (3.7 MiB) RX errors 0 dropped 5 overruns 0 frame 0 TX packets 214 bytes 28368 (27.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

暂无评论

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明