*** artom has quit IRC | 00:19 | |
openstackgerrit | Brin Zhang proposed openstack/python-openstackclient master: Add server migrate list CLI https://review.opendev.org/675304 | 00:47 |
---|---|---|
*** lifeless has joined #openstack-sdks | 01:02 | |
*** dave-mccowan has quit IRC | 04:09 | |
*** evrardjp has quit IRC | 04:33 | |
*** evrardjp has joined #openstack-sdks | 04:33 | |
*** TheJulia has quit IRC | 04:39 | |
*** TheJulia has joined #openstack-sdks | 04:40 | |
*** gtema has joined #openstack-sdks | 06:20 | |
*** sshnaidm|afk is now known as sshnaidm | 06:50 | |
*** ralonsoh has joined #openstack-sdks | 07:11 | |
*** yoctozepto2 has joined #openstack-sdks | 07:20 | |
*** yoctozepto has quit IRC | 07:22 | |
*** yoctozepto2 is now known as yoctozepto | 07:22 | |
*** tosky has joined #openstack-sdks | 07:40 | |
*** jpena|off is now known as jpena | 07:57 | |
*** jpich has joined #openstack-sdks | 08:04 | |
*** ebbex has quit IRC | 08:37 | |
*** ebbex has joined #openstack-sdks | 08:44 | |
*** dtantsur|afk is now known as dtantsur | 09:06 | |
*** ricolin has quit IRC | 09:29 | |
*** bverschueren has quit IRC | 09:32 | |
*** bverschueren has joined #openstack-sdks | 09:32 | |
*** jpich has quit IRC | 09:40 | |
*** jpich has joined #openstack-sdks | 09:41 | |
*** gtema has quit IRC | 10:27 | |
*** gtema has joined #openstack-sdks | 10:35 | |
*** gtema has quit IRC | 11:15 | |
*** jpena is now known as jpena|lunch | 11:38 | |
*** gtema has joined #openstack-sdks | 11:46 | |
*** enriquetaso has joined #openstack-sdks | 12:00 | |
*** ricolin has joined #openstack-sdks | 12:10 | |
*** jpena|lunch is now known as jpena | 12:40 | |
*** ralonsoh has quit IRC | 12:51 | |
*** ralonsoh has joined #openstack-sdks | 12:52 | |
*** nikparasyr has joined #openstack-sdks | 13:09 | |
*** dave-mccowan has joined #openstack-sdks | 13:10 | |
*** artom has joined #openstack-sdks | 13:37 | |
nikparasyr | hello, i've noticed that for many resources such as projects, domains etc via the openstacksdk its not possible to get the tags of these resources | 13:38 |
nikparasyr | am i missing something or is that true? is there any blueprint to implement this? | 13:38 |
gtema | not all resources support tagging (not talking that resources you refer doesn't) | 13:39 |
gtema | generally a standard way to implement this is to mixin resource.TagMixin (https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/network/v2/port.py#L17) | 13:40 |
gtema | this will enable all standard tag operations | 13:40 |
gtema | and projects do that already, so there is support for tags there | 13:41 |
gtema | https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/identity/v3/project.py#L17 | 13:41 |
nikparasyr | domains dont: https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/identity/v3/domain.py#L17 | 13:42 |
nikparasyr | which was the resource i started looking at | 13:42 |
gtema | domains do not support tags as a feature at all | 13:43 |
gtema | it's nothing SDK can do about | 13:43 |
nikparasyr | hmmmmm, i thought they did but maybe im wrong, ( i actually have tagged domains that i do via terraform -> gophercloud ) but maybe im missing something | 13:44 |
nikparasyr | i'll have a look. this is a good starting point in any case. i might come back with more questions :P. thanks a lot | 13:45 |
gtema | are you talking about identity domain or something else? | 13:45 |
gtema | since I do not see terraform managing identity domains at all | 13:46 |
nikparasyr | yes about identity domain. via tf i do this via: https://www.terraform.io/docs/providers/openstack/r/identity_project_v3.html#is_domain but i have to double check gophercloud to see exactly how they have implemented it | 13:48 |
nikparasyr | but by creating it like this i can set tags, and via cli i can see them via a openstack domain show <id> and via the sdk i cannot | 13:48 |
gtema | this is still managing a project concept, and not the domain | 13:48 |
gtema | which SDK call you use? | 13:49 |
*** Luzi has joined #openstack-sdks | 13:50 | |
nikparasyr | i used both: conn.identity.domains() and conn.list_domains(), given the new information im pretty sure i can scrape this info via projects() | 13:50 |
gtema | use conn.identity.projects() | 13:51 |
gtema | since in keystone there are 2 concepts: projects and domains | 13:51 |
gtema | projects support tags, domains not | 13:51 |
gtema | and project can be "is_domain" | 13:51 |
nikparasyr | ok. thanks a lot :) | 13:51 |
gtema | wlcm | 13:52 |
*** ralonsoh has quit IRC | 14:41 | |
*** ralonsoh has joined #openstack-sdks | 14:42 | |
*** artom has quit IRC | 15:22 | |
*** iurygregory has quit IRC | 15:24 | |
*** artom has joined #openstack-sdks | 15:27 | |
*** Luzi has quit IRC | 15:28 | |
*** dtantsur is now known as dtantsur|afk | 15:31 | |
*** iurygregory has joined #openstack-sdks | 15:42 | |
*** elmiko has joined #openstack-sdks | 15:51 | |
noonedeadpunk | hi everyone! Need some help with sdk regarding placement... I figured out that regarding placement we can only send get/post/put/etc. But not really sure I got the way to send data for post.... | 15:58 |
noonedeadpunk | sol ike hgave no issues with `conn.placement.get('/resource_providers/3088cbfe-2bd7-415d-a83e-b32cd2c1f44f') | 15:59 |
gtema | look in https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/compute/v2/server.py#L231 for example of sending data with post | 16:00 |
noonedeadpunk | but not sure how conn.placement.post works, as it claims that it's Malformed JSON | 16:00 |
elmiko | API SIG office hour now open | 16:00 |
gtema | inside it is plain python requests | 16:00 |
noonedeadpunk | and no args to pass data to | 16:00 |
* gtema waives to elmiko | 16:00 | |
noonedeadpunk | gtema: will try this, thanks | 16:01 |
* elmiko waves to gtema | 16:01 | |
gtema | sad email you have sent | 16:01 |
elmiko | sorry, had to be done | 16:01 |
gtema | yes, sure. We all said that | 16:01 |
elmiko | we've done a lot of good things with this sig over the years though. i'm proud of all the contributions people have made =) | 16:02 |
gtema | great | 16:02 |
elmiko | i'm glad we finally merged the service discovery stuff though lol | 16:02 |
gtema | hehe | 16:03 |
*** dayou has quit IRC | 16:04 | |
*** nikparasyr has left #openstack-sdks | 16:20 | |
*** dayou has joined #openstack-sdks | 16:28 | |
elmiko | well, it's been a good run. thanks to everyone for their contributions =) | 16:56 |
elmiko | have a good weekend all, and stay safe out there! o/ | 16:57 |
*** jpena is now known as jpena|off | 17:03 | |
*** gtema has quit IRC | 17:12 | |
*** dayou has quit IRC | 17:18 | |
*** dayou has joined #openstack-sdks | 17:31 | |
*** jpich has quit IRC | 18:10 | |
*** nightmare_unreal has quit IRC | 18:29 | |
*** sshnaidm is now known as sshnaidm|off | 18:48 | |
*** gtema has joined #openstack-sdks | 19:13 | |
*** gtema has quit IRC | 19:18 | |
*** ralonsoh has quit IRC | 19:30 | |
*** tosky has quit IRC | 19:45 | |
*** slaweq has quit IRC | 20:20 | |
*** slaweq has joined #openstack-sdks | 20:25 | |
*** johnavp1989 has left #openstack-sdks | 20:36 | |
*** johnavp1989 has joined #openstack-sdks | 20:36 | |
openstackgerrit | Merged openstack/openstacksdk master: Add func test for compute microversion 2.3 https://review.opendev.org/741514 | 21:00 |
openstackgerrit | Merged openstack/openstacksdk master: Add tests for compute microversion 2.2 and 2.10 https://review.opendev.org/741295 | 21:05 |
openstackgerrit | Merged openstack/openstacksdk master: Switch nodepool test to containers https://review.opendev.org/748932 | 21:05 |
openstackgerrit | Merged openstack/python-openstackclient master: Allow openstack flavor set to update flavor description using name https://review.opendev.org/733688 | 22:01 |
*** bverschueren has quit IRC | 22:05 | |
*** bverschueren has joined #openstack-sdks | 22:06 | |
*** enriquetaso has quit IRC | 22:39 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!