Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
456da2c9
authored
Apr 09, 2016
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into ceph
parents
258adab7
1562b83b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
miscellaneous/netcelery@.service
+2
-1
miscellaneous/vmcelery@.service
+2
-1
vmdriver.py
+6
-6
No files found.
miscellaneous/netcelery@.service
View file @
456da2c9
...
@@ -11,4 +11,5 @@ TimeoutStopSec=600
...
@@ -11,4 +11,5 @@ TimeoutStopSec=600
Restart=always
Restart=always
WorkingDirectory=/home/cloud/vmdriver
WorkingDirectory=/home/cloud/vmdriver
ExecStart=/bin/bash -c "source /etc/profile; workon vmdriver; exec celery -A netcelery worker --loglevel=info -n %H.%I"
ExecStart=/bin/bash -c "source /etc/profile; workon vmdriver; exec celery -A netcelery worker --loglevel=info -n $(/bin/hostname -s).%I"
miscellaneous/vmcelery@.service
View file @
456da2c9
...
@@ -11,4 +11,5 @@ TimeoutStopSec=600
...
@@ -11,4 +11,5 @@ TimeoutStopSec=600
Restart=always
Restart=always
WorkingDirectory=/home/cloud/vmdriver
WorkingDirectory=/home/cloud/vmdriver
ExecStart=/bin/bash -c "source /etc/profile; workon vmdriver; exec celery -A vmcelery worker --loglevel=info -n %H.%I"
ExecStart=/bin/bash -c "source /etc/profile; workon vmdriver; exec celery -A vmcelery worker --loglevel=info -n $(/bin/hostname -s).%I"
vmdriver.py
View file @
456da2c9
...
@@ -650,13 +650,13 @@ def get_driver_version():
...
@@ -650,13 +650,13 @@ def get_driver_version():
from
git
import
Repo
from
git
import
Repo
try
:
try
:
repo
=
Repo
(
path
=
os
.
getcwd
())
repo
=
Repo
(
path
=
os
.
getcwd
())
lc
=
repo
.
log
()[
0
]
lc
=
repo
.
head
.
commit
return
{
'branch'
:
repo
.
active_branch
,
return
{
'branch'
:
repo
.
active_branch
.
name
,
'commit'
:
lc
.
id_abbrev
,
'commit'
:
lc
.
hexsha
,
'commit_text'
:
lc
.
summary
,
'commit_text'
:
lc
.
summary
,
'is_dirty'
:
repo
.
is_dirty
}
'is_dirty'
:
repo
.
is_dirty
()
}
except
:
except
Exception
as
e
:
logging
.
exception
(
"Unhandled exception:
"
)
logging
.
exception
(
"Unhandled exception:
%
s"
,
e
)
return
None
return
None
...
...
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