4 Commits

Author SHA256 Message Date
562ff78a17 Accepting request 1288354 from network:samba:CONTAINERS
OBS-URL: https://build.opensuse.org/request/show/1288354
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sambacc?expand=0&rev=6
2025-06-24 18:50:54 +00:00
5d8718f251 - Update to version v0.6+git.60.2f89a38:
* tests: add a test case for the ensure_ctdb_port_in_services func
  * sambacc: add a function to alter /etc/services for ctdb port
  * sambacc: add a ctdb port configuration value
  * samba_cmds: Switch ctdb to CommandArgs type
  * samba_cmds: Switch wbinfo to CommandArgs type
  * samba_cmds: Modify execute() to accept CommandArgs
  * tests: test session crypto info fetched from grpc server
  * grpc: add session crypto information to grpc server
  * grpc: add session crypto message to control.proto
  * tests: add test coverage for backend session crypto
  * grpc: add support for session crypto info to backend.py
  * grpc: remove junk values from backend Versions object
  * mergify: Restrict the addition of "priority-review" label
  * github: Update mergify rules with symbolic fedora test jobs
  * workflows: Dynamically detect fedora versions for test matrix
  * extras: update python-sambacc.spec for new grpc extra
  * tox.ini: include grpc libs for unit tests
  * setup.cfg: add new modules, entrypoint, extras
  * commands/remotecontrol: create remote control command
  * tests: add test_grpc_backend.py to test server backend module
  * tests: add test_grpc_server.py to test grpc server behavior
  * grpc: add server.py for managing the grpc server
  * grpc: add backend.py for interfacing with samba commands
  * grpc/generated: add generated grpc files
  * tox.ini: add new environments for generating grpc related files
  * grpc/protobufs: add initial .proto file
  * grpc: establish a location for grpc related code and files
  * tox.ini: support mypy checking for files using grpc libs
  * pyproject.toml: exclude generated files from mypy check

OBS-URL: https://build.opensuse.org/package/show/network:samba:CONTAINERS/python-sambacc?expand=0&rev=12
2025-06-24 16:29:36 +00:00
ded3c978f3 Accepting request 1277770 from network:samba:CONTAINERS
OBS-URL: https://build.opensuse.org/request/show/1277770
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sambacc?expand=0&rev=5
2025-05-15 15:03:10 +00:00
616f839b18 - Update to version v0.6+git.5.aa9a005:
* commands: fix a mypy failure in the ctdb commands module
  * tests/container: update base image to fedora 41
  * github: update mergify rules to use fedora 41, not 39
  * workflows: update test matrix to use fedora 41
  * ctdb: handle nodes with "GONE" state when listing CTDB nodes
  * ctdb: Leave CTDB log levels at their original defaults
  * commands: add retries to ctdb-must-have-nodes command
  * ctdb: improve hostname lookup for ctdb nodes
  * tests/container: add rhel support to rpm builds
  * sambacc: fix constructing interface list for ctdb public_addresses
  * commands: pass instance config to ctdb etc setup
  * sambacc: add public addresses support to ctdb module
  * sambacc: add config placeholder for ctdb public address config
  * sambacc: avoid logging an error if cluster is being torn down
  * github: Update mergify config to replace deprecated attributes
  * sambacc: add a retry loop to ctdb.monitor_cluster_meta_changes
  * commands: time out waiting for conditions after 5min
  * commands: add ability to wait for ctdb when running smbd/winbindd
  * sambacc: move ctdb pnn fetching commands into functions
  * commands: add ctdb-list-nodes subcommand
  * sambacc: add nodes command to ctdb configuration if needed
  * sambacc: add ability to write to an open file to cluster_meta_to_nodes
  * commands: add ctdb-monitor-nodes command
  * sambacc: add monitor_cluster_meta_changes function
  * sambacc: simplify _cluster_meta_to_ctdb_nodes function
  * sambacc: split out some potentially common ctdb logic into funcs
  * commands: improve ctdb_manage_nodes doc comment
  * sambacc: rename function to manage_cluster_meta_updates
  * commands: encapsulate retry logic

OBS-URL: https://build.opensuse.org/package/show/network:samba:CONTAINERS/python-sambacc?expand=0&rev=10
2025-05-15 13:56:37 +00:00
7 changed files with 236 additions and 27 deletions

View File

