September

09-16 Weekly report

investigated the bug UDevC00160217 
1. Did testing and compared system director of Herorah and 3.2.0.1720 and 2.3.0.4580,found the issue only exist in Hedorah.
2. Analyzed the system director's code "\unity\m34\IndexMonitor\serverstatus.cpp and tabbedinfo.cpp" about details of starting the server.
3. Thought of 3 ideas to solve this problem and wait suggestion from avid.


09-15

One thing I confused: CTabbedInfo::SetStateAll never used in the project!

\m34\IndexMonitor\tabbedinfo.cpp

void CTabbedInfo::SetStateAll()
{
  CWnd *p;
  ...................
  p = GetDlgItem( IDC_STOPSERVER  );
  if ( p )
  {
    bool enable;
    enable = CanStopServer();
    p->EnableWindow(enable);
  }
  p = GetDlgItem( IDC_STARTSERVER  );
  if ( p )
  {
    bool enable;
    enable = CanStartServer();
    p->EnableWindow(enable);
  }
}


Some Clue:

m34\IndexMonitor\serverstatus.cpp

1.1

void CServerStatus::OnTimer(UINT_PTR nIDEvent) 
{
     // Update/disable buttons
    SetStateAll();
    UpdateStatus();
    UpdateUserInterface();
    CPropertyPage::OnTimer(nIDEvent);
}

1.2

void CServerStatus::SetStateAll()
{
        Boolean32 serverOn, interactive_mode;
        FStatus status;
        bool enable = false;
    
        status = FSADM_IsServerRunning(&serverOn, &interactive_mode);
        if (status == FSTATUS_SUCCESS && interactive_mode == FALSE) 
        {
           enable = (serverOn == TRUE);
        }

        SetControlState(IDC_CONFIGURE_FS, !enable);
        SetControlState(IDC_RESET_PASSWORD, enable);
        SetControlState(IDC_STOPSERVER, enable);
        SetControlState(IDC_STARTSERVER, !enable);
        // for now
        SetControlState(IDC_FAILOVER_CONFIG, true);
}

2.3 for comparation:

VOID CServerStatus::SetStateAll()
{
Boolean32  interactive_mode;
Boolean32  serverOn;
FStatus    fstatus;


CButton *start = (CButton *) GetDlgItem(IDC_STARTSERVER);
CButton *stop  = (CButton *) GetDlgItem(IDC_STOPSERVER);
CButton *toggle  = (CButton *) GetDlgItem(IDC_TOGGLE_DISPLAY);
CButton *reset  = (CButton *) GetDlgItem(IDC_EVENT_RESET);

        CWaitCursor wcur;

fstatus = FSADM_IsServerRunning(&serverOn, &interactive_mode);
if (fstatus == FSTATUS_SUCCESS && interactive_mode == FALSE) {
// Not running interactive so enable/disable the 
// start and stop buttons based on server state
        if ( serverOn )
        {
            SafeDisableWindow( start );
            stop->EnableWindow(TRUE);
        }
        else
        {
            start->EnableWindow(TRUE);
            SafeDisableWindow( stop );
        }
}


if (serverOn) {
toggle->EnableWindow(TRUE);
reset->EnableWindow(TRUE);
}
        else
        {
            SafeDisableWindow( toggle );
            SafeDisableWindow( reset );
        }
}


09-14

1.1 \m34\IndexMonitor\IndexMonitor.rc:

PUSHBUTTON      "Start System Director",IDC_STARTSERVER,25,230,90,14

1.2 \m34\IndexMonitor\serverstatus.cpp

ON_BN_CLICKED(IDC_STARTSERVER, OnStartserver)

1.3

void CServerStatus::OnStartserver() 
{
CTabbedInfo *p;
p = (CTabbedInfo*) AfxGetMainWnd();
p->StartServer();
// Update/disable buttons
SetStateAll();
}

void CTabbedInfo::StartServer()
{
StartServerWorker *p = new StartServerWorker( m_session );


StartWorkerThread(p, IDS_STARTUP_CAPTION, IDS_STARTUP_MSG );
}

1.4

void CTabbedInfo::StartServer()
{
StartServerWorker *p = new StartServerWorker( m_session );


StartWorkerThread(p, IDS_STARTUP_CAPTION, IDS_STARTUP_MSG );
}

void CServerStatus::SetStateAll()
{
    Boolean32 serverOn, interactive_mode;
FStatus status;
bool enable = false;
    
status = FSADM_IsServerRunning(&serverOn, &interactive_mode);
if (status == FSTATUS_SUCCESS && interactive_mode == FALSE) 
{
enable = (serverOn == TRUE);
}


    SetControlState(IDC_CONFIGURE_FS, !enable);
    SetControlState(IDC_RESET_PASSWORD, enable);
    SetControlState(IDC_STOPSERVER, enable);
    SetControlState(IDC_STARTSERVER, !enable);
    // for now
    SetControlState(IDC_FAILOVER_CONFIG, true);
}



15:47

