Earlier  
Posted Nick Remark
#openstack-nova - 2021-05-06
10:36:17 sean-k-mooney and proably compare the filed bettwen both
10:36:17 sean-k-mooney and proably compare the filed bettwen both
10:37:39 sean-k-mooney gibi: at a minim ooo shoudl be setting the neutron hostname mapping automatically when using the bandwith feature
10:37:39 sean-k-mooney gibi: at a minim ooo shoudl be setting the neutron hostname mapping automatically when using the bandwith feature
10:38:23 sean-k-mooney gibi: there is a patch against netruon right now https://review.opendev.org/c/openstack/neutron/+/788893
10:38:23 sean-k-mooney gibi: there is a patch against netruon right now https://review.opendev.org/c/openstack/neutron/+/788893
10:38:24 gibi it is needed there as CONF.host is fqdn but libvirt returns short names?
10:38:24 gibi it is needed there as CONF.host is fqdn but libvirt returns short names?
10:39:05 sean-k-mooney gibi: well i think that is actully the correct behaivor
10:39:05 sean-k-mooney gibi: well i think that is actully the correct behaivor
10:39:43 sean-k-mooney i.e. we have always talk about the hypervior_hostname as beign a hostname not an fqdn
10:39:43 sean-k-mooney i.e. we have always talk about the hypervior_hostname as beign a hostname not an fqdn
10:41:01 gibi If we all agree that hypervisor_hostname is always expected to be the shortname, and we require the CONF.host to always be fqdn, then neutron can simply get the shortname out from the fqdn to look up the RP
10:41:01 gibi If we all agree that hypervisor_hostname is always expected to be the shortname, and we require the CONF.host to always be fqdn, then neutron can simply get the shortname out from the fqdn to look up the RP
10:41:25 gibi but if every config can be either short or fqdn in all combinations then we are lost
10:41:25 gibi but if every config can be either short or fqdn in all combinations then we are lost
10:41:28 sean-k-mooney well we do not retuire CONF.host to alwasy be the fqdn
10:41:28 sean-k-mooney well we do not retuire CONF.host to alwasy be the fqdn
10:41:36 sean-k-mooney its normally the sort name too
10:41:36 sean-k-mooney its normally the sort name too
10:42:08 gibi I think we should write up the list of supported config combinations
10:42:08 gibi I think we should write up the list of supported config combinations
10:42:24 gibi and then fix what is broken
10:42:24 gibi and then fix what is broken
10:42:28 sean-k-mooney right now technially both value can be short name or fqdn
10:42:28 sean-k-mooney right now technially both value can be short name or fqdn
10:42:46 sean-k-mooney but hypervior_hostname was alwasy intended to be the sortname and host defualt to the short name
10:42:46 sean-k-mooney but hypervior_hostname was alwasy intended to be the sortname and host defualt to the short name
10:43:21 sean-k-mooney we talked about this at the dublin ptg at some lenght as some operators wanted to use FQDNs for both
10:43:21 sean-k-mooney we talked about this at the dublin ptg at some lenght as some operators wanted to use FQDNs for both
10:43:41 gibi and libvirt uses fqdn is some cases already based on the comment you linked from the code
10:43:41 gibi and libvirt uses fqdn is some cases already based on the comment you linked from the code
10:44:17 sean-k-mooney gibi: yes only if you set the canonical hostname in /etc/hosts to an fqdn
10:44:17 sean-k-mooney gibi: yes only if you set the canonical hostname in /etc/hosts to an fqdn
10:44:48 gibi so again, I think we first agree on what config fqdn/sortname combination OpenStack wants to supprot
10:44:48 gibi so again, I think we first agree on what config fqdn/sortname combination OpenStack wants to supprot
10:44:57 gibi then fix the system to work in these scenarios
10:44:57 gibi then fix the system to work in these scenarios
10:45:48 sean-k-mooney ya
10:45:48 sean-k-mooney ya
10:47:25 sean-k-mooney ya personally i would prefer to either onlyu use hostname or only use FQDNs
10:47:25 sean-k-mooney ya personally i would prefer to either onlyu use hostname or only use FQDNs
10:48:03 gibi yepp, that would be clean and self consistent all the way
10:48:03 gibi yepp, that would be clean and self consistent all the way
10:48:05 sean-k-mooney i prefer hostnames but that is just a preference
10:48:05 sean-k-mooney i prefer hostnames but that is just a preference
10:48:52 sean-k-mooney the delta in function ality is fqdns allows host-1.rack-1.mydomain and host-1.rack-2.mydomain to work
10:48:52 sean-k-mooney the delta in function ality is fqdns allows host-1.rack-1.mydomain and host-1.rack-2.mydomain to work
10:49:13 sean-k-mooney where as hostnames only requires tehm all to be unique
10:49:13 sean-k-mooney where as hostnames only requires tehm all to be unique
10:49:32 gibi yepp, I see the need for FQDNs in big deployments
10:49:32 gibi yepp, I see the need for FQDNs in big deployments
10:49:42 gibi or at least accept the need
10:49:42 gibi or at least accept the need
10:50:05 sean-k-mooney the only issue if we use FQDNs only is sometime we will still end up with hostnames
10:50:05 sean-k-mooney the only issue if we use FQDNs only is sometime we will still end up with hostnames
10:50:25 sean-k-mooney i.e. if you dont have the FQDN in /etc/hosts
10:50:25 sean-k-mooney i.e. if you dont have the FQDN in /etc/hosts
10:51:03 sean-k-mooney well that and we told all the other service to use socket.gethostname()
10:51:03 sean-k-mooney well that and we told all the other service to use socket.gethostname()
10:51:46 sean-k-mooney i even changed cyborg to use gethostnaem form getfqdn https://github.com/openstack/cyborg/commit/ec0eab0ffb4fc18574dbd937f29545832d317e4c
10:51:46 sean-k-mooney i even changed cyborg to use gethostnaem form getfqdn https://github.com/openstack/cyborg/commit/ec0eab0ffb4fc18574dbd937f29545832d317e4c
10:51:53 sean-k-mooney after that intial email thread
10:51:53 sean-k-mooney after that intial email thread
10:53:08 sean-k-mooney gibi: part of me feels like we should add a fucntion to oslo.utils
10:53:08 sean-k-mooney gibi: part of me feels like we should add a fucntion to oslo.utils
10:53:14 sean-k-mooney and then just have everyone use that
10:53:15 sean-k-mooney and then just have everyone use that
10:53:50 sean-k-mooney and then in nova we can perhaps think about have a reshape or soemthing to normalise the RPs
10:53:50 sean-k-mooney and then in nova we can perhaps think about have a reshape or soemthing to normalise the RPs
10:54:15 gibi I think you can rename without reshape
10:54:15 sean-k-mooney the fact this currently depend on the virt driver you use is less then ideal.
10:54:15 gibi I think you can rename without reshape
10:54:16 sean-k-mooney the fact this currently depend on the virt driver you use is less then ideal.
10:54:26 sean-k-mooney gibi: ya i think you are right
10:54:26 sean-k-mooney gibi: ya i think you are right
10:54:31 sean-k-mooney the allocation dont need to move
10:54:31 sean-k-mooney the allocation dont need to move
10:54:35 gibi yepp
10:55:14 sean-k-mooney what we can do its encode the libvirt logic which is in the neutron patch in an oslo patch
10:55:14 sean-k-mooney what we can do its encode the libvirt logic which is in the neutron patch in an oslo patch
10:55:20 sean-k-mooney and then use that
10:55:20 sean-k-mooney and then use that
10:55:42 sean-k-mooney for libvirt at least it woudl not change behaivor and for other driver i suspect it wont either
10:55:42 sean-k-mooney for libvirt at least it woudl not change behaivor and for other driver i suspect it wont either
10:55:56 gibi I cannot comment on other drivers cases
10:55:56 gibi I cannot comment on other drivers cases
10:56:11 sean-k-mooney well ironic they use the ironic node uuid as the name right?
10:56:11 sean-k-mooney well ironic they use the ironic node uuid as the name right?
10:56:32 sean-k-mooney not sure what hyperv or vmware does
10:56:32 sean-k-mooney not sure what hyperv or vmware does
10:56:38 gibi yes. but I don't know if neutron ever needs that
10:56:38 gibi yes. but I don't know if neutron ever needs that
10:56:49 gibi that = ironic node name
10:56:49 gibi that = ironic node name
10:56:57 sean-k-mooney ya the neutron agent dont run on the ironic nodes
10:56:57 sean-k-mooney ya the neutron agent dont run on the ironic nodes
10:57:35 gibi I have to jump to a call from the top of the hour
10:57:35 gibi I have to jump to a call from the top of the hour
10:57:50 gibi I linked this discussion to the neutron patch for reference

Earlier   Later