Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Titouan Soulard
slapos.core
Commits
beaf71c6
Commit
beaf71c6
authored
Oct 04, 2023
by
Titouan Soulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapgrid: propagate slapgrid_jio_uri
parent
ac0bcd84
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
slapos/grid/SlapObject.py
slapos/grid/SlapObject.py
+3
-0
slapos/grid/slapgrid.py
slapos/grid/slapgrid.py
+5
-2
slapos/grid/templates/buildout-tail.cfg.in
slapos/grid/templates/buildout-tail.cfg.in
+2
-1
No files found.
slapos/grid/SlapObject.py
View file @
beaf71c6
...
@@ -441,6 +441,7 @@ class Partition(object):
...
@@ -441,6 +441,7 @@ class Partition(object):
buildout_debug
=
False
,
buildout_debug
=
False
,
partition_timeout
=
None
,
partition_timeout
=
None
,
api_backward_compatibility
=
False
,
api_backward_compatibility
=
False
,
slapgrid_jio_uri
=
None
):
):
"""Initialisation of class parameters"""
"""Initialisation of class parameters"""
self
.
buildout
=
buildout
self
.
buildout
=
buildout
...
@@ -464,6 +465,7 @@ class Partition(object):
...
@@ -464,6 +465,7 @@ class Partition(object):
self
.
ipv4_global_network
=
ipv4_global_network
self
.
ipv4_global_network
=
ipv4_global_network
self
.
partition_timeout
=
partition_timeout
self
.
partition_timeout
=
partition_timeout
self
.
api_backward_compatibility
=
api_backward_compatibility
self
.
api_backward_compatibility
=
api_backward_compatibility
self
.
slapgrid_jio_uri
=
slapgrid_jio_uri
self
.
key_file
=
''
self
.
key_file
=
''
self
.
cert_file
=
''
self
.
cert_file
=
''
...
@@ -636,6 +638,7 @@ class Partition(object):
...
@@ -636,6 +638,7 @@ class Partition(object):
'software_instance_reference'
:
self
.
computer_partition
.
get
(
"reference"
),
'software_instance_reference'
:
self
.
computer_partition
.
get
(
"reference"
),
'server_url'
:
self
.
server_url
,
'server_url'
:
self
.
server_url
,
'software_release_url'
:
self
.
software_release_url
,
'software_release_url'
:
self
.
software_release_url
,
'slapgrid_jio_uri'
:
self
.
slapgrid_jio_uri
,
'key_file'
:
self
.
key_file
,
'key_file'
:
self
.
key_file
,
'cert_file'
:
self
.
cert_file
,
'cert_file'
:
self
.
cert_file
,
'storage_home'
:
self
.
instance_storage_home
,
'storage_home'
:
self
.
instance_storage_home
,
...
...
slapos/grid/slapgrid.py
View file @
beaf71c6
...
@@ -320,8 +320,8 @@ def create_slapgrid_object(options, logger):
...
@@ -320,8 +320,8 @@ def create_slapgrid_object(options, logger):
firewall_conf
=
op
.
get
(
'firewall'
),
firewall_conf
=
op
.
get
(
'firewall'
),
config
=
options
,
config
=
options
,
force_stop
=
op
.
get
(
'force_stop'
,
False
),
force_stop
=
op
.
get
(
'force_stop'
,
False
),
partition_timeout
=
partition_timeout
)
partition_timeout
=
partition_timeout
,
slapgrid_jio_uri
=
op
.
get
(
'slapgrid_jio_uri'
,
None
))
def
check_required_only_partitions
(
existing
,
required
):
def
check_required_only_partitions
(
existing
,
required
):
"""
"""
...
@@ -1252,6 +1252,7 @@ stderr_logfile_backups=1
...
@@ -1252,6 +1252,7 @@ stderr_logfile_backups=1
computer_id
=
self
.
computer_id
,
computer_id
=
self
.
computer_id
,
partition_id
=
computer_partition_id
,
partition_id
=
computer_partition_id
,
server_url
=
self
.
master_url
,
server_url
=
self
.
master_url
,
slapgrid_jio_uri
=
self
.
slapgrid_jio_uri
,
software_release_url
=
software_url
,
software_release_url
=
software_url
,
certificate_repository_path
=
self
.
certificate_repository_path
,
certificate_repository_path
=
self
.
certificate_repository_path
,
buildout
=
self
.
buildout
,
buildout
=
self
.
buildout
,
...
@@ -1339,6 +1340,7 @@ stderr_logfile_backups=1
...
@@ -1339,6 +1340,7 @@ stderr_logfile_backups=1
computer_id
=
self
.
computer_id
,
computer_id
=
self
.
computer_id
,
partition_id
=
computer_partition_id
,
partition_id
=
computer_partition_id
,
server_url
=
self
.
master_url
,
server_url
=
self
.
master_url
,
slapgrid_jio_uri
=
self
.
slapgrid_jio_uri
,
software_release_url
=
software_url
,
software_release_url
=
software_url
,
certificate_repository_path
=
self
.
certificate_repository_path
,
certificate_repository_path
=
self
.
certificate_repository_path
,
buildout
=
self
.
buildout
,
buildout
=
self
.
buildout
,
...
@@ -2082,6 +2084,7 @@ stderr_logfile_backups=1
...
@@ -2082,6 +2084,7 @@ stderr_logfile_backups=1
computer_id
=
self
.
computer_id
,
computer_id
=
self
.
computer_id
,
partition_id
=
computer_partition_id
,
partition_id
=
computer_partition_id
,
server_url
=
self
.
master_url
,
server_url
=
self
.
master_url
,
slapgrid_jio_uri
=
self
.
slapgrid_jio_uri
,
software_release_url
=
software_url
,
software_release_url
=
software_url
,
certificate_repository_path
=
self
.
certificate_repository_path
,
certificate_repository_path
=
self
.
certificate_repository_path
,
buildout
=
self
.
buildout
,
buildout
=
self
.
buildout
,
...
...
slapos/grid/templates/buildout-tail.cfg.in
View file @
beaf71c6
...
@@ -10,6 +10,7 @@ offline = true
...
@@ -10,6 +10,7 @@ offline = true
computer-id = %(computer_id)s
computer-id = %(computer_id)s
partition-id = %(partition_id)s
partition-id = %(partition_id)s
server-url = %(server_url)s
server-url = %(server_url)s
slapgrid-jio-uri = %(slapgrid_jio_uri)s
software-release-url = %(software_release_url)s
software-release-url = %(software_release_url)s
key-file = %(key_file)s
key-file = %(key_file)s
cert-file = %(cert_file)s
cert-file = %(cert_file)s
...
@@ -39,4 +40,4 @@ software-type = %(instance_software_type)s
...
@@ -39,4 +40,4 @@ software-type = %(instance_software_type)s
reference = %(software_instance_reference)s
reference = %(software_instance_reference)s
processing-timestamp = %(instance_processing_timestamp)s
processing-timestamp = %(instance_processing_timestamp)s
connection-parameters-md5sum = %(connection_parameters_md5sum)s
connection-parameters-md5sum = %(connection_parameters_md5sum)s
parameters-md5sum = %(parameters_md5sum)s
parameters-md5sum = %(parameters_md5sum)s
\ No newline at end of file
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