@@ -1,24 +1,26 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">https://github.com/samba-in-kubernetes/sambacc.git</param>
<param name="scm">git</param>
<param name="revision">master</param>
<param name="versionformat">@PARENT_TAG@+git.@TAG_OFFSET@.%h</param>
<param name="versionrewrite-pattern">sambacc-(.*)</param>
<param name="versionrewrite-replacement">\1</param>
<param name="filename">sambacc</param>
<param name="exclude">.git</param>
<param name="changesgenerate">enable</param>
</service>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/samba-in-kubernetes/sambacc.git</param>
<param name="scm">git</param>
<param name="revision">master</param>
<param name="versionformat">@PARENT_TAG@+git.@TAG_OFFSET@.%h</param>
<param name="versionrewrite-pattern">sambacc-(.*)</param>
<param name="versionrewrite-replacement">\1</param>
<param name="filename">sambacc</param>
<param name="exclude">.git</param>
<param name="changesgenerate">enable</param>
</service>
<service name="set_version" mode="disabled">
<param name="basename">sambacc</param>
<param name="regex">^sambacc-([^/]+)</param>
<param name="file">python-sambacc.spec</param>
</service>
<service name="set_version" mode="manual">
<param name="basename">sambacc</param>
<param name="regex">^sambacc-([^/]+)</param>
<param name="file">python-sambacc.spec</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">bz2</param>
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">bz2</param>
</service>
</services>

View File

@@ -1,6 +1,8 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/samba-in-kubernetes/sambacc.git</param>
<param name="changesrevision">e7850e076664f35f7ef62a8792939cf48ef8e0a7</param>
<param name="changesrevision">2f89a38add2151fa021d5f43f6e74fb973f6ecfd</param>
</service>
</servicedata>
<service name="tar_scm">
<param name="url">https://github.com/jeffmahoney/sambacc.git</param>
<param name="changesrevision">e8c9bc197c108cf2ac735b0b94527beadce62b70</param></service></servicedata>

View File

