Wednesday, 2024-10-09

opendevreviewIury Gregory Melo Ferreira proposed openstack/ironic master: Use passlib instead of crypt  https://review.opendev.org/c/openstack/ironic/+/93185702:39
iurygregoryzigo, ^ 02:39
tkajinamiurygregory, I left a comment in the change but I think we need to find a different replacement. passlib hasn't been updated for 10 years (!) and is known to cause different compatibility problems06:08
tkajinamthere are a few other projects (eg keystone or nova) using crypto now. I'll check if I can find something else06:09
tkajinamin the worst case we can add a method to oslo.utils ...06:10
dtantsurtkajinam: dependencies... sigh06:44
dtantsurcardoe: auto-loading OEM data would be an interesting topic to discuss06:47
TheJuliaanother cache issue https://bugs.launchpad.net/ironic/+bug/208401006:53
TheJuliaI'd +1 crypt06:55
TheJuliaerr, crypto06:59
dtantsurgood morning, you in Brno?07:00
TheJuliaindeed07:02
opendevreviewDmitry Tantsur proposed openstack/ironic bugfix/26.0: Fix actual size calculation for storage fallback logic  https://review.opendev.org/c/openstack/ironic/+/93187407:08
opendevreviewDmitry Tantsur proposed openstack/ironic bugfix/25.0: Fix actual size calculation for storage fallback logic  https://review.opendev.org/c/openstack/ironic/+/93187507:09
opendevreviewDmitry Tantsur proposed openstack/ironic bugfix/24.0: Fix actual size calculation for storage fallback logic  https://review.opendev.org/c/openstack/ironic/+/93187607:09
rpittaugood morning ironic! o/07:19
rpittaudtantsur, iurygregory, re crypt deprecation: hashlib is more than enough for us, no need to add another dependency07:21
dtantsurrpittau: I think the salt handling was the issue?07:22
rpittauyou can use os.random for the salt07:22
rpittauus.urandom07:22
rpittau.... that!07:22
tkajinamIIUC we need to generate a value for /etc/shadow so the value may need to contain a few more fields like salt or the indicate of the hash algorithm.07:31
tkajinamso we need more than just hashlib.sha512(value).hexdigest()07:32
rpittautkajinam: the main funciton used by hashlib to hash the password should be enough07:32
rpittauI'm talking about pbkdf2_mac07:32
rpittaupbkdf2_hmac (can't type today)07:34
dtantsurpbkdf2_hmac is not relevant here07:35
tkajinamwe are not really talking about the hash method07:35
tkajinamwe need to create a record, which is compliant with the format expected by shadow. it contains hash value but need additional prefix fields07:36
dtantsurand salt, yes07:36
tkajinamyes07:36
tkajinamalso note if you aim to replace the hash alrogithm then that may mean you kill [conductor] rescue_password_hash_algorithm07:36
tkajinambut that's another topic07:36
dtantsurrpittau: check the link to passlib I pasted yersterday, it should give you an idea of what we're looking for07:36
TheJuliaIf anyone has questions for operators in the room for OpenInfra Days NA next week, please add it to: https://etherpad.opendev.org/p/ironic-na09:01
tkajinamthis is probably the easiest way to replace crypt.crypt https://review.opendev.org/c/openstack/oslo.utils/+/93189910:41
iurygregorygood morning ironic o/10:54
iurygregorytkajinam, oh wow 10 years is a lot =X10:54
iurygregoryrpittau, I didn't go with hashlib just because of the salt like dtantsur said11:02
rpittauiurygregory: the s alt is just a random number11:10
iurygregoryrpittau, yeah, I wasn't aware we could use os.urandom for that, will give it a go11:12
TheJuliadtantsur: thank you for those backports on bugfix branches12:56
TheJuliaI just approved htem12:56
dtantsursure thing :)12:56
* dtantsur will probably leave for a day because of headache12:56
TheJuliaeek, feel better!12:56
dtantsurthx..12:57
cardoemorning ironic13:10
opendevreviewMerged openstack/ironic bugfix/26.0: Fix actual size calculation for storage fallback logic  https://review.opendev.org/c/openstack/ironic/+/93187413:14
opendevreviewMerged openstack/ironic bugfix/25.0: Fix actual size calculation for storage fallback logic  https://review.opendev.org/c/openstack/ironic/+/93187513:14
opendevreviewMerged openstack/ironic bugfix/24.0: Fix actual size calculation for storage fallback logic  https://review.opendev.org/c/openstack/ironic/+/93187613:14
chris218Hi guys, does ironic somehow verify boot_device or it's just stored as string?13:55
chris218I'm working on custom driver for amt/vpro and it supports weird virtual-media-like solution and was wondering if i can just name it however i want or do i have to pretend it's virtual media13:57
TheJuliachris218: AFAIK we don't attempt to verify, we just tell the "driver" to assert what it thinks what it means14:01
chris218Oh awesome, thanks! Also i stumbled upon an old patch to implement vnc in drac driver, does ironic support vnc as a web console at all?14:05
JayFNo, we are discussing improving console support -- potentially (likely) including that -- at the PTG next week14:08
chris218Neat thanks14:09
JayFI will note, we'll probably implement support for common types in redfish14:09
JayFso likely not 'drac driver' but redfish stuff (which would include idrac-redish)14:10
kubajjJayF: isn't the PTG the week after next week?14:10
chris218Does redfish even have any console support atm?14:10
JayFkubajj: It's very possible14:13
kubajjjust double checking if it hasn't moved or something14:13
JayFI've been back home for my brothers' wedding for like, 5 days and have been working for 10 minutes14:15
JayFI trust your recollection over mine ;014:15
JayFhttps://openinfra.dev/ptg/ yeah 21-2514:15
JayFAs I'm catching up on reviews, will be linking low-hanging things we can land here14:27
JayFhttps://review.opendev.org/c/openstack/networking-generic-switch/+/93094314:27
cardoeYeah. I've got that in the weekly prio14:30
cardoehttps://tinyurl.com/ironic-weekly-prio-dash come on down and give +1 workflows14:31
cardoehttps://review.opendev.org/q/topic:%22passlib%22 keystone is dropping passlib15:19
rpittauheh look at that, little issue is that they're using crypt ins some cases, and it is going away in 3.1315:20
rpittaummm ok looks like they're just using crypt for a specific case and until sha512_crypt is going away, so should be good15:23
chris2183.13 also removes cgi module which breaks webob15:36
opendevreviewMerged openstack/ironic master: docs: Add context around asynchronous device initialization  https://review.opendev.org/c/openstack/ironic/+/92751815:37
rpittau\o/15:44
rpittau3.13 will be super fan15:44
opendevreviewMerged openstack/networking-generic-switch master: Force autospec=True in tests and fix unit tests  https://review.opendev.org/c/openstack/networking-generic-switch/+/93074515:56
rpittaugood night! o/16:10
opendevreviewMerged openstack/networking-baremetal master: avoid attribute error on bad password or config  https://review.opendev.org/c/openstack/networking-baremetal/+/92965016:37

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