Monday, 2023-01-16

jrossergood morning10:06
jrossernoonedeadpunk: can we do a zed sha bump / release soon?10:07
admin1hi guys .. what do you use to limit vm bandwidth ? does rx/tx work for kvm as well ? 10:35
admin1sorry .. i meant  do you use flavor parameters .. like vif_* or  neutron qos ? 10:37
moha7To have `vim` install ed on all containers, how should it be don via all_containers group in user_variables.yml?11:45
admin1moha7, i do install vim , curl and wget as well, but i do it via adhoc ansible command 11:47
jrossermoha7: admin1 see this, only relevant at the point that the container image is created https://github.com/openstack/openstack-ansible-lxc_hosts/blob/master/defaults/main.yml#L18811:51
jrossermoha7: admin1 and then if you want something installed independantly of making the container image on all hosts, use this https://github.com/openstack/openstack-ansible-openstack_hosts/blob/master/defaults/main.yml#L14211:52
moha7jrosser: Great11:54
jrosseryou can also install things only on the hosts, not containers with this https://github.com/openstack/openstack-ansible-openstack_hosts/blob/master/defaults/main.yml#L14811:55
moha7what about 2211:56
moha7I want them to be installed within containers11:57
jrosser22?11:57
moha7L2211:57
jrosserhttps://github.com/openstack/openstack-ansible-openstack_hosts/blob/master/defaults/main.yml#L22 ?11:57
moha7https://github.com/openstack/openstack-ansible-lxc_hosts/blob/master/defaults/main.yml#L2211:57
jrosserwell that does what it says :) install packages to the host11:58
jrosserthe lxc_hosts role is responsible for setting up the host, and buiding the container image11:58
jrosserit does not start containers11:58
moha7right11:58
jrosserso you have the choice of installing things into the container image at the point that it is created11:58
jrosseror you can install things once the containers have been created using the openstack_hosts role which is run against everything11:59
jrossermoha7: does this give you the options you need?12:00
moha7openstack_hosts --> points to the containers after they're created, right?12:01
moha7jrosser: yes, it gives12:02
jrossermoha7: openstack_hosts runs against everything, hosts and containers12:17
jrosserand you have variables in that role for "everything" or "hosts only"12:17
moha7In both the documentation for provider: https://docs.openstack.org/neutron/latest/admin/ovn/refarch/provider-networks.html and also in `/opt/openstack-ansible//etc/openstack_deploy/openstack_user_config.yml.example`, it's said to have both vlan and flat types with same value for container_bridge: `container_bridge: "br-vlan"`, both mapped to same interface12:19
moha7Error in neutron_server container --> in rsyslog :12:22
moha7ERROR neutron.plugins.ml2.managers     raise ValueError(_("Value %(value)s in mapping: '%(mapping)s' "#0122023-01-16 15:41:07.821 3130 ERROR neutron.plugins.ml2.managers ValueError: Value br-vlan in mapping: 'flat:br-vlan' not unique#0122023-01-16 15:41:07.821 3130 ERROR neutron.plugins.ml2.managers 12:22
jrossermoha7: i am not sure what you are asking?12:23
jrosserwhen LXC are created, connect `container_bridge` on the host to `container_interface` in the LXC12:25
jrosserthats not really to do with the neutron config?12:25
jrosserunfortunately `provider_networks` has some fields used to define how the container networking as arranged, and some fields are relevant to the neutron config12:26
jrossermoha7: did you also compare with the section in the AIO config file for OVN? https://github.com/openstack/openstack-ansible/blob/master/etc/openstack_deploy/openstack_user_config.yml.aio.j2#L178-L19212:29
jrosseri think also we have given advice that for a production deployment it is probably better to not have a flat network at all12:29
moha7yes; but I couldn't finally solved the provider issue; then i decided to test it for flat as it ls simpler12:31
moha7In document, it says: `host_bind_override: "ens2f0"`12:31
moha7But, james said me to replace it with: `network_interface: "enp6s21"`12:33
jrosserthat document you refer to is for a very specific example given here https://docs.openstack.org/openstack-ansible/latest/user/prod/provnet_groups.html12:34
moha7L178-L192: Ah, it's `using group_binds: - neutron_ovn_gateway` while I'm using neutron_ovn_controller12:34
jrosseri am not sure that will fix your duplicate mapping12:37
moha7I had another mistake in openstack_user_config.yml, setting `network-gateway_hosts:` to controllers, while it should be on Computes12:56
moha7it made to have all hosts, both infras and computes, listed for gateways in the inventory.js12:58
moha7json*12:58
jrossermoha7: the idea is that you can choose if you want the gateways to be on the computes, controllers or both depending on how you define that group13:02
moha7`network-gateway_hosts: *controller_hosts` and `network-northd_hosts: *controller_hosts` and `group_binds:   - neutron_ovn_gateway #(for provider network)` -----> results in inventory.json: https://ibb.co/x58ksRk, jrosser13:15
moha7Is it correct to have all hosts as ovn_gataway?13:18
jrossermoha7: it depends, what do you want?13:18
moha7I want a working provider network (:13:20
jrosserwell like i say with OVN you get to choose these things13:21
moha7would you please take a look at my openstack_user_config.yml: http://ix.io/4lqn to see if there's aomething wrong there13:22
jrosserhave you yet fixed the neutron error with duplicated mappings?13:22
moha7no, I'm going to remove the flat network and deploy it again13:24
jrosseri don't even see br-vlan there which is from your previous error :/13:24
moha7I renamed it just now to br-ex 13:25
moha7brvlan = br-ex13:25
jrosserok well please take this the right way but it feels like we are changing so much continually it is very hard to help13:25
moha7my user_variables.yml: http://ix.io/4lqp13:25
jrosserif you have a specific error from neutron then you should fix that before moving on13:26
jrosserit's really really had to understand this from a distance with so much change13:26
moha7I see, I'll go read more logs13:27
jrosserjust a side note that the utility container should have a complete openstack CLI setup for you13:27
jrosserthere is no need to do your own lxc_cache_extra_distro_packages: python3-openstackclient13:27
jrosserthat will install it from an apt package which is totally not what you want13:27
jrossermoha7: if you have a specific error, like the duplicate you have before then lets look at it one step at a time13:28
jrosserit might be we need to ask jamesdenton again for some advice13:29
moha7sure13:31
mgariepyhello13:31
jrosserhello13:33
mgariepyhow are things going ?13:37
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Allow git servers for openstack services and tempest to be overridden  https://review.opendev.org/c/openstack/openstack-ansible/+/86974813:40
jrossermgariepy: ok i think - wish i understood more OVN really!13:41
mgariepywhat don't you understand about it ?13:41
mgariepyinput packet >> ovn magic >> output packet13:41
jrosser^that bit :)13:42
jrosseri guess we have a lot of people apparently struggling13:42
mgariepythe physical binding is pretty much the same as ovs13:42
jrosserand hard to say if its structural errors in OSA or docs should be better, or openstack_user_config is just too complicated13:42
jamesdentongood morning13:43
mgariepyhey good morning jamesdenton 13:43
admin1morning 13:43
jamesdentonmoha7 when you say your provider network isn't working, can you elaborate on that a bit? the network exists but no traffic?13:43
mgariepyi want to add some docs on how to find differents component and how to map them in the ovn DB and neutron db13:44
jamesdentongood call13:44
admin1moha7, do you plan to use both flat and br-vlan over the same network ? 13:45
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Allow git servers for openstack services and tempest to be overridden  https://review.opendev.org/c/openstack/openstack-ansible/+/86974813:45
mgariepynot that it's that complicated but there is pretty much a dict of uuid:names for eache component. once we get the idea of how the commands are structured it's pretty clean too.13:46
jamesdentonmoha7 the openstack_user_config.yml looks pretty good, but i would just say that because you've defined br-ex twice (once for vlan, once for flat) you may want to remove network_interface from one of them. 13:50
mgariepythis is the task that is causing the duplicate : https://zuul.opendev.org/t/openstack/build/869e5843628a4a2f9a4318d253af3e77/log/job-output.txt#17366-1737013:54
mgariepyhttps://github.com/openstack/openstack-ansible-os_neutron/blob/master/tasks/providers/setup_ovs_ovn.yml#L55-L7713:54
jamesdentonyeah, i can't recall if when it goes to process the second bridge w/ the same name, and connect a port that already is connected, if it will complain or not13:56
jamesdentonbut state is "present" so maybe it skips?13:56
jamesdentonERROR neutron.plugins.ml2.managers     raise ValueError(_("Value %(value)s in mapping: '%(mapping)s' "#0122023-01-16 15:41:07.821 3130 ERROR neutron.plugins.ml2.managers ValueError: Value br-vlan in mapping: 'flat:br-vlan' not unique#0122023-01-16 15:41:07.821 3130 ERROR neutron.plugins.ml2.managers 13:57
jamesdentonahh ok, i missed that. 13:57
jrosserthats from the neutron config file isnt it13:57
jamesdentonso, the issue with that is OVN no longer allows two mappings w/ the same bridge13:58
jamesdentonthe fix, IIRC, is to rename the "flat" network to vlan (to match the other) but keep type as flat. I think. i can lab it out, but it will be a while before i can get to it13:58
moha7jamesdenton: everything works well except the access from the outside; My case: virtualization infra: ProxMox with a bunch of subnets under one vlan (ID: 3647); Each Ubuntu machine has 4 interface (for example enp6s18 for br-mgmt as a bridge routed to the a subnet under vlan3647, netplan: http://ix.io/4lqw, Machine interfaces: https://ibb.co/3c2m5nd); I can create external network successfully and when intruduced to a 13:58
moha7router, the router takes a random IP from the external subnet range. This router gateway is oingable from the insiade of instances (then SNATing works); but that gateway IP is not available from the outside, for example from the upstream router wher the vlan3647 has ben defined)13:58
jamesdentonor, eliminate flat altogether13:58
jamesdentonkk - i have a call right now but will take a look at this when i';m done, nmaybe an hour or less13:59
jamesdentonmoha7 what kind of network is the external provider network?14:02
jamesdentonand did you use vlan or flat?14:02
moha7"everything works well except the access from the outside" for lab1 where there'e no flat network14:03
moha7"Error: Value br-vlan in mapping: 'flat:br-vlan' not unique" ---> on lab2 where I add a flat network too14:03
moha7on lab1? only vlan14:03
jamesdentonlab1 and lab2 are different machine names? or different lab environments?14:04
admin1moha7, remove the flat network 14:09
admin1and then tcpdump -ni any -e vlan  XYZ to see if you can see the tagged vlan packets 14:09
admin1that way, you can see where its seen 14:10
admin1maybe its blocked in the proxmox host 14:10
moha7jamesdenton: two different labs14:10
moha7two env14:10
jamesdentoncool, and this http://ix.io/4lqn corresponds to which?14:11
moha7where I get this error: "Error: Value br-vlan in mapping: 'flat:br-vlan' not unique"14:14
jamesdentonyes14:14
jamesdentonto fix that, try changing 'net_name: "flat"' to 'net_name: "vlan"'14:14
jamesdentonso, you'll have two with net_name vlan, but one whose type is vlan adn the other flat14:15
jamesdentonthe playbooks should merge them14:15
jamesdentonand then on the flat one, also removenetwork_interface: "enp6s21"14:15
jamesdenton*remove14:15
jrosser^ this was one of the most confusing things for me in the early days, where name/type use the same strings14:15
moha7then I use `net_name: "provider"` for better understanding14:15
moha7for both of them14:16
jamesdentonok that's fine14:16
*** dviroel is now known as dviroel|lunch15:03
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-os_nova master: Support configuration of resource providers with config files  https://review.opendev.org/c/openstack/openstack-ansible-os_nova/+/87055915:17
*** dviroel|lunch is now known as dviroel15:28
jamesdentonmoha7 any luck?15:51
moha7I let him do his job and left the house. I will give you the result right here in a few hours15:59
moha7Deployment (from scratch) on 5 nodes with local Ubuntu repo and SSD disk takes about 5 hours16:00
jrosserit shouldnt be necessary to redo everything16:01
moha730min for setup-hosts16:02
moha71h30m for setup-infra16:02
moha73h for setup-openstack16:02
moha7jamesdenton: ^16:02
jamesdenton1:30, woof16:02
jamesdentonso, if it's not prod, i tend to disable ansible hardening, as that takes a bit16:03
jrosserfor just config changes re-running just the neutron playbook should suffice16:03
jamesdenton^^16:03
jrossermaybe there is some stickyness in old OVS config to delete by hand, but thats not my expertise16:04
moha7jrosser: yeah, I asked you yesterday (`--tags neutron-config`); But I wanted to be sure everything would be well16:04
jamesdentonwell, i wouldn't use the tag but just running os-neutron-install would be ok16:04
jrossermoha7: what will you do with your production deployment? :)16:04
jrosserthis is practice16:04
moha7((((=16:04
moha7you're right16:05
jrosserthe worst place to end up is being too worried to ever do maintainance16:05
jrosserand also that openstack-ansible is not really magical in any way16:06
jrosserit just installs some stuff, writes some config files and manages some services16:06
jrosserit's totally possible to debug whats going on, maybe edit some files by hand to get things working16:06
jrosserthen figure out what changes need to be made to your variables to end up with that working config16:07
moha7jamesdenton: hardening's been disabled in this way: http://ix.io/4lqp16:19
admin1i have a test lab today to setup ovn :) 16:20
jamesdentonmoha7 good deal16:38
admin1moha7, what is the rational behind having this everywhere ? python3-openstackclient 17:00
jrosseradmin1: i already mentioned that this was not necessary17:03
jrosserand also perhaps breaking things17:03
moha7admin1: When you are in a test lab, it's a facility to have it any where; For example T-shooting nova on nova container and you can use `openstack hypervisor list` at the same place; Bu I removed it from the variables file as jrosser mentioned it's a deb package going to work alongside with source-based services.17:05
jrosserplease don't install it like that17:05
jrosserjust keep a window/tab open in a utility container17:06
moha7I didn't; removed.17:06
moha7+117:06
jrosserthere is an openrc file written to the utility container17:07
jrosseryou should be able to source that and use the CLI17:07
admin1there is a utility container just for that purpose 17:13
admin1with admin creds already setup 17:14
admin1yeah else you are going to break your containers when openstack might pull its own stuff and the source needs its own stuff 17:14
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Allow git servers for openstack services and tempest to be overridden  https://review.opendev.org/c/openstack/openstack-ansible/+/86974817:59
moha7In documents: "2. Check the integrity of your YAML files. (Note: To check your YAML syntax online, you can use the YAML Lint program.)"19:42
moha7What does 'integrity' mean here?19:42
moha7Ref: https://docs.openstack.org/project-deploy-guide/openstack-ansible/zed/run-playbooks.html19:43
jamesdentonintegrity==format here19:45
jamesdentonsyntax19:46
moha7`nohup bash -c "time openstack-ansible /opt/openstack-ansible/playbooks/setup-hosts.yml" &` --->  ~28min (https://ibb.co/mSQ9zJM)19:52
moha7`setup-infrastrucure.yml` --> This time: ~41m (https://ibb.co/4YvskCN)19:52
moha7`setup-openstack.yml` --> in progress, but probably takes a bit longer because of this retried task: https://ibb.co/dgp00b219:52
moha7Got exhausted; This is the last time I'll run it from scratch ((:19:54
moha7Netx time, I just run the required playbooks.19:54
jamesdentonk20:03
jrossermoha7: that task should not fail20:08
jrosserthis is probably why you have some slowness20:09
jrossermoha7: can you please try `git clone https://opendev.org/openstack/keystone.git` from one of your hosts20:11
jrosseri am interested to see the speed / throughput and how long that takes20:11
moha7Oops! Started from 5MB but decreased to 100KB very fast!20:20
moha7100KB/s20:20
moha7So, I need to talk with the network team20:21
moha7jrosser: ^20:21
jrossermoha7: i think you have connectivity trouble to opendev.org20:23
jrosseri had the same last week with just 50kbits through 100G+ uplink20:23
jrosserit was clear that when our transit went via zayo it was terrible20:23
jrosserother hosts i had which went via cogent were fine20:24
jrossermoha7: i also have a work-in-progress patch which would let you swing all the repos over to github easily https://review.opendev.org/c/openstack/openstack-ansible/+/86974820:29
moha7Yeah, there's probably something with the my path to the git repo as I get the stable speed of ~5MB/s for downloading `wget https://releases.ubuntu.com/22.04.1/ubuntu-22.04.1-live-server-amd64.iso`; We have some proxies. I'll ask network guys to put my management VLAN into a VPN tunnel.20:39
jrossermoha7: i think this might help with your deployment time - some of the openstack service repos are large20:40
*** dviroel is now known as dviroel|out23:25

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