-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-fedoraserver.rhcloud.com/r/222/
-----------------------------------------------------------
Review request for RoleKit Mailing List, Miloslav Trmac, Nils Philippsen, Stephen Gallagher, and Thomas Woerner.
Repository: rolekit
Description
-------
This is used in the RoleSettings constructor. RoleSettings is used for role
deployment, also in rolectl for deferred deployment.
New INSTANCE_NAME_REGEXP in config/__init__.py.in
Fixes: https://github.com/libre-server/rolekit/issues/40
Diffs
-----
src/rolekit/config/__init__.py.in 9dff4047d87ac7343a378fff38f79c02d05434c7
src/rolekit/server/io/rolesettings.py 5b3bd595b0fb04f960c2de2c10c4882979320857
src/rolekit/util.py f3825d748475ea837e84004129459083269d9686
Diff: http://reviewboard-fedoraserver.rhcloud.com/r/222/diff/
Testing
-------
Thanks,
Thomas Woerner
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-fedoraserver.rhcloud.com/r/219/
-----------------------------------------------------------
Review request for RoleKit Mailing List, Miloslav Trmac, Nils Philippsen, Stephen Gallagher, and Thomas Woerner.
Repository: rolekit
Description
-------
Use an internal implementation instead of calling sed to tweak
configuration files. This has the neat side effect of overwriting the
target file as the last step, side-stepping the need to copy over the
backup file on errors.
This change requires python3-slip >= 0.6.4 because in previous versions
slip.util.files.overwrite_safely() doesn't preserve file ownership, and
the postgresql configuration files need to be owned by the postgres user.
https://github.com/libre-server/rolekit/issues/21
Diffs
-----
config/roles/databaseserver/role.py 7443979ba7ff87ff6a018ac8a7a0a89e2b8ad6e7
rolekit.spec f3cf9f4b799909bc293f4e56eea78c71e7112e9c
Diff: http://reviewboard-fedoraserver.rhcloud.com/r/219/diff/
Testing
-------
Deployed `databaseserver` role, compared contents of `postgresql.conf`, `pg_hba.conf` with what the original sed commands produced.
Thanks,
Nils Philippsen
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-fedoraserver.rhcloud.com/r/221/
-----------------------------------------------------------
Review request for RoleKit Mailing List, Miloslav Trmac, Nils Philippsen, Stephen Gallagher, and Thomas Woerner.
Repository: rolekit
Description
-------
remove or use unused exceptions and variables
Diffs
-----
config/roles/domaincontroller/role.py 899a5aa99bfd4b7311db7bb0bba5adcf1740ab86
src/rolekit/server/dbusrole.py 3c0dff6a186d36711200074cd8e7530ee66ff64b
src/rolekit/server/server.py 7e400822ec238f9f9bcffd4386eaf1fcd5b8cd94
Diff: http://reviewboard-fedoraserver.rhcloud.com/r/221/diff/
Testing
-------
Thanks,
Nils Philippsen
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-fedoraserver.rhcloud.com/r/217/
-----------------------------------------------------------
Review request for RoleKit Mailing List, Miloslav Trmac, Nils Philippsen, Stephen Gallagher, and Thomas Woerner.
Repository: rolekit
Description
-------
Previously, this would have failed with an AttributeError if the
first searched role directory was invalid. For subsequent roles, if
the directory was invalid, the code would incorrectly load the last
working role instead of throwing an error.
Diffs
-----
src/rolekit/server/roled.py 5dcfd99ded48db0304b752508d83bfbdcc82123d
Diff: http://reviewboard-fedoraserver.rhcloud.com/r/217/diff/
Testing
-------
Thanks,
Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-fedoraserver.rhcloud.com/r/218/
-----------------------------------------------------------
Review request for RoleKit Mailing List, Miloslav Trmac, Nils Philippsen, Stephen Gallagher, and Thomas Woerner.
Bugs: 45
http://github.com/libre-server/rolekit/issues#issue/45
Repository: rolekit
Description
-------
A role will never be in a transitional state at startup unless the
roled process terminated unexpectedly. In this case, we need to
make sure to set the error appropriately, otherwise we won't be
able to clean up properly (decommission and reset-error don't work
in transitional states).
Fixes: https://github.com/libre-server/rolekit/issues/45
Diffs
-----
src/rolekit/server/dbusrole.py ab65993ead34b2000b1f8150116d9782128ced0f
Diff: http://reviewboard-fedoraserver.rhcloud.com/r/218/diff/
Testing
-------
Thanks,
Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-fedoraserver.rhcloud.com/r/212/
-----------------------------------------------------------
Review request for RoleKit Mailing List, Miloslav Trmac, Nils Philippsen, Stephen Gallagher, and Thomas Woerner.
Repository: rolekit
Description
-------
https://github.com/libre-server/rolekit/issues/16
Diffs
-----
src/rolekit/server/io/systemd.py 317c589109a382d180b1a457fa1c0ed633ec73bc
src/rolekit/server/rolebase.py 55add0077016c92eff2c9699b13e5c7d6026e574
Diff: http://reviewboard-fedoraserver.rhcloud.com/r/212/diff/
Testing
-------
Deployed databaseserver, checked that extension unit file paths are stored in role JSON file, decommissioned it again and checked that the files are installed, and removed again.
NB: This is only about extension units, the others need a separate patch.
Thanks,
Nils Philippsen
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-fedoraserver.rhcloud.com/r/214/
-----------------------------------------------------------
Review request for RoleKit Mailing List, Miloslav Trmac, Nils Philippsen, Stephen Gallagher, and Thomas Woerner.
Repository: rolekit
Description
-------
Before, units that are used for more than one dependency type get
written multiple times, and so create useless backup files (and
potentially overwrite legit ones).
Diffs
-----
src/rolekit/server/rolebase.py 55add0077016c92eff2c9699b13e5c7d6026e574
Diff: http://reviewboard-fedoraserver.rhcloud.com/r/214/diff/
Testing
-------
[root@vagrant ~]# echo '{"database": "example"}' | rolectl deploy databaseserver --settings-stdin
Deployment can take a long time. To monitor the progress, run
journalctl -ef -u rolekit
success
[root@vagrant ~]# find /etc/systemd/ -name role-\*
/etc/systemd/system/role-fail-databaseserver-1.service
/etc/systemd/system/postgresql.service.d/role-databaseserver-1.target.conf
/etc/systemd/system/multi-user.target.wants/role-databaseserver-1.target
/etc/systemd/system/syslog.target.d/role-databaseserver-1.target.conf
/etc/systemd/system/role-databaseserver-1.target
/etc/systemd/system/network.target.d/role-databaseserver-1.target.conf
[root@vagrant ~]#
--> no `*.old` files
Thanks,
Nils Philippsen
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-fedoraserver.rhcloud.com/r/216/
-----------------------------------------------------------
Review request for RoleKit Mailing List, Miloslav Trmac, Nils Philippsen, Stephen Gallagher, and Thomas Woerner.
Repository: rolekit
Description
-------
https://github.com/libre-server/rolekit/issues/16
Diffs
-----
src/rolekit/server/io/systemd.py 317c589109a382d180b1a457fa1c0ed633ec73bc
src/rolekit/server/rolebase.py d7063c0069ae03d86c75286290780d3d1cda772a
Diff: http://reviewboard-fedoraserver.rhcloud.com/r/216/diff/
Testing
-------
- created databaseserver role
- decommissioned it
- `find /etc/systemd -name *role-*` -> no left over files
Thanks,
Nils Philippsen