Working with Openstack metadata service when using OVN

Metadata agent Running the agent neutron-ovn-metadata-agent –config-file /etc/neutron/neutron.conf –config-file /etc/neutron/neutron_ovn_metadata_agent.ini Configure neutron_ovn_metadata_agent.ini.j2 on the compute node(s) [ovn] ovn_nb_connection=tcp:{{OVN Controller IP}}:6641 ovn_sb_connection=tcp:{{OVN Controller IP}}:6642 ovn_metadata_enabled = true Configure neutron.conf on the Neutron server [ovn] ovn_metadata_enabled = true     Reading https://docs.openstack.org/networking-ovn/latest/admin/refarch/refarch.html – For a nice diagram on how the bits fit together https://man7.org/linux/man-pages/man7/ovn-architecture.7.html – Some more […]

Read More »

Useful gnocchi commmands

resource update -a customerID:”customer1″ 729389e687504dbf8b2c4aead14a607c –type my_consumable_resource resource show 4f42c5e60813488ea166206c5bfc10cd –type my_consumable_resource

Read More »

KVM\Qemu\Openstack – Manage a live migration

virsh qemu-monitor-command {VMNAME} –pretty ‘{“execute”:”migrate_cancel”}’ Allow Virsh more downtime(If it cant keepup with RAM utilization) virsh migrate-setmaxdowntime VMNAME 2500   Check migration status virsh domjobinfo instance-000002ac Job type: Unbounded Operation: Outgoing migration Time elapsed: 1307956 ms Data processed: 118.662 GiB Data remaining: 9.203 MiB Data total: 8.005 GiB Memory processed: 118.662 GiB Memory remaining: 9.203 […]

Read More »

Openstack – Manually edit VM

Find the host the VM is running on and the instance ID(Use console view to get instance ID) cp /etc/libvirt/qemu/instance-0000030a.xml . edit instance-0000030a.xml to be what you need it to be While the VM is running (Warning, will crash the VM) virsh destroy instance-0000030a virsh undefine instance-0000030a virsh define instance-0000030a.xml virsh start instance-0000030a

Read More »

Kolla commands

Build just one container and send it to a private registry kolla-build -b ubuntu kolla-toolbox –registry localhost:443 –push Build one thing and publish it to a custom namespace sudo kolla-build horizon -b ubuntu –push –registry m2-kolla-deploy:443 -n cory Push a single ‘project’ out – Unconfirmed kolla-ansible deploy keystone -i all-in-one   kolla-ansible prechecks -e ‘ansible_become=true’ […]

Read More »

Openstack Queens – Nova: Error creating new key pair

Ina fresh install of Oepnstack Queens I was having an issue generating new keypairs after a reboot f the Nova node. The following error was logged in nova-api.log A simple restart of the nova-api service resolved this issue for me   2018-05-02 13:25:41.101 1351 ERROR nova.api.openstack.wsgi [req-78070ded-b2cd-4e1a-8a51-8c082b50e0a4 f2800cf724264988aab44aa21bf1dae4 0d280551fd45414eace8211d6ac154c0 – default 252047b9b8504489a11d9230a8f9bf55] Unexpected exception in […]

Read More »

Openstack – Layer2 Gateway(VXLAN -> Real world bridge)

This article is the culmination of 100’s of hours of work, I hope it can save others some time. Here are some super useful articles that got me across the line https://networkop.co.uk/blog/2016/05/21/neutron-l2gw/ https://wiki.openstack.org/wiki/Ovs-flow-logic http://kimizhang.com/neutron-l2-gateway-hp-5930-switch-ovsdb-integration/ https://drive.google.com/file/d/0Bx8nDIFktlzBRm0tV3pmYURnZ3M/view https://github.com/openstack/networking-l2gw   Setting up and Openvswitch VTEP Step1 – Kill all Openvswitch processes use ps ax | grep ovs to […]

Read More »