Activity log for bug #1532776

Date Who What changed Old value New value Message
2016-01-11 11:59:30 Eva Balycheva bug added bug
2016-01-11 12:16:50 Eva Balycheva description Look how flavor creation is made in python-zaqarclient: https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/queues/v1/pool.py#L46 Now imagine a situation: The user asks python-zaqarclient to create a flavor like this: tasty_flavor = self.client.flavor('tasty', pool='burger') But Zaqar server already has a flavor named 'tasty' with 'broccoli' pool group. The situation result: The user might think he created a flavor with name 'tasty' and pool group 'burger', when in reality he didn't created anything. Even worse, 'tasty' flavor has pool group 'broccoli'. The user would never expect such betrayal from python-zaqarclient. Same problem exists for creation of pools and maybe other resources. The possible solution must be discussed. Look how flavor creation is made in python-zaqarclient: https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/queues/v1/pool.py#L46 Now imagine a situation: The user asks python-zaqarclient to create a flavor like this: tasty_flavor = self.client.flavor('tasty', pool='burger') But Zaqar server already has a flavor named 'tasty' with 'broccoli' pool group. The situation result: The user might think he created a flavor with name 'tasty' and pool group 'burger', when in reality he didn't created anything. Even worse, 'tasty' flavor has pool group 'broccoli'. The user would never expect such betrayal from python-zaqarclient. Same problem exists for creation of pools and maybe other resources. The possible solution must be discussed.
2016-01-12 10:49:38 Md Nadeem python-zaqarclient: assignee MD NADEEM (mail2nadeem92)
2016-01-13 09:33:35 OpenStack Infra python-zaqarclient: status New In Progress
2016-03-01 04:10:53 OpenStack Infra python-zaqarclient: status In Progress Fix Released