openstack运维命令
- 文章原始同步:微信搜索公众号:sky wide 技术
- QQ技术群:308191819
- 欢迎各位加入
keystone user-create --name=xxx --pass=xxx --tenant=xxx
keystone user-delete xxx
keystone user-update --name=xxx --enabled=false userx
keystone user-password-update --pass=xxxx userx
keystone user-list
keystone user-get xxx
keystone tenant-create --name=xxx
keystone tenant-delete xxx
keystone tenant-update --name=xxx --enabled=false tenantx
keystone tenant-list
keystone tenant-get xxx
keystone role-create --name=xxx
keystone role-delete xxx
keystone role-list
keystone role-get xxx
keystone user-role-add --user=xxx --tenant=xxx --role=xxx
keystone user-role-remove --user=xxx --tenant=xxx --role=xxx
keystone service-create --name xxx --type image
keystone service-delete servicex
keystone service-list
keystone service-get servicex
keystone endpoint-create --service-id=xxx --publicurl=http://xxx --internalurl=http://xxx --adminurl=http://xxx
keystone endpoint-delete endpointx_id
keystone endpoint-list
keystone endpoint-get --service=image
glance image-create --name xxx --disk-format qcow2 --container-format bare --file xxxx.img --owner xxx --progress
glance image-delete xxx
glance image-list
glance image-list --all-tenants
glance image-show imagex
glance image-download --file filename imagex_id
nova flavor-create myflavor auto 1024 15 1
nova flavor-delete myflavor
nova flavor-list
nova flavor-access-add myflavor tenantx_id
nova flavor-access-remove myflavor tenantx_id
nova flavor-access-list --flavor flavorx_id
nova secgroup-create segx "test secgroup"
nova secgroup-delete segx
nova secgroup-list
nova secgroup-add-rule testsec icmp -1 -1 0.0.0.0/0
nova secgroup-delete-rule testsec icmp -1 -1 0.0.0.0/0
nova secgroup-list-rules default
nova boot --flavor flavorx_id --image imagex_id vmname
nova boot --flavor flavorx_id --image snapoftest snapinstance
nova boot --flavor flavorx_id --boot-volume clouddisk_id --poll testinstance
nova delete vmx
nova list
nova show vmname
nova image-create --show --poll vmname snapofvm
nova image-delete testsnap2
nova image-list
nova quota-defaults
nova quota-class-update --instances 20 default
nova quota-class-show default
nova quota-update --instances 20 tenantx_id
nova quota-show --tenant tenantx_id
neutron net-create --tenant-id tenantx_id --shared --router:external=True sharednet1
neutron net-delete sharednet1
neutron net-list
neutron net-show sharednet1
neutron subnet-create --name subnet1 --allocation-pool start=100.0.0.100,end=100.0.0.200 --disable-dhcp --gateway 100.0.0.1 sharednet1 100.0.0.0/24
neutron subnet-delete subnet1
neutron subnet-lis
neutron subnet-show subnet1
neutron router-create router1
neutron route-delete router1
neutron router-interface-add router1 subnet1
neutron router-gateway-set router1 sharednet1
neutron router-list
neutron router-show router1
neutron agent-list
cinder create --display-name volume1 1
cinder delete volume2
cinder rename volume1 volume2
cinder extend volume1 10
cinder list
cinder show volume2
cinder snapshot-create --display-name v-snap1 volume1
cinder snapshot-delete v-snap2
cinder snapshot-rename v-snap1 v-snap2
cinder snapshot-list
cinder snapshot-show v-snap2
cinder create --snapshot-id snap_id --display-name v3 1
cinder service-list