Openstack commands
    
            Nova:
- List of instances:instances
openstack server list
nova list
- Details on a specific instance:instance
openstack server show <server id>
nova show <server id>
- Rebuild an instance:instance
openstack server rebuild --image <image id> <server id>
- Attach a port to an instance:instance
nova interface-attach --port-id <port id> <instance id>
nova boot --availability-zone nova:metal01:SERVERID --flavor OAS2.2xE5-2650v4.64GB.2x480GB.SSD.10GbE --image IMG-ID --nic port-id=PORT-ID name-of-mechine
openstack server create --image <image id> --flavor <flavor id> --nic net-id=<network id>,v4-fixed-ip=<ip-address> --security-group <security group id> --key-name <keypair name> vmname
- Remove error state from instance 
nova reset-state --active <ID>
- Change the flavour (resize)
openstack server resize --flavor <flavor> <ID>
Neutron:
- List of subnets and network ID:ID
openstack network list
neutron net-list
- List of subnets, their IDs and allocation pools:
openstack subnet list
neutron subnet-list
openstack port list
neutron port-list
openstack port create --network <network id> --fixed-ip subnet=<subnet id>,ip-address=<ip-address>
neutron port-create --fixed-ip subnet_id=<subnet id>,ip_address=<X.X.X.X> <network id>
openstack port set --fixed-ip subnet=<subnet id>,ip-address=<ip-address> --fixed-ip subnet=<subnet id>,ip-address=<ip-address> <port id>
neutron port-update --fixed-ip subnet_id=<subnet id>,ip_address=<ip-address> --fixed-ip subnet_id=<subnet id>,ip_address=<X.X.X.X> <port id>
openstack port unset --fixed-ip subnet=<subnet id>,ip-address=<ip-address>
- Get details on a port:port
openstack port <port id>
neutron port-show <port id>
Glance:
openstack image list
glance image-list
- Get details on an image:image
glance image-show <image id>
openstack image create --disk-format qcow2 --container-format bare --public --file ./centos7.qcow2 centos7-image
openstack image delete <ID>
Other:
openstack flavor list
openstack keypair list
openstack security group list