# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import redis from oslo.config import cfg from payload import messaging from payload.openstack.common import context from payload.openstack.common import log as logging from payload.openstack.common import timeutils from payload.openstack.common import uuidutils from payload.redis import models LOG = logging.getLogger(__name__) redis_opts = [ cfg.StrOpt( 'host', default='127.0.0.1', help='Hostname', ), cfg.IntOpt( 'port', default=6379, help='The specific TCP port Redis listens on', ), cfg.IntOpt( 'database', default=0, help='Which Redis database to use', ), cfg.StrOpt( 'password', default=None, help='Password to use with AUTH command', ), ]
# limitations under the License. from sqlalchemy import Boolean from sqlalchemy import Column from sqlalchemy import DateTime from sqlalchemy import ForeignKeyConstraint from sqlalchemy import Integer from sqlalchemy import MetaData from sqlalchemy import String from sqlalchemy import Table from sqlalchemy import Text from sqlalchemy import UniqueConstraint from payload.openstack.common import log as logging LOG = logging.getLogger(__name__) def upgrade(migrate_engine): meta = MetaData() meta.bind = migrate_engine agents = Table( 'agents', meta, Column('id', Integer, primary_key=True, autoincrement=True), Column('created_at', DateTime), Column('project_id', String(length=255)), Column('updated_at', DateTime), Column('user_id', String(length=255)), Column('uuid', String(length=255), unique=True),