[Kolla] [ Kolla-Ansible] Kolla Ansible Downgrade Issue

Richa Gupta gricha.1888 at gmail.com
Thu Jul 15 12:51:36 UTC 2021


Hi Team,

I installed Kolla-Ansible release 12.0.0, i.e. wallaby on multinode setup,
and then downgraded Kolla-Ansible to release 11.0.0, i.e. Victoria,
following the below-mentioned link:

https://docs.openstack.org/kolla-ansible/latest/user/operating-kolla.html

I downgraded Kolla-Ansible by running the command "*pip install --upgrade
kolla-ansible==6.0.0*" and, changing "openstack_release: victoria" in
globals.yml. But, "*kolla-ansible upgrade*" failed with the below error
(Error also attached in the mail)  :

"alembic.util.exc.CommandError: Can't locate revision identified by
'wallaby_contract01'"

Could you please suggest if the downgrade is supported in Kolla-Ansible?

Best Regards,
Richa Gupta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20210715/98f7025a/attachment-0001.html>
-------------- next part --------------
fatal: [controller -> controller]: FAILED! => {
    "changed": true,
    "invocation": {
        "module_args": {
            "action": "start_container",
            "api_version": "auto",
            "auth_email": null,
            "auth_password": null,
            "auth_registry": null,
            "auth_username": null,
            "cap_add": [],
            "cgroupns_mode": null,
            "client_timeout": 120,
            "command": null,
            "detach": false,
            "dimensions": {},
            "environment": {
                "KOLLA_BOOTSTRAP": null,
                "KOLLA_CONFIG_STRATEGY": "COPY_ALWAYS",
                "KOLLA_SERVICE_NAME": "bootstrap-glance"
            },
            "graceful_timeout": 10,
            "healthcheck": null,
            "ignore_missing": false,
            "image": "kolla/centos-source-glance-api:victoria",
            "labels": {
                "BOOTSTRAP": null
            },
            "name": "bootstrap_glance",
            "privileged": false,
            "remove_on_exit": true,
            "restart_policy": "no",
            "restart_retries": 10,
            "security_opt": [],
            "state": "running",
            "tls_cacert": null,
            "tls_cert": null,
            "tls_key": null,
            "tls_verify": false,
            "tmpfs": null,
            "tty": false,
            "volumes": [
                "/etc/kolla/glance-api/:/var/lib/kolla/config_files/:ro",
                "/etc/localtime:/etc/localtime:ro",
                "glance:/var/lib/glance/",
                "kolla_logs:/var/log/kolla/"
            ],
            "volumes_from": null
        }
    },
    "msg": "Container exited with non-zero return code 1",
    "rc": 1,
    "stderr": "+ sudo -E kolla_set_configs\nINFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json\nINFO:__main__:Validating config file\nINFO:__main__:Kolla config strategy set to: COPY_ALWAYS\nINFO:__main__:Copying service configuration files\nINFO:__main__:Deleting /etc/glance/glance-api.conf\nINFO:__main__:Copying /var/lib/kolla/config_files/glance-api.conf to /etc/glance/glance-api.conf\nINFO:__main__:Setting permission for /etc/glance/glance-api.conf\nINFO:__main__:Writing out command to execute\nINFO:__main__:Setting permission for /var/lib/glance\nINFO:__main__:Setting permission for /var/lib/glance/.cache\nINFO:__main__:Setting permission for /var/lib/glance/images\nINFO:__main__:Setting permission for /var/lib/glance/staging\nINFO:__main__:Setting permission for /var/lib/glance/tasks_work_dir\nINFO:__main__:Setting permission for /var/lib/glance/.cache/python-entrypoints\nINFO:__main__:Setting permission for /var/lib/glance/.cache/python-entrypoints/fdb67132d47c0e13f9effede3482e62624b04b9459a33762e2e7c1ff42070e56\nINFO:__main__:Setting permission for /var/lib/glance/.cache/python-entrypoints/df960761b44243c2d4c145d2f188f21e9fa7a562707ebc88a99b2eea31eff4f7\nINFO:__main__:Setting permission for /var/lib/glance/images/2a338925-b7e7-46e6-8858-b9e62ebde4cd\nINFO:__main__:Setting permission for /var/lib/glance/images/9a73c24f-b473-45e8-b7c9-638fb5fda67d\nINFO:__main__:Setting permission for /var/log/kolla/glance\nINFO:__main__:Setting permission for /var/log/kolla/glance/glance-api.log\n++ cat /run_command\n+ CMD=glance-api\n+ ARGS=\n+ sudo kolla_copy_cacerts\n+ [[ ! -n '' ]]\n+ . kolla_extend_start\n++ [[ ! -d /var/log/kolla/glance ]]\n+++ stat -c %a /var/log/kolla/glance\n++ [[ 2755 != \\7\\5\\5 ]]\n++ chmod 755 /var/log/kolla/glance\n++ . /usr/local/bin/kolla_glance_extend_start\n+++ [[ -n 0 ]]\n+++ glance-manage db_sync\n2021-07-15 03:55:10.925 17 INFO alembic.runtime.migration [-] Context impl MySQLImpl.\u001b[00m\n2021-07-15 03:55:10.926 17 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.\u001b[00m\n2021-07-15 03:55:10.948 17 INFO alembic.runtime.migration [-] Context impl MySQLImpl.\u001b[00m\n2021-07-15 03:55:10.948 17 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.\u001b[00m\nINFO  [alembic.runtime.migration] Context impl MySQLImpl.\nINFO  [alembic.runtime.migration] Will assume non-transactional DDL.\nCRITI [glance] Unhandled error\nTraceback (most recent call last):\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 162, in _catch_revision_errors\n    yield\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 364, in _upgrade_revs\n    revs = list(revs)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 765, in _iterate_revisions\n    requested_lowers = self.get_revisions(lower)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 319, in get_revisions\n    return sum([self.get_revisions(id_elem) for id_elem in id_], ())\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 319, in <listcomp>\n    return sum([self.get_revisions(id_elem) for id_elem in id_], ())\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 324, in get_revisions\n    for rev_id in resolved_id\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 324, in <genexpr>\n    for rev_id in resolved_id\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 397, in _revision_for_ident\n    resolved_id,\nalembic.script.revision.ResolutionError: No such revision or branch 'wallaby_contract01'\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File \"/var/lib/kolla/venv/bin/glance-manage\", line 8, in <module>\n    sys.exit(main())\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/cmd/manage.py\", line 559, in main\n    return CONF.command.action_fn()\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/cmd/manage.py\", line 393, in sync\n    self.command_object.sync(CONF.command.version)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/cmd/manage.py\", line 163, in sync\n    self.expand(online_migration=False)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/cmd/manage.py\", line 220, in expand\n    self._sync(version=expand_head)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/cmd/manage.py\", line 178, in _sync\n    alembic_command.upgrade(a_config, version)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/command.py\", line 298, in upgrade\n    script.run_env()\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 489, in run_env\n    util.load_python_file(self.dir, \"env.py\")\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/util/pyfiles.py\", line 98, in load_python_file\n    module = load_module_py(module_id, path)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/util/compat.py\", line 184, in load_module_py\n    spec.loader.exec_module(module)\n  File \"<frozen importlib._bootstrap_external>\", line 678, in exec_module\n  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/db/sqlalchemy/alembic_migrations/env.py\", line 87, in <module>\n    run_migrations_online()\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/db/sqlalchemy/alembic_migrations/env.py\", line 81, in run_migrations_online\n    context.run_migrations()\n  File \"<string>\", line 8, in run_migrations\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/runtime/environment.py\", line 846, in run_migrations\n    self.get_context().run_migrations(**kw)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/runtime/migration.py\", line 509, in run_migrations\n    for step in self._migrations_fn(heads, self):\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/command.py\", line 287, in upgrade\n    return script._upgrade_revs(revision, rev)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 369, in _upgrade_revs\n    for script in reversed(list(revs))\n  File \"/usr/lib64/python3.6/contextlib.py\", line 99, in __exit__\n    self.gen.throw(type, value, traceback)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 194, in _catch_revision_errors\n    compat.raise_from_cause(util.CommandError(resolution))\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/util/compat.py\", line 308, in raise_from_cause\n    reraise(type(exception), exception, tb=exc_tb, cause=exc_value)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/util/compat.py\", line 301, in reraise\n    raise value.with_traceback(tb)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 162, in _catch_revision_errors\n    yield\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 364, in _upgrade_revs\n    revs = list(revs)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 765, in _iterate_revisions\n    requested_lowers = self.get_revisions(lower)\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 319, in get_revisions\n    return sum([self.get_revisions(id_elem) for id_elem in id_], ())\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 319, in <listcomp>\n    return sum([self.get_revisions(id_elem) for id_elem in id_], ())\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 324, in get_revisions\n    for rev_id in resolved_id\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 324, in <genexpr>\n    for rev_id in resolved_id\n  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 397, in _revision_for_ident\n    resolved_id,\nalembic.util.exc.CommandError: Can't locate revision identified by 'wallaby_contract01'\n",
    "stderr_lines": [
        "+ sudo -E kolla_set_configs",
        "INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json",
        "INFO:__main__:Validating config file",
        "INFO:__main__:Kolla config strategy set to: COPY_ALWAYS",
        "INFO:__main__:Copying service configuration files",
        "INFO:__main__:Deleting /etc/glance/glance-api.conf",
        "INFO:__main__:Copying /var/lib/kolla/config_files/glance-api.conf to /etc/glance/glance-api.conf",
        "INFO:__main__:Setting permission for /etc/glance/glance-api.conf",
        "INFO:__main__:Writing out command to execute",
        "INFO:__main__:Setting permission for /var/lib/glance",
        "INFO:__main__:Setting permission for /var/lib/glance/.cache",
        "INFO:__main__:Setting permission for /var/lib/glance/images",
        "INFO:__main__:Setting permission for /var/lib/glance/staging",
        "INFO:__main__:Setting permission for /var/lib/glance/tasks_work_dir",
        "INFO:__main__:Setting permission for /var/lib/glance/.cache/python-entrypoints",
        "INFO:__main__:Setting permission for /var/lib/glance/.cache/python-entrypoints/fdb67132d47c0e13f9effede3482e62624b04b9459a33762e2e7c1ff42070e56",
        "INFO:__main__:Setting permission for /var/lib/glance/.cache/python-entrypoints/df960761b44243c2d4c145d2f188f21e9fa7a562707ebc88a99b2eea31eff4f7",
        "INFO:__main__:Setting permission for /var/lib/glance/images/2a338925-b7e7-46e6-8858-b9e62ebde4cd",
        "INFO:__main__:Setting permission for /var/lib/glance/images/9a73c24f-b473-45e8-b7c9-638fb5fda67d",
        "INFO:__main__:Setting permission for /var/log/kolla/glance",
        "INFO:__main__:Setting permission for /var/log/kolla/glance/glance-api.log",
        "++ cat /run_command",
        "+ CMD=glance-api",
        "+ ARGS=",
        "+ sudo kolla_copy_cacerts",
        "+ [[ ! -n '' ]]",
        "+ . kolla_extend_start",
        "++ [[ ! -d /var/log/kolla/glance ]]",
        "+++ stat -c %a /var/log/kolla/glance",
        "++ [[ 2755 != \\7\\5\\5 ]]",
        "++ chmod 755 /var/log/kolla/glance",
        "++ . /usr/local/bin/kolla_glance_extend_start",
        "+++ [[ -n 0 ]]",
        "+++ glance-manage db_sync",
        "2021-07-15 03:55:10.925 17 INFO alembic.runtime.migration [-] Context impl MySQLImpl.\u001b[00m",
        "2021-07-15 03:55:10.926 17 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.\u001b[00m",
        "2021-07-15 03:55:10.948 17 INFO alembic.runtime.migration [-] Context impl MySQLImpl.\u001b[00m",
        "2021-07-15 03:55:10.948 17 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.\u001b[00m",
        "INFO  [alembic.runtime.migration] Context impl MySQLImpl.",
        "INFO  [alembic.runtime.migration] Will assume non-transactional DDL.",
        "CRITI [glance] Unhandled error",
        "Traceback (most recent call last):",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 162, in _catch_revision_errors",
        "    yield",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 364, in _upgrade_revs",
        "    revs = list(revs)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 765, in _iterate_revisions",
        "    requested_lowers = self.get_revisions(lower)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 319, in get_revisions",
        "    return sum([self.get_revisions(id_elem) for id_elem in id_], ())",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 319, in <listcomp>",
        "    return sum([self.get_revisions(id_elem) for id_elem in id_], ())",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 324, in get_revisions",
        "    for rev_id in resolved_id",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 324, in <genexpr>",
        "    for rev_id in resolved_id",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 397, in _revision_for_ident",
        "    resolved_id,",
        "alembic.script.revision.ResolutionError: No such revision or branch 'wallaby_contract01'",
        "",
        "The above exception was the direct cause of the following exception:",
        "",
        "Traceback (most recent call last):",
        "  File \"/var/lib/kolla/venv/bin/glance-manage\", line 8, in <module>",
        "    sys.exit(main())",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/cmd/manage.py\", line 559, in main",
        "    return CONF.command.action_fn()",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/cmd/manage.py\", line 393, in sync",
        "    self.command_object.sync(CONF.command.version)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/cmd/manage.py\", line 163, in sync",
        "    self.expand(online_migration=False)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/cmd/manage.py\", line 220, in expand",
        "    self._sync(version=expand_head)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/cmd/manage.py\", line 178, in _sync",
        "    alembic_command.upgrade(a_config, version)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/command.py\", line 298, in upgrade",
        "    script.run_env()",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 489, in run_env",
        "    util.load_python_file(self.dir, \"env.py\")",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/util/pyfiles.py\", line 98, in load_python_file",
        "    module = load_module_py(module_id, path)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/util/compat.py\", line 184, in load_module_py",
        "    spec.loader.exec_module(module)",
        "  File \"<frozen importlib._bootstrap_external>\", line 678, in exec_module",
        "  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/db/sqlalchemy/alembic_migrations/env.py\", line 87, in <module>",
        "    run_migrations_online()",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/glance/db/sqlalchemy/alembic_migrations/env.py\", line 81, in run_migrations_online",
        "    context.run_migrations()",
        "  File \"<string>\", line 8, in run_migrations",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/runtime/environment.py\", line 846, in run_migrations",
        "    self.get_context().run_migrations(**kw)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/runtime/migration.py\", line 509, in run_migrations",
        "    for step in self._migrations_fn(heads, self):",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/command.py\", line 287, in upgrade",
        "    return script._upgrade_revs(revision, rev)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 369, in _upgrade_revs",
        "    for script in reversed(list(revs))",
        "  File \"/usr/lib64/python3.6/contextlib.py\", line 99, in __exit__",
        "    self.gen.throw(type, value, traceback)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 194, in _catch_revision_errors",
        "    compat.raise_from_cause(util.CommandError(resolution))",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/util/compat.py\", line 308, in raise_from_cause",
        "    reraise(type(exception), exception, tb=exc_tb, cause=exc_value)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/util/compat.py\", line 301, in reraise",
        "    raise value.with_traceback(tb)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 162, in _catch_revision_errors",
        "    yield",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/base.py\", line 364, in _upgrade_revs",
        "    revs = list(revs)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 765, in _iterate_revisions",
        "    requested_lowers = self.get_revisions(lower)",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 319, in get_revisions",
        "    return sum([self.get_revisions(id_elem) for id_elem in id_], ())",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 319, in <listcomp>",
        "    return sum([self.get_revisions(id_elem) for id_elem in id_], ())",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 324, in get_revisions",
        "    for rev_id in resolved_id",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 324, in <genexpr>",
        "    for rev_id in resolved_id",
        "  File \"/var/lib/kolla/venv/lib/python3.6/site-packages/alembic/script/revision.py\", line 397, in _revision_for_ident",
        "    resolved_id,",
        "alembic.util.exc.CommandError: Can't locate revision identified by 'wallaby_contract01'""alembic.util.exc.CommandError: Can't locate revision identified by 'wallaby_contract01'"
    ],
    "stdout": "",
    "stdout_lines": []
}


More information about the openstack-discuss mailing list