The midonet.neutron.db.migration.cli Module

The midonet.neutron.db.migration.cli Module

midonet.neutron.db.migration.cli.add_command_parsers(subparsers)
midonet.neutron.db.migration.cli.data_readonly(config, cmd)

Sets the task table access state to “read only”

Parameters:
  • config – contains neutron configuration, like database connection.
  • cmd – unused, but needed in the function signature by the command parser.
midonet.neutron.db.migration.cli.data_readwrite(config, cmd)

Sets the task table access state to “read and write”

Parameters:
  • config – contains neutron configuration, like database connection.
  • cmd – unused, but needed in the function signature by the command parser.
midonet.neutron.db.migration.cli.data_show(config, cmd)

Dumps the contents of the data state table.

Parameters:
  • config – contains neutron configuration, like database connection.
  • cmd – unused, but needed in the function signature by the command parser.
midonet.neutron.db.migration.cli.data_version_activate(config, cmd)
midonet.neutron.db.migration.cli.data_version_list(config, cmd)

Lists the statuses of the versions in the midonet data version table.

Parameters:
  • config – contains neutron configuration, like database connection.
  • cmd – unused, but needed in the function signature by the command parser.
midonet.neutron.db.migration.cli.data_version_sync(config, cmd)
midonet.neutron.db.migration.cli.get_alembic_config()
midonet.neutron.db.migration.cli.get_session(config)
midonet.neutron.db.migration.cli.main()
midonet.neutron.db.migration.cli.task_clean(config, cmd)

Removes all of the tasks that have been processed by the cluster from the task table.

Parameters:
  • config – contains neutron configuration, like database connection.
  • cmd – unused, but needed in the function signature by the command parser.
midonet.neutron.db.migration.cli.task_list(config, cmd)

Lists all of the tasks in the task table. Optionally filters tasks to show unprocessed tasks.

Parameters:
  • config – contains neutron configuration, like database connection.
  • cmd – unused, but needed in the function signature by the command parser.
midonet.neutron.db.migration.cli.task_resource(config, cmd)

Lists all of the resources represented in the contents of the task table. This will only show the most updated information, and it will not consider resources that have been removed from the task table.

Parameters:
  • config – contains neutron configuration, like database connection.
  • cmd – unused, but needed in the function signature by the command parser.
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.