Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAC-6491 : dell wsman add volume feature implementation with WSMAN API #563

Merged
merged 3 commits into from
Dec 1, 2017

Conversation

yaolingling
Copy link
Contributor

Background
Based on the preceding investigation work (RAC-6212), add volume feature will be implemented with wsman API. One graph will be created which constains four tasks. The first task is used to get xml file for adding volume. The second task is used to update the xml file. The third task is used to add volume. The last task is used to update mongodb.

Reviewers
@anhou @nortonluo @lanchongyizu @AlaricChan

newNode.appendChild(textNode);
ele.appendChild(newNode);
}
for(var i = 0; i < enclosureIndex.length; i++){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'i' is already defined.
Unexpected use of '++'.

var fqddName = 'Disk.Virtual:' + driver.slice(driver.lastIndexOf(':')+1, driver.length);
ele.setAttribute('FQDD', fqddName);
doc.insertBefore(ele, components[insertIndex]);
for(var i = 0; i < attributes.length; i++){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'i' is already defined.
Unexpected use of '++'.

for(var i = 0; i < index.length; i++){
doc.documentElement.removeChild(components[index[i]]);
}
for(var i = 0; i< bayIndex.length; i++){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'i' is already defined.
Unexpected use of '++'.

bayIndex.push(i);
}
}
for(var i = 0; i < index.length; i++){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'i' is already defined.
Unexpected use of '++'.

"textContent": driversArray[i]
});
}
for(var i = 0; i < components.length; i++){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'i' is already defined.
Unexpected use of '++'.

}
];
var driversArray = drivers.split(',');
for(var i = 0; i < driversArray.length; i++){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected use of '++'.

newNode.appendChild(textNode);
ele.appendChild(newNode);
}
for(var i = 0; i < enclosureIndex.length; i++){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'i' is already defined.
Unexpected use of '++'.

var fqddName = 'Disk.Virtual:' + driver.slice(driver.lastIndexOf(':')+1, driver.length);
ele.setAttribute('FQDD', fqddName);
doc.insertBefore(ele, components[insertIndex]);
for(var i = 0; i < attributes.length; i++){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'i' is already defined.
Unexpected use of '++'.

for(var i = 0; i < index.length; i++){
doc.documentElement.removeChild(components[index[i]]);
}
for(var i = 0; i< bayIndex.length; i++){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'i' is already defined.
Unexpected use of '++'.

bayIndex.push(i);
}
}
for(var i = 0; i < index.length; i++){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'i' is already defined.
Unexpected use of '++'.

"textContent": driversArray[i]
});
}
for(var i = 0; i < components.length; i++){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'i' is already defined.
Unexpected use of '++'.

}
];
var driversArray = drivers.split(',');
for(var i = 0; i < driversArray.length; i++){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected use of '++'.

if(self.dell.shareFolder.shareType === 0){
client = new NfsClient(
self.dell.shareFolder.address,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete line

"raidLevel": {
"description": "Specify raidLevel for adding volume. default value: RAID 0",
"type": "string",
"enum": ["RAID 0","RAID 1", "RAID 5", "RAID 6", "RAID 10"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change it's type to integer

job.dell = configFile;
job.options = options;
Smb2Client.prototype.readFile.resolves(fileData);
expect(job.parseXmlFileForRAID()).to.be.fulfilled;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add return

};
job.options = options;
NfsClient.prototype.readFile.resolves(fileData);
expect(job.parseXmlFileForRAID()).to.be.fulfilled;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@anhou anhou merged commit 7a6d564 into RackHD:master Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants