Tuesday, 2023-02-07

*** mhen_ is now known as mhen02:09
ozzzomelwitt: I ended up writing a script that uses the python API; based on this but using the unified client instead: https://github.com/vinothkumarselvaraj/openstack-orphaned-resource03:49
ozzzoThis appears to be a work in progress; it doesn't work, and when I tried to fix it I was reminded of how much better the new API is03:49
*** yadnesh|away is now known as yadnesh04:07
*** soniya29 is now known as soniya29|afk11:39
*** yadnesh is now known as yadnesh|away12:22
guesswhat[m]Can anyone paste a snippet with Cinder backend configuration for Glance with internalUrl endpoint ?  It still trying to connect to publicUrl endpoint, this results in TLS error ( Lets Encrypt CA is not present in cacert I guess )14:44
lowercasehttps://paste.centos.org/view/55ded33514:48
lowercase@guesswhat[m]14:48
lowercasealso, my public endpoint is haproxy in the front of my entire openstack infra.14:50
lowercaseSo if the TLS error was to exist in my environment, it would be in the haproxy configuration.14:51
guesswhat[m]lowercase:  thanks. this is glance conf? where is defined connection to cinder? 15:07
jamesbensonDoes anyone clone kolla images to a local repo using harbor?  I'm looking at Zen and quay15:11
lowercase@guesswhat[m]sorry prob not useful. I use ceph as my backend. I wasn't thinking 15:37
lowercasehere is that part of the config 15:37
lowercase[rbd]15:37
lowercaserbd_store_pool = images15:37
lowercaserbd_store_user = glance15:37
lowercaserbd_store_ceph_conf = /etc/ceph/ceph.conf15:37
lowercaserbd_store_chunk_size = 815:37
melwittozzzo: ah, good to know. glad you found another way to do it15:52
*** umbSubli1 is now known as umbSublime18:11
ozzzoI've been experimenting with "project purge" and it deletes volumes, but I can't get it to delete ports and security groups. What am I missing?18:45
ozzzoI'm running kolla train18:45
melwittozzzo: it might be that you need to install the python-neutronclient package. I think their client works as a openstackclient plugin and I notice it's not in the requirements.txt for OSC19:16
ozzzo_workmelwitt: It looks like I have python-neutronclient installed:19:47
ozzzo_work$ pip list|grep neutron19:47
ozzzo_workpython-neutronclient   7.5.019:47
ozzzo_workbut os purge only finds VMs and volumes19:48
melwittozzzo_work: oh, hm. not sure what could be going wrong. if you haven't already run with 'openstack --debug' you can do that to get verbose output, might give some clues19:51
ozzzo_workmelwitt: : When I search the debug output for 9696 I only see it on line 31 which appears to be a list of endpoints URLs. It doesn't appear to be sending anything to the Neutron endpoint: https://paste.openstack.org/show/bjHl3EdCwnQqyEVwoMth/20:03
melwittozzzo: that would do it ... if OSC isn't calling into the neutron client at all, that's why I was thinking maybe it wasn't installed. but if it is?20:13
ozzzo_workIt looks like I need to delete resources individually; which is doable, but not as elegant20:15
melwittozzzo: huh... well, apparently that's intentional, there's no calls to neutron in here https://github.com/openstack/python-openstackclient/blob/03e58a48864933f250ca914901c924984b91936e/openstackclient/common/project_purge.py20:15
melwittand neutronclient has its own purge command https://docs.openstack.org/python-neutronclient/latest/cli/neutron-reference.html#purge20:16
melwittso you could call that separately20:17
ozzzo_workI'll just do them separately. At this point I'm not adding any legacy client calls into my automation20:18
melwittit looks like it might be that no one has proposed a patch yet to hook the neutron purge command into OSC20:19
melwittI found this patch while looking https://review.opendev.org/c/openstack/python-openstackclient/+/734485 and from its commit message there's another project cleanup command https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/project-cleanup.html which is/was intended to supersede the purge command. that's confusing 😆 20:22
melwittyou could try 'openstack project cleanup' and see if it gets the network resources as well20:23
ozzzo_worklooksl like that may not be working in Train. I get "requires authentication" as admin20:24
melwittoh, you're right. I wasn't thinking of the version. project cleanup was added in Wallaby20:25
melwittusually the client is backward compat with older versions of openstack20:27

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