Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
main
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Simone Rossi
main
Commits
105bbd97
Commit
105bbd97
authored
Jul 01, 2016
by
Daniele Venzano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change imports to point to the unified configuration module
parent
6533c4ce
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
39 additions
and
37 deletions
+39
-37
zapp-test.py
zapp-test.py
+5
-6
api_endpoint.py
zoe_api/api_endpoint.py
+1
-1
ldap.py
zoe_api/auth/ldap.py
+1
-1
db_init.py
zoe_api/db_init.py
+1
-1
entrypoint.py
zoe_api/entrypoint.py
+1
-1
master_api.py
zoe_api/master_api.py
+1
-1
info.py
zoe_api/rest_api/info.py
+3
-3
start.py
zoe_api/web/start.py
+1
-3
config.py
zoe_lib/config.py
+7
-0
sql_manager.py
zoe_lib/sql_manager.py
+2
-1
entrypoint.py
zoe_master/entrypoint.py
+2
-2
execution_manager.py
zoe_master/execution_manager.py
+1
-2
master_api.py
zoe_master/master_api.py
+3
-4
stats_manager.py
zoe_master/stats_manager.py
+2
-2
conftest.py
zoe_master/tests/conftest.py
+3
-4
filesystem.py
zoe_master/workspace/filesystem.py
+2
-2
zapp_to_docker.py
zoe_master/zapp_to_docker.py
+3
-3
No files found.
zapp-test.py
View file @
105bbd97
...
@@ -21,19 +21,18 @@ import logging
...
@@ -21,19 +21,18 @@ import logging
import
time
import
time
import
zoe_lib.applications
import
zoe_lib.applications
from
zoe_lib.sql_manager
import
Execution
,
Service
import
zoe_lib.config
as
config
from
zoe_lib.configargparse
import
ArgumentParser
,
FileType
from
zoe_lib.configargparse
import
ArgumentParser
,
FileType
from
zoe_lib.sql_manager
import
Execution
,
Service
import
zoe_master.config
as
config
from
zoe_master.zapp_to_docker
import
execution_to_containers
,
terminate_execution
from
zoe_master.execution_manager
import
_digest_application_description
from
zoe_master.execution_manager
import
_digest_application_description
from
zoe_master.zapp_to_docker
import
execution_to_containers
,
terminate_execution
log
=
logging
.
getLogger
(
"main"
)
log
=
logging
.
getLogger
(
"main"
)
LOG_FORMAT
=
'
%(asctime)-15
s
%(levelname)
s
%(name)
s (
%(threadName)
s):
%(message)
s'
LOG_FORMAT
=
'
%(asctime)-15
s
%(levelname)
s
%(name)
s (
%(threadName)
s):
%(message)
s'
config_paths
=
[
config_paths
=
[
'zoe
-master
.conf'
,
'zoe.conf'
,
'/etc/zoe/zoe
-master
.conf'
'/etc/zoe/zoe.conf'
]
]
...
...
zoe_api/api_endpoint.py
View file @
105bbd97
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
import
logging
import
logging
import
re
import
re
from
zoe_
api
.config
import
get_conf
from
zoe_
lib
.config
import
get_conf
import
zoe_api.master_api
import
zoe_api.master_api
import
zoe_lib.sql_manager
import
zoe_lib.sql_manager
import
zoe_lib.applications
import
zoe_lib.applications
...
...
zoe_api/auth/ldap.py
View file @
105bbd97
...
@@ -17,7 +17,7 @@ import logging
...
@@ -17,7 +17,7 @@ import logging
import
ldap
import
ldap
import
zoe_api.auth.base
import
zoe_api.auth.base
from
zoe_
api
.config
import
get_conf
from
zoe_
lib
.config
import
get_conf
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
...
zoe_api/db_init.py
View file @
105bbd97
...
@@ -17,7 +17,7 @@ import psycopg2
...
@@ -17,7 +17,7 @@ import psycopg2
import
psycopg2.extras
import
psycopg2.extras
import
zoe_api.exceptions
import
zoe_api.exceptions
from
zoe_
api
.config
import
get_conf
from
zoe_
lib
.config
import
get_conf
SQL_SCHEMA_VERSION
=
0
# ---> Increment this value every time the schema changes !!! <---
SQL_SCHEMA_VERSION
=
0
# ---> Increment this value every time the schema changes !!! <---
...
...
zoe_api/entrypoint.py
View file @
105bbd97
...
@@ -20,7 +20,7 @@ from tornado.wsgi import WSGIContainer
...
@@ -20,7 +20,7 @@ from tornado.wsgi import WSGIContainer
from
tornado.httpserver
import
HTTPServer
from
tornado.httpserver
import
HTTPServer
from
tornado.ioloop
import
IOLoop
,
PeriodicCallback
from
tornado.ioloop
import
IOLoop
,
PeriodicCallback
import
zoe_
api
.config
as
config
import
zoe_
lib
.config
as
config
import
zoe_api.db_init
import
zoe_api.db_init
import
zoe_api.api_endpoint
import
zoe_api.api_endpoint
import
zoe_api.rest_api
import
zoe_api.rest_api
...
...
zoe_api/master_api.py
View file @
105bbd97
...
@@ -17,7 +17,7 @@ import logging
...
@@ -17,7 +17,7 @@ import logging
import
zmq
import
zmq
import
zoe_
api
.config
as
config
import
zoe_
lib
.config
as
config
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
...
zoe_api/rest_api/info.py
View file @
105bbd97
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
from
flask_restful
import
Resource
from
flask_restful
import
Resource
from
zoe_lib.version
import
ZOE_API_VERSION
,
ZOE_APPLICATION_FORMAT_VERSION
,
ZOE_VERSION
from
zoe_master.config
import
get_conf
from
zoe_api.rest_api.utils
import
catch_exceptions
import
zoe_api.api_endpoint
import
zoe_api.api_endpoint
from
zoe_api.rest_api.utils
import
catch_exceptions
from
zoe_lib.config
import
get_conf
from
zoe_lib.version
import
ZOE_API_VERSION
,
ZOE_APPLICATION_FORMAT_VERSION
,
ZOE_VERSION
class
InfoAPI
(
Resource
):
class
InfoAPI
(
Resource
):
...
...
zoe_api/web/start.py
View file @
105bbd97
...
@@ -17,10 +17,8 @@ import re
...
@@ -17,10 +17,8 @@ import re
from
random
import
randint
from
random
import
randint
import
json
import
json
from
flask
import
render_template
,
request
from
flask
import
render_template
,
request
,
g
from
zoe_lib.services
import
ZoeServiceAPI
import
zoe_api.config
as
config
import
zoe_api.api_endpoint
import
zoe_api.api_endpoint
from
zoe_api.web.utils
import
get_auth
,
catch_exceptions
from
zoe_api.web.utils
import
get_auth
,
catch_exceptions
...
...
zoe_lib/config.py
View file @
105bbd97
...
@@ -13,8 +13,15 @@
...
@@ -13,8 +13,15 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
logging
from
zoe_lib.configargparse
import
ArgumentParser
,
Namespace
from
zoe_lib.configargparse
import
ArgumentParser
,
Namespace
logging
.
getLogger
(
'kazoo'
)
.
setLevel
(
logging
.
WARNING
)
logging
.
getLogger
(
'requests'
)
.
setLevel
(
logging
.
WARNING
)
logging
.
getLogger
(
'urllib3'
)
.
setLevel
(
logging
.
WARNING
)
logging
.
getLogger
(
'docker'
)
.
setLevel
(
logging
.
INFO
)
config_paths
=
[
config_paths
=
[
'zoe.conf'
,
'zoe.conf'
,
'/etc/zoe/zoe.conf'
'/etc/zoe/zoe.conf'
...
...
zoe_lib/sql_manager.py
View file @
105bbd97
...
@@ -18,7 +18,8 @@ import datetime
...
@@ -18,7 +18,8 @@ import datetime
import
psycopg2
import
psycopg2
import
psycopg2.extras
import
psycopg2.extras
from
zoe_master.config
import
get_conf
from
zoe_lib.config
import
get_conf
from
zoe_lib.swarm_client
import
SwarmClient
psycopg2
.
extensions
.
register_adapter
(
dict
,
psycopg2
.
extras
.
Json
)
psycopg2
.
extensions
.
register_adapter
(
dict
,
psycopg2
.
extras
.
Json
)
...
...
zoe_master/entrypoint.py
View file @
105bbd97
...
@@ -17,9 +17,9 @@
...
@@ -17,9 +17,9 @@
import
logging
import
logging
from
zoe_master.scheduler
import
ZoeScheduler
import
zoe_lib.config
as
config
import
zoe_master.config
as
config
from
zoe_master.master_api
import
APIManager
from
zoe_master.master_api
import
APIManager
from
zoe_master.scheduler
import
ZoeScheduler
# from zoe_master.stats_manager import StatsManager
# from zoe_master.stats_manager import StatsManager
from
zoe_master.workspace.filesystem
import
ZoeFSWorkspace
from
zoe_master.workspace.filesystem
import
ZoeFSWorkspace
from
zoe_master.execution_manager
import
restart_resubmit_scheduler
from
zoe_master.execution_manager
import
restart_resubmit_scheduler
...
...
zoe_master/execution_manager.py
View file @
105bbd97
...
@@ -15,9 +15,8 @@
...
@@ -15,9 +15,8 @@
import
logging
import
logging
import
zoe_lib.config
as
config
from
zoe_lib.sql_manager
import
Execution
from
zoe_lib.sql_manager
import
Execution
import
zoe_master.config
as
config
from
zoe_master.scheduler
import
ZoeScheduler
from
zoe_master.scheduler
import
ZoeScheduler
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
...
zoe_master/master_api.py
View file @
105bbd97
...
@@ -18,12 +18,11 @@ import time
...
@@ -18,12 +18,11 @@ import time
import
zmq
import
zmq
from
zoe_master.exceptions
import
ZoeException
import
zoe_lib.config
as
config
import
zoe_lib.sql_manager
import
zoe_lib.sql_manager
from
zoe_lib.swarm_client
import
SwarmClient
import
zoe_master.config
as
config
import
zoe_master.execution_manager
import
zoe_master.execution_manager
from
zoe_lib.swarm_client
import
SwarmClient
from
zoe_master.exceptions
import
ZoeException
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
...
zoe_master/stats_manager.py
View file @
105bbd97
...
@@ -13,12 +13,12 @@
...
@@ -13,12 +13,12 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
logging
import
threading
import
threading
import
time
import
time
import
logging
from
zoe_lib.config
import
get_conf
from
zoe_lib.swarm_client
import
SwarmClient
from
zoe_lib.swarm_client
import
SwarmClient
from
zoe_master.config
import
get_conf
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
...
zoe_master/tests/conftest.py
View file @
105bbd97
...
@@ -14,11 +14,10 @@
...
@@ -14,11 +14,10 @@
# limitations under the License.
# limitations under the License.
import
pytest
import
pytest
import
json
from
zoe_master.config
import
load_configuration
,
get_conf
from
zoe_master.state.manager
import
StateManager
from
zoe_master.state.blobs.fs
import
FSBlobs
from
zoe_master.state.blobs.fs
import
FSBlobs
from
zoe_master.state.manager
import
StateManager
from
zoe_lib.config
import
load_configuration
,
get_conf
class
TestConf
:
class
TestConf
:
...
...
zoe_master/workspace/filesystem.py
View file @
105bbd97
...
@@ -13,11 +13,11 @@
...
@@ -13,11 +13,11 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
os.path
import
logging
import
logging
import
os.path
import
zoe_lib.config
as
config
import
zoe_master.workspace.base
import
zoe_master.workspace.base
import
zoe_master.config
as
config
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
...
zoe_master/zapp_to_docker.py
View file @
105bbd97
...
@@ -15,11 +15,11 @@
...
@@ -15,11 +15,11 @@
import
logging
import
logging
import
zoe_master.workspace.base
from
zoe_lib.config
import
get_conf
,
singletons
from
zoe_lib.sql_manager
import
Execution
,
Service
from
zoe_lib.sql_manager
import
Execution
,
Service
from
zoe_master.exceptions
import
ZoeStartExecutionRetryException
,
ZoeStartExecutionFatalException
,
ZoeException
from
zoe_master.config
import
get_conf
,
singletons
from
zoe_lib.swarm_client
import
DockerContainerOptions
,
SwarmClient
from
zoe_lib.swarm_client
import
DockerContainerOptions
,
SwarmClient
import
zoe_master.workspace.base
from
zoe_master.exceptions
import
ZoeStartExecutionRetryException
,
ZoeStartExecutionFatalException
,
ZoeException
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
...
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