Commit Graph

89 Commits

Author SHA1 Message Date
OpenDev Sysadmins 715a071890 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:50:31 +00:00
ervin cf8273e461 Release v2.3.0
Update the required version of synergy-scheduler-manager

Change-Id: I280227fe7a9a613cabe9db235a33aaaaea1b50de
2017-01-31 09:38:14 +01:00
Lisa Zangrando 9ca1b1cf2f Update of the link to the Synergy documentation
Change-Id: I711a9faa458241d05c1b649ee81428843cf2780c
2017-01-30 14:37:02 +01:00
Jenkins f21b883247 Merge "Removed logging message" 2017-01-30 09:30:30 +00:00
Lisa Zangrando f9619e8797 Fix a bug related to NUMA topology
Previously, one could encounter the following error:
"NumaTopologyNotFound: Instance does not specify a NUMA topology"

Bug: #1659794
Change-Id: I065e4ed0cfe56c3026b9eefc473fe6baf0889baf
Sem-Ver: bugfix
2017-01-30 09:15:13 +00:00
Lisa Zangrando 5887b41fdd Removed logging message
The logging message is not needed anymore.

Change-Id: Id83a4752415785bc1108f0787cf2e2ee940a535f
2017-01-30 10:08:27 +01:00
Jenkins b3504c00db Merge "Retry mechanism improved and fixed" 2017-01-27 16:43:18 +00:00
Lisa Zangrando e107158e9b Time data does not match format '%Y-%m-%dT%H:%M:%S.%fZ'
Bug: #1659807
Change-Id: Iec6bf294562d9df8d2db7dbd212b7d35e91ad43a
Sem-Ver: bugfix
2017-01-27 13:47:33 +01:00
Lisa Zangrando 89537e9f99 Retry mechanism improved and fixed
Bug: #1659780
Change-Id: Ifabc4f0ce576fc5c0348fe591d0ca92abe2f7b64
Sem-Ver: bugfix
2017-01-27 11:28:27 +01:00
Jenkins 80ef20c334 Merge "Add support for Keystone domains" 2017-01-25 16:29:51 +00:00
Jenkins 2180a51e92 Merge "Heat and Synergy interfere on the management of the users trust" 2017-01-25 15:35:43 +00:00
Lisa Zangrando e7e36a1fbd Add support for Keystone domains
This feature fixes even the bug #1659246

Change-Id: I189455f5b1c546304e4b9b3ce9f6c17ebdf0d133
Sem-Ver: feature
2017-01-25 15:24:34 +01:00
Lisa Zangrando 75696d2e6b Heat and Synergy interfere on the management of the users trust
Heat and Synergy use the Trust mechanism for making service delegations.
Synergy must be able to distinguish the trusts created by Heat from the
ones created by itself.

Change-Id: I5fdc04fdf94397f8f3b5f336bbaf22781e3ed467
Sem-Ver: bugfix
2017-01-25 13:48:03 +00:00
Lisa Zangrando ea89a0f8d2 Synergy and Ceilometer compete for consuming AMQP notifications
Synergy and Ceilometer compete for consuming the notifications about
the VM state changes because both listen on the "notifications" AMQP topic.

- added a new configuration parameter for SchedulerMaanger: "notification_topic"

Change-Id: I444aeac5539bc4b6994f8722637e7aba7d82dc78
Sem-Ver: bugfix
2017-01-25 13:40:32 +00:00
Lisa Zangrando a858311eb9 Add support for the automatic recycle of DB connections
This solves the error 'Lost connection to MySQL server during query'
due to MySQL, which removes connections after a timeout.

- added a new configuration parameter for QueueManager: 'db_pool_recycle'

Change-Id: I2974f414afa6cb3d44e85dd3e05600cfd49cb905
Sem-Ver: bugfix
2017-01-25 10:11:46 +01:00
Jenkins 358d5d453d Merge "Add support for AMQP HA to NovaManager" 2017-01-20 14:44:28 +00:00
Jenkins 5bc82944c4 Merge "Enable SSL for OpenStack Trust" 2017-01-20 14:44:23 +00:00
Jenkins ebe95a1761 Merge "QuotaManager: private quota shrinking must not be always allowed" 2017-01-20 14:42:38 +00:00
Lisa Zangrando 87c83deaaa Enable SSL for OpenStack Trust
Added support to SSL connections

Change-Id: I03cfb4fef50b6fee805369883f0d4436f9d6567f
Sem-Ver: feature
2017-01-20 14:37:13 +00:00
Lisa Zangrando 7926137bb5 Add support for AMQP HA to NovaManager
- AMQP HA cluster support added
- added the new 'amqp_hosts' configuration attribute

Change-Id: I20973b3a66540814b86970628270dc83adab8018
Sem-Ver: feature
2017-01-20 14:34:44 +00:00
Lisa Zangrando 12d2842596 use API v3 for KeystoneManager.getUsers()
Before, KeystoneManager.getUsers() used the OLD v2.0 API version.


Change-Id: I49c10c8a3452b84c02de441f28d23c60ae505db4
Sem-Ver: feature
2017-01-20 13:26:09 +00:00
Lisa Zangrando 449d35439d QuotaManager: private quota shrinking must not be always allowed
QuotaManager not allows the private quota shrinking if
the current resource usage exceeds the new size.

Change-Id: Ie86314d137991a755ec178b82d3716b3fc35bc0e
Sem-Ver: bugfix
2017-01-20 12:50:28 +01:00
Lisa Zangrando 447f11d315 NovaManager and KeystoneManager are not SSL-enabled
NovaManager and KeystoneManager MUST support the HTTPS connections
for interacting with the OpenStack services.

- added two new manager config options: ssl_ca_file and ssl_cert_file

Change-Id: Ibacbf3504badd65a792c72c9134e2c7c13adea69
Sem-Ver: feature
2017-01-16 12:59:30 +01:00
Vincent Llorens 42bdd09212 Release v2.2.2
Change-Id: I41bbdc6a3df96424db2b69cc0d9e5c4befd8ee06
2016-12-14 10:57:17 +01:00
Lisa Zangrando 90e6d14aab Make SchedulerManager handle ERROR notifications.
SchedulerManager receives all VMs status changes through AMQP but it doesn't
handle the ERROR notifications (not used before to Liberty version)

- updated test unit (test_scheduler_manager.TestNotifications.test_info_quota)

Change-Id: Ia1e4db66a743f2d42f01241505310cbed37b625e
Sem-Ver: bugfix
Closes-bug: #1648057
2016-12-12 16:30:56 +00:00
Vincent Llorens a6cc985ad6 Release v2.2.1
Update the required version of synergy-service.

Change-Id: Id4917db6f568f083aee8f772da5e82408b3b4870
2016-12-12 14:35:10 +01:00
Vincent Llorens e7e32c7360 fix: update required version of synergy-service
Change-Id: I3411cb4d66a5955ca3800037d7dcdc7497a9bace
2016-12-12 14:22:12 +01:00
Vincent Llorens f22afd8f0f Release v2.2.0
Change-Id: Ifcbc9fb361f8d43022355313b043475e8290583e
2016-12-12 13:39:48 +01:00
Jenkins abb1faef93 Merge "[packaging] make docker aware of PKG_VERSION" 2016-12-12 10:02:14 +00:00
Jenkins cb1327f27c Merge "Release v2.1.0" 2016-12-12 10:01:50 +00:00
Jenkins 8ff83d7f9d Merge "Queue.updatePriority() takes much time if the queue is large" 2016-12-12 10:00:31 +00:00
Vincent Llorens 6bf859417a Release v2.1.0
This release corresponds to the code at commit
d6e2010abd

Change-Id: I494f943a41d15e9b75a4ec30d7f84b7c29ad7c31
2016-12-09 10:20:07 +01:00
Vincent Llorens d4c83d9fb8 [packaging] make docker aware of PKG_VERSION
When packaging, we can now pass a PKG_VERSION environment variable to
docker to force which version is being packaged.
If this variable is not passed to docker, then the version is the latest
git tag.

Change-Id: Id24a076794006ba7675ff5cc320115108b60dee2
2016-12-08 09:03:14 +00:00
Lisa Zangrando 8451e011a7 Synergy releases in advance the VMs that are going to be destroyed
Synergy releases in advance the VMs that are going to be destroyed,
before the confirmation notification is arrived.

Change-Id: Ia0ba1c8c715ff831f5d3579e23fc324488570937
Sem-Ver: bugfix
Closes-bug: #1646529
2016-12-08 08:59:24 +00:00
Lisa Zangrando 3cc99f5c14 Queue.updatePriority() takes much time if the queue is large
The method updates the priority of all user requests in the queue, one by one.
The priority of each request is updated in memory and into the DB table.
If the queue is too large (>5000), the updatePriority() takes much time for
its execution.

Change-Id: I982f98be94a8d23a159320887f51e7393fecb4a9
Sem-Ver: bugfix
Closes-bug: #1646466
2016-12-08 08:58:58 +00:00
Lisa Zangrando 4db25a4f5b Add the new clock_skew parameter for KeystoneManager
A clock skew (e.g. clock_skew (time in seconds)) parameter is needed to set the
maximum difference allowed between the Synergy and Keystone clocks.

Change-Id: Ia347524472e86101a47240e7b1b1cb0ee05939c0
Sem-Ver: feature
Closes-bug: #1646783
2016-12-07 11:49:39 +01:00
Lisa Zangrando 91919336b8 Invalid input for field/attribute quota_class_set
The optional input attribute 'force' for os-quota-class-sets is no more
supported in Mitaka and so NovaManager throws the following exception
reported in the log file:

ERROR - error on updating the quota info (id=<built-in function id>):
{u'badRequest': {u'message': u"Invalid input for field/attribute
quota_class_set. Value: {u'cores': 2, u'ram': 1024, u'force': True,
u'instances': 10}. Additional properties are not allowed
(u'force' was unexpected)", u'code': 400}}

- fixed method: NovaManager.updateQuota()
- moved some not useful logging info from LOG.info() to LOG.debug()

Change-Id: I72a401beee24b24bd2f8fc6dc8a3784813af0864
Sem-Ver: bugfix
Closes-bug: #1645397
2016-11-28 17:39:28 +00:00
Lisa Zangrando 0309dd1cc6 KeystoneManager.authenticate() uses a wrong domain attribute
The request body for /v3/auth/tokens (in KeystoneManager.authenticate())
includes a payload that specifies a wrong domain attribute (i.e.
"id"="default"). The proper attribute to use is "name"="default".
This bug affects the OpenStack Mitaka version while in Liberty seems to
be accepted or ignored.
- added two new KeystoneManager configuration attributes:
    user_domain_name and project_domain_name

Change-Id: I0b9e56260d2e425399fe5a0c18a10af250a9f022
Sem-Ver: bugfix
Closes-bug: #1645318
2016-11-28 13:22:40 +00:00
Lisa Zangrando 1a36a1db90 Add a backfill_depth parameter
Allow Synergy to not check the whole queue when looking for jobs to
start.

Change-Id: Idf8b92d3d91c0beadabea09f31e042c39320e4f0
Sem-Ver: feature
Closes-bug: #1644188
DocImpact
2016-11-24 16:32:13 +00:00
Jenkins 3b74b591fe Merge "Item readjustment fixed in PriorityQueue" 2016-11-24 16:28:20 +00:00
Lisa Zangrando 314e9f4ab8 Item readjustment fixed in PriorityQueue
Allow the PriorityQueue to re-insert an item by guaranteeing the proper priority ordering
- fixed methods: put(), items(), smallest(), largest()
- fixed unit test (test_queue.py)

Change-Id: I12b461a3cbc84d51877a455fca29589491ceb7fd
Sem-Ver: bugfix
Closes-bug: #1644257
2016-11-24 17:06:02 +01:00
Lisa Zangrando 9e16739c8e The FairshareManager should not use the Manager.condition var
The Manager.condition (i.e. threading.Condition()) variable is used by Synergy for scheduling the periodic manager's tasks at fixed rate. FairshareManager inherits the same variable from Manager and wrongly uses it for different purposes. The problem is that every time the FairshareManager calls the condition.notifyAll() method, triggers unwittingly the execution of the task() method.

Change-Id: I910a50c566e076439de78d0f4e4df0d9a893aadb
Sem-Ver: bugfix
Closes-bug: #1644496
2016-11-24 11:18:16 +01:00
Lisa Zangrando 98221a2a6e Fix scheduling when shared quota is disabled
- quota.py: now the method allocate() handles the case of quota disabled
  and blocking=True
- quota_manager.py: fixed the method updateDynamicQuota() which set the
  shared quota disabled or enabled
- scheduler_manager.py: in case the shared quota is disabled, the
  scheduling process is stopped

Change-Id: I80dd04505f8ce4cb65b04d2ee46819fe078a363f
Sem-Ver: bugfix
Closes-bug: #1643833
2016-11-23 13:48:25 +00:00
Vincent Llorens 74bda4bce1 Update changelogs and system package versions
Also update requirements accordingly for the synergy-synergy
dependency.

Change-Id: Iaaff96ee6b57f0745d8de5ad905bec18ccd9a795
Depends-On: If18e6decc4b21ddaa230c4be3819dfe1c24cf5f4
2016-11-09 15:30:32 +00:00
Lisa Zangrando d6e2010abd CLI command "synergy usage show" enhanced
- now it is possible to show the usage by project and user
- removed unuseful check in QueueCommand
- removed unused var in UsageCommand
- removed unused import: 'from synergy_scheduler_manager.common.queue import Queue'

Sem-Ver: feature

Please enter the commit message for your changes. Lines starting

Change-Id: I2ed6304328dcb628fe4662eb6977ce4b988b8a15
2016-11-09 15:12:43 +01:00
Vincent Llorens 3f700fe681 Clean up oslo imports
We used to put `try / except ImportError` around oslo lib imports
to support both the `oslo_lib` and `oslo.lib` name patterns.

It is now useless since the newer versions of these libs all support
the `import oslo_lib` pattern.

Tested on CentOS 7 with the OpenStack Liberty repository.
Tested on Ubuntu 14.04 with OpenStack Liberty CloudArchive repository.

Change-Id: I91a14baea4df0d66db4818bdcaf895b0e2a62245
Sem-Ver: bugfix
2016-11-08 11:10:56 +01:00
Jenkins b5768baef3 Merge "Synergy doesn't rely anymore on nova.conf" 2016-11-07 17:28:15 +00:00
Jenkins f00097756f Merge "Method deserialize() fixed" 2016-11-07 14:07:57 +00:00
Lisa Zangrando df1b545145 Synergy doesn't rely anymore on nova.conf
- nova_manager.py: removed the 'nova_conf' option from synergy.conf and added 'metadata_proxy_shared_secret'
- quota_manager.py: get the values of 'cpu_allocation_ratio' and 'ram_allocation_ratio' options just from synergy.conf

Sem-Ver: api-break
Change-Id: Ie33e216b12e6034082c729756a34112b37b121b7
2016-11-07 14:06:43 +00:00
Lisa Zangrando 396bca1bc0 Method deserialize() fixed
- wrong handling of datetime objects

Change-Id: I5889bdb2f8129f6abf6f02c0aa2264c5bc214a98
Sem-Ver: bugfix
2016-11-04 11:47:53 +01:00