[Openstack] [Openstack-docs] [OPENSTACK][TROVE] Modify to the manual installation guide
Giuseppe Galeota
giuseppegaleota at gmail.com
Sun Feb 23 17:35:35 UTC 2014
I think that the section http://docs.openstack.org/
developer/trove/dev/manual_install.html#prepare-database should be modified
as follow:
Prepare database
· ADDING this new commands in order to create the trove database
(as from http://docs.openstack.org/trunk/install-guide/install/apt/content/
):
# mysql -u root -p
mysql> CREATE DATABASE trove;
mysql> GRANT ALL PRIVILEGES ON trove.* TO trove@'localhost' \
IDENTIFIED BY *'TROVE_DBPASS*';
mysql> GRANT ALL PRIVILEGES ON trove.* TO trove@'%' \
IDENTIFIED BY '*TROVE_DBPASS*';
· Initialize the database:
- modify the old command:
*# trove-manage --config-file=<PathToTroveConf> db_wipe
trove_test.sqlite mysql fake*
with the new command (as from
https://github.com/openstack/trove-integration/blob/master/scripts/redstack#L470
):
* # trove-manage --config-file=<PathToTroveConf> **db_sync*
- ADDING this new commands in order to populate the datastores
and datastore_versions tables as follow (as from
https://github.com/openstack/trove-integration/blob/master/scripts/redstack#L470)
# mysql -u root -p
mysql> use trove;
mysql> INSERT INTO datastores VALUES
('a00000a0-00a0-0a00-00a0-000a000000aa', 'mysql',
'b00000b0-00b0-0b00-00b0-000b000000bb');
mysql> INSERT INTO datastores values
('e00000e0-00e0-0e00-00e0-000e000000ee', 'Test_Datastore_1', '');
mysql> INSERT INTO datastore_versions VALUES
('b00000b0-00b0-0b00-00b0-000b000000bb',
'a00000a0-00a0-0a00-00a0-000a000000aa', 'mysql-5.5',
'c00000c0-00c0-0c00-00c0-000c000000cc', 'mysql-server-5.5', 1, 'mysql');
mysql> INSERT INTO datastore_versions VALUES
('d00000d0-00d0-0d00-00d0-000d000000dd',
'a00000a0-00a0-0a00-00a0-000a000000aa', 'mysql_inactive_version', '', '',
0, 'manager1');
· Setup trove to use the uploaded image. Enter the following in a
single line, note quotes (') and backquotes(`).
- modify the old command:
# trove-manage --config-file=<PathToTroveConf> image_update mysql
`nova --os-username trove --os-password trove --os-tenant-name trove
--os-auth-url http://<KeystoneIp>:5000/v2.0 image-list | awk
'/trove-image/ {print $2}'`
with the new commands:
1 - obtain the image id:
# nova --os-username trove --os-password trove --os-tenant-name trove
--os-auth-url http://keystone_IP:5000/v2.0 image-list | awk '/trove-image/
{print $2}'
2- populate the datastore_versions table (as from
https://github.com/openstack/trove-integration/blob/master/scripts/redstack#L301
):
# trove-manage --config-file=<PathToTroveConf> datastore_version_update
"mysql" "mysql-5.5" "mysql" *id_image* "mysql-server-5.5" 1
This should produce the following result:
*.... 18815 INFO trove.db.sqlalchemy.session [-] Creating SQLAlchemy engine
with args: {'pool_recycle': 3600, 'echo': False}*
*Datastore version 'mysql-5.5' updated.*
Run Trove<http://docs.openstack.org/developer/trove/dev/manual_install.html#run-trove>
-
Run trove-api:
# trove-api --config-file=<PathToTroveConf> &
- Run trove-taskmanager:
# trove-taskmanager --config-file=<PathToTroveTaskmanagerConf> &
- Adding the new command: "Run trove-conductor":
# trove-conductor--config-file=<PathToTroveConductorConf> &
What do you think about? Please add any other command you feel necessary.
Giuseppe
2014-02-21 22:52 GMT+01:00 Nicholas Chase <nchase at mirantis.com>:
> I mean what sould it BE, of course. Sigh.
>
>
> On 2/21/2014 4:47 PM, Nicholas Chase wrote:
>
>> Thanks, Giusepe! What should it way?
>>
>> ---- Nick
>>
>> On 2/21/2014 9:01 AM, Giuseppe Galeota wrote:
>>
>>> Hi all,
>>> For example, the "Prepare Database" section
>>> (http://docs.openstack.org/developer/trove/dev/manual_
>>> install.html#prepare-database)
>>>
>>> contains commands not valid for the new release of trove, such as:
>>>
>>> trove-manage --config-file=<PathToTroveConf> db_wipe
>>> trove_test.sqlite_mysql fake_
>>>
>>> and:
>>>
>>> trove-manage --config-file=<PathToTroveConf>_image_update mysql_
>>> `nova --os-username trove --os-password trove --os-tenant-name trove
>>> --os-auth-url http://<KeystoneIp>:5000/v2.0 image-list | awk
>>> '/trove-image/ {print $2}'`
>>>
>>>
>>> We should modify that commands with those used in the
>>> trove/integration/redstack script, in the section rd_manage.
>>>
>>>
>>> Thank you,
>>> Giuseppe
>>>
>>>
>>> _______________________________________________
>>> Openstack-docs mailing list
>>> Openstack-docs at lists.openstack.org
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs
>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140223/5bdc4f4a/attachment.html>
More information about the Openstack
mailing list