wanyaoqi
df7c2ae84e
fix host init generate network config
2020-04-10 15:48:26 +08:00
wanyaoqi
cf58fefea1
host do not set hostname
2020-04-02 18:09:55 +08:00
Zexi Li
cf61b1eb41
region: baremetal convert host join as k8s node
2020-03-12 16:14:43 +08:00
yunion-ci-robot
150ecff786
Merge pull request #5305 from yousong/feature/yousong-vpcagent
...
build: github: build vpcagent image
2020-02-28 21:47:20 +08:00
yunion-ci-robot
c6d6a725eb
Merge pull request #5286 from wanyaoqi/bugfix/wyq/host-register-use-default-vpc
...
host register use default vpc
2020-02-28 21:32:20 +08:00
wanyaoqi
87f7ca81d7
host register use default vpc
2020-02-28 18:36:21 +08:00
Yousong Zhou
c41cd012ff
hostman: disable services on host system when running in container
2020-02-28 18:17:45 +08:00
Yousong Zhou
bc89e8ab67
hostman: use "uname -m" for for fetch processor type
...
"uname -p" command from native busybox, coreutils may return "unknown".
CentOS coreutils has a patch fallback to using uts.machine if sysinfo
syscall is not available
Use "uname -m" for maximum compatibility
2020-02-27 20:00:00 +08:00
Yousong Zhou
694dab1e75
hostman: work with ovn-controller already in container
2020-02-27 20:00:00 +08:00
Yousong Zhou
d6dca0d846
hostman: resolve ovn db address before setting it into ovsdb
2020-02-27 19:59:43 +08:00
wanyaoqi
4eceefdb04
makesure /etc/ceph created before connect
2020-02-26 20:42:04 +08:00
wanyaoqi
7863fc7f8a
fix host register get network filter: add server_type baremetal
2020-02-24 16:36:44 +08:00
wanyaoqi
914062d765
fix host init set reserve memory
2020-02-24 13:02:50 +08:00
Yousong Zhou
b40e0d9de7
hostman: fix hostinfo init interrupted by ovn chassis setup
...
Causing sysinfo.SSystemInfo not initialized
[E 200205 09:45:49 timeutils2.AddTimeout.func1.1(timeutils.go:31)] runtime error: invalid memory address or nil pointer dereference
goroutine 405 [running]:
runtime/debug.Stack(0x551210, 0xc0000de1c0, 0x0)
/opt/hostedtoolcache/go/1.12.16/x64/src/runtime/debug/stack.go:24 +0x9d
runtime/debug.PrintStack()
/opt/hostedtoolcache/go/1.12.16/x64/src/runtime/debug/stack.go:16 +0x22
yunion.io/x/onecloud/pkg/util/timeutils2.AddTimeout.func1.1()
/home/runner/work/onecloud/onecloud/pkg/util/timeutils2/timeutils.go:32 +0x96
panic(0x1b208e0, 0x3bd1880)
/opt/hostedtoolcache/go/1.12.16/x64/src/runtime/panic.go:522 +0x1b5
yunion.io/x/onecloud/pkg/hostman/hostinfo.(*SHostInfo).updateHostRecord(0xc0009a8a80, 0xc000aff3b0, 0x24)
/home/runner/work/onecloud/onecloud/pkg/hostman/hostinfo/hostinfo.go:866 +0xbba
yunion.io/x/onecloud/pkg/hostman/hostinfo.(*SHostInfo).getHostInfo(0xc0009a8a80, 0xc00099a510, 0x24)
/home/runner/work/onecloud/onecloud/pkg/hostman/hostinfo/hostinfo.go:782 +0x37d
yunion.io/x/onecloud/pkg/hostman/hostinfo.(*SHostInfo).getZoneInfo(0xc0009a8a80, 0xc00099a4b0, 0x24, 0x0)
/home/runner/work/onecloud/onecloud/pkg/hostman/hostinfo/hostinfo.go:760 +0x55c
yunion.io/x/onecloud/pkg/hostman/hostinfo.(*SHostInfo).onGetWireId(0xc0009a8a80, 0xc000aff2f0, 0x24)
/home/runner/work/onecloud/onecloud/pkg/hostman/hostinfo/hostinfo.go:734 +0x16a
yunion.io/x/onecloud/pkg/hostman/hostinfo.(*SHostInfo).fetchAccessNetworkInfo(0xc0009a8a80)
/home/runner/work/onecloud/onecloud/pkg/hostman/hostinfo/hostinfo.go:719 +0x3ee
yunion.io/x/onecloud/pkg/hostman/hostinfo.(*SHostInfo).register(...)
/home/runner/work/onecloud/onecloud/pkg/hostman/hostinfo/hostinfo.go:662
yunion.io/x/onecloud/pkg/util/timeutils2.AddTimeout.func1(0x77359400, 0xc000925520)
/home/runner/work/onecloud/onecloud/pkg/util/timeutils2/timeutils.go:37 +0x6b
created by yunion.io/x/onecloud/pkg/util/timeutils2.AddTimeout
/home/runner/work/onecloud/onecloud/pkg/util/timeutils2/timeutils.go:28 +0x49
2020-02-05 10:06:33 +08:00
Yousong Zhou
0c258408e1
hostman: skip setting up ovn chassis when env support is not ready
2020-02-04 17:12:25 +08:00
Yousong Zhou
985326a7ad
hostman: fix detection of ovn controller version
2020-02-04 17:12:25 +08:00
yunion-ci-robot
682361acb8
Merge pull request #4256 from yousong/feature/yousong-vpc
...
Feature/yousong vpc
2020-01-19 11:47:11 +08:00
Yousong Zhou
6eeeb27378
hostman: linux_bridge: flush addr on member iface down
...
Previously it was done by "ifconfig xx 0.0.0.0 down"
Fixes 4d8d20f ("hostman: use package iproute2")
2020-01-17 18:11:08 +08:00
Yousong Zhou
99e2a1a948
hostman: add OvnHelper
2020-01-17 17:48:03 +08:00
Yousong Zhou
2a6f76539c
hostman: drop flow mods in ifup/ifdown script
...
For classic network iface, these are to be handled by sdnagent. However
these can cause problem for ovn-controller
2020-01-17 17:48:01 +08:00
Yousong Zhou
496bbbf5c0
hostman: hostbridge: const values for driver types
2020-01-17 17:47:00 +08:00
Yousong Zhou
9173e8aa0b
hostman: fix wording: detective -> detect
2020-01-17 17:46:58 +08:00
yunion-ci-robot
050c4173a0
Merge pull request #4922 from wanyaoqi/bugfix/wyq/host-misc-fix-0116
...
host: fix detect host info
2020-01-17 10:55:08 +08:00
Yousong Zhou
167bca1931
hostman: replace route command dep with netlink call
2020-01-16 20:47:50 +08:00
Yousong Zhou
8b5b6bc591
hostman: add secondary addresses with one iproute2 call
2020-01-16 20:27:39 +08:00
Yousong Zhou
697c441acf
hostman: up bridge interface in SetupAddresses
...
Previously it was done implicitly by ifconfig addr config command
2020-01-16 20:27:39 +08:00
Yousong Zhou
c952693b82
hostman: fix removing addresses on slave ifaces
...
Previously it was done with "ifconfig xxx 0 up"
Fixes 4d8d20f ("hostman: use package iproute2")
2020-01-16 18:33:03 +08:00
wanyaoqi
ea123270b3
fix detect host info
2020-01-16 16:48:15 +08:00
Yousong Zhou
33010e2d93
hostman: fix setting address
...
Fixes 4d8d20f ("hostman: use package iproute2")
2020-01-16 16:34:49 +08:00
yunion-ci-robot
c71b20c748
Merge pull request #4836 from yousong/bugfix/yousong-iproute2
...
Bugfix/yousong iproute2
2020-01-16 09:58:06 +08:00
wanyaoqi
fec7ecbee7
use executor probe kernel mods
2020-01-15 16:59:25 +08:00
Yousong Zhou
4d8d20fe95
hostman: use package iproute2
2020-01-14 18:41:04 +08:00
Yousong Zhou
480ed8ebc6
hostman: fix setting mtu for tunnel padding
2020-01-14 18:41:04 +08:00
Yousong Zhou
212af8b864
hostman: hostinfo: use netutils2.DefaultSrcIpDev()
2020-01-14 18:41:04 +08:00
wanyaoqi
b113c0599f
host fix env path
2020-01-14 17:19:18 +08:00
Zexi Li
220cc6883c
Merge pull request #4411 from wanyaoqi/bugfix/wyq/host-misc-1230
...
host misc fix
2020-01-02 12:31:58 +08:00
wanyaoqi
b556da8d59
fix generate network config
2019-12-31 14:16:38 +08:00
wanyaoqi
df233595b4
host misc fix
...
- host check not require ntpd
- create host record use generate name
2019-12-30 17:02:55 +08:00
Zexi Li
14e12a1904
Merge pull request #4337 from wanyaoqi/bugfix/wyq/host-misc
...
fix endpoint type, chntpw path
2019-12-26 21:15:01 +08:00
wanyaoqi
6b2058dcee
fix endpoint type, chntpw path
2019-12-26 16:50:09 +08:00
yunion-ci-robot
da1bf1067b
Merge pull request #4299 from yousong/bugfix/yousong-host-error
...
Bugfix/yousong host error
2019-12-26 11:03:33 +08:00
Yousong Zhou
857df221e4
hostman: note for preflight check for ifconfig command
2019-12-25 15:57:43 +08:00
Yousong Zhou
200178bf5f
hostman: different error message for different error reason
2019-12-25 15:45:20 +08:00
wanyaoqi
be2f661d40
fix qemu nbd exec
2019-12-24 21:23:57 +08:00
wanyaoqi
c8fff1d44f
add rpm file, add socket used check
2019-12-05 20:58:57 +08:00
wanyaoqi
7bf48c992e
- add command executor
...
- host prepare for deploy on container
- procutils adpat to executor
2019-12-04 20:49:39 +08:00
Yousong Zhou
743f65ebb8
hostman: hostinfo: turn off report_ignored_msrs
...
Quote mainline linux commit fab0aa3b ("KVM: x86: Allow suppressing
prints on RDMSR/WRMSR of unhandled MSRs")
> Some guests use these unhandled MSRs very frequently.
> This cause dmesg to be populated with lots of aggregated messages on
> usage of ignored MSRs. As ignore_msrs=true means that the user is
> well-aware his guest use ignored MSRs, allow to also disable the
> prints on their usage.
>
> An example of such guest is ESXi which tends to access a lot to MSR
> 0x34 (MSR_SMI_COUNT) very frequently.
>
> In addition, we have observed this to cause unnecessary delays to
> guest execution. Such an example is ESXi which experience networking
> delays in it's guests (L2 guests) because of these prints (even when
> prints are rate-limited). This can easily be reproduced by pinging
> from one L2 guest to another. Once in a while, a peak in ping RTT
> will be observed. Removing these unhandled MSR prints solves the
> issue.
>
> Because these prints can help diagnose issues with guests,
> this commit only suppress them by a module parameter instead of
> removing them from code entirely.
2019-12-04 02:15:39 +00:00
wanyaoqi
a6abf41225
misc fix
...
- image list filter by uefi
- fix instance sanpshot delete
- guest clean expire server exclude pending deleted servers
- host register abort on network not match
2019-11-25 21:23:32 +08:00
yunion-ci-robot
42a6df572c
Merge pull request #3840 from wanyaoqi/bugfix/wyq/misc-1121
...
bugfix: instance snapshot releated
2019-11-22 18:55:24 +08:00
wanyaoqi
cddadf9f03
instance snapshot bugfix
2019-11-21 20:41:45 +08:00