Opentack nova – Host filters for Ceph and local ephemeral storage

OpenStack: use ephemeral and persistent root storage for different hypervisors Original article https://ceph.io/en/news/blog/2014/openstack-use-ephemeral-and-persistent-root-storage-for-different-hypervisors/ Computes with Ceph image backend and computes with local image backend. At some point, you might want to build hypervisor and use their local storage for virtual machine root disks. Using local storage will help you maximasing your IOs and will reduce […]

Read More »

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 »