OpenStack add project and users

  openstack project create production +————-+———————————-+ | Field | Value | +————-+———————————-+ | description | | | domain_id | default | | enabled | True | | id | 983eae3e9f394996afcc3b3de640b8d3 | | is_domain | False | | name | production | | parent_id | default | +————-+———————————-+   openstack project create development +————-+———————————-+ | Field […]

Read More

OpenStack migrate routers and dhcp

For various reasons, you might need to migrate routers and dhcp agents. For dhcp, they are already multiple and due to lease-timeout,  the migration is not noticable For routers, the downtime might be noticable from anywhere between 5 seconds to a minute as the ports will be recreated. Here is an example of such a […]

Read More

OpenStack add images to glance

You need to provide some images for your instances to be created. These can be any images. Login to the utility container (if using openstack-ansible deploy) or via cli as admin Download the image locally. wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img   Upload the image to openstack glance image-create –name “cirros-test” –file cirros-0.3.4-x86_64-disk.img –disk-format qcow2 –container-format bare –visibility public […]

Read More

OpenStack add direct attached dhcp ips

In our architecture, direct attached dhcp IPs are in VLAN 201 neutron net-create dhcp-192-168-201  \ –shared –router:external false \ –provider:network_type vlan \ –provider:physical_network vlan \ –provider:segmentation_id 201 +—————————+————————————–+ | Field | Value | +—————————+————————————–+ | admin_state_up | True | | id | 1d0fc020-d33b-406e-a287-02032a5a09b0 | | mtu | 0 | | name | dhcp-192-168-201 | | […]

Read More

OpenStack add floating ips

In our architecture, floating IPs are in VLAN 101. neutron net-create floating-192-168-101 \ –shared –router:external true –provider:network_type vlan \ –provider:physical_network vlan –provider:segmentation_id 101     +—————————+————————————–+ | Field | Value | +—————————+————————————–+ | admin_state_up | True | | id | 01c41b9a-3241-4236-9e52-77e0967d4b53 | | mtu | 0 | | name | floating-192-168-101 | | port_security_enabled | […]

Read More

OpenStack affinity and anti-affinity

Affinity: ensures instances are in the same compute node Anti-Affinity: ensures that the instances are not in the same compute node.   nova server-group-list +—-+——+———-+———+———-+ | Id | Name | Policies | Members | Metadata | +—-+——+———-+———+———-+ +—-+——+———-+———++———+   nova server-group-create far-apart anti-affinity  ##  ‘far-apart’ is just an arbitrary name I used +————————————–+———–+——————–+———+———-+ | Id […]

Read More