@@ -1,3 +1,203 @@
-------------------------------------------------------------------
Sat Jun 21 12:22:30 UTC 2025 - Noel Power <nopower@suse.com>
- Update to version v0.6+git.60.2f89a38:
* tests: add a test case for the ensure_ctdb_port_in_services func
* sambacc: add a function to alter /etc/services for ctdb port
* sambacc: add a ctdb port configuration value
* samba_cmds: Switch ctdb to CommandArgs type
* samba_cmds: Switch wbinfo to CommandArgs type
* samba_cmds: Modify execute() to accept CommandArgs
* tests: test session crypto info fetched from grpc server
* grpc: add session crypto information to grpc server
* grpc: add session crypto message to control.proto
* tests: add test coverage for backend session crypto
* grpc: add support for session crypto info to backend.py
* grpc: remove junk values from backend Versions object
* mergify: Restrict the addition of "priority-review" label
* github: Update mergify rules with symbolic fedora test jobs
* workflows: Dynamically detect fedora versions for test matrix
* extras: update python-sambacc.spec for new grpc extra
* tox.ini: include grpc libs for unit tests
* setup.cfg: add new modules, entrypoint, extras
* commands/remotecontrol: create remote control command
* tests: add test_grpc_backend.py to test server backend module
* tests: add test_grpc_server.py to test grpc server behavior
* grpc: add server.py for managing the grpc server
* grpc: add backend.py for interfacing with samba commands
* grpc/generated: add generated grpc files
* tox.ini: add new environments for generating grpc related files
* grpc/protobufs: add initial .proto file
* grpc: establish a location for grpc related code and files
* tox.ini: support mypy checking for files using grpc libs
* pyproject.toml: exclude generated files from mypy check
* tox.ini: exclude files that grpc toolchain will generate
* sambacc: add smbstatus command to samba_cmds.py
* tox: split formatting testenv from flake8
* sambacc/commands: makde the dc main command setup less special
* sambacc/commands: clean up imports used only for commands
* sambacc/commands: add include function to help clarify import reasons
* sambacc/commands: add docstring for global_args
* sambacc/commands: add docstring and fix type hint for enable_logging
* sambacc/commands: update pre_action type hint
* sambacc/commands: add docstring and type hint to env_to_cli function
* sambacc/commands: add docstring and type hint to from_env function
* sambacc/commands: add type hints and docstring to split_entries
* sambacc/common: create common.py from common parts of main.py
* sambacc/commands: clone ceph_id function into cli.py
* sambacc/commands: remove some unnecessary ellipses
* commands: invalidate cached config when node is not ctdb leader
* tests/container: set a vendor suffix with VENDOR_DIST_SUFFIX
* extras: allow a vendor dist suffix field in the spec file
* sambacc: fix a pair of flake8 errors
* tests: add test funcs for odj join source
* sambacc/commands: add odj support to the join command line
* sambacc: add odj to the core join class
* sambacc: remove add_source method from Joiner
* commands: handle /usr/etc/nsswitch.conf
* commands: when possible skip ceph service registration for mutex helper
* sambacc: add a specifics flag for mutex helper registration option
-------------------------------------------------------------------
Wed Feb 26 02:38:05 UTC 2025 - jeffm@suse.com
- Update to version v0.6+git.5.aa9a005:
* commands: fix a mypy failure in the ctdb commands module
* tests/container: update base image to fedora 41
* github: update mergify rules to use fedora 41, not 39
* workflows: update test matrix to use fedora 41
* ctdb: handle nodes with "GONE" state when listing CTDB nodes
* ctdb: Leave CTDB log levels at their original defaults
* commands: add retries to ctdb-must-have-nodes command
* ctdb: improve hostname lookup for ctdb nodes
* tests/container: add rhel support to rpm builds
* sambacc: fix constructing interface list for ctdb public_addresses
* commands: pass instance config to ctdb etc setup
* sambacc: add public addresses support to ctdb module
* sambacc: add config placeholder for ctdb public address config
* sambacc: avoid logging an error if cluster is being torn down
* github: Update mergify config to replace deprecated attributes
* sambacc: add a retry loop to ctdb.monitor_cluster_meta_changes
* commands: time out waiting for conditions after 5min
* commands: add ability to wait for ctdb when running smbd/winbindd
* sambacc: move ctdb pnn fetching commands into functions
* commands: add ctdb-list-nodes subcommand
* sambacc: add nodes command to ctdb configuration if needed
* sambacc: add ability to write to an open file to cluster_meta_to_nodes
* commands: add ctdb-monitor-nodes command
* sambacc: add monitor_cluster_meta_changes function
* sambacc: simplify _cluster_meta_to_ctdb_nodes function
* sambacc: split out some potentially common ctdb logic into funcs
* commands: improve ctdb_manage_nodes doc comment
* sambacc: rename function to manage_cluster_meta_updates
* commands: encapsulate retry logic
* commands: fix incorrect help text for --write-nodes
* commands: add ctdb-rados-mutex sambacc subcommand
* sambacc: move rados pesudo-uri parsing to top level function
* sambacc: add ctdb_mutex_ceph_rados_helper to known commands
* commands: add --archive option to ctdb-migrate cmd
* commands: add --write-node option to ctdb-must-have-node cmd
* sambacc: add archive_tdb function
* sambacc: add cluster_meta_to_nodes function
* commands: support acquiring a node number from the environment
* commands: enable using a rados object uri for ctdb cluster meta
* sambacc: rename function to enable_rados
* sambacc: add is_rados_uri helper function
* sambacc: add cluster meta rados classes
* sambacc: add get_object method to rados handler class
* sambacc: add methods for writing and locking RADOSObjectRef
* sambacc: rename rados object class to RADOSObjectRef
* commands: prepare ctdb commands for using cluster meta objects
* sambacc: add monitor_cluster_meta_updates func to ctdb
* sambacc: replace path key with uri key for ctdb metadata state object
* sambacc: move important CTDB constants to global vars
* commands: tweak --skip-if help string
* commands: add new generic --skip-if command line options
* tests: add unit tests for skips module
* commands: add generalized skips feature for sambacc command line
* tox.ini: update version of black formatter tool
* commands: document protocol methods
* smabacc: document protocol methods
* sambacc: add ClusterMeta protocol to ctdb functions
* sambacc: add ClusterMetaJSONFile class
* sambacc: add version wrapper around typing.Self
* sambacc: simplify the closure function writing ctdb config
* tox.ini: remove old workaround in schemacheck env
* tox.ini: Add descriptions to various tox envs
* mergify: update merge conditions to match test matrix
* workflows: update test matrix to use fedora 40
* workflows: disable fail-fast option for distro matrix
* workflows: upgrade to checkout@v4
* schema: improve wording in interfaces description field
* docs: document new interface filtering options
* schema: schema updates for new interface filtering options
* commands: allow filtering network interfaces when provisioning ad dc
* tests: add unit test for new interface filtering func
* sambacc: add ad dc functions for interface filtering
* sambacc: add a new dc interface config type
* tox.ini: add schemaupdate environment
* schema.yaml: typo fixes
* tests: add OU support tests
* sambacc: add organizational unit (OU) support for ad dc configuration
* samba_cmds: add --debug-stdout flag for samba
* samba_cmds: move --debuglevel option after positions arguments
* extras: enable some recommended extras on centos 9
* tox: stick to black 2023 style for now
* sambacc: remove extra parens
* tox: workaround test failures for schemacheck
* tox: set a max version for black temporarily
* commands: add option to select debug level logging in sambacc
* commands: add setting ceph id info via --ceph-id or SAMBACC_CEPH_ID env
* sambacc: add logging to rados opener
* sambacc: extend rados opener to support passing client name
* sambacc: extend rados pseudo-uris to include getting mon config keys
* commands: pass opener to read_config_files called from update-config
* container: update default test container version to fedora 39
* github: update mergify rules to use fedora 39, not 37
* workflows: update build matrix to use fedora 39, drop fedora 37
* setup.cfg: fix missing description text
* docs: add a link to the pypi repository for sambacc to release doc
* extras: add the optional rados extra to the rpm spec
* setup.cfg: add a new extra for rados
* commands: pass an opener to the joiner
* commands: add a context property returning an opener
* sambacc: fix join interactive test
* sambacc: support passing an opener for join source files
* sambacc: make FileOpener a common type
* sambacc: do not require coverage for protocol types
* sambacc: do not require coverage for protocol types
* tests: add test_url_opener.py
* tests: add test_rados_opener.py
* commands: enable url and rados openers for sambacc config
* sambacc: support passing an opener to configuration reader
* sambacc: add optional rados support to url opener
* sambacc: add a URL opener type
* sambacc: add the concept of an opener type
* docs: be clearer about what types top-level configs take
* github: Update mergify rules to match recent changes to ci matrix
* workflows: minor yaml formatting tweaks
* workflows: simply workflow with a matrix
* readme: fix mixed up mark down links
* tests: Fix a typo in file name
* commands: update smb.conf post- provision and join funcs
* tests: add unit tests for smbconf_samba
* sambacc: add smbconf_samba module to wrap samba smbconf module
* tests: add unit tests for smbconf_api
* sambacc: add smbconf_api module for abstract smbconf operations
* sambacc: do not raise a KeyError if a config lacks globals
* commands: pass global options to provision and join calls
* tests: add unit test cases for addc functions
* sambacc: add common filtering func to AD DC globals
* sambacc: add options argument to addc join function
* sambacc: add options argument to addc provision function
* commands: remove unnecessary protocol function
* container: update to a still-maintained fedora version
* tox: fix passing arguments to tox env for pytest
* gitlint: ignore body lines that are footnotes
* docs: add a release process document
* readme: update readme to reflect recent changes
- Updated _service to use manual mode, obs_scm, and use cpio archives
-------------------------------------------------------------------
Wed Feb 28 20:35:33 UTC 2024 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-sambacc
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%global bname sambacc
Name: python-%{bname}
Version: v0.2+git.108.e7850e0
Version: v0.6+git.60.2f89a38
Release: 0
Summary: Samba Container Configurator
License: GPL-3.0-or-later
@@ -72,6 +72,7 @@ sed -i 's;python%{python_version};python3;g' %{buildroot}/%{_bindir}/samba-dc-co
%doc README.*
%{_bindir}/samba-container
%{_bindir}/samba-dc-container
%{_bindir}/samba-remote-control
%{_datadir}/%{bname}
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4083b5d8d84846a1ab5f8df9b488c9d817e367f516f73786f5d4c7df5d9f6e29
size 68739

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bd09f34de045f5f62a0cb3ed17589dfbd2107c798af8fcad45a8cccd57d4be10
size 559628

4
sambacc.obsinfo Normal file
View File

@@ -0,0 +1,4 @@
name: sambacc
version: v0.6+git.60.2f89a38
mtime: 1749803420
commit: 2f89a38add2151fa021d5f43f6e74fb973f6ecfd