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
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;
};
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....