Skip to content

vmware,storage: fix solidfire ROOT volume creation with vmware 6.5 and above#6548

Closed
shwstppr wants to merge 4 commits intoapache:4.17from
shapeblue:fix-solidfire-root-vol-vmw
Closed

vmware,storage: fix solidfire ROOT volume creation with vmware 6.5 and above#6548
shwstppr wants to merge 4 commits intoapache:4.17from
shapeblue:fix-solidfire-root-vol-vmw

Conversation

@shwstppr
Copy link
Copy Markdown
Contributor

Description

Fixes #3598

Continue #4977

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

skattoju4 and others added 4 commits July 8, 2022 13:19
…toreMO.java

Co-authored-by: Daniel Augusto Veronezi Salvador <38945620+GutoVeronezi@users.noreply.github.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
if (info != null && info.size() > 0) {
s_logger.info("File " + fileFullPath + " exists on datastore");
return true;
Boolean folderExists = true;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this true by default?

s_logger.info("File " + fileFullPath + " exists on datastore");
return true;
Boolean folderExists = true;
if(StringUtils.isNotBlank(file.getDir())){
Copy link
Copy Markdown
Contributor

@sureshanaparti sureshanaparti Jul 12, 2022

Choose a reason for hiding this comment

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

Suggested change
if(StringUtils.isNotBlank(file.getDir())){
if (StringUtils.isNotBlank(file.getDir())) {

if(StringUtils.isNotBlank(file.getDir())){
folderExists = folderExists(String.format("[%s]", file.getDatastoreName()), file.getDir());
}
if (folderExists){
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (folderExists){
if (folderExists) {


private void removeVmfsDatastore(Command cmd, VmwareHypervisorHost hyperHost, String datastoreName, String storageIpAddress, int storagePortNumber,
String iqn, List<Pair<ManagedObjectReference, String>> lstHosts) throws Exception {
if (HypervisorHostHelper.isHostVersionEqualOrHigher(hyperHost, "6.5")) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

does this consider minor release version as well?

@tsinik-dw
Copy link
Copy Markdown

Hi all,

I have some news regarding this PR.

I just did some tests using ACS 4.16.1, Solidfire Demo Node with Element OS v.12.5.0.897 and VMware 6.7
Surprisingly, I managed to create VMs with ROOT volumes on the Solidfire.
I even managed to perform volume migration between primary storages (from Solidfire to NFS and from NFS back to Solidfire).
If you need any logs or other info I am willing to help.

My last failed attempt was using ACS 4.16.0, Solidfire Demo Node with Element OS v.12.3.x.x and VMware 6.7
I don't know what changed but the VMs were created on Solidfire without any complaints.
Can anyone else confirm this?

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Jul 16, 2022

cc @harikrishna-patnala was any work done towards general storage work that could have fixed the issues with solidfire (as a side effect)?

@shwstppr
Copy link
Copy Markdown
Contributor Author

Based on the comments ^^, I'm closing this for now. Will re-open if later needed. cc @rohityadavcloud @pdion891

@shwstppr shwstppr closed this Jul 25, 2022
@weizhouapache
Copy link
Copy Markdown
Member

Hi all,

I have some news regarding this PR.

I just did some tests using ACS 4.16.1, Solidfire Demo Node with Element OS v.12.5.0.897 and VMware 6.7 Surprisingly, I managed to create VMs with ROOT volumes on the Solidfire. I even managed to perform volume migration between primary storages (from Solidfire to NFS and from NFS back to Solidfire). If you need any logs or other info I am willing to help.

My last failed attempt was using ACS 4.16.0, Solidfire Demo Node with Element OS v.12.3.x.x and VMware 6.7 I don't know what changed but the VMs were created on Solidfire without any complaints. Can anyone else confirm this?

@tsinik-dw
thanks for your update.

Do you use cloudstack with solidfire storage in your production ? have you faced any issues ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants