Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
enoslib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
evalanon
enoslib
Commits
81aef8ff
Commit
81aef8ff
authored
6 years ago
by
SIMONIN Matthieu
Browse files
Options
Downloads
Patches
Plain Diff
up
parent
0f1e5239
Branches
fix-vms-providers
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
enoslib/infra/enos_vmong5k/provider.py
+4
-4
4 additions, 4 deletions
enoslib/infra/enos_vmong5k/provider.py
with
4 additions
and
4 deletions
enoslib/infra/enos_vmong5k/provider.py
+
4
−
4
View file @
81aef8ff
...
@@ -56,7 +56,7 @@ def get_host_cores(cluster):
...
@@ -56,7 +56,7 @@ def get_host_cores(cluster):
def
find_nodes_number
(
machine
):
def
find_nodes_number
(
machine
):
cores
=
get_host_cores
(
machine
.
cluster
)
cores
=
get_host_cores
(
machine
.
cluster
)
return
-
((
-
1
*
machine
.
number
*
machine
.
flavour
[
"
core
"
])
//
cores
)
return
-
((
-
1
*
machine
.
number
*
machine
.
flavour
_desc
[
"
core
"
])
//
cores
)
def
_do_build_g5k_conf
(
vmong5k_conf
,
site
):
def
_do_build_g5k_conf
(
vmong5k_conf
,
site
):
...
@@ -159,11 +159,11 @@ def start_virtualmachines(provider_conf, g5k_init, vmong5k_roles):
...
@@ -159,11 +159,11 @@ def start_virtualmachines(provider_conf, g5k_init, vmong5k_roles):
class
VirtualMachine
(
Host
):
class
VirtualMachine
(
Host
):
def
__init__
(
self
,
name
,
eui
,
flavour
,
pm
):
def
__init__
(
self
,
name
,
eui
,
flavour
_desc
,
pm
):
super
().
__init__
(
str
(
get_subnet_ip
(
eui
)),
alias
=
name
)
super
().
__init__
(
str
(
get_subnet_ip
(
eui
)),
alias
=
name
)
self
.
core
=
flavour
[
"
core
"
]
self
.
core
=
flavour
_desc
[
"
core
"
]
# libvirt uses kiB by default
# libvirt uses kiB by default
self
.
mem
=
int
(
flavour
[
"
mem
"
])
*
1024
self
.
mem
=
int
(
flavour
_desc
[
"
mem
"
])
*
1024
self
.
eui
=
eui
self
.
eui
=
eui
self
.
pm
=
pm
self
.
pm
=
pm
self
.
user
=
"
root
"
self
.
user
=
"
root
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment