7ace4293e9
Original design of the VirtualBMC tool was that user manages config files for individual VirtualBMC (via a cli tool), then requests the tool to start the instances representing individual VirtualBMC instances (via the cli tool). Then the instances become independent processes. The only way to know their whereabouts is through the pidfiles they maintain. There were certain practical inconveniences with the original design, namely: * Cumbersome to start/stop/monitor free-standing vBMC instances processes * No two-way communication between the parent process and the VirtualBMC instances what makes child state check or modification unnecessary difficult This commit turns server part of the tool into a single process spawning multiple children processes and herding them via ZMQ client/server. The parent process runs server part of the control interface, maintains persistent VirtualBMC instances configuration and ensures all its children are alive and kicking. Each VirtualBMC instance is still a separate parent fork. If child dies, parent respawns it right away. If parent is about to die, it tries its best to kill all the prospective orphans. This new implementation tries to stay compatible with the original one in part of `vbmc` tool CLI interface and behaviour. Whenever it can't connect to the `vbmcd` it tries to fork and spawn the daemon behind the scenes. While the threading design for this tool might look better, the underlying pyghmi library is apparently rather complicated to use its concurrency capabilities reliably. The other minor consideration is that running multiple processes leverages CPU-based concurrency. Other changes: * The `start` command now accepts more than one domains to be started Change-Id: Ie10f4598c7039a7afa9b45d01df3b3c3db252c1d Story: 1751570 Task: 12057
60 lines
1.5 KiB
INI
60 lines
1.5 KiB
INI
[metadata]
|
|
name = virtualbmc
|
|
summary = Create virtual BMCs for controlling virtual instances via IPMI
|
|
description-file =
|
|
README.rst
|
|
author = OpenStack
|
|
author-email = openstack-dev@lists.openstack.org
|
|
home-page = http://www.openstack.org/
|
|
classifier =
|
|
Environment :: OpenStack
|
|
Intended Audience :: Information Technology
|
|
Intended Audience :: System Administrators
|
|
License :: OSI Approved :: Apache Software License
|
|
Operating System :: POSIX :: Linux
|
|
Programming Language :: Python
|
|
Programming Language :: Python :: 2
|
|
Programming Language :: Python :: 2.7
|
|
Programming Language :: Python :: 3
|
|
Programming Language :: Python :: 3.5
|
|
|
|
[files]
|
|
packages =
|
|
virtualbmc
|
|
|
|
[entry_points]
|
|
console_scripts =
|
|
vbmc = virtualbmc.cmd.vbmc:main
|
|
vbmcd = virtualbmc.cmd.vbmcd:main
|
|
|
|
virtualbmc =
|
|
add = virtualbmc.cmd.vbmc:AddCommand
|
|
delete = virtualbmc.cmd.vbmc:DeleteCommand
|
|
start = virtualbmc.cmd.vbmc:StartCommand
|
|
stop = virtualbmc.cmd.vbmc:StopCommand
|
|
list = virtualbmc.cmd.vbmc:ListCommand
|
|
show = virtualbmc.cmd.vbmc:ShowCommand
|
|
|
|
[build_sphinx]
|
|
source-dir = doc/source
|
|
build-dir = doc/build
|
|
all_files = 1
|
|
warning-is-error = 1
|
|
|
|
[upload_sphinx]
|
|
upload-dir = doc/build/html
|
|
|
|
[compile_catalog]
|
|
directory = virtualbmc/locale
|
|
domain = virtualbmc
|
|
|
|
[update_catalog]
|
|
domain = virtualbmc
|
|
output_dir = virtualbmc/locale
|
|
input_file = virtualbmc/locale/virtualbmc.pot
|
|
|
|
[extract_messages]
|
|
keywords = _ gettext ngettext l_ lazy_gettext
|
|
mapping_file = babel.cfg
|
|
output_file = virtualbmc/locale/virtualbmc.pot
|