Commit Graph

28 Commits

Author SHA1 Message Date
Lingxian Kong 49a11dd9c7 trovestack guide
Also fixed the migration script issue after upgrading SQLAlchemy
version from 1.2.19 to 1.3.4

Change-Id: Ia0d954237dd3c9c2b2ebedf440fa3c656da30777
2019-06-11 00:09:42 +12:00
Doug Shelley f5d1caea88 Fix backup of mysql variants on Centos
The switch to XtraBackup 2.3 was causing an issue on RHEL/Centos
related to is using the "mysql" user instead of "trove". The fix on
Ubuntu was to move the os_admin credentials to ~trove/.my.cnf. While
this is a better place to write the credentials anyway (i.e. they
shouldn't be stored in server my.cnf) this doesn't solve the whole
issue on Centos. This commit changes the XB backup strategy to pass
the user/password in on the innobackupex command line.

Also, it was noticed that the "socket" option wasn't being specified
in the config.template. This is causing some client connections,
such as XB to fail connect because it can't locate the socket.
Forcing the server/client to write/read the socket from a known
location fixes this.

Change-Id: Iea941ce60179ef4dc5c403c2fc374cc8eb7d1617
Closes-bug: 1649592
2016-12-13 16:29:41 +00:00
Amrith Kumar 3b0d1ea25d Adds the api-ref migrated RST + YAML files
With this email[0], you must migrate API reference docs into RST. The
conf.py and the tox environment are also cribbed from nova.

Still need to retain the install_command in tox.ini, otherwise the
api-ref job fails.

[0] http://lists.openstack.org/pipermail/openstack-dev/2016-May/093765.html

Co-Authored-By: Anne Gentle <agentle@cisco.com>
Co-Authored-By: Amrith Kumar <amrith@tesora.com>

Change-Id: I3315261aa18729fa7a6aa79d4a1d6c24de1e2c6b
2016-08-17 17:46:41 -04:00
Jenkins 2c0f57e541 Merge "Define safe pid-file and socket paths in config" 2016-08-12 16:27:00 +00:00
Jenkins 1dd56b91fb Merge "Add vCPUs to flavor-list" 2016-07-29 20:45:56 +00:00
dineshbhor 43546ce905 Replace OpenStack LLC with OpenStack Foundation
Change-Id: I7b738715873eff90a49357dec5be4e179c04713c
Closes-Bug: #1214176
2016-07-22 15:07:03 +05:30
Petr Malik 6f6a3f2af9 Define safe pid-file and socket paths in config
Service manager cannot properly manage the MySQL
process if the pid file / socket are not defined
for the mysql_safe process.

Also rename 'pid_file' to 'pid-file', default for
both 5.6 and 5.7 and the only name accepted in the
'mysql_safe' section.

Update MySQL derivatives: MySQL, Percona and PXC.

Change-Id: I44441144a74e01d3c816ca72b2da4aa351dbd46c
Closes-Bug: 1605385
2016-07-21 16:18:17 -04:00
Petr Malik df509b7252 Preserve data type when parsing MySQL configs
The data type information was lost in conversions.

IniCodec should deserialize Python objects (like other codecs).
guestagent_utils.to_bytes should return byte values as ints.

* The IniCodec is also used by Cassandra.
  Tested with both MySQL and Cassandra scenario tests.

Change-Id: Ibb703b3db6814fc0c9ea4c6d96399f6c881cea03
Closes-Bug: 1599656
2016-07-18 11:07:00 -04:00
Masaki Matsushita 1a1deafcbf Add vCPUs to flavor-list
This commit adds vCPU colmn to flavor-list

Closes-Bug: #1261876
Change-Id: I2309d00fb8b1c428a8708d8dd934ccc462fb9366
2016-07-08 16:59:27 +09:00
Petr Malik e07262d711 Update 'myisam-recover-options' config template
Note that the option name has changed.
Also removed an unnecessary commented line.

Change-Id: I963724e553baf0870c95aecd1cabc8cbba3da422
Closes-Bug: 1580315
2016-05-12 16:25:00 +00:00
Duk Loi 2a5439aad2 Add support for root-disable
Added the route action for disabling the root user in the extensions.

Modified the resource extension to allow the generation of a DELETE
route on the resource itself.

Implemented root-disable on the mysql guest.  Added not implemented
error messages for all other datastores.

Change-Id: I52519b86c47694c554b624d1d2fbe7a001af55fc
Partially implements: blueprint root-disable
Depends-On: I27831eb361c2b219a9623f152b9def73a2865d67
2016-02-03 11:26:52 -05:00
Matt Van Dijk 27a4e2c650 Move to oslo_db
Replace the sqlalchemy engine and session management with an oslo.db
facade. This does the work transparently and fixes connection
mismanagement.

The changes involve:
- modifying the sqlalchemy session script to use oslo_db functions
- adding the oslo_db engine configuration parameters
- tweaking the faked tests to pass*

* the faked tests are sensitive to sleep calls and oslo_db uses a
  sleep(0) hack which was causing issues. The coverage of the tests was
  not affected.

Implements: blueprint move-to-oslo-db
Change-Id: I59f1fc0fe1551b9a815a51e6a620fabf060b013f
2015-12-14 02:18:06 +00:00
Jenkins 0b9ad56194 Merge "Word spellings have been corrected" 2015-09-18 15:52:14 +00:00
venkatamahesh 82b1322f68 Word spellings have been corrected
Change-Id: I2931badfe53221e78329c78d93f27cd605d2a6cc
Closes-Bug: #1487711
2015-08-23 22:56:45 +05:30
Petr Malik b911aa3302 Update ignore_dbs for MySQL 5.6
'lost+found' directories are no longer needed in the ignored list.
Include 'performance_schema' system database (by default ON in >=5.6.6).
Set 'performance_schema = ON' in default Trove configuration template and
add a validation rule for it so that users can turn it OFF if they so
desire.

Change-Id: Iecc114594091eabf8a0664e066b9de22f95d1e81
Closes-Bug: 1486721
Related-Bug: 1370646
2015-08-23 13:27:01 +00:00
Takashi NATSUME 5738388a62 Fix a few typos in log messages and comments
a instance => an instance
occured => occurred
nessesary => necessary
temprary => temporary
Excercise => Exercise
preceeding => preceding
nu,ber => the number
Remove unnecessary 'a'

Change-Id: I9df2de6178bc73a05fea936fa2a3f26c3e6c09d3
2015-08-11 17:32:15 +09:00
Doug Shelley ad42de03d3 Move mysql datadir to a sub-directory on mounted volume
Having the mysql datadir located at root of a mounted volume
(which happens with volume support enabled) causes problems for
backup/restore and resize. Mysql decides that the "lost+found"
directory, which the operating system puts at the root of each
file system, is actually a mysql "database".

This change causes the guest agent to move the datadir into a
sub-directory called "data" on the mounted volume.

Change-Id: Ica628012a5708374d73e5394e370da2514300939
Co-Authored-By: Simon Chang <schang@tesora.com>
Closes-bug: 1370646
2015-06-24 11:25:50 +08:00
Sushil Kumar 49f55f0edb Fixes config templates for mysql & percona
Calculations for certain config parameters was resulting in zero
if a value < 512 was used as ram for flavors to boot guest instance.

Replaced '//' by '/' and the result is again casted to integer value
as needed by mysql configurations.

// implies divide two numbers and return
the truncated integer result.

whereas

/ implies divide two numbers and  return value
will be a floating point number.

Updated default instance configuration response json.

Change-Id: Icfc84a4cb380264670aa4e31f372eb39a6e87c7c
Closes-Bug: #1440358
2015-04-06 14:42:27 +00:00
Craig Vyvial 881fd0ad39 convert the max and min values to int instead of string
Closes-Bug: #1390317
Change-Id: I6e8517308e51b4a8a03ad4fc27166934a6104841
2015-02-24 20:26:00 -08:00
Jenkins c7cb6ef711 Merge "Support string flavor IDs" 2015-01-27 14:09:38 +00:00
Brian Hunter 386ddc2268 Fix trove-tox-doc-publish-checkbuild failures
The owners of maven.research.rackspacecloud.com/ seem to have introduced
a 301 redirect permanent from http -> https URLs on around Jan 10th.
This has broken the master/trove check builds since that time.

Maven, when running in the infrastructure CI environment, fails to
follow these redirects.

This code change simply refers to the maven software repositories using
https URLs.

Local testing of this change against Tesora's downstream CI found that
it may be necessary to purge the broken/cached file from the bare-trusty
CI build machines ala:
rm /home/jenkins/.m2/repository/com/rackspace/cloud/api/wadl-tools/1.0.9
(continued..) /wadl-tools-1.0.9.jar

Closes-Bug: #1412949

Change-Id: I2dece05c74ad18a96fa05791e368ff7283a5e4e5
2015-01-20 17:09:05 -05:00
Adam Gandelman 21fee8c3c5 Support string flavor IDs
This allows operating on Nova flavors with non-integer ids
by adding a new str_id field to the view that always contains the
unicode flavor id.  The current id field will now contain a value
only when the flavor's id can be cast to int, otherwise it will be
None.  Validation of flavor id when querying a flavor or creating an
instance has been updated to include non-empty strings in addition to
integers.

This will require a patch to python-troveclient to properly fallback
to str_id in absence of the integer id:

    https://review.openstack.org/#/c/123301/

Change-Id: Ie9cfefc6127bc76783cdf9668636342d7590b308
Closes-bug: #1333852
2014-12-23 12:56:19 -08:00
Robert Myers 0a601ae45c Add missing api example for incremental backups
* Added Incremental backup test and resulting sample files.
* Fixed the example generator tests to actually fail when api
  changes.
* Added changes since the last example generation was run.
* Added a --fix-examples flag to the example generator to
  automatically correct the sample files.

Change-Id: I7ac355c80b251b0eccd3bd5b8d76d2287c255705
Closes-Bug: #1398119
2014-12-02 15:57:59 -06:00
Riley Bastrop fc80208a46 Update and correct documentation snippets
Partially implements: blueprint example-snippet-generator
Change-Id: I26f63bd9ef4a1ec5559d41bda7c476ba829b1729
2014-11-12 14:41:32 -06:00
Tim Simpson 3621607722 Removing the XML info from the docs
We don't support XML anymore, so these need to go.

Closes-Bug: 1361381
Change-Id: I84a84288f0d76408584d2dc4b18a5d7ca370871e
2014-08-25 16:31:25 -05:00
Andreas Jaeger 023c4b8448 Update database-api to follow OpenStack conventions
Update pom.xml for building the database-api document to follow the
conventions used by the OpenStack documentation team:
* Remove "review" from published guide
* Disable Disqus
* Use latest clouddocs-maven-plugin (2.0.2)
* Fix canonicalURL so that it points to the current location
* Fix formatting and whitespace of file

Remove hardcoded publication date from cdb-devguide, this gets
generated at build time.

Update doc-test.conf for pom.xml change.

Change-Id: I90eb16917edbb99d99147c4a8116f5bcf28e6975
2014-05-23 07:32:29 +02:00
Andreas Jaeger 5987ef710b Pretty print JSON sample files
Pretty print JSON samples to follow JSON formatting conventions (
https://wiki.openstack.org/wiki/Documentation/Conventions#JSON_formatting_conventions).

Change-Id: I26b2404e79d000d206516cea68d88acf23717569
Partial-Bug: #1217503
2014-05-09 10:51:19 +02:00
Tim Simpson 294330c554 Moved the apidocs from openstack/database-api
By hosting the docs here we'll be able to better maintain that
developers are being mindful of changes or even occassionally writing
documentation for new API features. This should also allow us to
autogenerate the snippets.

Change-Id: I0111bcd38341b1736a47b0a3d3e6ff96d2ca1c58
2014-04-24 14:41:40 -05:00