*** mhen_ is now known as mhen | 02:09 | |
ozzzo | melwitt: 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-resource | 03:49 |
---|---|---|
ozzzo | This 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 is | 03:49 |
*** yadnesh|away is now known as yadnesh | 04:07 | |
*** soniya29 is now known as soniya29|afk | 11:39 | |
*** yadnesh is now known as yadnesh|away | 12: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 |
lowercase | https://paste.centos.org/view/55ded335 | 14:48 |
lowercase | @guesswhat[m] | 14:48 |
lowercase | also, my public endpoint is haproxy in the front of my entire openstack infra. | 14:50 |
lowercase | So 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 |
jamesbenson | Does anyone clone kolla images to a local repo using harbor? I'm looking at Zen and quay | 15:11 |
lowercase | @guesswhat[m]sorry prob not useful. I use ceph as my backend. I wasn't thinking | 15:37 |
lowercase | here is that part of the config | 15:37 |
lowercase | [rbd] | 15:37 |
lowercase | rbd_store_pool = images | 15:37 |
lowercase | rbd_store_user = glance | 15:37 |
lowercase | rbd_store_ceph_conf = /etc/ceph/ceph.conf | 15:37 |
lowercase | rbd_store_chunk_size = 8 | 15:37 |
melwitt | ozzzo: ah, good to know. glad you found another way to do it | 15:52 |
*** umbSubli1 is now known as umbSublime | 18:11 | |
ozzzo | I'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 |
ozzzo | I'm running kolla train | 18:45 |
melwitt | ozzzo: 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 OSC | 19:16 |
ozzzo_work | melwitt: It looks like I have python-neutronclient installed: | 19:47 |
ozzzo_work | $ pip list|grep neutron | 19:47 |
ozzzo_work | python-neutronclient 7.5.0 | 19:47 |
ozzzo_work | but os purge only finds VMs and volumes | 19:48 |
melwitt | ozzzo_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 clues | 19:51 |
ozzzo_work | melwitt: : 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 |
melwitt | ozzzo: 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_work | It looks like I need to delete resources individually; which is doable, but not as elegant | 20:15 |
melwitt | ozzzo: 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.py | 20:15 |
melwitt | and neutronclient has its own purge command https://docs.openstack.org/python-neutronclient/latest/cli/neutron-reference.html#purge | 20:16 |
melwitt | so you could call that separately | 20:17 |
ozzzo_work | I'll just do them separately. At this point I'm not adding any legacy client calls into my automation | 20:18 |
melwitt | it looks like it might be that no one has proposed a patch yet to hook the neutron purge command into OSC | 20:19 |
melwitt | I 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 |
melwitt | you could try 'openstack project cleanup' and see if it gets the network resources as well | 20:23 |
ozzzo_work | looksl like that may not be working in Train. I get "requires authentication" as admin | 20:24 |
melwitt | oh, you're right. I wasn't thinking of the version. project cleanup was added in Wallaby | 20:25 |
melwitt | usually the client is backward compat with older versions of openstack | 20:27 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!