Uh oh!
There was an error while loading. Please reload this page.
[CLOUDSTACK-10226] CloudStack is not importing Local storage properly - #2401
Conversation
…e ZONE XenServer and shared storage on ScaleIO This code incorporates PR: apache#2401
…e ZONE XenServer and shared storage on ScaleIO This code incorporates PR: apache#2401
…e ZONE XenServer and shared storage on ScaleIO This code incorporates PR: apache#2401
…e ZONE XenServer and shared storage on ScaleIO This code incorporates PR: apache#2401
…e ZONE XenServer and shared storage on ScaleIO This code incorporates PR: apache#2401
…e ZONE XenServer and shared storage on ScaleIO This code incorporates PR: apache#2401
4eac1a1 to
6f1a4bfCompare6f1a4bf to
e9bcea5Comparee9bcea5 to
d206fcbComparerafaelweingartner
commented
Mar 19, 2018
@blueorangutan package |
blueorangutan
commented
Mar 19, 2018
@rafaelweingartner a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Mar 19, 2018
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1792 |
DaanHoogland
commented
Mar 19, 2018
@blueorangutan help |
blueorangutan
commented
Mar 19, 2018
@DaanHoogland I understand these words: "help", "hello", "thanks", "package", "test" Blessed contributors for kicking Trillian test jobs: ['rhtyd', 'nvazquez', 'PaulAngus', 'borisstoyanov', 'DaanHoogland'] |
DaanHoogland
commented
Mar 19, 2018
@blueorangutan test centos7 xenserver-71 |
blueorangutan
commented
Mar 28, 2018
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
rafaelweingartner
commented
Mar 28, 2018
I checked the logs. The problems did not seem to be related to the PR. |
blueorangutan
commented
Mar 28, 2018
Trillian test result (tid-2436)
|
rafaelweingartner
commented
Mar 28, 2018
@DaanHoogland I checked this last log result. Can I consider that the tests is successful then? |
DaanHoogland
commented
Mar 29, 2018
@rafaelweingartner , i'm cautious here. This one seems consistent. Did you explain the cause of the failure? |
rafaelweingartner
commented
Mar 29, 2018
@DaanHoogland I checked the error, and I still do not understand how it could be related to the code of this PR. Here I am only changing how local storages are detected and loaded to the system. Whereas, the error is related to redundant VRs in VPCs. Anyways, I am trying to run the tests locally with simulator, but I am getting this error: I am not understanding the cause of that error. This is the command I am using to execute the test: Am I missing something else that is required to run tests? |
CloudStack is importing as Local storage any XenServer SR that is of type LVM or EXT. This causes a problem when one wants to use both Direct attach storage and local storage. Moreover, CloudStack was not importing all of the local storage that a host has available when local storage is enabled. It was only importing the First SR it sees. To fix the first problem we started ignoring SRs that have the flag shared=true when discovering local storages. SRs configured to be shared are used as direct attached storage, and therefore should not be imported again as local ones. To fix the second problem, we started loading all Local storage and importing them accordingly to ACS.
d206fcb to
a54e382Comparea54e382 to
76a9b93Comparerafaelweingartner
commented
Apr 2, 2018
@mike-tutkowski could you share your wisdom with us here? |
mike-tutkowski
commented
Apr 2, 2018
Sorry @DaanHoogland - I didn't seem to get notified when you tagged me. I just noticed this PR when @rafaelweingartner tagged me today. Let me review this PR and think about it. |
mike-tutkowski
commented
Apr 2, 2018
I do not see how the VPC issue would be related to the code of this PR either. The PR code LGTM. |
rafaelweingartner
commented
Apr 2, 2018
@borisstoyanov and @DaanHoogland shall we execute the tests again? |
DaanHoogland
commented
Apr 2, 2018
I don't think it makes sense but no hurt |
rafaelweingartner
commented
Apr 4, 2018
@DaanHoogland I do not think @blueorangutan heard your request for testing here... |
borisstoyanov
commented
Apr 5, 2018
@blueorangutan test centos7 xenserver-71 |
blueorangutan
commented
Apr 5, 2018
@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + xenserver-71) has been kicked to run smoke tests |
blueorangutan
commented
Apr 9, 2018
Trillian test result (tid-2478)
|
rafaelweingartner
commented
Apr 9, 2018
@borisstoyanov now I believe that the test result is ok. These failures seem to be intermittent, not just here, but in other PRs as well. |
borisstoyanov
left a comment
There was a problem hiding this comment.
yes @rafaelweingartner, LGTM
DaanHoogland
left a comment
There was a problem hiding this comment.
looks great as usual @rafaelweingartner
…apache#2401) * [CLOUDSTACK-10226] CloudStack is not importing Local storage properly CloudStack is importing as Local storage any XenServer SR that is of type LVM or EXT. This causes a problem when one wants to use both Direct attach storage and local storage. Moreover, CloudStack was not importing all of the local storage that a host has available when local storage is enabled. It was only importing the First SR it sees. To fix the first problem we started ignoring SRs that have the flag shared=true when discovering local storages. SRs configured to be shared are used as direct attached storage, and therefore should not be imported again as local ones. To fix the second problem, we started loading all Local storage and importing them accordingly to ACS. * Cleanups and formatting
…apache#2401) * [CLOUDSTACK-10226] CloudStack is not importing Local storage properly CloudStack is importing as Local storage any XenServer SR that is of type LVM or EXT. This causes a problem when one wants to use both Direct attach storage and local storage. Moreover, CloudStack was not importing all of the local storage that a host has available when local storage is enabled. It was only importing the First SR it sees. To fix the first problem we started ignoring SRs that have the flag shared=true when discovering local storages. SRs configured to be shared are used as direct attached storage, and therefore should not be imported again as local ones. To fix the second problem, we started loading all Local storage and importing them accordingly to ACS. * Cleanups and formatting
yadvr
commented
May 4, 2018
@rafaelweingartner I scanned PRs merged on master but not 4.11 and came across this PR, do you think this would be useful for 4.11? If so, can you help create a backport PR for 4.11? |
rafaelweingartner
commented
May 4, 2018
I do not think so. It seems that no other people had this necessity so far. This PR enables people to use local storage and pre-setup storage at the same time. Moreover, I organized things, and now it is possible to have more than a single local storage per host. |
yadvr
commented
May 4, 2018
@rafaelweingartner fair enough, but this seems a useful fix for LTS nonetheless. I'll leave the decision of backporting to you on this (and other PRs). |
…ouds' Flexibilização de escolha de IP ao implementar rede _guest_ Closesapache#2401 See merge request scclouds/scclouds!1186
CloudStack is importing as Local storage any XenServer SR that is of type LVM or EXT. This causes a problem when one wants to use both Direct attach storage and local storage. Moreover, CloudStack was not importing all of the local storage that a host has available when local storage is enabled. It was only importing the First SR it sees.
To fix the first problem we started ignoring SRs that have the flag shared=true when discovering local storages. SRs configured to be shared are used as direct attached storage, and therefore should not be imported again as local ones.
To fix the second problem, we started loading all Local storage and importing them accordingly to ACS.
Tip for reviewers: the code changes is mainly in
CitrixResourceBase, methodinitializeLocalSR