Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
4a5e5aec
authored
Sep 27, 2013
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: make activity state value string quoting consistent
parent
d4a34912
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
circle/vm/models.py
+5
-5
No files found.
circle/vm/models.py
View file @
4a5e5aec
...
...
@@ -499,28 +499,28 @@ class Instance(BaseResourceConfigModel, TimeStampedModel):
act
.
save
()
# Schedule
act
.
update_state
(
"PENDING"
)
act
.
update_state
(
'PENDING'
)
self
.
node
=
scheduler
.
get_node
(
self
,
Node
.
objects
.
all
())
self
.
save
()
# Create virtual images
act
.
update_state
(
"PREPARING DISKS"
)
act
.
update_state
(
'PREPARING DISKS'
)
for
disk
in
self
.
disks
.
all
():
disk
.
deploy
()
# Deploy VM on remote machine
act
.
update_state
(
"DEPLOYING VM"
)
act
.
update_state
(
'DEPLOYING VM'
)
queue_name
=
self
.
node
.
host
.
hostname
+
".vm"
remote_tasks
.
create
.
apply_async
(
args
=
[
self
.
get_vm_desc
()],
queue
=
queue_name
)
.
get
()
# Estabilish network connection (vmdriver)
act
.
update_state
(
"DEPLOYING NET"
)
act
.
update_state
(
'DEPLOYING NET'
)
for
net
in
self
.
interface_set
.
all
():
net
.
deploy
()
# Resume vm
act
.
update_state
(
"BOOTING"
)
act
.
update_state
(
'BOOTING'
)
remote_tasks
.
resume
.
apply_async
(
args
=
[
self
.
vm_name
],
queue
=
queue_name
)
.
get
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment