Commit a8d6d28
committed
[CLOUDSTACK-10226] CloudStack is not importing Local storage properly (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 formatting1 parent bbc9204 commit a8d6d28
2 files changed
Lines changed: 5 additions & 21 deletions
File tree
- api/src/main/java/com/cloud/storage
- server/src/main/java/com/cloud/storage
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
95 | 94 | | |
96 | | - | |
97 | | - | |
| 95 | + | |
98 | 96 | | |
99 | 97 | | |
100 | | - | |
| 98 | + | |
101 | 99 | | |
102 | 100 | | |
103 | 101 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 102 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 103 | + | |
111 | 104 | | |
112 | 105 | | |
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | 894 | | |
900 | 895 | | |
901 | 896 | | |
| |||
1126 | 1121 | | |
1127 | 1122 | | |
1128 | 1123 | | |
1129 | | - | |
1130 | 1124 | | |
1131 | 1125 | | |
1132 | 1126 | | |
| |||
1931 | 1925 | | |
1932 | 1926 | | |
1933 | 1927 | | |
1934 | | - | |
1935 | 1928 | | |
1936 | 1929 | | |
1937 | 1930 | | |
1938 | 1931 | | |
1939 | 1932 | | |
1940 | | - | |
1941 | 1933 | | |
1942 | 1934 | | |
1943 | 1935 | | |
1944 | 1936 | | |
1945 | 1937 | | |
1946 | | - | |
1947 | 1938 | | |
1948 | 1939 | | |
1949 | 1940 | | |
| |||
2044 | 2035 | | |
2045 | 2036 | | |
2046 | 2037 | | |
2047 | | - | |
| 2038 | + | |
2048 | 2039 | | |
2049 | 2040 | | |
2050 | 2041 | | |
| |||
0 commit comments