Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos
Commits
8fae60f7
Commit
8fae60f7
authored
Nov 27, 2015
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
Prepare 1.0.17 release
parents
1d1d3127
e1d7a15e
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
35 deletions
+47
-35
setup.py
setup.py
+2
-2
slapos/recipe/re6stnet/re6stnet.py
slapos/recipe/re6stnet/re6stnet.py
+17
-5
software/agent/software.cfg
software/agent/software.cfg
+6
-6
software/monitor/software.cfg
software/monitor/software.cfg
+6
-6
software/re6stnet/software.cfg
software/re6stnet/software.cfg
+7
-7
software/slaprunner/software.cfg
software/slaprunner/software.cfg
+6
-6
stack/slapos.cfg
stack/slapos.cfg
+3
-3
No files found.
setup.py
View file @
8fae60f7
...
...
@@ -28,7 +28,7 @@ from setuptools import setup, find_packages
import
glob
import
os
version
=
'1.0.17
.dev0
'
version
=
'1.0.17'
name
=
'slapos.cookbook'
long_description
=
open
(
"README.txt"
).
read
()
+
"
\
n
"
+
\
open
(
"CHANGES.txt"
).
read
()
+
"
\
n
"
...
...
slapos/recipe/re6stnet/re6stnet.py
View file @
8fae60f7
...
...
@@ -208,8 +208,9 @@ def dumpIPv6Network(slave_reference, db, network, ipv6_file):
cn
=
x509
.
subnetFromCert
(
cert
)
subnet
=
network
+
utils
.
binFromSubnet
(
cn
)
ipv6
=
utils
.
ipFromBin
(
subnet
)
changed
=
readFile
(
ipv6_file
)
!=
ipv6
writeFile
(
ipv6_file
,
ipv6
)
return
ipv6
,
utils
.
binFromSubnet
(
cn
)
return
ipv6
,
utils
.
binFromSubnet
(
cn
)
,
changed
except
Exception
:
log
.
debug
(
'XXX for %s...
\
n
%s'
%
(
slave_reference
,
traceback
.
format_exc
()))
...
...
@@ -234,8 +235,9 @@ def dumpIPv4Network(ipv6_prefix, network, ipv4_file, sock, peer_prefix_list):
if
ipv6_prefix
==
"00000000000000000000000000000000"
:
# workarround to ignore the first node
ipv4
=
"0.0.0.0"
changed
=
readFile
(
ipv4_file
)
!=
ipv4
writeFile
(
ipv4_file
,
ipv4
)
return
return
ipv4
,
changed
peers
=
[]
...
...
@@ -265,10 +267,13 @@ def dumpIPv4Network(ipv6_prefix, network, ipv4_file, sock, peer_prefix_list):
ipv4
=
msg
.
split
(
','
)[
0
]
else
:
ipv4
=
"0.0.0.0"
changed
=
readFile
(
ipv4_file
)
!=
ipv4
writeFile
(
ipv4_file
,
ipv4
)
return
ipv4
,
changed
except
Exception
:
log
.
debug
(
'XXX for %s...
\
n
%s'
%
(
ipv6_prefix
,
log
.
info
(
'XXX for %s...
\
n
%s'
%
(
ipv6_prefix
,
traceback
.
format_exc
()))
return
"0.0.0.0"
,
False
def
checkService
(
args
,
can_bang
=
True
):
base_token_path
=
args
[
'token_base_path'
]
...
...
@@ -300,12 +305,18 @@ def checkService(args, can_bang=True):
ipv4_file
=
os
.
path
.
join
(
base_token_path
,
'%s.ipv4'
%
slave_reference
)
if
not
os
.
path
.
exists
(
status_file
):
# This token is not added yet!
log
.
info
(
"Token %s dont exist yet."
%
status_file
)
continue
msg
=
readFile
(
status_file
)
log
.
info
(
"Token %s has %s State."
%
(
status_file
,
msg
))
if
msg
==
'TOKEN_USED'
:
ipv6
,
ipv6_prefix
=
dumpIPv6Network
(
slave_reference
,
db
,
network
,
ipv6_file
)
dumpIPv4Network
(
ipv6_prefix
,
network
,
ipv4_file
,
sock
,
peer_prefix_list
)
log
.
info
(
"Dumping ipv6..."
)
ipv6
,
ipv6_prefix
,
ipv6_changed
=
dumpIPv6Network
(
slave_reference
,
db
,
network
,
ipv6_file
)
log
.
info
(
"%s, IPV6 = %s, IPV6_PREFIX = %s"
%
(
slave_reference
,
ipv6
,
ipv6_prefix
))
_
,
ipv4_changed
=
dumpIPv4Network
(
ipv6_prefix
,
network
,
ipv4_file
,
sock
,
peer_prefix_list
)
if
ipv4_changed
or
ipv6_changed
:
call_bang
=
True
continue
# Check if token is not in the database
...
...
@@ -323,6 +334,7 @@ def checkService(args, can_bang=True):
try
:
writeFile
(
status_file
,
'TOKEN_USED'
)
dumpIPv6Network
(
slave_reference
,
db
,
network
,
ipv6_file
)
dumpIPv4Network
(
ipv6_prefix
,
network
,
ipv4_file
,
sock
,
peer_prefix_list
)
log
.
info
(
"Token status of %s updated to 'used'."
%
slave_reference
)
except
IOError
:
# XXX- this file should always exists
...
...
software/agent/software.cfg
View file @
8fae60f7
...
...
@@ -52,25 +52,25 @@ slapos.toolbox = 0.53
smmap = 0.9.0
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
GitPython = 1.0.1
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
atomize = 0.2.0
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
feedparser = 5.2.1
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
lockfile = 0.10.2
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
paramiko = 1.15.2
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
rpdb = 0.1.5
software/monitor/software.cfg
View file @
8fae60f7
...
...
@@ -113,26 +113,26 @@ slapos.toolbox = 0.53
smmap = 0.8.3
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
GitPython = 0.3.2.1
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
atomize = 0.2.0
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
feedparser = 5.1.3
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
paramiko = 1.15.3
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
lockfile = 0.10.2
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
rpdb = 0.1.5
software/re6stnet/software.cfg
View file @
8fae60f7
...
...
@@ -135,15 +135,15 @@ gitdb = 0.6.4
plone.recipe.command = 1.1
pycrypto = 2.6.1
slapos.recipe.template = 2.7
slapos.toolbox = 0.
47.
3
slapos.toolbox = 0.
5
3
smmap = 0.9.0
# Required by:
# slapos.toolbox==0.
47.
3
# slapos.toolbox==0.
5
3
GitPython = 0.3.6
# Required by:
# slapos.toolbox==0.
47.
3
# slapos.toolbox==0.
5
3
atomize = 0.2.0
# Required by:
...
...
@@ -151,11 +151,11 @@ atomize = 0.2.0
backports.ssl-match-hostname = 3.4.0.2
# Required by:
# slapos.toolbox==0.
47.
3
# slapos.toolbox==0.
5
3
feedparser = 5.1.3
# Required by:
# slapos.toolbox==0.
47.
3
# slapos.toolbox==0.
5
3
lockfile = 0.10.2
# Required by:
...
...
@@ -163,10 +163,10 @@ lockfile = 0.10.2
miniupnpc = 1.9
# Required by:
# slapos.toolbox==0.
47.
3
# slapos.toolbox==0.
5
3
paramiko = 1.15.3
# Required by:
# slapos.toolbox==0.
47.
3
# slapos.toolbox==0.
5
3
rpdb = 0.1.5
software/slaprunner/software.cfg
View file @
8fae60f7
...
...
@@ -23,25 +23,25 @@ slapos.toolbox = 0.53
smmap = 0.9.0
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
GitPython = 1.0.1
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
atomize = 0.2.0
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
feedparser = 5.2.1
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
lockfile = 0.10.2
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
paramiko = 1.15.3
# Required by:
# slapos.toolbox==0.5
2
# slapos.toolbox==0.5
3
rpdb = 0.1.5
stack/slapos.cfg
View file @
8fae60f7
...
...
@@ -135,7 +135,7 @@ requests = 2.8.1
setuptools = 18.1
simplejson = 3.8.0
six = 1.10.0
slapos.cookbook = 1.0.1
6
slapos.cookbook = 1.0.1
7
slapos.core = 1.3.14
slapos.extension.strip = 0.1
slapos.libnetworkcache = 0.14.5
...
...
@@ -171,11 +171,11 @@ functools32 = 3.2.3.post2
ipaddress = 1.0.14
# Required by:
# slapos.cookbook==1.0.1
6
# slapos.cookbook==1.0.1
7
jsonschema = 2.5.1
# Required by:
# slapos.cookbook==1.0.1
6
# slapos.cookbook==1.0.1
7
lock-file = 2.0
# Required by:
...
...
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