Module Expr Str Assign NameStore Str Assign NameStore Str Import alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore TupleLoad Str Assign NameStore Dict Str Dict Str NameLoad FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Str Call NameLoad keyword NameLoad Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num keyword NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num keyword NameLoad Call AttributeLoad NameLoad attr Str Call NameLoad keyword Dict Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Call AttributeLoad NameLoad attr Str Call NameLoad keyword NameLoad Call AttributeLoad NameLoad attr Str Call NameLoad keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str keyword Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str ListLoad Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad keyword Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword SubscriptLoad NameLoad Index Num keyword Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad ListLoad Str Str Str Str Str Expr Call NameLoad NameLoad ListLoad Str Expr Call NameLoad NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword SubscriptLoad NameLoad Index Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword SubscriptLoad NameLoad Index Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args defaults body Pass decorator_list Assign NameStore Dict Str Dict Str Str Dict Str Str Str Str Str NameLoad Str Num Dict Str Str Str NameLoad
N/A N/A fuel_6_0

Revision ID: 1b1d4016375d
Revises: 52924111f7d8
Create Date: 2014-09-18 12:44:28.327312

 N/A revision 1b1d4016375d N/A down_revision 52924111f7d8 N/A uuid alembic op oslo_serialization jsonutils N/A sqlalchemy sa sqlalchemy.sql text nailgun.db.sqlalchemy.models.fields JSON nailgun.utils.migration drop_enum nailgun.utils.migration upgrade_release_attributes_51_to_60 nailgun.utils.migration upgrade_release_fill_orchestrator_data nailgun.utils.migration upgrade_release_roles_51_to_60 nailgun.utils.migration upgrade_release_set_deployable_false N/A ENUMS N/A action_type N/A ADDED_ROLES_META N/A controller N/A has_primary True upgrade N/A N/A N/A N/A N/A Upgrade schema and then upgrade data. N/A N/A upgrade_schema N/A N/A upgrade_data N/A downgrade N/A N/A N/A N/A N/A Downgrade data and then downgrade schema. N/A N/A downgrade_data N/A N/A downgrade_schema N/A upgrade_schema N/A N/A N/A N/A N/A N/A N/A op add_column releases N/A N/A sa Column is_deployable N/A N/A sa Boolean nullable False server_default true N/A N/A N/A op create_table action_logs N/A N/A sa Column id N/A sa Integer nullable False N/A N/A sa Column actor_id N/A N/A sa String length 64 nullable True N/A N/A sa Column action_group N/A N/A sa String length 64 nullable False N/A N/A sa Column action_name N/A N/A sa String length 64 nullable False N/A N/A sa Column action_type N/A N/A sa Enum http_request nailgun_task name action_type nullable False N/A N/A sa Column start_timestamp N/A sa DateTime nullable False N/A N/A sa Column end_timestamp N/A sa DateTime nullable True N/A N/A sa Column is_sent N/A sa Boolean default False N/A N/A sa Column additional_info N/A JSON nullable False N/A N/A sa Column cluster_id N/A sa Integer nullable True N/A N/A sa Column task_uuid N/A N/A sa String 36 nullable True N/A N/A sa PrimaryKeyConstraint id N/A N/A N/A op create_table master_node_settings N/A N/A sa Column id N/A sa Integer nullable False N/A N/A sa Column master_node_uid N/A N/A sa String 36 nullable False N/A N/A sa Column settings N/A JSON default N/A N/A N/A sa PrimaryKeyConstraint id N/A N/A N/A op create_table plugins N/A N/A sa Column id N/A N/A sa Integer nullable False N/A N/A sa Column name N/A N/A sa String length 100 nullable False N/A N/A sa Column title N/A N/A sa String length 100 nullable False N/A N/A sa Column version N/A N/A sa String length 32 nullable False N/A N/A sa Column description N/A N/A sa String length 400 nullable True N/A N/A sa Column releases N/A JSON nullable True N/A N/A sa Column fuel_version N/A JSON nullable True N/A N/A sa Column package_version N/A N/A sa String length 32 nullable False N/A N/A sa PrimaryKeyConstraint id N/A N/A sa UniqueConstraint name version name _name_version_unique N/A N/A N/A op create_table cluster_plugins N/A N/A sa Column id N/A N/A sa Integer nullable False N/A N/A sa Column plugin_id N/A N/A sa Integer nullable False N/A N/A sa Column cluster_id N/A N/A sa Integer nullable True N/A N/A sa ForeignKeyConstraint N/A cluster_id N/A clusters.id N/A N/A sa ForeignKeyConstraint N/A plugin_id N/A plugins.id ondelete CASCADE N/A N/A sa PrimaryKeyConstraint id N/A N/A N/A op create_table nodegroups N/A N/A sa Column id N/A N/A sa Integer nullable False N/A N/A sa Column cluster_id N/A N/A sa Integer nullable True N/A N/A sa Column name N/A N/A sa String length 50 nullable False N/A N/A sa ForeignKeyConstraint N/A cluster_id N/A clusters.id N/A N/A sa PrimaryKeyConstraint id N/A N/A N/A op create_unique_constraint None clusters N/A name N/A N/A N/A op add_column network_groups N/A N/A sa Column group_id N/A N/A sa Integer nullable True N/A N/A N/A op add_column nodes N/A N/A sa Column group_id N/A N/A sa Integer nullable True N/A connection N/A N/A op get_bind N/A N/A upgrade_node_groups connection N/A N/A N/A op drop_column network_groups cluster_id N/A N/A N/A op add_column node_roles N/A N/A sa Column primary N/A N/A sa Boolean nullable False server_default false N/A N/A N/A op add_column pending_node_roles N/A N/A sa Column primary N/A N/A sa Boolean nullable False server_default false N/A upgrade_releases N/A N/A N/A N/A N/A connection N/A N/A op get_bind N/A select N/A text SELECT id, attributes_metadata, roles_metadata
        from releases N/A update N/A text UPDATE releases
        SET attributes_metadata = :attrs, roles_metadata = :roles
        WHERE id = :id N/A r N/A N/A connection execute select N/A release r N/A N/A attrs_meta N/A upgrade_release_attributes_51_to_60 N/A N/A jsonutils loads N/A release N/A 1 N/A roles_meta N/A upgrade_release_roles_51_to_60 N/A N/A jsonutils loads N/A release N/A 2 add_meta ADDED_ROLES_META N/A N/A N/A connection execute update id N/A release N/A 0 attrs N/A N/A jsonutils dumps attrs_meta roles N/A N/A jsonutils dumps roles_meta N/A upgrade_data N/A N/A N/A N/A N/A connection N/A N/A op get_bind N/A N/A upgrade_release_set_deployable_false connection N/A 2014.1 2014.1.1-5.0.1 2014.1.1-5.0.2 2014.1.1-5.1 2014.1.3-5.1.1 N/A N/A upgrade_release_fill_orchestrator_data connection N/A 2014.1% N/A N/A dump_master_node_settings connection N/A N/A upgrade_releases N/A downgrade_schema N/A N/A N/A N/A N/A N/A N/A op drop_column releases is_deployable N/A N/A N/A op drop_table action_logs N/A N/A N/A op drop_table master_node_settings N/A enum ENUMS N/A N/A N/A drop_enum enum N/A N/A N/A op drop_table cluster_plugins N/A N/A N/A op drop_table plugins N/A N/A N/A op drop_column nodes group_id N/A N/A N/A op drop_column network_groups group_id N/A N/A N/A op add_column network_groups N/A N/A sa Column cluster_id N/A N/A sa Integer N/A N/A sa ForeignKey clusters.id N/A N/A N/A op drop_column releases wizard_metadata N/A N/A N/A op drop_table nodegroups N/A N/A N/A op drop_column pending_node_roles primary N/A N/A N/A op drop_column node_roles primary N/A upgrade_node_groups N/A N/A connection N/A N/A N/A cluster_select N/A N/A sa text SELECT id from clusters N/A node_sel N/A N/A sa text SELECT id FROM nodes WHERE cluster_id=:cluster_id N/A node_update N/A N/A sa text UPDATE nodes
        SET group_id=(SELECT id FROM nodegroups WHERE cluster_id=:cluster_id)
        WHERE id=:id N/A group_insert N/A N/A sa text INSERT INTO nodegroups (cluster_id, name)
        VALUES(:cluster_id, 'default') N/A net_select N/A N/A sa text SELECT id FROM network_groups WHERE
        cluster_id=:cluster_id N/A net_update N/A N/A sa text UPDATE network_groups
        SET group_id=(SELECT id FROM nodegroups WHERE cluster_id=:cluster_id)
        WHERE id=:id N/A clusters N/A N/A connection execute cluster_select N/A cluster clusters N/A N/A N/A N/A connection execute group_insert cluster_id N/A cluster N/A 0 N/A nodes N/A N/A connection execute node_sel cluster_id N/A cluster N/A 0 N/A node nodes N/A N/A N/A N/A connection execute node_update cluster_id N/A cluster N/A 0 id N/A node N/A 0 N/A nets N/A N/A connection execute net_select cluster_id N/A cluster N/A 0 N/A net nets N/A N/A N/A N/A connection execute net_update cluster_id N/A cluster N/A 0 id N/A net N/A 0 N/A dump_master_node_settings N/A N/A connection N/A N/A N/A Update master_node_settings table with new uuid for master node

    Arguments:
    connection - a database connection
     N/A generated_uuid N/A str N/A N/A uuid uuid4 N/A settings N/A N/A jsonutils dumps _master_node_settings N/A update N/A text INSERT INTO master_node_settings (master_node_uid, settings)    VALUES (:master_node_uid, :settings) N/A N/A N/A connection execute update master_node_uid generated_uuid settings settings N/A downgrade_data N/A N/A N/A N/A N/A N/A N/A _master_node_settings N/A statistics N/A send_anonymous_statistic user_choice_saved N/A type value label weight checkbox True statistics.setting_labels.send_anonymous_statistic 10 N/A type value hidden False