Commit Graph

3 Commits

Author SHA1 Message Date
chenying
4b4fd472bc Introduce oslo.versionedobjects to smaug
Change-Id: I03898954b46d32de31771bcd9f71be4c1937506e
Closes-Bug: #1535595
2016-01-28 14:26:47 +08:00
chenying
71478b89ac basic OperationEngine service: Service class for binaries running on hosts
Create the basic Service class for binaries running
on hosts.
A service takes a manager and enables rpc by listening
to queues based on topic. It also periodically runs
tasks on the manager(optional) and reports it state
to the database services table.
Also add some unit tests for Service class.

Partial-Bug: #1527097
Change-Id: I241c4757d0b2d1880d1a1a59cce007ca9d1037c7
2015-12-31 14:48:26 +08:00
chenying
351a0c29f2 basic API service: Create the base DAL into the DB
Create the basic data abstraction layer into the DB in basic
API service.I create a database table services as an example.
This table is used to save the running status of deployed
services.
The command smaug-manage is used to manage the database.
we can use this command 'smaug-manage db sync' to sync
the smaug database up to the most recent version.
smaug-manage version list: exposing the smaug codebase
version.
smaug-manage config list: exposing the configuration.
smaug-manage service list: showing a list of all smaug
services status.

Change-Id: I5d64c5d38780449e1fb005acf04f69d482ac59cc
Closes-Bug: #1525794
2015-12-29 17:22:03 +08:00