-
-
Save jon-proulx/79a77e8b771f90847ae9 to your computer and use it in GitHub Desktop.
nova database schema at v184 partway through grizzly to havana update.
system is running Ubuntu12.04 with cloud archive packages + https://bugs.launchpad.net/nova/+bug/1245502
Originally installed with Essex (also using 12.04) and progressively updated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- MySQL dump 10.13 Distrib 5.5.34, for debian-linux-gnu (x86_64) | |
-- | |
-- Host: localhost Database: nova | |
-- ------------------------------------------------------ | |
-- Server version 5.5.34-0ubuntu0.12.04.1 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; | |
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | |
/*!40103 SET TIME_ZONE='+00:00' */; | |
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | |
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | |
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | |
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | |
-- | |
-- Table structure for table `agent_builds` | |
-- | |
DROP TABLE IF EXISTS `agent_builds`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `agent_builds` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`hypervisor` varchar(255) DEFAULT NULL, | |
`os` varchar(255) DEFAULT NULL, | |
`architecture` varchar(255) DEFAULT NULL, | |
`version` varchar(255) DEFAULT NULL, | |
`url` varchar(255) DEFAULT NULL, | |
`md5hash` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `agent_builds_hypervisor_os_arch_idx` (`hypervisor`,`os`,`architecture`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `aggregate_hosts` | |
-- | |
DROP TABLE IF EXISTS `aggregate_hosts`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `aggregate_hosts` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`host` varchar(255) DEFAULT NULL, | |
`aggregate_id` int(11) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `aggregate_id` (`aggregate_id`), | |
CONSTRAINT `aggregate_hosts_ibfk_1` FOREIGN KEY (`aggregate_id`) REFERENCES `aggregates` (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=129 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `aggregate_metadata` | |
-- | |
DROP TABLE IF EXISTS `aggregate_metadata`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `aggregate_metadata` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`aggregate_id` int(11) NOT NULL, | |
`key` varchar(255) NOT NULL, | |
`value` varchar(255) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `aggregate_id` (`aggregate_id`), | |
KEY `aggregate_metadata_key_idx` (`key`), | |
CONSTRAINT `aggregate_metadata_ibfk_1` FOREIGN KEY (`aggregate_id`) REFERENCES `aggregates` (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `aggregates` | |
-- | |
DROP TABLE IF EXISTS `aggregates`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `aggregates` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `block_device_mapping` | |
-- | |
DROP TABLE IF EXISTS `block_device_mapping`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `block_device_mapping` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`device_name` varchar(255) NOT NULL, | |
`delete_on_termination` tinyint(1) DEFAULT NULL, | |
`virtual_name` varchar(255) DEFAULT NULL, | |
`snapshot_id` varchar(36) DEFAULT NULL, | |
`volume_id` varchar(36) DEFAULT NULL, | |
`volume_size` int(11) DEFAULT NULL, | |
`no_device` tinyint(1) DEFAULT NULL, | |
`connection_info` text, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `snapshot_id` (`snapshot_id`), | |
KEY `volume_id` (`volume_id`), | |
KEY `block_device_mapping_instance_uuid_idx` (`instance_uuid`), | |
KEY `block_device_mapping_instance_uuid_device_name_idx` (`instance_uuid`,`device_name`), | |
KEY `block_device_mapping_instance_uuid_virtual_name_device_name_idx` (`instance_uuid`,`virtual_name`,`device_name`), | |
KEY `block_device_mapping_instance_uuid_volume_id_idx` (`instance_uuid`,`volume_id`), | |
CONSTRAINT `block_device_mapping_instance_uuid_fkey` FOREIGN KEY (`instance_uuid`) REFERENCES `instances` (`uuid`) | |
) ENGINE=InnoDB AUTO_INCREMENT=237 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `bw_usage_cache` | |
-- | |
DROP TABLE IF EXISTS `bw_usage_cache`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `bw_usage_cache` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`start_period` datetime NOT NULL, | |
`last_refreshed` datetime DEFAULT NULL, | |
`bw_in` bigint(20) DEFAULT NULL, | |
`bw_out` bigint(20) DEFAULT NULL, | |
`mac` varchar(255) DEFAULT NULL, | |
`uuid` varchar(36) DEFAULT NULL, | |
`last_ctr_in` bigint(20) DEFAULT NULL, | |
`last_ctr_out` bigint(20) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `bw_usage_cache_uuid_start_period_idx` (`uuid`,`start_period`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `cells` | |
-- | |
DROP TABLE IF EXISTS `cells`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `cells` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`api_url` varchar(255) DEFAULT NULL, | |
`username` varchar(255) DEFAULT NULL, | |
`password` varchar(255) DEFAULT NULL, | |
`weight_offset` float DEFAULT NULL, | |
`weight_scale` float DEFAULT NULL, | |
`name` varchar(255) DEFAULT NULL, | |
`is_parent` tinyint(1) DEFAULT NULL, | |
`rpc_host` varchar(255) DEFAULT NULL, | |
`rpc_port` int(11) DEFAULT NULL, | |
`rpc_virtual_host` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `certificates` | |
-- | |
DROP TABLE IF EXISTS `certificates`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `certificates` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`user_id` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`file_name` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `certificates_project_id_deleted_idx` (`project_id`), | |
KEY `certificates_user_id_deleted_idx` (`user_id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `compute_node_stats` | |
-- | |
DROP TABLE IF EXISTS `compute_node_stats`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `compute_node_stats` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`compute_node_id` int(11) NOT NULL, | |
`key` varchar(255) NOT NULL, | |
`value` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `ix_compute_node_stats_compute_node_id` (`compute_node_id`), | |
KEY `compute_node_stats_node_id_and_deleted_idx` (`compute_node_id`,`deleted`) | |
) ENGINE=InnoDB AUTO_INCREMENT=603895 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `compute_nodes` | |
-- | |
DROP TABLE IF EXISTS `compute_nodes`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `compute_nodes` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`service_id` int(11) NOT NULL, | |
`vcpus` int(11) NOT NULL, | |
`memory_mb` int(11) NOT NULL, | |
`local_gb` int(11) NOT NULL, | |
`vcpus_used` int(11) NOT NULL, | |
`memory_mb_used` int(11) NOT NULL, | |
`local_gb_used` int(11) NOT NULL, | |
`hypervisor_type` text NOT NULL, | |
`hypervisor_version` int(11) NOT NULL, | |
`cpu_info` text NOT NULL, | |
`disk_available_least` int(11) DEFAULT NULL, | |
`free_ram_mb` int(11) DEFAULT NULL, | |
`free_disk_gb` int(11) DEFAULT NULL, | |
`current_workload` int(11) DEFAULT NULL, | |
`running_vms` int(11) DEFAULT NULL, | |
`hypervisor_hostname` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `console_pools` | |
-- | |
DROP TABLE IF EXISTS `console_pools`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `console_pools` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`address` varchar(39) DEFAULT NULL, | |
`username` varchar(255) DEFAULT NULL, | |
`password` varchar(255) DEFAULT NULL, | |
`console_type` varchar(255) DEFAULT NULL, | |
`public_hostname` varchar(255) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`compute_host` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `consoles` | |
-- | |
DROP TABLE IF EXISTS `consoles`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `consoles` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`instance_name` varchar(255) DEFAULT NULL, | |
`password` varchar(255) DEFAULT NULL, | |
`port` int(11) DEFAULT NULL, | |
`pool_id` int(11) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `pool_id` (`pool_id`), | |
KEY `consoles_instance_uuid_idx` (`instance_uuid`), | |
CONSTRAINT `consoles_ibfk_1` FOREIGN KEY (`pool_id`) REFERENCES `console_pools` (`id`), | |
CONSTRAINT `consoles_instance_uuid_fkey` FOREIGN KEY (`instance_uuid`) REFERENCES `instances` (`uuid`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `dns_domains` | |
-- | |
DROP TABLE IF EXISTS `dns_domains`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `dns_domains` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`domain` varchar(255) NOT NULL, | |
`scope` varchar(255) DEFAULT NULL, | |
`availability_zone` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`domain`), | |
KEY `project_id` (`project_id`), | |
KEY `dns_domains_domain_deleted_idx` (`domain`,`deleted`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `fixed_ips` | |
-- | |
DROP TABLE IF EXISTS `fixed_ips`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `fixed_ips` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`address` varchar(39) DEFAULT NULL, | |
`network_id` int(11) DEFAULT NULL, | |
`allocated` tinyint(1) DEFAULT NULL, | |
`leased` tinyint(1) DEFAULT NULL, | |
`reserved` tinyint(1) DEFAULT NULL, | |
`virtual_interface_id` int(11) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `fixed_ips_virtual_interface_id_fkey` (`virtual_interface_id`), | |
KEY `address` (`address`), | |
KEY `fixed_ips_instance_uuid_fkey` (`instance_uuid`), | |
KEY `fixed_ips_host_idx` (`host`), | |
KEY `fixed_ips_network_id_host_deleted_idx` (`network_id`,`host`), | |
KEY `fixed_ips_address_reserved_network_id_deleted_idx` (`address`,`reserved`,`network_id`), | |
KEY `fixed_ips_deleted_allocated_idx` (`address`,`allocated`), | |
CONSTRAINT `fixed_ips_instance_uuid_fkey` FOREIGN KEY (`instance_uuid`) REFERENCES `instances` (`uuid`) | |
) ENGINE=InnoDB AUTO_INCREMENT=66305 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `floating_ips` | |
-- | |
DROP TABLE IF EXISTS `floating_ips`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `floating_ips` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`address` varchar(39) DEFAULT NULL, | |
`fixed_ip_id` int(11) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`auto_assigned` tinyint(1) DEFAULT NULL, | |
`pool` varchar(255) DEFAULT NULL, | |
`interface` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `uniq_floating_ips0address0deleted` (`address`,`deleted`), | |
KEY `fixed_ip_id` (`fixed_ip_id`), | |
KEY `floating_ips_host_idx` (`host`), | |
KEY `floating_ips_project_id_idx` (`project_id`), | |
KEY `floating_ips_pool_deleted_fixed_ip_id_project_id_idx` (`pool`,`fixed_ip_id`,`project_id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=8191 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `instance_actions` | |
-- | |
DROP TABLE IF EXISTS `instance_actions`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `instance_actions` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`action` varchar(255) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`request_id` varchar(255) DEFAULT NULL, | |
`user_id` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`start_time` datetime DEFAULT NULL, | |
`finish_time` datetime DEFAULT NULL, | |
`message` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `instance_uuid_idx` (`instance_uuid`), | |
KEY `request_id_idx` (`request_id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=55783 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `instance_actions_events` | |
-- | |
DROP TABLE IF EXISTS `instance_actions_events`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `instance_actions_events` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`event` varchar(255) DEFAULT NULL, | |
`action_id` int(11) DEFAULT NULL, | |
`start_time` datetime DEFAULT NULL, | |
`finish_time` datetime DEFAULT NULL, | |
`result` varchar(255) DEFAULT NULL, | |
`traceback` text, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `action_id` (`action_id`), | |
CONSTRAINT `instance_actions_events_ibfk_1` FOREIGN KEY (`action_id`) REFERENCES `instance_actions` (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=78034 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `instance_faults` | |
-- | |
DROP TABLE IF EXISTS `instance_faults`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `instance_faults` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`code` int(11) NOT NULL, | |
`message` varchar(255) DEFAULT NULL, | |
`details` text, | |
`host` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `instance_faults_instance_uuid_deleted_created_at_idx` (`instance_uuid`,`created_at`), | |
KEY `instance_faults_host_idx` (`host`) | |
) ENGINE=InnoDB AUTO_INCREMENT=162466 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `instance_id_mappings` | |
-- | |
DROP TABLE IF EXISTS `instance_id_mappings`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `instance_id_mappings` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`uuid` varchar(36) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `ix_instance_id_mappings_uuid` (`uuid`) | |
) ENGINE=InnoDB AUTO_INCREMENT=480975 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `instance_info_caches` | |
-- | |
DROP TABLE IF EXISTS `instance_info_caches`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `instance_info_caches` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`network_info` text, | |
`instance_uuid` varchar(36) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `uniq_instance_info_caches0instance_uuid` (`instance_uuid`), | |
CONSTRAINT `instance_info_caches_instance_uuid_fkey` FOREIGN KEY (`instance_uuid`) REFERENCES `instances` (`uuid`) | |
) ENGINE=InnoDB AUTO_INCREMENT=480975 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `instance_metadata` | |
-- | |
DROP TABLE IF EXISTS `instance_metadata`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `instance_metadata` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`key` varchar(255) DEFAULT NULL, | |
`value` varchar(255) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `instance_metadata_instance_uuid_idx` (`instance_uuid`), | |
CONSTRAINT `instance_metadata_instance_uuid_fkey` FOREIGN KEY (`instance_uuid`) REFERENCES `instances` (`uuid`) | |
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `instance_system_metadata` | |
-- | |
DROP TABLE IF EXISTS `instance_system_metadata`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `instance_system_metadata` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`instance_uuid` varchar(36) NOT NULL, | |
`key` varchar(255) NOT NULL, | |
`value` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `instance_uuid` (`instance_uuid`), | |
CONSTRAINT `instance_system_metadata_ibfk_1` FOREIGN KEY (`instance_uuid`) REFERENCES `instances` (`uuid`) | |
) ENGINE=InnoDB AUTO_INCREMENT=7598244 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `instance_type_extra_specs` | |
-- | |
DROP TABLE IF EXISTS `instance_type_extra_specs`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `instance_type_extra_specs` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`instance_type_id` int(11) NOT NULL, | |
`key` varchar(255) DEFAULT NULL, | |
`value` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `instance_type_extra_specs_instance_type_id_key_idx` (`instance_type_id`,`key`), | |
CONSTRAINT `instance_type_extra_specs_ibfk_1` FOREIGN KEY (`instance_type_id`) REFERENCES `instance_types` (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `instance_type_projects` | |
-- | |
DROP TABLE IF EXISTS `instance_type_projects`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `instance_type_projects` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`instance_type_id` int(11) NOT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `uniq_instance_type_id_x_project_id_x_deleted` (`instance_type_id`,`project_id`,`deleted`), | |
CONSTRAINT `instance_type_projects_ibfk_1` FOREIGN KEY (`instance_type_id`) REFERENCES `instance_types` (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `instance_types` | |
-- | |
DROP TABLE IF EXISTS `instance_types`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `instance_types` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`name` varchar(255) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`memory_mb` int(11) NOT NULL, | |
`vcpus` int(11) NOT NULL, | |
`swap` int(11) NOT NULL, | |
`vcpu_weight` int(11) DEFAULT NULL, | |
`flavorid` varchar(255) DEFAULT NULL, | |
`rxtx_factor` float DEFAULT NULL, | |
`root_gb` int(11) DEFAULT NULL, | |
`ephemeral_gb` int(11) DEFAULT NULL, | |
`disabled` tinyint(1) DEFAULT NULL, | |
`is_public` tinyint(1) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `uniq_instance_types0name0deleted` (`name`,`deleted`), | |
UNIQUE KEY `uniq_instance_types0flavorid0deleted` (`flavorid`,`deleted`) | |
) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `instances` | |
-- | |
DROP TABLE IF EXISTS `instances`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `instances` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`internal_id` int(11) DEFAULT NULL, | |
`user_id` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`image_ref` varchar(255) DEFAULT NULL, | |
`kernel_id` varchar(255) DEFAULT NULL, | |
`ramdisk_id` varchar(255) DEFAULT NULL, | |
`launch_index` int(11) DEFAULT NULL, | |
`key_name` varchar(255) DEFAULT NULL, | |
`key_data` text, | |
`power_state` int(11) DEFAULT NULL, | |
`vm_state` varchar(255) DEFAULT NULL, | |
`memory_mb` int(11) DEFAULT NULL, | |
`vcpus` int(11) DEFAULT NULL, | |
`hostname` varchar(255) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`user_data` text, | |
`reservation_id` varchar(255) DEFAULT NULL, | |
`scheduled_at` datetime DEFAULT NULL, | |
`launched_at` datetime DEFAULT NULL, | |
`terminated_at` datetime DEFAULT NULL, | |
`display_name` varchar(255) DEFAULT NULL, | |
`display_description` varchar(255) DEFAULT NULL, | |
`availability_zone` varchar(255) DEFAULT NULL, | |
`locked` tinyint(1) DEFAULT NULL, | |
`os_type` varchar(255) DEFAULT NULL, | |
`launched_on` text, | |
`instance_type_id` int(11) DEFAULT NULL, | |
`vm_mode` varchar(255) DEFAULT NULL, | |
`uuid` varchar(36) DEFAULT NULL, | |
`architecture` varchar(255) DEFAULT NULL, | |
`root_device_name` varchar(255) DEFAULT NULL, | |
`access_ip_v4` varchar(39) DEFAULT NULL, | |
`access_ip_v6` varchar(39) DEFAULT NULL, | |
`config_drive` varchar(255) DEFAULT NULL, | |
`task_state` varchar(255) DEFAULT NULL, | |
`default_ephemeral_device` varchar(255) DEFAULT NULL, | |
`default_swap_device` varchar(255) DEFAULT NULL, | |
`progress` int(11) DEFAULT NULL, | |
`auto_disk_config` tinyint(1) DEFAULT NULL, | |
`shutdown_terminate` tinyint(1) DEFAULT NULL, | |
`disable_terminate` tinyint(1) DEFAULT NULL, | |
`root_gb` int(11) DEFAULT NULL, | |
`ephemeral_gb` int(11) DEFAULT NULL, | |
`cell_name` varchar(255) DEFAULT NULL, | |
`node` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `uuid` (`uuid`), | |
KEY `project_id` (`project_id`), | |
KEY `instances_host_deleted_idx` (`host`), | |
KEY `instances_reservation_id_idx` (`reservation_id`), | |
KEY `instances_terminated_at_launched_at_idx` (`terminated_at`,`launched_at`), | |
KEY `instances_uuid_deleted_idx` (`uuid`), | |
KEY `instances_task_state_updated_at_idx` (`task_state`,`updated_at`), | |
KEY `instances_host_node_deleted_idx` (`host`,`node`) | |
) ENGINE=InnoDB AUTO_INCREMENT=480975 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `iscsi_targets` | |
-- | |
DROP TABLE IF EXISTS `iscsi_targets`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `iscsi_targets` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`target_num` int(11) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`volume_id` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `iscsi_targets_volume_id_fkey` (`volume_id`), | |
KEY `iscsi_targets_host_idx` (`host`), | |
KEY `iscsi_targets_host_volume_id_deleted_idx` (`host`,`volume_id`), | |
CONSTRAINT `iscsi_targets_volume_id_fkey` FOREIGN KEY (`volume_id`) REFERENCES `volumes` (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `key_pairs` | |
-- | |
DROP TABLE IF EXISTS `key_pairs`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `key_pairs` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) DEFAULT NULL, | |
`user_id` varchar(255) DEFAULT NULL, | |
`fingerprint` varchar(255) DEFAULT NULL, | |
`public_key` text, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `uniq_key_pairs0user_id0name0deleted` (`user_id`,`name`,`deleted`) | |
) ENGINE=InnoDB AUTO_INCREMENT=225 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `migrate_version` | |
-- | |
DROP TABLE IF EXISTS `migrate_version`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `migrate_version` ( | |
`repository_id` varchar(250) NOT NULL, | |
`repository_path` text, | |
`version` int(11) DEFAULT NULL, | |
PRIMARY KEY (`repository_id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `migrations` | |
-- | |
DROP TABLE IF EXISTS `migrations`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `migrations` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`source_compute` varchar(255) DEFAULT NULL, | |
`dest_compute` varchar(255) DEFAULT NULL, | |
`dest_host` varchar(255) DEFAULT NULL, | |
`status` varchar(255) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`old_instance_type_id` int(11) DEFAULT NULL, | |
`new_instance_type_id` int(11) DEFAULT NULL, | |
`source_node` varchar(255) DEFAULT NULL, | |
`dest_node` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `migrations_instance_uuid_and_status_idx` (`instance_uuid`,`status`), | |
KEY `migrations_by_host_nodes_and_status_idx` (`source_compute`(100),`dest_compute`(100),`source_node`(100),`dest_node`(100),`status`) | |
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `networks` | |
-- | |
DROP TABLE IF EXISTS `networks`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `networks` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`injected` tinyint(1) DEFAULT NULL, | |
`cidr` varchar(43) DEFAULT NULL, | |
`netmask` varchar(39) DEFAULT NULL, | |
`bridge` varchar(255) DEFAULT NULL, | |
`gateway` varchar(39) DEFAULT NULL, | |
`broadcast` varchar(39) DEFAULT NULL, | |
`dns1` varchar(39) DEFAULT NULL, | |
`vlan` int(11) DEFAULT NULL, | |
`vpn_public_address` varchar(39) DEFAULT NULL, | |
`vpn_public_port` int(11) DEFAULT NULL, | |
`vpn_private_address` varchar(39) DEFAULT NULL, | |
`dhcp_start` varchar(39) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`cidr_v6` varchar(43) DEFAULT NULL, | |
`gateway_v6` varchar(39) DEFAULT NULL, | |
`label` varchar(255) DEFAULT NULL, | |
`netmask_v6` varchar(39) DEFAULT NULL, | |
`bridge_interface` varchar(255) DEFAULT NULL, | |
`multi_host` tinyint(1) DEFAULT NULL, | |
`dns2` varchar(39) DEFAULT NULL, | |
`uuid` varchar(36) DEFAULT NULL, | |
`priority` int(11) DEFAULT NULL, | |
`rxtx_base` int(11) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `uniq_networks0vlan0deleted` (`vlan`,`deleted`), | |
KEY `networks_bridge_deleted_idx` (`bridge`), | |
KEY `networks_host_idx` (`host`), | |
KEY `networks_project_id_deleted_idx` (`project_id`), | |
KEY `networks_uuid_project_id_deleted_idx` (`uuid`,`project_id`), | |
KEY `networks_vlan_deleted_idx` (`vlan`), | |
KEY `networks_cidr_v6_idx` (`cidr_v6`) | |
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Temporary table structure for view `project_usage` | |
-- | |
DROP TABLE IF EXISTS `project_usage`; | |
/*!50001 DROP VIEW IF EXISTS `project_usage`*/; | |
SET @saved_cs_client = @@character_set_client; | |
SET character_set_client = utf8; | |
/*!50001 CREATE TABLE `project_usage` ( | |
`project` tinyint NOT NULL, | |
`instance_hr` tinyint NOT NULL, | |
`vcpu_hr` tinyint NOT NULL, | |
`instances` tinyint NOT NULL | |
) ENGINE=MyISAM */; | |
SET character_set_client = @saved_cs_client; | |
-- | |
-- Table structure for table `provider_fw_rules` | |
-- | |
DROP TABLE IF EXISTS `provider_fw_rules`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `provider_fw_rules` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`protocol` varchar(5) DEFAULT NULL, | |
`from_port` int(11) DEFAULT NULL, | |
`to_port` int(11) DEFAULT NULL, | |
`cidr` varchar(43) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Temporary table structure for view `publicstats` | |
-- | |
DROP TABLE IF EXISTS `publicstats`; | |
/*!50001 DROP VIEW IF EXISTS `publicstats`*/; | |
SET @saved_cs_client = @@character_set_client; | |
SET character_set_client = utf8; | |
/*!50001 CREATE TABLE `publicstats` ( | |
`created_at` tinyint NOT NULL, | |
`updated_at` tinyint NOT NULL, | |
`deleted_at` tinyint NOT NULL, | |
`deleted` tinyint NOT NULL, | |
`id` tinyint NOT NULL, | |
`user_id` tinyint NOT NULL, | |
`project_id` tinyint NOT NULL, | |
`image_ref` tinyint NOT NULL, | |
`power_state` tinyint NOT NULL, | |
`vm_state` tinyint NOT NULL, | |
`memory_mb` tinyint NOT NULL, | |
`vcpus` tinyint NOT NULL, | |
`hostname` tinyint NOT NULL, | |
`host` tinyint NOT NULL, | |
`reservation_id` tinyint NOT NULL, | |
`scheduled_at` tinyint NOT NULL, | |
`launched_at` tinyint NOT NULL, | |
`terminated_at` tinyint NOT NULL, | |
`launched_on` tinyint NOT NULL, | |
`access_ip_v4` tinyint NOT NULL, | |
`progress` tinyint NOT NULL, | |
`shutdown_terminate` tinyint NOT NULL, | |
`root_gb` tinyint NOT NULL, | |
`ephemeral_gb` tinyint NOT NULL | |
) ENGINE=MyISAM */; | |
SET character_set_client = @saved_cs_client; | |
-- | |
-- Table structure for table `quota_classes` | |
-- | |
DROP TABLE IF EXISTS `quota_classes`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `quota_classes` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`class_name` varchar(255) DEFAULT NULL, | |
`resource` varchar(255) DEFAULT NULL, | |
`hard_limit` int(11) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `ix_quota_classes_class_name` (`class_name`) | |
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `quota_usages` | |
-- | |
DROP TABLE IF EXISTS `quota_usages`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `quota_usages` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`project_id` varchar(255) DEFAULT NULL, | |
`resource` varchar(255) DEFAULT NULL, | |
`in_use` int(11) NOT NULL, | |
`reserved` int(11) NOT NULL, | |
`until_refresh` int(11) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `ix_quota_usages_project_id` (`project_id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=151 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `quotas` | |
-- | |
DROP TABLE IF EXISTS `quotas`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `quotas` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`resource` varchar(255) NOT NULL, | |
`hard_limit` int(11) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=245 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `reservations` | |
-- | |
DROP TABLE IF EXISTS `reservations`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `reservations` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`uuid` varchar(36) NOT NULL, | |
`usage_id` int(11) NOT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`resource` varchar(255) DEFAULT NULL, | |
`delta` int(11) NOT NULL, | |
`expire` datetime DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `usage_id` (`usage_id`), | |
KEY `ix_reservations_project_id` (`project_id`), | |
CONSTRAINT `reservations_ibfk_1` FOREIGN KEY (`usage_id`) REFERENCES `quota_usages` (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=168052 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `s3_images` | |
-- | |
DROP TABLE IF EXISTS `s3_images`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `s3_images` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`uuid` varchar(36) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=402 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `security_group_default_rules` | |
-- | |
DROP TABLE IF EXISTS `security_group_default_rules`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `security_group_default_rules` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`protocol` varchar(5) DEFAULT NULL, | |
`from_port` int(11) DEFAULT NULL, | |
`to_port` int(11) DEFAULT NULL, | |
`cidr` varchar(43) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `security_group_instance_association` | |
-- | |
DROP TABLE IF EXISTS `security_group_instance_association`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `security_group_instance_association` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`security_group_id` int(11) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `security_group_id` (`security_group_id`), | |
KEY `security_group_instance_association_instance_uuid_idx` (`instance_uuid`), | |
CONSTRAINT `security_group_instance_association_ibfk_1` FOREIGN KEY (`security_group_id`) REFERENCES `security_groups` (`id`), | |
CONSTRAINT `security_group_instance_association_instance_uuid_fkey` FOREIGN KEY (`instance_uuid`) REFERENCES `instances` (`uuid`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `security_group_rules` | |
-- | |
DROP TABLE IF EXISTS `security_group_rules`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `security_group_rules` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`parent_group_id` int(11) DEFAULT NULL, | |
`protocol` varchar(255) DEFAULT NULL, | |
`from_port` int(11) DEFAULT NULL, | |
`to_port` int(11) DEFAULT NULL, | |
`cidr` varchar(43) DEFAULT NULL, | |
`group_id` int(11) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `parent_group_id` (`parent_group_id`), | |
KEY `group_id` (`group_id`), | |
CONSTRAINT `security_group_rules_ibfk_1` FOREIGN KEY (`parent_group_id`) REFERENCES `security_groups` (`id`), | |
CONSTRAINT `security_group_rules_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `security_groups` (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=193 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `security_groups` | |
-- | |
DROP TABLE IF EXISTS `security_groups`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `security_groups` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) DEFAULT NULL, | |
`description` varchar(255) DEFAULT NULL, | |
`user_id` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `services` | |
-- | |
DROP TABLE IF EXISTS `services`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `services` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`host` varchar(255) DEFAULT NULL, | |
`binary` varchar(255) DEFAULT NULL, | |
`topic` varchar(255) DEFAULT NULL, | |
`report_count` int(11) NOT NULL, | |
`disabled` tinyint(1) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=135 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Temporary table structure for view `shaddow_usage` | |
-- | |
DROP TABLE IF EXISTS `shaddow_usage`; | |
/*!50001 DROP VIEW IF EXISTS `shaddow_usage`*/; | |
SET @saved_cs_client = @@character_set_client; | |
SET character_set_client = utf8; | |
/*!50001 CREATE TABLE `shaddow_usage` ( | |
`project` tinyint NOT NULL, | |
`instance_hr` tinyint NOT NULL, | |
`vcpu_hr` tinyint NOT NULL, | |
`instances` tinyint NOT NULL | |
) ENGINE=MyISAM */; | |
SET character_set_client = @saved_cs_client; | |
-- | |
-- Table structure for table `shadow_agent_builds` | |
-- | |
DROP TABLE IF EXISTS `shadow_agent_builds`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_agent_builds` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`hypervisor` varchar(255) DEFAULT NULL, | |
`os` varchar(255) DEFAULT NULL, | |
`architecture` varchar(255) DEFAULT NULL, | |
`version` varchar(255) DEFAULT NULL, | |
`url` varchar(255) DEFAULT NULL, | |
`md5hash` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_aggregate_hosts` | |
-- | |
DROP TABLE IF EXISTS `shadow_aggregate_hosts`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_aggregate_hosts` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`host` varchar(255) DEFAULT NULL, | |
`aggregate_id` int(11) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_aggregate_metadata` | |
-- | |
DROP TABLE IF EXISTS `shadow_aggregate_metadata`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_aggregate_metadata` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`aggregate_id` int(11) NOT NULL, | |
`key` varchar(255) NOT NULL, | |
`value` varchar(255) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_aggregates` | |
-- | |
DROP TABLE IF EXISTS `shadow_aggregates`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_aggregates` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_block_device_mapping` | |
-- | |
DROP TABLE IF EXISTS `shadow_block_device_mapping`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_block_device_mapping` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`device_name` varchar(255) NOT NULL, | |
`delete_on_termination` tinyint(1) DEFAULT NULL, | |
`virtual_name` varchar(255) DEFAULT NULL, | |
`snapshot_id` varchar(36) DEFAULT NULL, | |
`volume_id` varchar(36) DEFAULT NULL, | |
`volume_size` int(11) DEFAULT NULL, | |
`no_device` tinyint(1) DEFAULT NULL, | |
`connection_info` text, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=114 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_bw_usage_cache` | |
-- | |
DROP TABLE IF EXISTS `shadow_bw_usage_cache`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_bw_usage_cache` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`start_period` datetime NOT NULL, | |
`last_refreshed` datetime DEFAULT NULL, | |
`bw_in` bigint(20) DEFAULT NULL, | |
`bw_out` bigint(20) DEFAULT NULL, | |
`mac` varchar(255) DEFAULT NULL, | |
`uuid` varchar(36) DEFAULT NULL, | |
`last_ctr_in` bigint(20) DEFAULT NULL, | |
`last_ctr_out` bigint(20) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_cells` | |
-- | |
DROP TABLE IF EXISTS `shadow_cells`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_cells` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`api_url` varchar(255) DEFAULT NULL, | |
`username` varchar(255) DEFAULT NULL, | |
`password` varchar(255) DEFAULT NULL, | |
`weight_offset` float DEFAULT NULL, | |
`weight_scale` float DEFAULT NULL, | |
`name` varchar(255) DEFAULT NULL, | |
`is_parent` tinyint(1) DEFAULT NULL, | |
`rpc_host` varchar(255) DEFAULT NULL, | |
`rpc_port` int(11) DEFAULT NULL, | |
`rpc_virtual_host` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_certificates` | |
-- | |
DROP TABLE IF EXISTS `shadow_certificates`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_certificates` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`user_id` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`file_name` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_compute_node_stats` | |
-- | |
DROP TABLE IF EXISTS `shadow_compute_node_stats`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_compute_node_stats` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`compute_node_id` int(11) NOT NULL, | |
`key` varchar(255) NOT NULL, | |
`value` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=534368 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_compute_nodes` | |
-- | |
DROP TABLE IF EXISTS `shadow_compute_nodes`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_compute_nodes` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`service_id` int(11) NOT NULL, | |
`vcpus` int(11) NOT NULL, | |
`memory_mb` int(11) NOT NULL, | |
`local_gb` int(11) NOT NULL, | |
`vcpus_used` int(11) NOT NULL, | |
`memory_mb_used` int(11) NOT NULL, | |
`local_gb_used` int(11) NOT NULL, | |
`hypervisor_type` text NOT NULL, | |
`hypervisor_version` int(11) NOT NULL, | |
`cpu_info` text NOT NULL, | |
`disk_available_least` int(11) DEFAULT NULL, | |
`free_ram_mb` int(11) DEFAULT NULL, | |
`free_disk_gb` int(11) DEFAULT NULL, | |
`current_workload` int(11) DEFAULT NULL, | |
`running_vms` int(11) DEFAULT NULL, | |
`hypervisor_hostname` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_console_pools` | |
-- | |
DROP TABLE IF EXISTS `shadow_console_pools`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_console_pools` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`address` varchar(39) DEFAULT NULL, | |
`username` varchar(255) DEFAULT NULL, | |
`password` varchar(255) DEFAULT NULL, | |
`console_type` varchar(255) DEFAULT NULL, | |
`public_hostname` varchar(255) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`compute_host` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_consoles` | |
-- | |
DROP TABLE IF EXISTS `shadow_consoles`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_consoles` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`instance_name` varchar(255) DEFAULT NULL, | |
`password` varchar(255) DEFAULT NULL, | |
`port` int(11) DEFAULT NULL, | |
`pool_id` int(11) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_dns_domains` | |
-- | |
DROP TABLE IF EXISTS `shadow_dns_domains`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_dns_domains` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`domain` varchar(255) NOT NULL, | |
`scope` varchar(255) DEFAULT NULL, | |
`availability_zone` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`domain`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_fixed_ips` | |
-- | |
DROP TABLE IF EXISTS `shadow_fixed_ips`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_fixed_ips` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`address` varchar(39) DEFAULT NULL, | |
`network_id` int(11) DEFAULT NULL, | |
`allocated` tinyint(1) DEFAULT NULL, | |
`leased` tinyint(1) DEFAULT NULL, | |
`reserved` tinyint(1) DEFAULT NULL, | |
`virtual_interface_id` int(11) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_floating_ips` | |
-- | |
DROP TABLE IF EXISTS `shadow_floating_ips`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_floating_ips` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`address` varchar(39) DEFAULT NULL, | |
`fixed_ip_id` int(11) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`auto_assigned` tinyint(1) DEFAULT NULL, | |
`pool` varchar(255) DEFAULT NULL, | |
`interface` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_instance_actions` | |
-- | |
DROP TABLE IF EXISTS `shadow_instance_actions`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_instance_actions` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`action` varchar(255) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`request_id` varchar(255) DEFAULT NULL, | |
`user_id` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`start_time` datetime DEFAULT NULL, | |
`finish_time` datetime DEFAULT NULL, | |
`message` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_instance_actions_events` | |
-- | |
DROP TABLE IF EXISTS `shadow_instance_actions_events`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_instance_actions_events` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`event` varchar(255) DEFAULT NULL, | |
`action_id` int(11) DEFAULT NULL, | |
`start_time` datetime DEFAULT NULL, | |
`finish_time` datetime DEFAULT NULL, | |
`result` varchar(255) DEFAULT NULL, | |
`traceback` text, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_instance_faults` | |
-- | |
DROP TABLE IF EXISTS `shadow_instance_faults`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_instance_faults` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`code` int(11) NOT NULL, | |
`message` varchar(255) DEFAULT NULL, | |
`details` text, | |
`host` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=140784 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_instance_id_mappings` | |
-- | |
DROP TABLE IF EXISTS `shadow_instance_id_mappings`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_instance_id_mappings` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`uuid` varchar(36) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_instance_info_caches` | |
-- | |
DROP TABLE IF EXISTS `shadow_instance_info_caches`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_instance_info_caches` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`network_info` text, | |
`instance_uuid` varchar(36) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=447202 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_instance_metadata` | |
-- | |
DROP TABLE IF EXISTS `shadow_instance_metadata`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_instance_metadata` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`key` varchar(255) DEFAULT NULL, | |
`value` varchar(255) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_instance_system_metadata` | |
-- | |
DROP TABLE IF EXISTS `shadow_instance_system_metadata`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_instance_system_metadata` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`instance_uuid` varchar(36) NOT NULL, | |
`key` varchar(255) NOT NULL, | |
`value` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_instance_type_extra_specs` | |
-- | |
DROP TABLE IF EXISTS `shadow_instance_type_extra_specs`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_instance_type_extra_specs` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`instance_type_id` int(11) NOT NULL, | |
`key` varchar(255) DEFAULT NULL, | |
`value` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_instance_type_projects` | |
-- | |
DROP TABLE IF EXISTS `shadow_instance_type_projects`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_instance_type_projects` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`instance_type_id` int(11) NOT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_instance_types` | |
-- | |
DROP TABLE IF EXISTS `shadow_instance_types`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_instance_types` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`name` varchar(255) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`memory_mb` int(11) NOT NULL, | |
`vcpus` int(11) NOT NULL, | |
`swap` int(11) NOT NULL, | |
`vcpu_weight` int(11) DEFAULT NULL, | |
`flavorid` varchar(255) DEFAULT NULL, | |
`rxtx_factor` float DEFAULT NULL, | |
`root_gb` int(11) DEFAULT NULL, | |
`ephemeral_gb` int(11) DEFAULT NULL, | |
`disabled` tinyint(1) DEFAULT NULL, | |
`is_public` tinyint(1) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_instances` | |
-- | |
DROP TABLE IF EXISTS `shadow_instances`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_instances` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`internal_id` int(11) DEFAULT NULL, | |
`user_id` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`image_ref` varchar(255) DEFAULT NULL, | |
`kernel_id` varchar(255) DEFAULT NULL, | |
`ramdisk_id` varchar(255) DEFAULT NULL, | |
`launch_index` int(11) DEFAULT NULL, | |
`key_name` varchar(255) DEFAULT NULL, | |
`key_data` text, | |
`power_state` int(11) DEFAULT NULL, | |
`vm_state` varchar(255) DEFAULT NULL, | |
`memory_mb` int(11) DEFAULT NULL, | |
`vcpus` int(11) DEFAULT NULL, | |
`hostname` varchar(255) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`user_data` text, | |
`reservation_id` varchar(255) DEFAULT NULL, | |
`scheduled_at` datetime DEFAULT NULL, | |
`launched_at` datetime DEFAULT NULL, | |
`terminated_at` datetime DEFAULT NULL, | |
`display_name` varchar(255) DEFAULT NULL, | |
`display_description` varchar(255) DEFAULT NULL, | |
`availability_zone` varchar(255) DEFAULT NULL, | |
`locked` tinyint(1) DEFAULT NULL, | |
`os_type` varchar(255) DEFAULT NULL, | |
`launched_on` text, | |
`instance_type_id` int(11) DEFAULT NULL, | |
`vm_mode` varchar(255) DEFAULT NULL, | |
`uuid` varchar(36) DEFAULT NULL, | |
`architecture` varchar(255) DEFAULT NULL, | |
`root_device_name` varchar(255) DEFAULT NULL, | |
`access_ip_v4` varchar(39) DEFAULT NULL, | |
`access_ip_v6` varchar(39) DEFAULT NULL, | |
`config_drive` varchar(255) DEFAULT NULL, | |
`task_state` varchar(255) DEFAULT NULL, | |
`default_ephemeral_device` varchar(255) DEFAULT NULL, | |
`default_swap_device` varchar(255) DEFAULT NULL, | |
`progress` int(11) DEFAULT NULL, | |
`auto_disk_config` tinyint(1) DEFAULT NULL, | |
`shutdown_terminate` tinyint(1) DEFAULT NULL, | |
`disable_terminate` tinyint(1) DEFAULT NULL, | |
`root_gb` int(11) DEFAULT NULL, | |
`ephemeral_gb` int(11) DEFAULT NULL, | |
`cell_name` varchar(255) DEFAULT NULL, | |
`node` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=447202 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_iscsi_targets` | |
-- | |
DROP TABLE IF EXISTS `shadow_iscsi_targets`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_iscsi_targets` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`target_num` int(11) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`volume_id` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_key_pairs` | |
-- | |
DROP TABLE IF EXISTS `shadow_key_pairs`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_key_pairs` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) DEFAULT NULL, | |
`user_id` varchar(255) DEFAULT NULL, | |
`fingerprint` varchar(255) DEFAULT NULL, | |
`public_key` text, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=152 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_migrate_version` | |
-- | |
DROP TABLE IF EXISTS `shadow_migrate_version`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_migrate_version` ( | |
`repository_id` varchar(250) NOT NULL, | |
`repository_path` text, | |
`version` int(11) DEFAULT NULL, | |
PRIMARY KEY (`repository_id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_migrations` | |
-- | |
DROP TABLE IF EXISTS `shadow_migrations`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_migrations` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`source_compute` varchar(255) DEFAULT NULL, | |
`dest_compute` varchar(255) DEFAULT NULL, | |
`dest_host` varchar(255) DEFAULT NULL, | |
`status` varchar(255) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`old_instance_type_id` int(11) DEFAULT NULL, | |
`new_instance_type_id` int(11) DEFAULT NULL, | |
`source_node` varchar(255) DEFAULT NULL, | |
`dest_node` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_networks` | |
-- | |
DROP TABLE IF EXISTS `shadow_networks`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_networks` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`injected` tinyint(1) DEFAULT NULL, | |
`cidr` varchar(43) DEFAULT NULL, | |
`netmask` varchar(39) DEFAULT NULL, | |
`bridge` varchar(255) DEFAULT NULL, | |
`gateway` varchar(39) DEFAULT NULL, | |
`broadcast` varchar(39) DEFAULT NULL, | |
`dns1` varchar(39) DEFAULT NULL, | |
`vlan` int(11) DEFAULT NULL, | |
`vpn_public_address` varchar(39) DEFAULT NULL, | |
`vpn_public_port` int(11) DEFAULT NULL, | |
`vpn_private_address` varchar(39) DEFAULT NULL, | |
`dhcp_start` varchar(39) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`cidr_v6` varchar(43) DEFAULT NULL, | |
`gateway_v6` varchar(39) DEFAULT NULL, | |
`label` varchar(255) DEFAULT NULL, | |
`netmask_v6` varchar(39) DEFAULT NULL, | |
`bridge_interface` varchar(255) DEFAULT NULL, | |
`multi_host` tinyint(1) DEFAULT NULL, | |
`dns2` varchar(39) DEFAULT NULL, | |
`uuid` varchar(36) DEFAULT NULL, | |
`priority` int(11) DEFAULT NULL, | |
`rxtx_base` int(11) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_provider_fw_rules` | |
-- | |
DROP TABLE IF EXISTS `shadow_provider_fw_rules`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_provider_fw_rules` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`protocol` varchar(5) DEFAULT NULL, | |
`from_port` int(11) DEFAULT NULL, | |
`to_port` int(11) DEFAULT NULL, | |
`cidr` varchar(43) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_quota_classes` | |
-- | |
DROP TABLE IF EXISTS `shadow_quota_classes`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_quota_classes` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`class_name` varchar(255) DEFAULT NULL, | |
`resource` varchar(255) DEFAULT NULL, | |
`hard_limit` int(11) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_quota_usages` | |
-- | |
DROP TABLE IF EXISTS `shadow_quota_usages`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_quota_usages` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`project_id` varchar(255) DEFAULT NULL, | |
`resource` varchar(255) DEFAULT NULL, | |
`in_use` int(11) NOT NULL, | |
`reserved` int(11) NOT NULL, | |
`until_refresh` int(11) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_quotas` | |
-- | |
DROP TABLE IF EXISTS `shadow_quotas`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_quotas` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`resource` varchar(255) NOT NULL, | |
`hard_limit` int(11) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_reservations` | |
-- | |
DROP TABLE IF EXISTS `shadow_reservations`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_reservations` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`uuid` varchar(36) NOT NULL, | |
`usage_id` int(11) NOT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`resource` varchar(255) DEFAULT NULL, | |
`delta` int(11) NOT NULL, | |
`expire` datetime DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=1177 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_s3_images` | |
-- | |
DROP TABLE IF EXISTS `shadow_s3_images`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_s3_images` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`uuid` varchar(36) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_security_group_default_rules` | |
-- | |
DROP TABLE IF EXISTS `shadow_security_group_default_rules`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_security_group_default_rules` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`protocol` varchar(5) DEFAULT NULL, | |
`from_port` int(11) DEFAULT NULL, | |
`to_port` int(11) DEFAULT NULL, | |
`cidr` varchar(43) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_security_group_instance_association` | |
-- | |
DROP TABLE IF EXISTS `shadow_security_group_instance_association`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_security_group_instance_association` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`security_group_id` int(11) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_security_group_rules` | |
-- | |
DROP TABLE IF EXISTS `shadow_security_group_rules`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_security_group_rules` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`parent_group_id` int(11) DEFAULT NULL, | |
`protocol` varchar(255) DEFAULT NULL, | |
`from_port` int(11) DEFAULT NULL, | |
`to_port` int(11) DEFAULT NULL, | |
`cidr` varchar(43) DEFAULT NULL, | |
`group_id` int(11) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=188 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_security_groups` | |
-- | |
DROP TABLE IF EXISTS `shadow_security_groups`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_security_groups` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) DEFAULT NULL, | |
`description` varchar(255) DEFAULT NULL, | |
`user_id` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_services` | |
-- | |
DROP TABLE IF EXISTS `shadow_services`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_services` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`host` varchar(255) DEFAULT NULL, | |
`binary` varchar(255) DEFAULT NULL, | |
`topic` varchar(255) DEFAULT NULL, | |
`report_count` int(11) NOT NULL, | |
`disabled` tinyint(1) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_sm_backend_config` | |
-- | |
DROP TABLE IF EXISTS `shadow_sm_backend_config`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_sm_backend_config` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`flavor_id` int(11) NOT NULL, | |
`sr_uuid` varchar(255) DEFAULT NULL, | |
`sr_type` varchar(255) DEFAULT NULL, | |
`config_params` varchar(2047) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_sm_flavors` | |
-- | |
DROP TABLE IF EXISTS `shadow_sm_flavors`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_sm_flavors` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`label` varchar(255) DEFAULT NULL, | |
`description` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_sm_volume` | |
-- | |
DROP TABLE IF EXISTS `shadow_sm_volume`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_sm_volume` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` varchar(36) NOT NULL, | |
`backend_id` int(11) NOT NULL, | |
`vdi_uuid` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_snapshot_id_mappings` | |
-- | |
DROP TABLE IF EXISTS `shadow_snapshot_id_mappings`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_snapshot_id_mappings` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`uuid` varchar(36) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_snapshots` | |
-- | |
DROP TABLE IF EXISTS `shadow_snapshots`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_snapshots` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` varchar(36) NOT NULL, | |
`volume_id` varchar(36) NOT NULL, | |
`user_id` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`status` varchar(255) DEFAULT NULL, | |
`progress` varchar(255) DEFAULT NULL, | |
`volume_size` int(11) DEFAULT NULL, | |
`scheduled_at` datetime DEFAULT NULL, | |
`display_name` varchar(255) DEFAULT NULL, | |
`display_description` varchar(255) DEFAULT NULL, | |
`deleted` varchar(36) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_task_log` | |
-- | |
DROP TABLE IF EXISTS `shadow_task_log`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_task_log` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`task_name` varchar(255) NOT NULL, | |
`state` varchar(255) NOT NULL, | |
`host` varchar(255) NOT NULL, | |
`period_beginning` datetime NOT NULL, | |
`period_ending` datetime NOT NULL, | |
`message` varchar(255) NOT NULL, | |
`task_items` int(11) DEFAULT NULL, | |
`errors` int(11) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Temporary table structure for view `shadow_usage` | |
-- | |
DROP TABLE IF EXISTS `shadow_usage`; | |
/*!50001 DROP VIEW IF EXISTS `shadow_usage`*/; | |
SET @saved_cs_client = @@character_set_client; | |
SET character_set_client = utf8; | |
/*!50001 CREATE TABLE `shadow_usage` ( | |
`project` tinyint NOT NULL, | |
`instance_hr` tinyint NOT NULL, | |
`vcpu_hr` tinyint NOT NULL, | |
`instances` tinyint NOT NULL | |
) ENGINE=MyISAM */; | |
SET character_set_client = @saved_cs_client; | |
-- | |
-- Table structure for table `shadow_virtual_interfaces` | |
-- | |
DROP TABLE IF EXISTS `shadow_virtual_interfaces`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_virtual_interfaces` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`address` varchar(255) DEFAULT NULL, | |
`network_id` int(11) DEFAULT NULL, | |
`uuid` varchar(36) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=414142 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_virtual_storage_arrays` | |
-- | |
DROP TABLE IF EXISTS `shadow_virtual_storage_arrays`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_virtual_storage_arrays` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`display_name` varchar(255) DEFAULT NULL, | |
`display_description` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`availability_zone` varchar(255) DEFAULT NULL, | |
`instance_type_id` int(11) NOT NULL, | |
`image_ref` varchar(255) DEFAULT NULL, | |
`vc_count` int(11) NOT NULL, | |
`vol_count` int(11) NOT NULL, | |
`status` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_volume_id_mappings` | |
-- | |
DROP TABLE IF EXISTS `shadow_volume_id_mappings`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_volume_id_mappings` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`uuid` varchar(36) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_volume_metadata` | |
-- | |
DROP TABLE IF EXISTS `shadow_volume_metadata`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_volume_metadata` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`volume_id` varchar(36) NOT NULL, | |
`key` varchar(255) DEFAULT NULL, | |
`value` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_volume_type_extra_specs` | |
-- | |
DROP TABLE IF EXISTS `shadow_volume_type_extra_specs`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_volume_type_extra_specs` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`volume_type_id` int(11) NOT NULL, | |
`key` varchar(255) DEFAULT NULL, | |
`value` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_volume_types` | |
-- | |
DROP TABLE IF EXISTS `shadow_volume_types`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_volume_types` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_volume_usage_cache` | |
-- | |
DROP TABLE IF EXISTS `shadow_volume_usage_cache`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_volume_usage_cache` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`volume_id` varchar(36) NOT NULL, | |
`tot_last_refreshed` datetime DEFAULT NULL, | |
`tot_reads` bigint(20) DEFAULT NULL, | |
`tot_read_bytes` bigint(20) DEFAULT NULL, | |
`tot_writes` bigint(20) DEFAULT NULL, | |
`tot_write_bytes` bigint(20) DEFAULT NULL, | |
`curr_last_refreshed` datetime DEFAULT NULL, | |
`curr_reads` bigint(20) DEFAULT NULL, | |
`curr_read_bytes` bigint(20) DEFAULT NULL, | |
`curr_writes` bigint(20) DEFAULT NULL, | |
`curr_write_bytes` bigint(20) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`project_id` varchar(36) DEFAULT NULL, | |
`user_id` varchar(36) DEFAULT NULL, | |
`availability_zone` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `shadow_volumes` | |
-- | |
DROP TABLE IF EXISTS `shadow_volumes`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `shadow_volumes` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` varchar(36) NOT NULL, | |
`ec2_id` varchar(255) DEFAULT NULL, | |
`user_id` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`size` int(11) DEFAULT NULL, | |
`availability_zone` varchar(255) DEFAULT NULL, | |
`mountpoint` varchar(255) DEFAULT NULL, | |
`status` varchar(255) DEFAULT NULL, | |
`attach_status` varchar(255) DEFAULT NULL, | |
`scheduled_at` datetime DEFAULT NULL, | |
`launched_at` datetime DEFAULT NULL, | |
`terminated_at` datetime DEFAULT NULL, | |
`display_name` varchar(255) DEFAULT NULL, | |
`display_description` varchar(255) DEFAULT NULL, | |
`provider_location` varchar(256) DEFAULT NULL, | |
`provider_auth` varchar(256) DEFAULT NULL, | |
`snapshot_id` varchar(36) DEFAULT NULL, | |
`volume_type_id` int(11) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`attach_time` datetime DEFAULT NULL, | |
`deleted` varchar(36) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `sm_backend_config` | |
-- | |
DROP TABLE IF EXISTS `sm_backend_config`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `sm_backend_config` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`flavor_id` int(11) NOT NULL, | |
`sr_uuid` varchar(255) DEFAULT NULL, | |
`sr_type` varchar(255) DEFAULT NULL, | |
`config_params` varchar(2047) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `flavor_id` (`flavor_id`), | |
CONSTRAINT `sm_backend_config_ibfk_1` FOREIGN KEY (`flavor_id`) REFERENCES `sm_flavors` (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `sm_flavors` | |
-- | |
DROP TABLE IF EXISTS `sm_flavors`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `sm_flavors` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`label` varchar(255) DEFAULT NULL, | |
`description` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `sm_volume` | |
-- | |
DROP TABLE IF EXISTS `sm_volume`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `sm_volume` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` varchar(36) NOT NULL, | |
`backend_id` int(11) NOT NULL, | |
`vdi_uuid` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `backend_id` (`backend_id`), | |
CONSTRAINT `sm_volume_ibfk_2` FOREIGN KEY (`backend_id`) REFERENCES `sm_backend_config` (`id`), | |
CONSTRAINT `sm_volume_id_fkey` FOREIGN KEY (`id`) REFERENCES `volumes` (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `snapshot_id_mappings` | |
-- | |
DROP TABLE IF EXISTS `snapshot_id_mappings`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `snapshot_id_mappings` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`uuid` varchar(36) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `snapshots` | |
-- | |
DROP TABLE IF EXISTS `snapshots`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `snapshots` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` varchar(36) NOT NULL, | |
`volume_id` varchar(36) NOT NULL, | |
`user_id` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`status` varchar(255) DEFAULT NULL, | |
`progress` varchar(255) DEFAULT NULL, | |
`volume_size` int(11) DEFAULT NULL, | |
`scheduled_at` datetime DEFAULT NULL, | |
`display_name` varchar(255) DEFAULT NULL, | |
`display_description` varchar(255) DEFAULT NULL, | |
`deleted` varchar(36) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `task_log` | |
-- | |
DROP TABLE IF EXISTS `task_log`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `task_log` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`task_name` varchar(255) NOT NULL, | |
`state` varchar(255) NOT NULL, | |
`host` varchar(255) NOT NULL, | |
`period_beginning` datetime NOT NULL, | |
`period_ending` datetime NOT NULL, | |
`message` varchar(255) NOT NULL, | |
`task_items` int(11) DEFAULT NULL, | |
`errors` int(11) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `uniq_task_log0task_name0host0period_beginning0period_ending` (`task_name`,`host`,`period_beginning`,`period_ending`), | |
KEY `ix_task_log_host` (`host`), | |
KEY `ix_task_log_period_ending` (`period_ending`), | |
KEY `ix_task_log_period_beginning` (`period_beginning`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `virtual_interfaces` | |
-- | |
DROP TABLE IF EXISTS `virtual_interfaces`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `virtual_interfaces` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`address` varchar(255) DEFAULT NULL, | |
`network_id` int(11) DEFAULT NULL, | |
`uuid` varchar(36) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `address` (`address`), | |
UNIQUE KEY `uniq_virtual_interfaces0address` (`address`), | |
KEY `network_id` (`network_id`), | |
KEY `virtual_interfaces_instance_uuid_fkey` (`instance_uuid`), | |
CONSTRAINT `virtual_interfaces_instance_uuid_fkey` FOREIGN KEY (`instance_uuid`) REFERENCES `instances` (`uuid`) | |
) ENGINE=InnoDB AUTO_INCREMENT=414195 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `virtual_storage_arrays` | |
-- | |
DROP TABLE IF EXISTS `virtual_storage_arrays`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `virtual_storage_arrays` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`display_name` varchar(255) DEFAULT NULL, | |
`display_description` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`availability_zone` varchar(255) DEFAULT NULL, | |
`instance_type_id` int(11) NOT NULL, | |
`image_ref` varchar(255) DEFAULT NULL, | |
`vc_count` int(11) NOT NULL, | |
`vol_count` int(11) NOT NULL, | |
`status` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `volume_id_mappings` | |
-- | |
DROP TABLE IF EXISTS `volume_id_mappings`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `volume_id_mappings` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`uuid` varchar(36) NOT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `volume_metadata` | |
-- | |
DROP TABLE IF EXISTS `volume_metadata`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `volume_metadata` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`volume_id` varchar(36) NOT NULL, | |
`key` varchar(255) DEFAULT NULL, | |
`value` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `volume_metadata_volume_id_fkey` (`volume_id`), | |
CONSTRAINT `volume_metadata_volume_id_fkey` FOREIGN KEY (`volume_id`) REFERENCES `volumes` (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `volume_type_extra_specs` | |
-- | |
DROP TABLE IF EXISTS `volume_type_extra_specs`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `volume_type_extra_specs` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`volume_type_id` int(11) NOT NULL, | |
`key` varchar(255) DEFAULT NULL, | |
`value` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `volume_type_id` (`volume_type_id`), | |
CONSTRAINT `volume_type_extra_specs_ibfk_1` FOREIGN KEY (`volume_type_id`) REFERENCES `volume_types` (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `volume_types` | |
-- | |
DROP TABLE IF EXISTS `volume_types`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `volume_types` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`deleted` tinyint(1) DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `volume_usage_cache` | |
-- | |
DROP TABLE IF EXISTS `volume_usage_cache`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `volume_usage_cache` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`volume_id` varchar(36) NOT NULL, | |
`tot_last_refreshed` datetime DEFAULT NULL, | |
`tot_reads` bigint(20) DEFAULT NULL, | |
`tot_read_bytes` bigint(20) DEFAULT NULL, | |
`tot_writes` bigint(20) DEFAULT NULL, | |
`tot_write_bytes` bigint(20) DEFAULT NULL, | |
`curr_last_refreshed` datetime DEFAULT NULL, | |
`curr_reads` bigint(20) DEFAULT NULL, | |
`curr_read_bytes` bigint(20) DEFAULT NULL, | |
`curr_writes` bigint(20) DEFAULT NULL, | |
`curr_write_bytes` bigint(20) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`project_id` varchar(36) DEFAULT NULL, | |
`user_id` varchar(36) DEFAULT NULL, | |
`availability_zone` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `volumes` | |
-- | |
DROP TABLE IF EXISTS `volumes`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `volumes` ( | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
`deleted_at` datetime DEFAULT NULL, | |
`id` varchar(36) NOT NULL, | |
`ec2_id` varchar(255) DEFAULT NULL, | |
`user_id` varchar(255) DEFAULT NULL, | |
`project_id` varchar(255) DEFAULT NULL, | |
`host` varchar(255) DEFAULT NULL, | |
`size` int(11) DEFAULT NULL, | |
`availability_zone` varchar(255) DEFAULT NULL, | |
`mountpoint` varchar(255) DEFAULT NULL, | |
`status` varchar(255) DEFAULT NULL, | |
`attach_status` varchar(255) DEFAULT NULL, | |
`scheduled_at` datetime DEFAULT NULL, | |
`launched_at` datetime DEFAULT NULL, | |
`terminated_at` datetime DEFAULT NULL, | |
`display_name` varchar(255) DEFAULT NULL, | |
`display_description` varchar(255) DEFAULT NULL, | |
`provider_location` varchar(256) DEFAULT NULL, | |
`provider_auth` varchar(256) DEFAULT NULL, | |
`snapshot_id` varchar(36) DEFAULT NULL, | |
`volume_type_id` int(11) DEFAULT NULL, | |
`instance_uuid` varchar(36) DEFAULT NULL, | |
`attach_time` datetime DEFAULT NULL, | |
`deleted` varchar(36) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `volumes_instance_uuid_idx` (`instance_uuid`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Final view structure for view `project_usage` | |
-- | |
/*!50001 DROP TABLE IF EXISTS `project_usage`*/; | |
/*!50001 DROP VIEW IF EXISTS `project_usage`*/; | |
/*!50001 SET @saved_cs_client = @@character_set_client */; | |
/*!50001 SET @saved_cs_results = @@character_set_results */; | |
/*!50001 SET @saved_col_connection = @@collation_connection */; | |
/*!50001 SET character_set_client = utf8 */; | |
/*!50001 SET character_set_results = utf8 */; | |
/*!50001 SET collation_connection = utf8_general_ci */; | |
/*!50001 CREATE ALGORITHM=UNDEFINED */ | |
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ | |
/*!50001 VIEW `project_usage` AS select `keystone`.`project`.`name` AS `project`,(sum(time_to_sec(timediff((case when isnull(`nova`.`instances`.`deleted_at`) then now() else `nova`.`instances`.`deleted_at` end),`nova`.`instances`.`created_at`))) / 3600) AS `instance_hr`,((sum(time_to_sec(timediff((case when isnull(`nova`.`instances`.`deleted_at`) then now() else `nova`.`instances`.`deleted_at` end),`nova`.`instances`.`created_at`))) / 3600) * avg(`nova`.`instances`.`vcpus`)) AS `vcpu_hr`,count(`nova`.`instances`.`id`) AS `instances` from (`nova`.`instances` left join `keystone`.`project` on((`nova`.`instances`.`project_id` = `keystone`.`project`.`id`))) group by `keystone`.`project`.`name` order by ((sum(time_to_sec(timediff((case when isnull(`nova`.`instances`.`deleted_at`) then now() else `nova`.`instances`.`deleted_at` end),`nova`.`instances`.`created_at`))) / 3600) * avg(`nova`.`instances`.`vcpus`)) desc */; | |
/*!50001 SET character_set_client = @saved_cs_client */; | |
/*!50001 SET character_set_results = @saved_cs_results */; | |
/*!50001 SET collation_connection = @saved_col_connection */; | |
-- | |
-- Final view structure for view `publicstats` | |
-- | |
/*!50001 DROP TABLE IF EXISTS `publicstats`*/; | |
/*!50001 DROP VIEW IF EXISTS `publicstats`*/; | |
/*!50001 SET @saved_cs_client = @@character_set_client */; | |
/*!50001 SET @saved_cs_results = @@character_set_results */; | |
/*!50001 SET @saved_col_connection = @@collation_connection */; | |
/*!50001 SET character_set_client = utf8 */; | |
/*!50001 SET character_set_results = utf8 */; | |
/*!50001 SET collation_connection = utf8_general_ci */; | |
/*!50001 CREATE ALGORITHM=UNDEFINED */ | |
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ | |
/*!50001 VIEW `publicstats` AS select `instances`.`created_at` AS `created_at`,`instances`.`updated_at` AS `updated_at`,`instances`.`deleted_at` AS `deleted_at`,`instances`.`deleted` AS `deleted`,`instances`.`id` AS `id`,`instances`.`user_id` AS `user_id`,`instances`.`project_id` AS `project_id`,`instances`.`image_ref` AS `image_ref`,`instances`.`power_state` AS `power_state`,`instances`.`vm_state` AS `vm_state`,`instances`.`memory_mb` AS `memory_mb`,`instances`.`vcpus` AS `vcpus`,`instances`.`hostname` AS `hostname`,`instances`.`host` AS `host`,`instances`.`reservation_id` AS `reservation_id`,`instances`.`scheduled_at` AS `scheduled_at`,`instances`.`launched_at` AS `launched_at`,`instances`.`terminated_at` AS `terminated_at`,`instances`.`launched_on` AS `launched_on`,`instances`.`access_ip_v4` AS `access_ip_v4`,`instances`.`progress` AS `progress`,`instances`.`shutdown_terminate` AS `shutdown_terminate`,`instances`.`root_gb` AS `root_gb`,`instances`.`ephemeral_gb` AS `ephemeral_gb` from `instances` */; | |
/*!50001 SET character_set_client = @saved_cs_client */; | |
/*!50001 SET character_set_results = @saved_cs_results */; | |
/*!50001 SET collation_connection = @saved_col_connection */; | |
-- | |
-- Final view structure for view `shaddow_usage` | |
-- | |
/*!50001 DROP TABLE IF EXISTS `shaddow_usage`*/; | |
/*!50001 DROP VIEW IF EXISTS `shaddow_usage`*/; | |
/*!50001 SET @saved_cs_client = @@character_set_client */; | |
/*!50001 SET @saved_cs_results = @@character_set_results */; | |
/*!50001 SET @saved_col_connection = @@collation_connection */; | |
/*!50001 SET character_set_client = utf8 */; | |
/*!50001 SET character_set_results = utf8 */; | |
/*!50001 SET collation_connection = utf8_general_ci */; | |
/*!50001 CREATE ALGORITHM=UNDEFINED */ | |
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ | |
/*!50001 VIEW `shaddow_usage` AS select `keystone`.`project`.`name` AS `project`,(sum(time_to_sec(timediff((case when isnull(`instances`.`deleted_at`) then now() else `instances`.`deleted_at` end),`instances`.`created_at`))) / 3600) AS `instance_hr`,((sum(time_to_sec(timediff((case when isnull(`instances`.`deleted_at`) then now() else `instances`.`deleted_at` end),`instances`.`created_at`))) / 3600) * avg(`instances`.`vcpus`)) AS `vcpu_hr`,count(`instances`.`id`) AS `instances` from (`nova`.`shadow_instances` `instances` left join `keystone`.`project` on((`instances`.`project_id` = `keystone`.`project`.`id`))) group by `keystone`.`project`.`name` order by ((sum(time_to_sec(timediff((case when isnull(`instances`.`deleted_at`) then now() else `instances`.`deleted_at` end),`instances`.`created_at`))) / 3600) * avg(`instances`.`vcpus`)) desc */; | |
/*!50001 SET character_set_client = @saved_cs_client */; | |
/*!50001 SET character_set_results = @saved_cs_results */; | |
/*!50001 SET collation_connection = @saved_col_connection */; | |
-- | |
-- Final view structure for view `shadow_usage` | |
-- | |
/*!50001 DROP TABLE IF EXISTS `shadow_usage`*/; | |
/*!50001 DROP VIEW IF EXISTS `shadow_usage`*/; | |
/*!50001 SET @saved_cs_client = @@character_set_client */; | |
/*!50001 SET @saved_cs_results = @@character_set_results */; | |
/*!50001 SET @saved_col_connection = @@collation_connection */; | |
/*!50001 SET character_set_client = utf8 */; | |
/*!50001 SET character_set_results = utf8 */; | |
/*!50001 SET collation_connection = utf8_general_ci */; | |
/*!50001 CREATE ALGORITHM=UNDEFINED */ | |
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ | |
/*!50001 VIEW `shadow_usage` AS select `keystone`.`project`.`name` AS `project`,(sum(time_to_sec(timediff((case when isnull(`instances`.`deleted_at`) then now() else `instances`.`deleted_at` end),`instances`.`created_at`))) / 3600) AS `instance_hr`,((sum(time_to_sec(timediff((case when isnull(`instances`.`deleted_at`) then now() else `instances`.`deleted_at` end),`instances`.`created_at`))) / 3600) * avg(`instances`.`vcpus`)) AS `vcpu_hr`,count(`instances`.`id`) AS `instances` from (`nova`.`shadow_instances` `instances` left join `keystone`.`project` on((`instances`.`project_id` = `keystone`.`project`.`id`))) group by `keystone`.`project`.`name` order by ((sum(time_to_sec(timediff((case when isnull(`instances`.`deleted_at`) then now() else `instances`.`deleted_at` end),`instances`.`created_at`))) / 3600) * avg(`instances`.`vcpus`)) desc */; | |
/*!50001 SET character_set_client = @saved_cs_client */; | |
/*!50001 SET character_set_results = @saved_cs_results */; | |
/*!50001 SET collation_connection = @saved_col_connection */; | |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | |
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | |
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | |
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | |
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | |
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | |
-- Dump completed on 2013-12-30 13:09:22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment