summaryrefslogtreecommitdiff
path: root/heat/engine/resources/openstack/designate
Commit message (Collapse)AuthorAgeFilesLines
* Remove six and python 2.7 full supportHervé Beraud2020-04-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Six is in use to help us to keep support for python 2.7. Since the ussuri cycle we decide to remove the python 2.7 support so we can go ahead and also remove six usage from the python code. Review process and help ----------------------- Removing six introduce a lot of changes and an huge amount of modified files To simplify reviews we decided to split changes into several patches to avoid painful reviews and avoid mistakes. To review this patch you can use the six documentation [1] to obtain help and understand choices. Additional informations ----------------------- Changes related to 'six.b(data)' [2] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ six.b [2] encode the given datas in latin-1 in python3 so I did the same things in this patch. Latin-1 is equal to iso-8859-1 [3]. This encoding is the default encoding [4] of certain descriptive HTTP headers. I suggest to keep latin-1 for the moment and to move to another encoding in a follow-up patch if needed to move to most powerful encoding (utf8). HTML4 support utf8 charset and utf8 is the default charset for HTML5 [5]. Note that this commit message is autogenerated and not necesserly contains changes related to 'six.b' [1] https://six.readthedocs.io/ [2] https://six.readthedocs.io/#six.b [3] https://docs.python.org/3/library/codecs.html#standard-encodings [4] https://www.w3schools.com/charsets/ref_html_8859.asp [5] https://www.w3schools.com/html/html_charset.asp Patch 9 of a serie of 28 patches Change-Id: I89ec972a566ce211b5de4b02ca4d9b1b6e178525
* Remove six and python 2.7 full supportHervé Beraud2020-04-231-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Six is in use to help us to keep support for python 2.7. Since the ussuri cycle we decide to remove the python 2.7 support so we can go ahead and also remove six usage from the python code. Review process and help ----------------------- Removing six introduce a lot of changes and an huge amount of modified files To simplify reviews we decided to split changes into several patches to avoid painful reviews and avoid mistakes. To review this patch you can use the six documentation [1] to obtain help and understand choices. Additional informations ----------------------- Changes related to 'six.b(data)' [2] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ six.b [2] encode the given datas in latin-1 in python3 so I did the same things in this patch. Latin-1 is equal to iso-8859-1 [3]. This encoding is the default encoding [4] of certain descriptive HTTP headers. I suggest to keep latin-1 for the moment and to move to another encoding in a follow-up patch if needed to move to most powerful encoding (utf8). HTML4 support utf8 charset and utf8 is the default charset for HTML5 [5]. Note that this commit message is autogenerated and not necesserly contains changes related to 'six.b' [1] https://six.readthedocs.io/ [2] https://six.readthedocs.io/#six.b [3] https://docs.python.org/3/library/codecs.html#standard-encodings [4] https://www.w3schools.com/charsets/ref_html_8859.asp [5] https://www.w3schools.com/html/html_charset.asp Patch 8 of a serie of 28 patches Change-Id: If54d634abfd345c1e672d31cb11de14260b34cc0
* Merge "Improve handle_delete/check_delete_complete for resources"Zuul2020-02-141-1/+2
|\
| * Improve handle_delete/check_delete_complete for resourceshuangtianhua2019-12-231-1/+2
| | | | | | | | | | | | | | If resource is not found in handle_delete, no need to get the resource again in check_delete_complete. Change-Id: Ib2ac05e4f89fe8eb159e4cb871828ce07bd03089
* | Fix Designate Zone ID lookup for realRabi Mishra2020-01-172-8/+0
|/ | | | | | | | | | | When there are no 'supported_versions' defined for a client plugin, we should not use version when calling self.client() Also fixes similar issue in resources. Task: 38165 Change-Id: Ifce776e8e8375f6a4399574aa71cc2f81ecc57b0
* Remove designate v1 supportRabi Mishra2019-09-262-256/+8
| | | | | | | Remove support completely and map the v1 resources to NoneResource. Change-Id: I8252e7feb4c1b87497770bf045d844fe5975c2b9
* Hidden OS::Designate::Record and OS::Designate::Domainhuangtianhua2017-10-182-6/+12
| | | | | | | We deprecated the resources OS::Designate::Record and OS::Designate::Domain in ocata, so hidden them now. Change-Id: I8f0529602f8d2ca50508c4f5ec00d255d078b8a9
* Merge "Deprecate designate v1 resource plugin"Jenkins2017-01-132-2/+8
|\
| * Deprecate designate v1 resource pluginKanagaraj Manickam2017-01-092-2/+8
| | | | | | | | | | | | | | | | | | Designage deprecated v1 and corresponding v2 resource plugin is provided as part of below blueprint. so this patch deprecates v1 resource plugins. Change-Id: Ia0fbea7a591be200d16be95d7111613f8762190c implments: blueprint heat-designate-recordset-zone
* | Merge "Add designate recordset support"Jenkins2017-01-111-0/+175
|\ \ | |/
| * Add designate recordset supportKanagaraj Manickam2017-01-091-0/+175
| | | | | | | | | | | | | | | | | | Designate supports the recordset from v2 api and this patch adds support for recordset resource plugin. Change-Id: I5ace854ede4de3566445d1324c720cdcbb982aa2 implements: blueprint heat-designate-recordset-zone
* | Merge "Add designate zone support"Jenkins2017-01-111-0/+180
|\ \ | |/
| * Add designate zone supportKanagaraj Manickam2017-01-091-0/+180
| | | | | | | | | | | | | | | | | | Designate supports the zone from v2 api and this patch adds support for zone resource plugin. Change-Id: I92df0c295ae12f7fb2351aaf030bd7c916f49177 implements: blueprint heat-designate-recordset-zone
* | Remove repeat entity definationhuangtianhua2017-01-052-6/+4
|/ | | | Change-Id: I02ed681c9b34021a23cf2b290a3fa5dce28cc0ec
* Don't resolve attribute pre-storageThomas Herve2016-10-151-0/+2
| | | | | | | Handle calls to _resolve_attribute when resource_id is None, removing useless API calls to backends. Change-Id: I2da7bf25193dbf10207564554fca93b4571c8858
* Merge "Designate::Domain observe reality implementation"Jenkins2016-04-141-0/+8
|\
| * Designate::Domain observe reality implementationPeter Razumovsky2016-04-131-0/+8
| | | | | | | | | | | | | | | | | | Override parse_live_resource_data method for Designate::Domain resource to update resource plugin with it's live state. implements bp get-reality-for-resources Change-Id: I062fae95a398a816e892b3b98fb6eedbdedc6de4
* | Designate::Record observe reality implementationPeter Razumovsky2016-04-131-0/+9
|/ | | | | | | | | | Override parse_live_resource_data method for Designate::Record resource to observe and update resource plugin with live state. implements bp get-reality-for-resources Change-Id: I8d1e2ef389f618674521153e6b11e8c5978a61c7
* Fix grammatical mistake, Changed character from "an" to "a" in below files:Alan2016-01-041-1/+1
| | | | | | | | | | | | | models.py line 120:Represents an syncpoint domain.py line 27:is an realm with an identification string queue.py line 81:if an queue with the same test_resource_type.py line 65:Check for an known resource test_server.py line 444, 472, 499, 1169, 1300, 1335: create an server remote_client.py line 45:Returns an ssh connection install.sh line 22:Ubuntu has an lsb_release command Change-Id: Iab6fec86b9a3a9bef284bbc9069530313c570b39
* Add descriptions to all openstack resources (Part 1)Peter Razumovsky2015-12-242-2/+11
| | | | | | | | | | | | | | | | | | | | | | | Add description of resources in openstack folder of heat engine. It should help users to understand which resource is need to. Resources' services updated in this patch: * barbican * ceilometer * cinder * designate * glance * heat (partial) * keystone * magnum * mistral * monasca * neutron (one resource) implements bp docstring-improvements Change-Id: I68813427ef8944cc7b05f1d8dcf12190d3ca45d1
* Merge "Fix _show_resource in Designate::Record"Jenkins2015-12-111-1/+5
|\
| * Fix _show_resource in Designate::RecordPeter Razumovsky2015-12-101-1/+5
| | | | | | | | | | | | | | | | | | get method in records requires domain_id as first argument, but in _show_resource there is only self.resource_id, so this patch adds domain_id. Change-Id: I1cb2d88ce26c307c040f3064233e410eccfd3811 Closes-bug: #1524312
* | Fix property TTL in Designate::DomainPeter Razumovsky2015-12-101-9/+4
| | | | | | | | | | | | | | | | | | Current property ttl of Domain is incorrect: 1. Minimum of ttl is 1, not 0; 2. If ttl is None, it should not be in create method args. Change-Id: I632c13f879bd42cf829bc3b490850e78f371ff0f Closes-bug: #1523538
* | Fix min value in ttl range of Designate::RecordPeter Razumovsky2015-12-091-2/+2
|/ | | | | | | | | Current ttl range constraint is incorrect: designate record requires 1 as minimal value for ttl. So, need to fix this place. Change-Id: Ib0423bc2b0412f4e10a3da2f73057c82a9ae14b7 Closes-bug: #1524313
* Use ClientPlugin.ignore_not_found as a context managerZane Bitter2015-10-271-3/+1
| | | | | | | These are all trivial uses with no flow control implications, where using a context manager is clearly simpler. Change-Id: I908c34738f8881787ea697c7378dcf2f17f6e7fc
* Merge "Adds _show_resource support to designate plugins"Jenkins2015-08-242-0/+14
|\
| * Adds _show_resource support to designate pluginsKanagaraj Manickam2015-08-202-0/+14
| | | | | | | | | | | | | | | | Adds the _show_resource() to designate plugins Domain and Record. Change-Id: If75457ee45b505ed7ce5e853b0f270cff71dc674 Closes-bug: #1484867
* | Refactor repeated handle_deletePeter Razumovsky2015-08-191-7/+2
|/ | | | | | | | Add parent handle_delete method based on entity argument and remove all repeated occurrences in Resource children. Change-Id: Ic18708e3780721031ccbba61f2d949be7b837ca3
* Don't use default None for params in handle_updateSergey Kraynev2015-08-072-8/+2
| | | | | | | | | | | | | | The main "update" function in resource.py call custom handle_update methods of resources. handle_update method always get not None parameters: after, tmpl_diff, prop_diff. Where: - 'after' is not None snippet of resource - tmpl_diff and prop_diff - values calculated corresponding functions, which return only dictionary (empty or not empty). This patch removes default None values from handle_update method of some resources to make all interfaces similar. Change-Id: Id62201e3a26b557a941bbd904a947f064df4aeb3
* Designate Record resourceKanagaraj Manickam2015-07-111-0/+163
| | | | | | | | Adds resource plugin for the designate Record. implements blueprint heat-designate-resource Change-Id: Ic7bbfca7b5adea2879f43fea76b89a6025584b88
* Designate Domain resourceKanagaraj Manickam2015-07-112-0/+127
Adds resource plugin for designate Domain implements blueprint heat-designate-resoure Change-Id: I47625096ce70b1df8959ae8e3149bb7c672ae15c