projects
/
osm
/
RO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Bug 2282: Can't instantiate NS using a pre-existing volume
[osm/RO.git]
/
NG-RO
/
osm_ng_ro
/
ns.py
diff --git
a/NG-RO/osm_ng_ro/ns.py
b/NG-RO/osm_ng_ro/ns.py
index
829fa5e
..
709b2ab
100644
(file)
--- a/
NG-RO/osm_ng_ro/ns.py
+++ b/
NG-RO/osm_ng_ro/ns.py
@@
-722,9
+722,12
@@
class Ns(object):
guest_epa_quota.get("cpu-pinning-policy") == "DEDICATED"
and not epa_vcpu_set
):
guest_epa_quota.get("cpu-pinning-policy") == "DEDICATED"
and not epa_vcpu_set
):
+ # Pinning policy "REQUIRE" uses threads as host should support SMT architecture
+ # Pinning policy "ISOLATE" uses cores as host should not support SMT architecture
+ # Pinning policy "PREFER" uses threads in case host supports SMT architecture
numa[
"cores"
numa[
"cores"
- if guest_epa_quota.get("cpu-thread-pinning-policy")
!= "PREFER
"
+ if guest_epa_quota.get("cpu-thread-pinning-policy")
== "ISOLATE
"
else "threads"
] = max(vcpu_count, 1)
local_epa_vcpu_set = True
else "threads"
] = max(vcpu_count, 1)
local_epa_vcpu_set = True
@@
-1032,6
+1035,7
@@
class Ns(object):
disk_list.append(persistent_root_disk[vsd["id"]])
return persistent_root_disk
disk_list.append(persistent_root_disk[vsd["id"]])
return persistent_root_disk
+ return persistent_root_disk
@staticmethod
def find_persistent_volumes(
@staticmethod
def find_persistent_volumes(