yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #72991
[Bug 1772371] Re: The parameters "transport-url" and "database_connection" are to be treated positional.
This isn't a bug, the command is doing what it was designed to do. If
you don't specify transport_url or database_connection via the CLI
options, the values are pulled from the config file (via either the
--config-file option or the implied /etc/nova/nova.conf) and if you run
it more than once it will fail with the conflict message you got. The
reason transport_url and db connection are options and pulled from
config by default is so that people don't have to hard-code URLs with
credentials in them into scripts.
** Changed in: nova
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1772371
Title:
The parameters "transport-url" and "database_connection" are to be
treated positional.
Status in OpenStack Compute (nova):
Invalid
Bug description:
While creating a new cell_v2 using command "nova-manage cell_v2
create_cell", if no parameter ie. "transport-url" and
"database_connection" are given then the values of "transport-url" and
"database_connection" of default cell are picked from nova.conf which
are already mapped to the default cell and it result into error for
duplicate combination of "transport_url" and "database_connection".
Command Output:
[root@openstackq ~(keystone_admin)]# nova-manage cell_v2 create_cell
/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py:332: NotSupportedWarning: Configuration option(s) ['use_tpool'] not supported
exception.NotSupportedWarning
The specified transport_url and/or database_connection combination already exists for another cell with uuid 75c8bcda-6a34-468f-ba85-b3c7b977fd4b.
Both the arguments must be positional.
Code changes required and both the parameters "transport-url" and "database_connection" are to be treated positional.
As a workaround, user is providing both the arguments along with command.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1772371/+subscriptions
References