Monday, 2021-11-08

*** gouthamr_ is now known as gouthamr04:07
*** JqckB_ is now known as JqckB04:07
*** sshnaidm|off is now known as sshnaidm08:04
baptistemmhello13:04
baptistemmI came to get supprt because module os_server_volume is crashing13:07
baptistemmhere is the code and the crash https://pastebin.com/WTaznuZt13:07
baptistemmthe first task is able to create the requested volume without problem13:08
baptistemmI'm using the latest stable version of openstack collection so 1.5.113:09
baptistemmI've also tried to pass the id of the server for the second task and I got the same result13:16
sshnaidmbaptistemm, server: "{{ ansible_hostname }}"  ?13:18
sshnaidmbaptistemm, server should be the server name on openstack13:19
baptistemmsshnaidm: actually that is the server name13:21
baptistemmbut I found the issue, the server was mot existing in the same zone (I created manually)13:22
sshnaidmbaptistemm, it seems like it doesn't find the server13:22
sshnaidmbaptistemm, yeah, this is it13:22
baptistemmsshnaidm: should I open a bug to make the module fails nicely when the server is not found13:22
sshnaidmbaptistemm, you can do even better - to send a patch :)13:23
baptistemmsshnaidm: wow you expect too much from me. if you can give me some hint I promess I'll try13:23
sshnaidmbaptistemm, you can just copy that line for server: https://opendev.org/openstack/ansible-collections-openstack/src/branch/master/plugins/modules/server_volume.py#L9213:23
baptistemmok13:24
sshnaidm        if not server:13:24
sshnaidm            self.fail(msg='server %s is not found' % self.params['server'])13:24
baptistemmseems really simple13:24
sshnaidmyep13:24
baptistemmas server is mandatory seems a good idea to check this13:25
sshnaidmyeah, logical thing to do..13:25
baptistemmsshnaidm: I'm failing to get git-review being able to clone, so I'll try tonight14:08
sshnaidmbaptistemm, you clone with "git clone"14:14
sshnaidmbaptistemm, git-review is for sending patches14:14

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!