diff --git a/pkg/hostman/hostinfo/hostinfo.go b/pkg/hostman/hostinfo/hostinfo.go index a6fba6ba74..7f41393d4b 100644 --- a/pkg/hostman/hostinfo/hostinfo.go +++ b/pkg/hostman/hostinfo/hostinfo.go @@ -705,7 +705,6 @@ func (h *SHostInfo) fetchAccessNetworkInfo() { params := jsonutils.NewDict() params.Set("ip", jsonutils.NewString(masterIp)) params.Set("is_on_premise", jsonutils.JSONTrue) - params.Set("server_type", jsonutils.NewString(api.NETWORK_TYPE_BAREMETAL)) params.Set("limit", jsonutils.NewInt(0)) res, err := modules.Networks.List(h.GetSession(), params) diff --git a/pkg/hostman/storageman/storage_rbd.go b/pkg/hostman/storageman/storage_rbd.go index 1e9f9e596d..27dbe41dfa 100644 --- a/pkg/hostman/storageman/storage_rbd.go +++ b/pkg/hostman/storageman/storage_rbd.go @@ -59,6 +59,10 @@ type SRbdStorage struct { func NewRBDStorage(manager *SStorageManager, path string) *SRbdStorage { var ret = new(SRbdStorage) ret.SBaseStorage = *NewBaseStorage(manager, path) + err := procutils.NewRemoteCommandAsFarAsPossible("mkdir", "-p", "/etc/ceph").Run() + if err != nil { + log.Errorf("Failed to mkdir /etc/ceph: %s", err) + } return ret }