opendevreview | Merged openstack/os-api-ref master: remove unicode prefix from code https://review.opendev.org/c/openstack/os-api-ref/+/852970 | 12:20 |
---|---|---|
opendevreview | Mridula Joshi proposed openstack/openstacksdk master: Adds Support for ``glance cache-clear`` https://review.opendev.org/c/openstack/openstacksdk/+/874940 | 13:48 |
opendevreview | Mridula Joshi proposed openstack/openstacksdk master: Adding support for glance cache-queue Command https://review.opendev.org/c/openstack/openstacksdk/+/874372 | 14:05 |
opendevreview | Merged openstack/keystoneauth stable/2023.1: Update .gitreview for stable/2023.1 https://review.opendev.org/c/openstack/keystoneauth/+/875104 | 14:58 |
opendevreview | Merged openstack/keystoneauth stable/2023.1: Update TOX_CONSTRAINTS_FILE for stable/2023.1 https://review.opendev.org/c/openstack/keystoneauth/+/875105 | 15:10 |
ozzzo_work | What am I doing wrong here? https://bpa.st/MD3K6 | 15:37 |
ozzzo_work | I'm providing two arguments to update_server but the error says 3 were given | 15:38 |
ozzzo_work | The 'delete' part where I only pass a variable seems to work - it looks like I may not be passing the text argument correctly | 15:39 |
gtema | ozzzo_work: you should be using function stop_server(serverID) [https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/compute/v2/_proxy.py#L1092] instead | 15:40 |
gtema | also - you cannot simply pass parameters as a string into the update. Only passing them as regular function parameters is supported | 15:41 |
opendevreview | Lajos Katona proposed openstack/openstacksdk master: Add BGPVPN to SDK https://review.opendev.org/c/openstack/openstacksdk/+/875530 | 15:54 |
ozzzo_work | gtema: ty! I was looking at https://docs.openstack.org/openstacksdk/latest/user/proxies/compute.html but I see that it is missing some things | 15:58 |
ozzzo_work | how can I change a text argument into a regular function parameter? | 16:22 |
gtema | update method accepts same parameters as create call (not all of them are allowed to be changed though) | 16:44 |
ozzzo_work | I tried "statusVar = "status=SHUTOFF"" and then: lambda serverID,statusVar: cloud.compute.update_server(serverID,statusVar) | 16:46 |
ozzzo_work | but I still get the "3 were given" error | 16:46 |
gtema | I repeat - you should use stop_server to shut it down, simply setting it's status is a very very wrong way | 16:47 |
ozzzo_work | Is that because "status" can't be changed? | 16:47 |
gtema | second, if you want to i.e. change server name you do conn.compute.update_server(MY_SERVER_ID, name='NEW_NAME') | 16:48 |
ozzzo_work | I get that, but I still want to know how to set status | 16:48 |
gtema | status is more or less a read only property set by service side and not by client | 16:48 |
ozzzo_work | ok I'll try it with name | 16:48 |
ozzzo_work | ok that works, ty! | 16:50 |
opendevreview | Lajos Katona proposed openstack/openstacksdk master: Add BGPVPN to SDK https://review.opendev.org/c/openstack/openstacksdk/+/875530 | 19:47 |
-opendevstatus- NOTICE: The Gerrit service on review.opendev.org experienced severe performance degradation between 17:50 and 19:45 due to excessive API query activity; the addresses involved are now blocked but any changes missing job results from that timeframe should be rechecked | 19:55 | |
ozzzo_work | Is there a similar function for disabling a port? I'm looking here but I don't see it: https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/network/v2/_proxy.py | 20:42 |
ozzzo_work | oic i had to updaate admin_state_up | 20:49 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!