此bug根本跟安装完自动运行无关。只是自动运行SD后,start system director自动启动成功与否的问题


e:\document\code\dev.ws.dxdkong1.ISIS_MAININT\unity\m34\SetMsiProperties\SetMsiProperties.cpp

// Open an msi installer database and set some properties.
// Flags command line param specifies which properties.
int main( int argc, char *argv[] )

09-13

UDevC00160217  Common Code - ISIS5000 - Need manually start system director


e:\document\code\dev.ws.dxdkong1.ISIS_MAININT\unity\m34\common\WinFireUtils.cpp

protoString = (protocol == NetFwPublicTypeLib::NET_FW_IP_PROTOCOL_TCP) ? L"-TCP" : L"-UDP";

wcscpy( nameString, L"AvidUnityISIS" );
wcscat( nameString, protoString );



0907

UDevC00159617:   Common Code - ISIS7000 - Should order the elements after you do bind in storage managers
UDevC00159614:   Common Code - ISIS7000 - Enhancement-Should refresh  elements status automatically in storage managers when you do bind
UDevC00161601:   Common Code - Auto: Can't retrieve IP addresses of storage elements.

UDevC00161601

outIPAddresses in 3.5

e:\document\code\dev.ws.dxdkong1.ISIS_MAININT\unity\m34\AdminServer2\AdminServerAPI.gsoap


class AdminServer__StorageElementDetails : public AdminServer__StorageElementSummary
{
    AdminServer__StorageElementIPs    outIPAddresses;       // use element manager ip address list
};


class AdminServer__StorageElementManagerSummary
{
    // MicroServerAdvertiseInfo
    int                     ioType;                     // state
    int                     outBladeType;               // uServerType    
    unsigned long           outLastStatusReport;        // lastUpdate
    std::string             outLastStatusReportDate;    // derived from lastUpdate
    std::string             outHostName;                // name or v3 isb_name
    std::string             outID;                      // id
    int                     outPicoSlotNum;             // picoSlotNum (classic)
    ....................................
    
    
    AdminServer__StorageElementIPs    outIPAddresses;   
};


outIPAddresses in 2.3

class AdminServer__StorageElementDetails
{
std::string outName;
std::string outISBName;
std::string outID;
std::string outPicoCrateSerial;
std::string outDomainID;
int outPicoSlotNum;
.....................

AdminServer__StorageElementIPs  outIPAddresses;


unsigned long outSystemUpTime;
unsigned long outLastStatusReport;
long ioOfflineTimeout;
int outUpgradeStatus;
int outTempSensor;
int outTempStatus;
unsigned long longoutAvailableByteCount;
std::string outStorageGroupID;
int outPicoSlotAndCrateValid;
};



IMPORTANT CLUE

AdminServer.cpp

class AdminServer__StorageElementSummary
{
std::string outName;
std::string outISBName;
std::string outID;
std::string outPicoCrateSerial;
std::string outDomainID;
int outPicoSlotNum;
.......................


AdminServer__StorageElementIPs  outIPAddresses;
};

int AdminServer::ProcessMgmtRequest(AgentXmlRequestArgs& reqArgs)
{
int rc = MGMT_RESP_BUF;
std::string cmd(reqArgs.args[URL_KEY_DEFAULT]);


// these commands do not require a valid session
if(cmd.compare(MGMT_REQ_GETSYSDIRINFO) == 0)
{
return AdminServerXml::GetSystemDirectorInfo(reqArgs);
} else if(cmd.compare(MGMT_REQ_GETFLOCKERROROVERVIEW) == 0)
{
return AdminServerXml::GenerateFlockErrorOverview(reqArgs);
}else if(cmd.compare(MGMT_REQ_GETFLOCKINFO) == 0)
{
return AdminServerXml::GenerateFlockInfo(reqArgs);
} /*else
{
// first check to see if caller has a valid session.  this is done
// a little differently than for HTML handling.  Derived agents 
// MUST validate sessions in their handlers here as the AbstractAgent
// will not check for a valid session and will blindly service 
// requests
FStatus fs = ValidateMgmtRequest(AUTH_TOKEN, reqArgs);
if(fs != FSTATUS_SUCCESS)
{
return AbstractAgentXml::GenerateStatus(reqArgs, fs);
}
}*/ //DANNY


CMgmtRequest.py

 self.functions['get_storage_elements'] = '/mgmt?r=getValidStorageElements'


0902-report:

1.Found and investigate a bug that there is error when do write testing in two ISBs offline case. It is secondary write probelm. Server reject write request with ERROR 44. But the bug seems have been fixed in the latest build.

2. Found a bug that after remove workspace in 2 ISBs offline case. There is  "delete pending" message after removing. And the 2 ISBs will never recover,showing "rectifying files-no connection". I can only recover it by installing 2.3 version and creating new file system and upgrade. This bug is not very easy to reoccur by hand. I am investigating into it.



0829

1. Is this a bug?

delete workspace when 2 offline. (pending delete)

then rectifying files after 30 minutes....


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值