summaryrefslogtreecommitdiff
path: root/trove/instance
Commit message (Collapse)AuthorAgeFilesLines
* Fix docker start failed in guest-agentwuchunyang2022-08-091-1/+1
| | | | | | | docker_insecure_registries is a StrOpt, but the default value is '[]' which is true for a string. Change-Id: I4b8841cc77324f274bc8210d328bc42ddef5d056
* Merge "Adds a configuration to use a local docker registry"Zuul2022-07-201-0/+3
|\
| * Adds a configuration to use a local docker registryHirotaka Wakabayashi2022-07-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR adds an configuration to use a local docker registry for development and test purpose. Using this option in development, * Developers can test images in local docker registry * Developers don't mind DockerHub's pull ratelimit * Developers can save bandwidth * Developers can test database quickly Story: 2010125 Task: 44793 Change-Id: I762702654bc4430b8432dd96bf869408b2947ff8
* | Fix error when list database instancesBo Tran2022-07-121-8/+7
|/ | | | | | | | | When list database instances, you can't because we doing return with wrong self.addresses in db_info Story: #2010077 Task: #45568 Change-Id: I3275f605e03e6c74b744b29178de380ed2521425
* Merge "Don't check task_status when creating a cluster"Zuul2022-06-061-1/+1
|\
| * Don't check task_status when creating a clusterHirotaka Wakabayashi2022-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR allows load_simple_instance_addresse to get the ipaddr of an instance from neutron when creating a instance belongs to a cluster by skipping checking the task_status. load_simple_instance_addresses, which is a helper function to load ip addr information to Instance instances, currently checks task_status before getting the information from neutron. However, this logic is unnecessary and causes a logic error when instances belong to a cluster because the task_status of creating a cluster is determined after initializing a cluster, which happens in the next phase of load_simple_instance_addresses. The original reason of this code change is that the task status of a mariadb cluster hasn't change from BUILDING to NONE even after successfully creating instances belong to the cluster. Task: 45110 Story: 2009982 Change-Id: Id3234081fd3114e6536358cbdbf94b8280c8bc41
* | Merge "Adds new configurations for injected file owner"Zuul2022-05-111-14/+21
|\ \
| * | Adds new configurations for injected file ownerHirotaka Wakabayashi2022-05-021-14/+21
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR adds configuration options for file owner information of injected files in GuestVM to trove.conf. File owner information should not be hardcoded as "trove" because it depends on user environments. Original problem is guest instance creation failure due to the lack of guestagent configuration files because of the recent code chage[1]. That patch was introduced since Yoga. [1]:https://review.opendev.org/c/openstack/trove/+/823632 Task: 45239 Story: 2010021 Change-Id: Iaccfe84c912025ec6d96e66ffa6ad7a4b9537b6e
* | Merge "instance model: fix extraction of ip addresses from instance record"Zuul2022-05-081-9/+9
|\ \ | |/ |/|
| * instance model: fix extraction of ip addresses from instance recordAndrew Bogott2021-05-121-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The instance.addresses value will be a dictionary of network: [addr_info] key/value pairs. addr_info is not itself the address but a dict that contains the address under ['addr']. The nova api changed quite a while ago so we need to catch up. In addition: this function previously returned a list of dictionaries; users of the function are clearly expecting a list of simple IPs, so return that instead. Change-Id: I9f7fed17b93e909f572949037b4e229d527e8fe4
* | Adds docker daemon config to injected filesHirotaka Wakabayashi2022-03-231-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | This PR adds docker daemon config to injected files when docker_bridge_network_ip option is defined in trove.conf. Original problem is that Trove developers unable to transfer files between GuestVMs and Controller host when controller host address range is same with docker bridge network one. Task: 44805 Story: 2009928 Change-Id: I6ad7eb7b2a7fb0686604b69d0175ec0d06f60384
* | Adapt to file injection deprecation in novaBo Tran2022-01-241-7/+33
| | | | | | | | | | | | Story: #2009770 Task: #44247 Change-Id: I34d47e709a9a7478cb6a85d6e6e37da3f92e40b0
* | Show user network ID for getting instanceLingxian Kong2021-08-021-6/+11
|/ | | | Change-Id: Ia1e9112ae69e04f8c3e9e9d1b4a0189c743d7448
* Support to restore backup from remote locationLingxian Kong2021-02-181-4/+4
| | | | | | | | In multi-region deployment with geo-replicated Swift, the user can restore a backup in one region by manually specifying the original backup data location created in another region. Change-Id: Iefef3bf969163af707935445bc23299400dc88c3
* Do not override RESTART_REQUIRED service statusLingxian Kong2021-02-102-29/+33
| | | | | | | | | | | | The RESTART_REQUIRED service status set by guest agent should not be overridden by the health heartbeat mechanism. The RESTART_REQUIRED can only be changed when the instance is restarted or rebooted. Story: 2008612 Task: 41795 Change-Id: I98baf252452353237bc8fb14357df4e7bcb2867a
* Support instance operating_statusLingxian Kong2020-12-092-34/+36
| | | | | | | Added a new field ``operating_status`` for the instance to show the actual operational status of user's database. Change-Id: I7c52cff0ec48289fe1a260e99e02a506d4f8ddec
* Merge "No validate when perform eject replica source"Zuul2020-11-261-1/+0
|\
| * No validate when perform eject replica sourceNguyen Thanh Cong2020-11-181-1/+0
| | | | | | | | Change-Id: Id15496db1f1bb8bcae850608e01314ff7aafd40
* | Support datastore version number for creating instanceLingxian Kong2020-11-182-5/+6
|/ | | | | | | | | | | * Support version number for datastore version flavor and volume type association commands. * Support 'version_number' parameter for creating instance. Story: 2008358 Task: 41264 Change-Id: I0e30194d65dcaa595b8927e2b9d5f8ec8c4300de
* Do not check server status when waiting for instance removedLingxian Kong2020-11-141-6/+2
| | | | Change-Id: Idacd5b0728edd792fd3aa8206c84bc837e9a88d0
* Merge "Support ram quota"Zuul2020-11-111-18/+25
|\
| * Support ram quotaSam Morrison2020-11-111-18/+25
| | | | | | | | | | | | | | | | | | | | | | Set default to -1 so this is backwards compatible. Existing installations will need to manully backfill quote usage for this to work as expected. Story: 2008293 Task: 41172 Change-Id: I455477a2e7a00f0d132971a2a684352967ac19b9
* | Fix deleting volume for instanceLingxian Kong2020-11-111-11/+11
|/ | | | | | | Story: 2008337 Task: 41238 Change-Id: Ifa333c30d4e24a2d693a6a5229dd1e83ad32d56d
* Merge "Fix edit instance action return code"Zuul2020-11-091-1/+1
|\
| * Fix edit instance action return codeSam Morrison2020-11-061-1/+1
| | | | | | | | | | | | | | | | | | c4fd9cbe346de707281c3254bfbbda8f2759ec4d changed the response code when updating an instance from 202 -> 200. Change-Id: I0e64abd29bd54e4e45eef011417777f2352b4969 Story: 2008324 Task: 41222
* | Fix upgrading instance datastore versionLingxian Kong2020-11-081-0/+9
|/ | | | Change-Id: I0456688c2e6c72b0312f1f79bb3e68f13fd2cb6e
* Revert "Remove flavor API"Sam Morrison2020-11-051-0/+5
| | | | | | | | | Story: 2008309 Task: 41201 This reverts commit 910519127d8fb9880863eb219df68a574d00df6a. Change-Id: I77b72a965153e9583d93dee1f3a77d01a57e4ca2
* Return instances by created orderLingxian Kong2020-10-291-1/+4
| | | | Change-Id: I558c36b4f0894f8476ce7fc9c88c1829e8762011
* Merge "Support mysql 8.0"Zuul2020-10-261-19/+23
|\
| * Support mysql 8.0Lingxian Kong2020-10-231-19/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MySQL 5.7 and MySQL 8.0 need different percona-xtrabackup package version. Added Percona XtraBackup 8 support for MySQL 8.x backup and restore. * Construct different backup container image names for MySQL 5.7 and MySQL 8.0 based on the default option value. * Two docker images are uploaded for backup/restore: openstacktrove/db-backup-mysql5.7:1.0.0 and openstacktrove/db-backup-mysql8.0:1.0.0. Trove guest agent can automatically choose the approriate one based on the datastore version. * Added option "secure-file-priv=NULL" in MySQL config template to fix https://github.com/docker-library/mysql/issues/541. * Stop using IDENTIFIED BY in GRANT clause (also REVOKE). Starting with MySQL 8 creating a user implicitly using the GRANT command is not supported. Story: #2008275 Task: #41143 Change-Id: Ibdec63324b1b39ba9b8a38dbe529da17bbb06767
* | Fix getting user port for instanceLingxian Kong2020-10-221-1/+1
|/ | | | | | Check the port type by network rather than port description. Change-Id: Id85c25c0cd3903f1b536a08ddcf69e306ce7345d
* Merge "Remove six usage and basestring check"Zuul2020-10-181-9/+8
|\
| * Remove six usage and basestring checkwangzihao2020-10-161-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove basestring check. Remove six Replace the following items with Python 3 style code. - six.string_types - six.int2byte - six.indexbytes - six.add_metaclass - six.StringIO - six.text_type - six.integer_types - six.binary_type - six.BytesIO - six.reraise Change-Id: I4fb9033d152963c504ceb4d5c4d08f934ee4accb
* | Fix error handling on instance createIvan Kolodyazhny2020-10-121-1/+1
|/ | | | | | | exception.BadRequest expects string as a 'message' argument, so we can't pass ValueError without casting it to string. Change-Id: Iff43c38dca596e694cc7c6bc20e71669d83e31e2
* Create floating IP in the user's projectLingxian Kong2020-10-121-0/+7
| | | | | | | | | | From the perspective of the public cloud, the floating IP should be created in the user's own project. Story: #2008246 Task: #41093 Change-Id: Ic358a2844c1b1f94a1b77ee67102b1c9c236a365
* Support database version image tags for creating instanceLingxian Kong2020-10-091-1/+8
| | | | Change-Id: If6ffacb5bab1aa5ffc51dd5678bd110c0beeb51d
* Merge "Set default limit for novaclient"Zuul2020-09-221-1/+1
|\
| * Set default limit for novaclientwangzihao2020-09-221-1/+1
| | | | | | | | | | | | Change-Id: Ieedbf0c779e2d47aab0f421a7d745a1d7f110c2a Story: 2008179 Task: 40936
* | Change access column type for instanceLingxian Kong2020-09-161-0/+13
|/ | | | | | | | | | | | | | The sqlalchemy.types.JSON is not compatible between different database engines, use TEXT type instead. Ref: * https://docs.sqlalchemy.org/en/13/core/type_basics.html#sqlalchemy.types.JSON * https://mariadb.com/kb/en/json-data-type/ Story: #2008145 Task: #40886 Change-Id: I69f111f6caf14ad5adbefacd8328b45d7cba77b3
* [Postgresql] Create replicaLingxian Kong2020-09-111-2/+4
| | | | Change-Id: Ia00032074dc44a6fbfc1e2d5ab16d1734a1a732c
* PostgreSQL supportLingxian Kong2020-09-012-1/+2
| | | | Change-Id: I7c77b210f5a1438739daebffea104eda3bda1a45
* Fix access field for instances created before upgradeLingxian Kong2020-08-131-0/+7
| | | | | | | For instances created prior to Victoria, the access field in trove db is None. We need to check 'is_public' based on instance addresses. Change-Id: I3302ddea19f32683fda404802550ca5dd1081312
* Fix functional test for instance access operationLingxian Kong2020-08-121-33/+9
| | | | Change-Id: I8557782dc80b9bc691268bc96d3188bf55cdd86d
* Support to update instance accessLingxian Kong2020-08-113-6/+43
| | | | Change-Id: I640cd8b50fd0e0f80a1a45399b8bfdac437ae2b9
* Show instance access informationLingxian Kong2020-08-113-7/+18
| | | | Change-Id: I8c0a7827624ea432edc765ba14e1f6a7228509c3
* Support to rebuild instance by adminLingxian Kong2020-08-061-6/+30
| | | | Change-Id: I48f8c6f997daeb6d82ff62b3325277d86fee2147
* Resize replicas (volume) together with primaryLingxian Kong2020-07-281-17/+30
| | | | | | | | When resizing volume for an instance which is the primary of a replication, cluster, Trove also resizes the volume for all the replicas automatically. Change-Id: I2e719772fe7abc719255ea2a705d9ec342aced2a
* Using same config with primary for replicasLingxian Kong2020-07-272-104/+130
| | | | Change-Id: Icadc95ea54e4509dc148f8e84f2eaac5840509f3
* Show replicas info for listing instancesLingxian Kong2020-06-101-12/+13
| | | | Change-Id: I909cd37b34466f41ae4cca0e85cb8a917ba163cc
* Support subnet and IP for instance creationLingxian Kong2020-06-102-9/+57
| | | | | | | | | | Support ``subnet_id`` and ``ip_address`` for creating instance. When creating instance, trove will check the network conflicts between user's network and the management network, additionally, the cloud admin is able to define other reserved networks by configuring ``reserved_network_cidrs``. Change-Id: Icc4eece2f265cb5a5c48c4f1024a9189d11b4687