Wednesday, 2024-06-19

opendevreviewThomas Goirand proposed openstack/puppet-neutron master: Add neutron-services-service support  https://review.opendev.org/c/openstack/puppet-neutron/+/92230610:40
d1nuc0mHi guys, a couple of questions13:22
d1nuc0mIs it possible to use URI::regexp to validate a URL in a patch to be proposed to puppet-openstack?13:23
d1nuc0mOr is there a recommended method?13:23
zigotkajinam: I don't understand what I've done wrong: https://review.opendev.org/c/openstack/puppet-neutron/+/92230613:32
d1nuc0mzigo, there is an error about a duplicate declaration13:40
d1nuc0mDuplicate declaration: Service[neutron-services-server] is already declared at (file: /home/zuul/workspace/spec/fixtures/modules/neutron/manifests/server.pp, line: 510); cannot redeclare (file: /home/zuul/workspace/spec/fixtures/modules/neutron/manifests/server.pp, line: 525)13:40
zigod1nuc0m: Yes, thanks, but where in the source code do I have this?13:40
zigoTo me, the title line 510 and 525 are different !13:40
d1nuc0mIt's not in your source code13:41
d1nuc0mNot in the manifests at least13:41
zigoIn the spec file?13:41
d1nuc0mThe Zuul test creates a manifest from the spec and tries to run it13:41
d1nuc0mSo the error lines are not referred to the edits you made to the neutron server spec file13:42
d1nuc0mAlso in lines 286:287 I see that there is a duplicate of rpc_service_name13:43
d1nuc0mzigo13:43
zigoOh, that must be it then!13:44
zigoThanks.13:44
d1nuc0mI don't know, I'm still a newbie to Puppet & specs, but it looks strange to me13:45
opendevreviewThomas Goirand proposed openstack/puppet-neutron master: Add neutron-services-service support  https://review.opendev.org/c/openstack/puppet-neutron/+/92230613:46
zigoLet's see if it passes now! :)13:46
tkajinamd1nuc0m, I'm unsure the actual implementation you have in your mind, but if you aim to implement the parameter value validation at class/defined-type interface layer then using Stdlib::HTTPUrl would be a better choice13:59
tkajinamthere are a few such work already done in puppet-oslo or puppet-keystone you can check14:00
tkajinamI'm packed with some internal things this week but would attempt to stay around irc next week, hopefully.14:01
d1nuc0mtkajinam, thank you, I was working on implementing an arbitrary OIDCRedirectURI in puppet-keystone federation14:18
d1nuc0mAn I wanted to validate it's a valid URI, problem with Stdlib::HTTPUrl is that it's not an http url14:19
opendevreviewThomas Goirand proposed openstack/puppet-neutron master: Add neutron-services-service support  https://review.opendev.org/c/openstack/puppet-neutron/+/92230614:30
opendevreviewFrancesco Di Nucci proposed openstack/puppet-keystone master: feat: add a param for arbitrary federation OIDCRedirectURI  https://review.opendev.org/c/openstack/puppet-keystone/+/92232814:32
opendevreviewThomas Goirand proposed openstack/puppet-neutron master: Add neutron-services-service support  https://review.opendev.org/c/openstack/puppet-neutron/+/92230614:32
opendevreviewFrancesco Di Nucci proposed openstack/puppet-keystone master: feat: add a param for arbitrary federation OIDCRedirectURI  https://review.opendev.org/c/openstack/puppet-keystone/+/92232814:35
d1nuc0mtkajinam, sent a proposal, maybe this should clarify what I had in mind14:38
d1nuc0mHopefully we'll be able to check it next week14:39
d1nuc0mAs always, thanks for your time :)14:39
*** iurygregory_ is now known as iurygregory21:28

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