Nutanix Platform Professional
Nutanix Platform Professional
OpenStack Administrator
Guide
Modified on 14 Nov 2017
VMware Integrated OpenStack 4.0
VMware Integrated OpenStack Administrator Guide
You can find the most up-to-date technical documentation on the VMware website at:
https://docs.vmware.com/
If you have comments about this documentation, submit your feedback to
[email protected]
VMware, Inc.
3401 Hillview Ave.
Palo Alto, CA 94304
www.vmware.com
Copyright © 2015–2017 VMware, Inc. All rights reserved. Copyright and trademark information.
VMware, Inc. 2
Contents
Updated Information 7
VMware, Inc. 3
VMware Integrated OpenStack Administrator Guide
VMware, Inc. 4
VMware Integrated OpenStack Administrator Guide
VMware, Inc. 5
About This Book
The VMware Integrated OpenStack Administrator Guide shows you how to perform
VMware Integrated OpenStack cloud administrative tasks in the VMware Integrated OpenStack, including
how to create and manage projects, users accounts, flavors, images, and networks.
Intended Audience
This guide is for cloud administrators who want to create and manage resources with an OpenStack
® ®
deployment that is fully integrated with VMware vSphere . To do so successfully, you should be familiar
with the OpenStack components and functions.
VMware, Inc. 6
Updated Information
This Administrator Guide is updated with each release of the product or when necessary.
Revision Description
00 Initial release.
VMware, Inc. 7
About
VMware Integrated OpenStack 1
With VMware Integrated OpenStack, you can implement OpenStack services on your existing VMware
vSphere implementation.
You deploy VMware Integrated OpenStack through the Integrated OpenStack Manager vApp in vCenter.
The Integrated OpenStack Manager provides a workflow that guides you through and completes the
VMware Integrated OpenStack deployment process. With Integrated OpenStack Manager, you can
specify your management and compute clusters, configure networking, and add resources. Post-
deployment, you can use Integrated OpenStack Manager to add components or otherwise modify the
configuration of your VMware Integrated OpenStack cloud infrastructure.
n Internationalization
Internationalization
VMware Integrated OpenStack 2.0 and greater is available in English and seven additional languages:
Simplified Chinese, Traditional Chinese, Japanese, Korean, French, German, and Spanish.
ASCII characters must be used for all input and naming conventions of OpenStack resources (such as
project names, usernames, image names, and so on) and for the underlying infrastructure components
(such as ESXi hostnames, vSwitch port group names, data center names, datastore names, and so on).
VMware, Inc. 8
VMware Integrated OpenStack Administrator Guide
For detailed information about the compatibility of VMware Integrated OpenStack with the OpenStack
Powered Platform™, go to
http://www.openstack.org/marketplace/distros/distribution/vmware/vmware-integrated-openstack.
Load balancing service 2 4 (2 per VM) 8 (4 per VM) 40 (20 per VM)
Database service 3 12 (4 per VM) 48 (16 per VM) 240 (80 per VM)
Memory cache service 2 4 (2 per VM) 32 (16 per VM) 40 (20 per VM)
Message queue 2 8 (4 per VM) 32 (16 per VM) 40 (20 per VM)
service
Controllers 2 16 (8 per VM) 32 (16 per VM) 160 (80 per VM)
Compute service (Nova 1 2 (2 per VM) 4 (4 per VM) 20 (20 per VM)
CPU)
DHCP service (VDS 2 8 (4 per VM) 32 (16 per VM) 40 (20 per VM)
deployments only)
VMware, Inc. 9
VMware Integrated OpenStack Administrator Guide
NSX Components
Additional CPU, RAM, and disk space is required for NSX components if they are deployed with
VMware Integrated OpenStack.
NSX Manager 1 4 (4 per VM) 12 GB (12 per VM) 60 GB (60 per VM)
NSX Edge (see note Varies: created on 1 per Edge DHCP VM, 512 MB per Edge 512 MB per Edge
below) demand. 2 per Edge router VM DHCP VM, DHCP VM,
1 per Edge router VM 1 per Edge router VM
TOTAL 4 plus Edge 16 plus Edge 24 GB plus Edge 120 GB plus Edge
requirements requirements requirements requirements
When you create a logical subnet or logical router, a new Edge VM is dynamically created to serve this
request if an existing Edge node cannot.
Requirement Description
For information about storage requirements per VM in a typical VMware Integrated OpenStack
deployment, see Hardware Requirements for VMware Integrated OpenStack.
Storage requirements vary depending on whether you deploy with NSX or VDS networking.
VMware, Inc. 10
VMware Integrated OpenStack Administrator Guide
Storage
Requirements
Cluster (GB) Notes
Management 665 The storage requirement calculation is based on the following nodes:
n OpenStack Manager (1 node)
n Load Balancers (2 nodes)
n Database (3 nodes)
n Memory Cache (2 nodes)
n Message Queue (2 nodes)
n Controllers (2 nodes)
n NSX Controller (3 nodes)
n NSX Manager (1 node)
Note Creating a dedicated cluster for the NSX Edge nodes is a best practice to optimize
performance. In an alternative deployment, you can include the NSX Edge nodes in the
Management cluster.
Storage Requirements
Cluster (GB) Notes
Management 585 The storage requirement calculation is based on the following service nodes:
n OpenStack Manager (1 node)
n Load Balancers (2 nodes)
n Database (3 nodes)
n Memory Cache (2 nodes)
n Message Queue (2 nodes)
n Controllers (2 nodes)
n DHCP Controller (2 nodes)
When you install VMware Integrated OpenStack, you must provide the following information.
VMware, Inc. 11
VMware Integrated OpenStack Administrator Guide
Starting with VMware Integrated OpenStack 3.1, if you use VMware NSX-T in your environment, you can
use the native DHCP and metadata support. To be able to use these functionalities, you must create a
DHCP profile and metadata proxy server for your NSX-T environment.
Property Description
Edge Cluster The name of the cluster containing the Edge nodes.
Port Group for External The port group created on a VLAN specifically for the External network. You created this port group
Network as part of the process of preparing to deploy VMware Integrated OpenStack with NSX.
(optional VMware NSX-T To use native DHCP, configure a DHCP server profile for your NSX-T environment. For more
only) DHCP profile information, see Create a DHCP Server Profile in the NSX-T Administration Guide.
(optional VMware NSX-T To use metadata support, configure a metadata proxy server for your NSX-T environment. For more
only) Metadata proxy information, see Add a Metadata Proxy Server in the NSX-T Administration Guide. During the
server configuration, use the load balancer private IP of your OpenStack deployment for URL for the Nova
server. For example: http://load_balancer_private_IP:8775/. Also keep the secret parameter, as you
need it during the VMware Integrated OpenStack deployment.
In most cases, you must manage such VMs in the OpenStack dashboard or CLI rather than in the
vSphere Web Client.
Launch YES
Reboot YES
Terminate YES
Resize YES
Rescue YES
Pause NO
Un-pause NO
Suspend YES
Resume YES
VMware, Inc. 12
VMware Integrated OpenStack Administrator Guide
Inject Networking
Inject Networking is supported only when the following
conditions are present:
YES
n With nova network in Flat mode
n With Debian- or Ubuntu-based virtual machines
n At boot time
Inject File NO
RDP Console NO
Snapshot YES
iSCSI YES
Security Groups NO
vSphere Web Client supports Security Groups when using the
Neutron plugin of VMware NSX for vSphere .
Firewall Rules NO
Routing YES
Volume Swap NO
VM Operations in OpenStack
The following table maps VMware Integrated OpenStack and vSphere VM operations, and provides
recommendations about where best to perform the operation. If you create a VM in
VMware Integrated OpenStack, manage that VM in VMware Integrated OpenStack.
VMware, Inc. 13
VMware Integrated OpenStack Administrator Guide
Exposed through
vSphere Feature OpenStack Counterpart OpenStack API Where to Perform this Operation
Serial Console Output Serial Console Output YES OpenStack dashboard or vSphere
Web Client
Functions available through Get Guest Info/Get Host Info YES OpenStack dashboard or vSphere
VMware Tools . Web Client
For vSphere Web Client, this
function is available with
VMware Tools.
VMware, Inc. 14
VMware Integrated OpenStack Administrator Guide
You place a host in maintenance mode to service it, for example, to install more memory. A host
enters or leaves maintenance mode only as the result of a user request. No such function exists in
OpenStack. See the vSphere documentation for instructions about entering and exiting maintenance
mode.
n Resource Pools
A resource pool in vSphere is a logical abstraction for flexible management of resources, such as
CPU and memory. OpenStack has no equivalent to a resource pool.
n vSphere snapshots
vCenter supports OpenStack snapshots, but vSphere snapshots are distinct and are not supported in
the OpenStack API.
Prerequisites
Verify that you or another user has started instances in VMware Integrated OpenStack.
Procedure
1 In the vSphere Web Client, select Home > Inventories, and click the VMware Integrated OpenStack
icon.
2 Expand the Inventory view until you expose the instance VMs in the compute cluster.
The Summary tab displays the portlets common to VMs in thevSphere Web Client. The OpenStack
VM and Tags portlets contain details about instances created in OpenStack.
These portlets display information about the selected instance, including instance properties such as
the name, tenant, the user that created the instance, the originating flavor, and so on.
5 (Optional) Use the vSphere Web Client to search for and filter OpenStack instances.
a In the vSphere Web Client Search field, enter one of the tag values from the Tags portlet.
For example, to find all instances created using the default m1.tiny flavor, enter m1.tiny.
The Related Objects tab appears with a list of all the OpenStack instances that match the search
criteria.
b Click the name of any instance to open the Summary tab for that instance.
VMware, Inc. 15
VMware Integrated OpenStack Administrator Guide
This product participates in VMware's Customer Experience Improvement Program ("CEIP"). Details
regarding the data collected through CEIP and the purposes for which it is used by VMware are set forth
at the Trust & Assurance Center at http://www.vmware.com/trustvmware/ceip.html
To join or leave the CEIP for this product, please go to the Customer Experience Improvement Program
page in the User Interface to change your participation in CEIP:
n During product deployment using the Integrated OpenStack Manager, participation in the CEIP is
enabled by default, unless you choose not to participate.
After initial deployment, go to the Customer Experience Improvement Program page to modify your
participation, if required.
n To join the CEIP, go to Home > Inventories, and click the VMware Integrated OpenStack icon. Then
click the Manage tab and click the Settings tab. Finally click Enable to join.
n To leave the CEIP, go to Home > Inventories, and click the VMware Integrated OpenStack icon.
Then click the Manage tab and click the Settings tab. Finally click Disable to leave the program.
VMware, Inc. 16
Managing Your
VMware Integrated OpenStack
Deployment 2
Managing your VMware Integrated OpenStack deployment includes modifying configuration settings,
backup, recovery, and restoration of your OpenStack configuration and data; using patches for minor
updates, and upgrading to new versions.
n Failure Recovery
VMware, Inc. 17
VMware Integrated OpenStack Administrator Guide
Procedure
Prerequisites
Procedure
The vSphere Web Client might take a few minutes to update the OpenStack configuration.
Only the text boxes with updated passwords on the Change Password page change. To leave a
password unmodified, leave the text box blank.
Prerequisites
Verify that the passwords you supply in the Change Passwords panel match the passwords configured for
the LDAP server, NSX, or vCenter Server, as appropriate.
Procedure
The Change Passwords panel contains text boxes for updating the current LDAP server, NSX, and
vCenter Server password configurations.
VMware, Inc. 18
VMware Integrated OpenStack Administrator Guide
5 Click Submit.
The password settings in the VMware Integrated OpenStack are updated with the new values.
You can only import existing CA signed certificates, created from CSRs generated by
VMware Integrated OpenStack. You can also create new CSRs to create new CA signed certificates.
Using wildcard certificates is not supported.
Procedure
1 In the vSphere Web Client, select Home > Inventories, and click the VMware Integrated OpenStack
icon.
a Provide the Organizational Unit, Organizational Name, Locality Name, State Name, and Country
Code information as appropriate to your organization.
b Click Generate.
c Use the generated certificate signing request to create a certificate that is signed by your CA.
a Click Import.
c Click OK.
You can enable Ceilometer after completing the VMware Integrated OpenStack deployment.
Procedure
VMware, Inc. 19
VMware Integrated OpenStack Administrator Guide
3 Click Ceilometer.
The vSphere Web Client might take a few minutes to update the OpenStack configuration.
Ceilometer is automatically enabled the first time you configure it. Afterwards, the Ceilometer settings
show only Enable and Disable options.
This product participates in VMware's Customer Experience Improvement Program ("CEIP"). Details
regarding the data collected through CEIP and the purposes for which it is used by VMware are set forth
at the Trust & Assurance Center at http://www.vmware.com/trustvmware/ceip.html
Procedure
1 To join the CEIP, go to Home > Inventories, and click the VMware Integrated OpenStack icon. Then
click the Manage tab and click the Settings tab. Finally, click Enable to join.
2 To leave the CEIP, go to Home > Inventories, and click the VMware Integrated OpenStack icon.
Then click the Manage tab and click the Settings tab. Finally, click Disable to leave.
The Customer Experience Improvement Program page displays the current status of your
participation in the CEIP. If enabled, you are opted in. If disabled, you are opted out.
Prerequisites
Procedure
VMware, Inc. 20
VMware Integrated OpenStack Administrator Guide
Option Description
OpenStack admin user Define the OpenStack administrative user name. This is the default administrative
user name for logging in to the VMware Integrated OpenStack dashboard.
OpenStack admin password Define the OpenStack administrative user password. This is the default
administrative user password for logging in to the VMware Integrated OpenStack
dashboard.
5 If you are using LDAP with your VMware Integrated OpenStack deployment, click the plus sign (+) to
configure the LDAP source.
Option Description
Domain Name Specify the full Active Directory domain name; for example, vmware.com.
Bind user Provide the user name to bind to Active Directory for LDAP requests.
Bind password Provide the password to allow the LDAP client access to the LDAP server.
Domain controllers (Optional) VMware Integrated OpenStack automatically chooses the existing
Active Directory domain controllers. However, you can specify a list of specific
domain controllers to use. To do this, select the Domain controllers radio button
and then enter the IP address of one or more domain controllers, separated by
commas.
Site (Optional) Optionally, you can limit LDAP searching to a specific deployment site
within your organization; for example, sales.vmware.com. Select the Site radio
button and enter the domain name of the site to search.
User Tree DN (Optional) Enter the search base for users; for example, DC=vmware, DC=com.
Defaults to the top of the user tree in most Active Directory deployments.
Important If you use VMware Integrated OpenStack 3.0 or older and your
directory contains more than 1,000 objects (users and groups), you must apply a
filter to ensure that fewer than 1,000 objects are returned. For examples of filters,
see https://msdn.microsoft.com/en-us/library/aa746475(v=vs.85).aspx.
Advanced setting If you want to specify advanced LDAP settings, check the Advanced setting
check box.
VMware, Inc. 21
VMware Integrated OpenStack Administrator Guide
If you check the Advanced setting check box, additional LDAP configuration fields appear.
Note Always contact the LDAP administrator to obtain correct values for advanced LDAP settings,
or use tools such as ldapsearch or Apache Directory Studio to locate the settings.
Option Description
User objectclass (Optional) Enter the LDAP object class for users.
User ID attribute (Optional) Enter the LDAP attribute mapped to the user ID. Note that this value
cannot be a multi-valued attribute.
User name attribute (Optional) Enter the LDAP attribute mapped to the user name.
User mail attribute (Optional) Enter the LDAP attribute mapped to the user email.
User password attribute (Optional) Enter the LDAP attribute mapped to the password.
Group ID attribute (Optional) Enter the LDAP attribute mapped to the group ID.
Group name attribute (Optional) Enter the LDAP attribute mapped to the group name.
Group member attribute (Optional) Enter the LDAP attribute mapped to the group member name.
Group description attribute (Optional) Enter the LDAP attribute mapped to the group description.
VMware, Inc. 22
VMware Integrated OpenStack Administrator Guide
6 Click Save.
What to do next
To complete the LDAP configuration, you must manually modify the default OpenStack domain
configuration. See Modify the Default Domain Configuration.
Prerequisites
Procedure
n If your deployment is using compact mode, log into the controller node.
n If your deployment is high-availability mode, log into the load balancer node.
sudo su -
$ source ~/cloudadmin_v3.rc
VMware, Inc. 23
VMware Integrated OpenStack Administrator Guide
Parameter Description
--os-username admin Provides the administrative username for login, in this case
admin.
--os-user-domain-name local Specifies the domain, in this case local for the specified
user.
--os-password admin Provides the administrative password for login, in this case
admin.
--os-region-name nova project create Runs the nova project create command.
--domain default This command specifies the domain where the new project
is created, in this case the default domain.
--description "Demo Project" This parameter names the new project, in this case
Demo Project.
Parameter Description
--os-username admin Provides the administrative username for login, in this case
admin.
--os-user-domain-name local Specifies the domain, in this case local for the specified
user.
--os-password admin Provides the administrative password for login, in this case
admin.
--os-region-name nova role add Runs the nova role add command.
--project demo Specifies the project to which the new administrative user is
added.
VMware, Inc. 24
VMware Integrated OpenStack Administrator Guide
Parameter Description
--user-domain default admin Assigns the new user to the default admin domain.
Note If special characters are used for the user ID, you must modify the Keystone settings in the
VMware Integrated OpenStack manager.
6 (Optional) If special characters are used for the administrative user ID, you must modify the Keystone
settings in the VMware Integrated OpenStack manager.
a In the VMware Integrated OpenStack manager in vCenter, go to Manage > Settings > Configure
Identity Source.
b Click Edit.
You can now log in to the default domain in the VMware Integrated OpenStack dashboard using the
administrative user name and password.
By integrating VMware Integrated OpenStack with VMware Identity Manager you achieve a way to
securely use existing credentials to access cloud resources such as servers, volumes, and databases,
across multiple endpoints provided in multiple authorized clouds. You have a single set of credentials,
without having to provision additional identities or log in multiple times. The credential is maintained by
the user's Identity Provider.
Prerequisites
n Verify that you can authenticate as administrator to the VMware Identity Manager instance.
Procedure
VMware, Inc. 25
VMware Integrated OpenStack Administrator Guide
a Under Federation, uncomment the following parameters and set values for your environment.
The following example provides guidance for the most common configuration with VMware
Identity Manager.
Parameter Value
federation_protocol saml2
federation_idp_id vidm
federation_idp_metadata_url https://IDP_HOSTNAME/SAAS/API/1.0/GET/metadata/idp.xml
vidm_address IDP_URL
vidm_user vidm_administrative_user
vidm_password vidm_administrative_user_password
vidm_insecure False
3 Enable federation with the settings that you configured in the custom.yml file.
After the integration operation completes successfully, the VMware Integrated OpenStack dashboard
shows a new Authenticate using drop-down menu that allows the user choose the authentication
method.
4 Prior to being able to login a VMware Identity Manager user to VMware Integrated OpenStack, assign
a role/project to the group that user belongs to.
You might have to create a group in keystone that corresponds to a group found in VMware Identity
Manager that a user is a member of. For VMware Identity Manager users, Keystone does not
automatically create groups but ephemeral users. If the group does not exist, the user becomes a
member of the default Federated Users group.
For more information about mappings, see the Mapping Combinations for Federation in the
OpenStack documentation.
VMware, Inc. 26
VMware Integrated OpenStack Administrator Guide
Procedure
1 In the vSphere Web Client, select Home > Inventories, and click the VMware Integrated OpenStack
icon.
The Networks tab lists the Management and API network configurations, including their IP address
ranges.
a Right-click the name of the Management network in the list and select Add IP Range.
Note If you are adding addresses as part of the upgrade process, the new IP range must match
the same number of IP addresses configured for the existing Management network. For example,
in a typical VMware Integrated OpenStack deployment, the Management network requires a
minimum range of 11 IP addresses.
c Click OK.
a Right-click the name of the API network in the list and select Add IP Range.
Note If you are adding addresses as part of the upgrade process, the new IP range must match
the same number of IP addresses configured for the existing API network. For example, in a
typical VMware Integrated OpenStack deployment, the API network requires a minimum range of
2 IP addresses for versions 3.0 and older and a minimum range of 3 IP addresses for versions
3.1 and later.
c Click OK.
VMware, Inc. 27
VMware Integrated OpenStack Administrator Guide
The Neutron configuration file includes a parameter that sets the default router types. For example,
tenant_router_types = shared, distributed, exclusive. You can modify the custom.yml file to
override this configuration with a custom setting.
Procedure
3 Uncomment the nsxv_tenant_router_types parameter and specify the router types for NSX
tenants.
sudo su -
Important Modifying the network DNS setting results in a brief interruption in the network connection.
Procedure
1 In the vSphere Web Client, select Home > Inventories, and click the VMware Integrated OpenStack
icon.
The Networks tab lists the Management and API network configurations, including their DNS
addresses.
VMware, Inc. 28
VMware Integrated OpenStack Administrator Guide
3 Right-click the network name whose DNS setting you want to modify and choose Change DNS.
Note You can also select the network in the list, click All Actions and choose Change DNS.
5 Click OK.
Prerequisites
Verify that a VDS port group is available for the VXLAN network configuration.
Procedure
u If your version is VMware Integrated OpenStack 3.0 or older, use the neutron-l2gw l2-
gateway-create command.
u If your version is VMware Integrated OpenStack 3.1 or later, use the l2-gateway-create
command.
l2-gateway-create <gateway-name> \
--device name=<device-name1>,interface_names="<interface-name1>[|<seg-id1>]"
Option Description
<gateway-name> Specifies the name of the new gateway.
<device-name1> Specifies the device name. This is a dummy name. The NSX plug-in creates a
dedicated DLR.
<interface-name1> Specifies the distributed port group MOB ID as the interface name.
From the backup edge pool, NSX creates a dedicated DLR called L2 bridging-{gateway-id}.
VMware, Inc. 29
VMware Integrated OpenStack Administrator Guide
u If your version is VMware Integrated OpenStack 3.0 or older, use the neutron-l2gw l2-
gateway-connection-create command.
u If your version is VMware Integrated OpenStack 3.1 or later, use the l2-gateway-connection-
create command.
Option Description
<gateway-name/uuid> Specifies the name of the existing gateway.
<network-name/uuid> Specifies the network name. This is a dummy name. The NSX plug-in creates a
dedicated DLR.
This operation connects the OpenStack network with the Provider VLAN network.
You can configure the custom.yml file before installing and deploying VMware Integrated OpenStack. If
you have already installed and deployed VMware Integrated OpenStack, you have the additional step of
manually enabling each running NSX Edge node.
Prerequisites
Verify that your Edge cluster has at least two hosts. If not, you might receive an anti-affinity error.
Procedure
VMware, Inc. 30
VMware Integrated OpenStack Administrator Guide
nsxv_edge_ha: True
When you install and deploy VMware Integrated OpenStack, high availability is enabled by default for all
NSX Edge nodes.
Prerequisites
Verify that your Edge cluster has at least two hosts. If not, you might receive an anti-affinity error.
Procedure
nsxv_edge_ha: True
After modifying and saving the custom.yml file, high availability is enabled for newly deployed NSX
Edge nodes subsequently generated by VMware Integrated OpenStack.
VMware, Inc. 31
VMware Integrated OpenStack Administrator Guide
a In the VMware Integrated OpenStack controller, get a list of all current Edge nodes and their
edge-id values.
b Enable high availability on each Edge node by specifying its edge-id value.
Important This command updates your entire deployment and might briefly interrupt operations.
By modifying the custom.yml file, you can block user access through the public API network. When
users attempt to access OpenStack, they will see maintenance web page instead.
Procedure
1 If you have not already done so, implement the custom.yml file.
##############################
# haproxy maintenance page
##############################
# location of the maintenance page to be displayed when the public VIP is disabled
haproxy_custom_maintenance_page : "/home/viouser/custom/503maintenance.html"
# mail contact for maintenance page.
#haproxy_mailto: [email protected]
VMware, Inc. 32
VMware Integrated OpenStack Administrator Guide
5 To remove the block, repeat the procedure and re-comment out the
haproxy_custom_maintenance_page parameter.
You must first create a VXLAN external network that you later use as internal interface for your gateway
edges.
Prerequisites
n You must use VMware NSX for vSphere as your virtual network provider.
Procedure
1 Create IPv4 address scope for future tenant subnets and the external VXLAN network subnet.
Replace scope_name with the name of the address scope that you created earlier.
Replace scope_name with the name of the address scope that you created earlier.
The following command creates a new logical switch in VMware NSX for vSphere .
VMware, Inc. 33
VMware Integrated OpenStack Administrator Guide
Replace provider_pool_name with the name of the provider pool that you created earlier. Replace
external_VXLAN_network_name with the name of the network that you created earlier.
Gateway edges use the management network as external interface and the external network that you
created as internal interface.
Use the IDs of the edges that you created in the previous step.
VMware, Inc. 34
VMware Integrated OpenStack Administrator Guide
Tenant users can create their BGP routers. The tenant user must be admin to configure a router
without SNAT.
a Create two logical switches for a tenant and subnet pools for them.
BGP works with all OpenStack Logical Routers form factors : shared , distributed , and
exclusive.
VMware, Inc. 35
VMware Integrated OpenStack Administrator Guide
BGP dynamic routing is now configured on the provider side and tenants can also use it.
n High Availability deployments only, not available for compact mode deployments.
n Virtual network must be provided by VMware NSX-T, not available for deployments that use vSphere
Distributed Switch or VMware NSX for vSphere .
n You can have only one availability zone per vCenter Server instance.
Prerequisites
Procedure
1 In vCenter Server, select Home > VMware Integrated OpenStack > Manage.
2 (Optional) Add additional vCenter Server instances for use in VMware Integrated OpenStack.
b Click the green plus-sign icon (+) at the top of the panel to add a new instance.
c In the Add Compute vCenter Server dialog box, enter the FQDN of the instance, credentials with
administrative privileges, and click OK.
This tab displays the current Nova Compute clusters and their status.
VMware, Inc. 36
VMware Integrated OpenStack Administrator Guide
4 Click the green plus-sign icon (+) at the top of the panel.
5 On the Select a Compute vCenter Server page, select the instance and the availability zone for the
compute cluster that you need and click Next.
6 On the Add Nova cluster page, select the cluster that you prepared as a prerequisite, and click Next.
7 On the Add Nova datastores page, select the datastores for the tenants in the new cluster, and click
Next.
8 On the Review proposed configuration page, select the existing management VM, and click Next.
OpenStack capacity increases based on the resources available in the additional cluster.
Adding a datastore to the Compute node causes the Nova service to restart, which might cause a
temporary disruption to the OpenStack services in general.
Prerequisites
Verify that you have datastores available. See the vSphere Web Client documentation.
Procedure
This tab displays the datastores that are currently available, their status, and other details.
3 Click the green plus-sign icon (+) at the top of the panel.
4 On the Select a Nova node page of the Add Nova Datastores dialog box, select the cluster to which
you want to add a datastore, and click Next.
5 On the Add Nova datastore page, select one or more datastores to add to the cluster, and click Next.
The storage capacity for the selected Compute node increases accordingly with the size of the additional
datastore.
VMware, Inc. 37
VMware Integrated OpenStack Administrator Guide
Adding a datastore to the Image Service node causes the Glance service to restart, which might cause a
temporary disruption to the OpenStack services in general.
Prerequisites
Verify that you have datastores available. See the vSphere Web Client documentation.
Procedure
This tab displays the datastores that are currently available, their status, and other details.
3 Click the green plus-sign icon (+) at the top of the panel.
4 On the Add Glance datastore page, select one or more datastores to add to the cluster, and click
Next.
The storage capacity for the Image Service node increases accordingly with the size of the additional
datastore.
Due to a known OpenStack issue, if you use CLI commands to rename availability zones, you might see
different names in the vSphere Web Client and the Horizon dashboard. In the vSphere Web Client, on the
Nova Compute tab, under Availability Zones, out of sync availability ones appear in red. Resynchronize
the availability zones to fix the issue.
Procedure
VMware, Inc. 38
VMware Integrated OpenStack Administrator Guide
You configure a backup service by installing OpenStack Debian packages that are included in your
VMware Integrated OpenStack 4.0 deployment.
For the purposes of this procedure, the two controllers are referred to as controller01 and controller02.
Prerequisites
Verify that your VMware Integrated OpenStack 4.0 deployment is installed and running.
n Verify that the Swift component is registered to the Identity Service component (Keystone), which is
another OpenStack service. This registration is part of the default Keystone configuration. Keystone is
installed as part of your VMware Integrated OpenStack 4.0 deployment.
n Verify that the owner of the NFS share folder has the same UID as Cinder on the controller nodes.
The default Cinder UID is 107. This value might be different in your deployment.
Procedure
VMware, Inc. 39
VMware Integrated OpenStack Administrator Guide
e If your NFS share is not version 4.1, you must uncomment the cinder_backup_mount_options
parameter and set it to your version of NFS. For example,vers=3.
# Mount options passed to the NFS client. See NFS man page for
# details. (string value) 'vers=4' to support version NFS 4
cinder_backup_mount_options: vers=4
Important This command updates your entire deployment and might briefly interrupt operations.
What to do next
Verify that the Cinder backup configuration functions properly. See Verify That the Cinder Backup Service
is Running and Operational
Prerequisites
Complete the Cinder backup configuration. See Configure the Backup Service for Block Storage.
Procedure
cinder service-list
VMware, Inc. 40
VMware Integrated OpenStack Administrator Guide
4 Check the NFS share or Swift service to confirm that the backup file was created.
Problem
When you verify the Cinder backup configuration, you get an error when you create the initial backup.
Cause
VMware Integrated OpenStack does not have the correct permissions to write to the NFS share.
Solution
cd /var/lib/cinder/backup_mount/
chown -R cinder:cinder *
This workaround corrects the configuration and gives the Cinder component permission to access the
NFS share.
You perform backup operations in the CLI for the VMware Integrated OpenStack Manager.
Prerequisites
You must log in with administrative or super-user (sudo) privileges to perform backup operations.
Procedure
VMware, Inc. 41
VMware Integrated OpenStack Administrator Guide
sudo su -
5 Use the viocli backup mgmt_server <NFS_VOLUME> command to back up the OpenStack
management server.
Option Description
-d DEPLOYMENT Specifies the name of the VMware Integrated OpenStack deployment to be
backed up.
NFS_VOLUME Name or IP address of the target NFS volume and directory in the format
remote_host:remote_dir.
For example: 192.168.1.77:/backups
Option Description
-d DEPLOYMENT Specifies the name of the VMware Integrated OpenStack deployment database to
be backed up..
NFS_VOLUME Name or IP address of the target NFS volume and directory in the format
remote_host:remote_dir.
For example: 192.168.1.77:/backups
If a severe event occurs, you can use the new backup files to restore your VMware Integrated OpenStack
deployment data and configuration.
You perform restore operations in the CLI for the VMware Integrated OpenStack Manager.
VMware, Inc. 42
VMware Integrated OpenStack Administrator Guide
Prerequisites
Verify that you have backups of the management server and database available. See Back Up the
VMware Integrated OpenStack Deployment.
Procedure
sudo su -
5 Restore the OpenStack management server, where PATH specifies the intended location for the
backup file..
Option Description
-d DEPLOYMENT Indicates the backup by the deployment name assigned when it was created.
BACKUP_NAME Indicates the timestamp label of the backup file to be used to restore the
management server.
NFS_VOLUME Indicates the NFS host where the backup file is located.
Option Description
-d DEPLOYMENT Indicates the backup by the deployment name assigned when it was created.
BACKUP_NAME Indicates the timestamp label of the backup file to be used to restore the
database.
NFS_VOLUME Indicates the NFS host where the backup file is located.
VMware, Inc. 43
VMware Integrated OpenStack Administrator Guide
You restore your VMware Integrated OpenStack management server and OpenStack database to the
state of the backups.
Failure Recovery
In the event of a disk failure or another critical issue, you can recover the individual nodes in your
VMware Integrated OpenStack deployment using the CLI.
When you recover a VMware Integrated OpenStack node, it returns to the state of a newly deployed
node. To recover a database node, you must recover to a backup file. See Back Up the VMware
Integrated OpenStack Deployment.
Procedure
sudo su -
VMware, Inc. 44
VMware Integrated OpenStack Administrator Guide
viocli recover <[-r ROLE -dn BACKUP_NAME]|[-n NODE -dn BACKUP_NAME]> -nfs NFS_VOLUME
Option Description
-n NODE Recovers the database nodes specified by VM name recover by node name.
You can specify multiple nodes in one command.
Use the VM name as it appears in the VMware Integrated OpenStack
manager (VMware Integrated OpenStack > OpenStack Deployments >
[Deployment Name]).
For example,
recovers from the specified NFS backup file all the named database nodes:
VIO-DB-0, VIO-DB-1, and VIO-DB-2.
-r ROLE Recovers all the database nodes in the specified group name. You can specify
multiple roles in one command.
Use the group name as it appears in the VMware Integrated OpenStack
manager (VMware Integrated OpenStack > OpenStack Deployments >
[Deployment Name]).
For example,
recovers from the specified NFS backup file all the nodes in the DB node
group.
-dn BACKUP_NAME Indicates the timestamp label of the backup file to be used to restore the
database.
-nfs NFS_VOLUME Indicates the NFS host where the backup file is located.
Option Description
-n NODE Recovers the nodes specified by VM name. You can specify multiple nodes in
one command.
Use the VM name as it appears in the VMware Integrated OpenStack
manager (VMware Integrated OpenStack > OpenStack Deployments >
[Deployment Name]).
For example,
VMware, Inc. 45
VMware Integrated OpenStack Administrator Guide
Option Description
Tip You can use the viocli show command to list all the nodes and their roles in your
VMware Integrated OpenStack deployment.
6 Verify the node is running by checking its status in the VMware Integrated OpenStack manager:
VMware Integrated OpenStack > OpenStack Deployments > [Deployment Name].
Depending on your deployment, the recovery process might take a few minutes.
/var/log/apache2/error.log Logs access errors for the VMware Integrated OpenStack Manager.
VMware, Inc. 46
VMware Integrated OpenStack Administrator Guide
VMware, Inc. 47
VMware Integrated OpenStack Administrator Guide
Important You can only upgrade to VMware Integrated OpenStack 4.0 from
VMware Integrated OpenStack 3.1. If you are running a version different from 3.1, you must first upgrade
to that version. For more information about upgrading to 3.1, see the Upgrade to VMware Integrated
OpenStack 3.0 or 3.1 procedure.
The update process requires vSphere to accommodate the existing deployment and the upgraded
deployment. You must make available additional resources, datastores, IP addresses, to complete the
upgrade procedure. vSphere continues to hold both deployments until you determine that the upgrade
process was successful and you do not need to roll back to your previous VMware Integrated OpenStack
deployment.
Important Upgrade only preserves customizations configured in the custom.yml file. Any changes or
customizations made directly to the OpenStack deployment, such as SWIFT, are not preserved. It is
responsibility of the OpenStack administrator to track such changes and re-apply them after the upgrade.
Prerequisites
n Download the latest VMware Integrated OpenStack 4.0 OVA from the VMware website.
n Verify that you have matching resources for every node except the memcache and RabbitMQ nodes.
See the hardware requirements in the VMware Integrated OpenStack Installation and Configuration
Guide.
Procedure
VMware, Inc. 48
VMware Integrated OpenStack Administrator Guide
2 Deploy a VMware Integrated OpenStack 4.0 Instance, Backup the Existing, and Migrate Your
Management Server Data
To upgrade to VMware Integrated OpenStack 4.0, first deploy a new instance with the latest OVA.
You use the new deployment to set up a NFS server and backup your previous management server
instance on the new one.
You can use this procedure to add IP addresses for any reason. If you are not adding IP addresses as
part of the upgrade procedure, the specific number of IP addresses required might not apply.
Procedure
1 In the vSphere Web Client, select Home > Inventories, and click the VMware Integrated OpenStack
icon.
The Networks tab lists the Management and API network configurations, including their IP address
ranges.
a Right-click the name of the Management network in the list and select Add IP Range.
Note If you are adding addresses as part of the upgrade process, the new IP range must match
the same number of IP addresses configured for the existing Management network. For example,
in a typical VMware Integrated OpenStack deployment, the Management network requires a
minimum range of 11 IP addresses.
c Click OK.
VMware, Inc. 49
VMware Integrated OpenStack Administrator Guide
a Right-click the name of the API network in the list and select Add IP Range.
Note If you are adding addresses as part of the upgrade process, the new IP range must match
the same number of IP addresses configured for the existing API network. For example, in a
typical VMware Integrated OpenStack deployment, the API network requires a minimum range of
2 IP addresses for versions 3.0 and older and a minimum range of 3 IP addresses for versions
3.1 and later.
c Click OK.
What to do next
If you added IP addresses as part of the upgrade process, you can now obtain and install the upgrade
patch.
Procedure
For detailed instructions, see Installing Integrated OpenStack in the VMware Integrated OpenStack
Installation and Configuration Guide.
2 On the new VMware Integrated OpenStack management server, set up an NFS server and copy the
SSH key of the previous instance.
a Log in to the new VMware Integrated OpenStack management server over SSH.
b Run the following command to create a directory for use by the NFS server to store the backup of
the previous VMware Integrated OpenStack management server.
c Enter the password for the viouser account and wait for the operation to finish.
VMware, Inc. 50
VMware Integrated OpenStack Administrator Guide
3 Backup the data from your VMware Integrated OpenStack management server by using the
configured NFS server on the new instance.
a Open another session to log in to the previous VMware Integrated OpenStack 3.1 management
server over SSH.
b Backup the data of the previous VMware Integrated OpenStack management server on the new
one.
4 Migrate the backed up data from your previous VMware Integrated OpenStack management server to
the new one.
a Return to the console connected to the new VMware Integrated OpenStack management server.
b List the contents of the folder created for use by the NFS server.
For example:
cd /data
ll
d Reconfigure the new instance by using the folder name from the previous step, the IP address of
the new server, and the NSF server folder.
What to do next
You can now install and provision the new VMware Integrated OpenStack vApp.
The upgrade process also allows you to switch from a compact mode deployment to HA deployment.
VMware, Inc. 51
VMware Integrated OpenStack Administrator Guide
Procedure
1 If you are logged in to the vSphere Web Client, log out and log back in.
This refreshes the interface so the newly installed deployment is accessible through the vSphere Web
Client.
2 In the vSphere Web Client, click Home and click the VMware Integrated OpenStack icon.
3 Click the Summary tab and verify that the Version information table shows the version of the
upgraded VMware Integrated OpenStack manager.
The Upgrades tab lists the current VMware Integrated OpenStack deployment.
This name must be different than the name of the existing deployment.
7 If you are upgrading from a compact mode deployment, in the Deployment type drop-down menu,
select type for the upgraded deployment.
If your VMware Integrated OpenStack is deployed in compact mode, you can change to HA mode
during the update or stay in compact mode.
8 Click Next.
The current deployment shows a status of Running and the new, upgraded deployment shows a
status of Prepared.
10 On the Upgrades tab, right-click the name of the old deployment, and select Migrate Data.
Important You must confirm this action because during data migration, the
VMware Integrated OpenStack services stop and downtime incurs until the upgrade finishes.
When the migration process finishes, the status for the updated deployment on the Upgrades tab
changes to Migrated. The new deployment is up and running, but it is using a temporary public IP.
Users can access it, but only using this temporary public VIP. Only after completion of the following
step, the original public VIP is configured on the new deployment. The Upgrades tab now lists the
current VMware Integrated OpenStack and the new deployment.
11 On the Upgrades tab, right-click the name of your previous deployment, and select Switch to New
Deployment.
When the deployment switching process finishes, the status for the updated deployment on the
Upgrades tab changes to Running. The previous deployment shows a status of Stopped.
VMware, Inc. 52
VMware Integrated OpenStack Administrator Guide
What to do next
If the deployment process is unsuccessful, you can revert to your previous VMware Integrated OpenStack
deployment. See Revert to a Previous VMware Integrated OpenStack Deployment.
If the deployment process is successful, you can delete the previous VMware Integrated OpenStack
deployment.
Prerequisites
n Verify that you retained the previous VMware Integrated OpenStack deployment in your OpenStack
manager.
n Verify that you are prepared to stop the services running on the previous
VMware Integrated OpenStack deployment.
Procedure
1 In the vSphere Web Client, select Home > Inventories, and click the VMware Integrated OpenStack
icon.
The current VMware Integrated OpenStack deployment appears in the center pane.
3 Right-click the name of the current deployment on the OpenStack Deployments tab and select Stop
OpenStack Deployment.
4 Return to the main VMware Integrated OpenStack panel (Home > Inventories > VMware Integrated
OpenStack).
The Upgrades tab lists the VMware Integrated OpenStack 4.0 and older deployments.
6 Right-click the previous VMware Integrated OpenStack deployment name and select Restore from
the pop-up menu.
When the process of reverting your VMware Integrated OpenStack deployment is finished, the
OpenStack services restart.
VMware, Inc. 53
VMware Integrated OpenStack Administrator Guide
Prerequisites
Verify that the your upgraded VMware Integrated OpenStack 4.0 deployment is running and functioning
successfully. After you delete a deployment, you cannot restore it.
Procedure
1 In the vSphere Web Client, select Home > Inventories, and click the VMware Integrated OpenStack
icon.
The Upgrades tab lists the current and old VMware Integrated OpenStack and old deployments. The
VMware Integrated OpenStack 4.0 deployment shows a status of Running. The previous
VMware Integrated OpenStack deployment shows a status of Stopped.
3 Right-click the older VMware Integrated OpenStack deployment and select Delete from the pop-up
menu.
The deployment no longer appears on the Upgrades tab or in the OpenStack Deployments list.
Prerequisites
Some patches might require you to shut down the VMware Integrated OpenStack service before
proceeding.
Procedure
If you do not know where to obtain the patch, go to the VMware Integrated OpenStack product page
https://www.vmware.com/products/openstack or consult with VMware.
VMware, Inc. 54
VMware Integrated OpenStack Administrator Guide
3 Log in to the management server and enter the following command to load the patch file into the
management server repository:
4 In the vSphere Web Client, select Home > Inventories, and click the VMware Integrated OpenStack
icon.
The Updates tab lists added patches and indicates if they are installed.
If you can install the patch by using the VMware Integrated OpenStack Manager vApp, the Apply
option appears in the Patch Action column on the Updates tab.
If the Apply option does not appear in the Patch Action column, click More details in the Patch
Description column to access instructions for installing patches by using the CLI.
After you install a patch, the value in the Patch Status column on the Updates tab changes to
Installed.
8 To complete the update, log out of thevSphere Web Client and back in.
You can ignore any error messages you encounter when logging back in.
Procedure
If you do not know where to obtain the patch, go to the VMware Integrated OpenStack product page
https://www.vmware.com/products/openstack or consult with VMware.
VMware, Inc. 55
VMware Integrated OpenStack Administrator Guide
a Log into the console for theVMware Integrated OpenStack management server.
viopatch list
This returns a list of available patches, their version numbers, their type, and current status. The
list should indicate the patch by its build number.
a Ensure that VMware Integrated OpenStack service is either running or not yet deployed.
If the VMware Integrated OpenStack service is in any other state, the upgrade will fail.
b Log into the VMware Integrated OpenStack management server and run the following command:
4 To complete the update, log out of thevSphere Web Client and back in.
You can ignore any error messages you encounter when logging back in.
If necessary, you can revert to the previous version. For details, see Reverting a Patch Update
Installation.
For troubleshooting the patch installation, see Troubleshooting Update Patch Installation Problems
Prerequisites
You can only revert to an earlier version of the same point release. For example, you cannot revert a 2.0
implementation to a 1.0.x version.
Procedure
1 Log into the console for theVMware Integrated OpenStack management server.
VMware, Inc. 56
VMware Integrated OpenStack Administrator Guide
3 After uninstalling the patch, restart the vSphere Web Client service on the vCenter Server to
downgrade the VMware Integrated OpenStack plugin.
Problem
After adding and applying the update patch, the installation fails.
Cause
The VMware Integrated OpenStack deployment must be running or not yet deployed.
Solution
1 Ensure that the VMware Integrated OpenStack service is either running or not yet deployed.
2 If the service is running, ensure that all the OpenStack management VMs (database, load balancer,
and so on) are also running.
Problem
Patch installation fails with a fatal error message in vSphere Web Client.
Cause
The type of update requires using the CLI to add and install the patch
Solution
u Add and install the patch using the CLI method described in Install Patch Using CLI Commands.
VMware, Inc. 57
VMware Integrated OpenStack Administrator Guide
n The default dimension for the logo graphic is 216 pixels long by 35 pixels wide. You can use a graphic
with different dimensions, but the display might be impacted.
Procedure
Procedure
This directory is the default directory for graphic files in the VMware Integrated OpenStack
dashboard.
VMware, Inc. 58
VMware Integrated OpenStack Administrator Guide
.login-bg {
height: 100%;
body {
background: #1D2226 url("/static/themes/vmware/CUSTOM-BACKGROUND-IMAGE.jpg") repeat-x 45%
0 !important;
background-size: 100% auto !important;
color: black;
}
b Modify the .login-bg parameter to reference your custom background graphic file.
a Uncomment the parameter that enables the custom.yml settings to override the default style
sheet settings.
b Uncomment the parameter that specifies the custom directory to contain the custom graphic file.
Your custom background image appears on the dashboard log-in page the next time you start a session.
VMware, Inc. 59
VMware Integrated OpenStack Administrator Guide
Procedure
This directory is the default directory for graphic files in the VMware Integrated OpenStack
dashboard.
.login {
background-image: url(/https/www.scribd.com/static/themes/vmware/CUSTOM_LOGIN_PAGE_LOGO.png);
color: white;
background-color: black;
}
a Uncomment the parameter that enables the custom.yml settings to override the default style
sheet settings.
b Uncomment the parameter that specifies the custom directory to contain the custom graphic file.
Your custom logo appears on the dashboard log-in page the next time you start a session.
VMware, Inc. 60
VMware Integrated OpenStack Administrator Guide
Procedure
This directory is the default directory for graphic files in the VMware Integrated OpenStack
dashboard.
.topbar {
h1.brand a {
background-image: url(/https/www.scribd.com/static/themes/vmware/CUSTOM_PAGE_LOGO.png);
}
}
a Uncomment the parameter that enables the custom.yml settings to override the default style
sheet settings.
b Uncomment the parameter that specifies the custom directory to contain the custom graphic file.
Your custom logo appears in the top left corner of each dashboard page the next time you start a session.
VMware, Inc. 61
VMware Integrated OpenStack Administrator Guide
VMware Integrated OpenStack provides two options for configuring profiler. You can use it either with the
Ceilometer OpenStack service or with vRealize Log Insight to store profiler trace data.
Procedure
VMware Integrated OpenStack provides two options for configuring profiler. You can use it either with the
Ceilometer OpenStack service or with vRealize Log Insight to store profiler trace data.
Prerequisites
n To use vRealize Log Insight to store profiler trace data, verify that your instance is fully operational,
version 3.3 or later, and that you can authenticate with a user with the USER role assigned.
n To use Ceilometer OpenStack service to store profiler trace data, verify that the service is running.
VMware, Inc. 62
VMware Integrated OpenStack Administrator Guide
Procedure
a If you have not already done so, implement the custom.yml file.
u If you use Ceilometer OpenStack uncomment and modify the following parameters.
os_profiler_enabled: True
os_profiler_hmac_keys: SECRET_KEY
u If you use vRealize Log Insight, uncomment and modify the following parameters.
os_profiler_enabled: True
os_profiler_hmac_keys: SECRET_KEY
os_profiler_connection_string:
"loginsight://loginsight_username:password@loginsight_ip_address"
Parameter Description
os_profiler_enabled Accept the default value.
When set to True, the OpenStack profiling feature is enabled.
os_profiler_connection_string Specify the authentication for the vRealize Log Insight server. Include user
name, password and address of the instance.
3 If you use vRealize Log Insight to store profiler trace data, set environment variable
OSPROFILER_CONNECTION_STRING so that you don't enter connection string each time you run
commands with profiling enabled.
You must set the variable on all VMware Integrated OpenStack controllers that you want to run
commands from.
export
OSPROFILER_CONNECTION_STRING="loginsight://loginsight_username:password@loginsight_ip_address"
VMware, Inc. 63
VMware Integrated OpenStack Administrator Guide
VMware Integrated OpenStack currently supports profiling of Cinder, Heat, Glance, Nova, and Neutron
commands.
Prerequisites
n Make sure that you've set environment variable OSPROFILER_CONNECTION_STRING on the controller
where you will trace the OpenStack services. See, Configure Tracing of OpenStack Services
Procedure
1 Enable profiling by specifying the profile option for a given command and provide the secret key.
The output shows a command that you use to generate the profiling report in HTML format.
2 Run the generated command from the output to generate a report, for example trace.html.
For more information on the different options for the report, see the osprofiler trace show
command help.
For more information about NUMA, see Using NUMA Instances with ESXi.
To achieve low latency and high throughput, it is important that vCPUs, memory, and physical NICs that
are used for VM traffic are aligned on same NUMA node. You must create a specific teaming policy that
depends on the type of deployment that you have.
In VMware Integrated OpenStack 4.0, selecting physical NIC for placement is a manual configuration.
VMware, Inc. 64
VMware Integrated OpenStack Administrator Guide
Procedure
1 Login to the ESXi hosts in your data center and run the following command to gather information
about the current NUMA configuration.
2 If you use overlay networks, all VTEPs are associated to a dvportgroup and you must group all
physical NICs on a given NUMA node and create a teaming policy that includes only the physical
NICs on that NUMA node.
3 If you use VLAN based network backed by dvportgroup, create teaming policy that uses only physical
NICs from the given NUMA node and create a Neutron portgroup type provider network.
5 Boot the instance on OpenStack with this flavor and select a Neutron network where the physical
NICs are from same NUMA node.
VMware, Inc. 65
Managing OpenStack Projects
and Users 3
In VMware Integrated OpenStack, cloud administrators manage permissions through user, group, and
project definitions. Projects in OpenStack equate to tenants in vCloud Suite. You can assign users and
user groups to more than one project.
Before you can create a user, you must create at least one project to which you can assign the user.
n Modify a Project
Prerequisites
Verify that you are logged in to the VMware Integrated OpenStack dashboard as a cloud administrator.
Procedure
1 Select the admin project from the drop-down menu in the title bar.
VMware, Inc. 66
VMware Integrated OpenStack Administrator Guide
4 Click the Project Info tab and configure the project settings.
Setting Description
Enabled New projects are enabled by default. Disabling a project prevents cloud users from accessing the project,
prevents users from managing launching instances for the project, and can prevent users from logging in
if they are assigned only to that project.
5 (Optional) Add members to the project by selecting existing cloud users on the Project Members tab.
6 (Optional) Add groups of members to the project by selecting existing groups of cloud users on the
Project Groups tab.
Quotas are operational limits that you can configure to manage how much system resources are
available to a specific project. For example, you can optimize the cloud resources by controlling the
number of gigabytes allowed for each tenant. Quotas can be enforced at both the project and user
level.
The VMware Integrated OpenStack dashboard assigns an ID to the new project, and the project is listed
on the Projects page.
Modify a Project
You can update a project to change its name or description, and enable or temporarily disable it.
Important Disabling a project can have negative consequences. For example, if a user is assigned to
only that project, they cannot log in to the VMware Integrated OpenStack dashboard. Similarly, the project
is not accessible by its members. Project instances continue running, so you must suspend or stop them
manually. Project data is retained in case the project is enabled again.
Prerequisites
Verify that you are logged in to the VMware Integrated OpenStack dashboard as a cloud administrator.
Procedure
1 On the VMware Integrated OpenStack dashboard, select the admin project from the drop-down menu
in the title bar.
VMware, Inc. 67
VMware Integrated OpenStack Administrator Guide
4 In the Actions column, select Edit Project from the drop-down menu.
In the Edit Project dialog box, you can change the project's name and description, and enable and
disable it.
6 (Optional) To change user assignments for a project, on the Projects page, click Manage Members
for the project to modify.
Option Action
Assign a user to the current project Click the plus sign (+) for the user.
Remove a user from the current Click the minus sign (-) for the user.
project,
7 Click Save.
8 To delete one or more projects, return to the Projects page and select the projects to delete.
You can use security groups to apply IP rules by creating a new security group with the desired rules or
by modifying the rules set in the default security group.
Note A security group can apply either rules or a security policy, but not both.
VMware, Inc. 68
VMware Integrated OpenStack Administrator Guide
To modify an existing rule for a security group, see Modify the Rules for an Existing Security Group
Procedure
2 Select the project from the drop-down menu in the title bar.
6 Enter a name and description for the new group, and click Create Security Group.
The new group appears in the list on the Security Group tab.
The subsequent fields might change depending on the rule you select.
9 Click the Access & Security tab to return to the main page.
Procedure
2 Select the project from the drop-down menu in the title bar.
VMware, Inc. 69
VMware Integrated OpenStack Administrator Guide
7 To add a rule, click Add Rule and select the custom rule to add from the Rule drop-down menu.
Option Description
Custom TCP Rule Used to exchange data between systems and for end-user communication.
Custom UDP Rule Used to exchange data between systems, for example, at the application level.
Custom ICMP Rule Used by network devices, such as routers, to send error or monitoring messages.
Other Protocol You can manually configure a rule if the rule protocol is not included in the list.
For TCP and UDP rules, you can open either a single port or a range of ports. Depending on your
selection, different fields appear below the Open Port list.
Option Description
CIDR (Classless Inter-Domain Limits access only to IP addresses within the specified block.
Routing)
Security Group Allows any instance in the specified security group to access any other group
instance.
You can choose between IPv4 or IPv6 in the Ether Type list.
8 Click Add.
The new rule appears on the Manage Security Group Rules page for the security group.
Procedure
2 Select the project from the drop-down menu in the title bar.
4 Click the Security Groups tab, select the default security group, and click Manage Rules.
5 Click Add Rule and configure the rules to allow SSH access.
Control Value
Rule SSH
Remote CIDR
CIDR 0.0.0.0/0
VMware, Inc. 70
VMware Integrated OpenStack Administrator Guide
To accept requests from a particular range of IP addresses, specify the IP address block in the CIDR
text box.
Instances will now have SSH port 22 open for requests from any IP address.
6 Click Add.
7 From the Manage Security Group Rules page, click Add Rule and configure the rules to allow ICMP
access.
Control Value
Direction Ingress
Remote CIDR
CIDR 0.0.0.0/0
8 Click Add.
Starting with VMware Integrated OpenStack 3.1, Neutron security groups enable administrators to use
two new functionalities.
Provider security Also known as administrator rules, when configured those security groups
groups are mandatory and apply to all VMs of a given tenant. A provider security
group can either be associated with a policy or exist without a policy.
NSX Service Composer For more information, see the Service Composer chapter in the VMware
- Security Policy NSX for vSphere Administration Guide.
security groups
Each VMware NSX for vSphere policy can be defined by the OpenStack Cloud Administrator as a default
policy by setting the nsxv_default_policy_id option in the custom.yml file. All new tenants have this
policy as their default. More policies can be defined and assigned as mandatory or optional for a given
tenant by being associated with either the provider or optional security groups respectively. Tenant users
can also create security groups with rules but they cannot override security groups set by the cloud
administrator.
VMware, Inc. 71
VMware Integrated OpenStack Administrator Guide
After VMware NSX for vSphere policies are enabled, different scenarios can be configured by cloud
administrators.
1 Cloud administrator can forbid the creation of regular security groups with different options.
n If only a default security group exists, this default security group is associated with the default
policy. Tenant VMs are enforced with the rules defined in the default policy.
n If the cloud administrator creates a security group with a different policy, tenant VMs can be
associated with this security group instead of the default security group and only the rules defined
in the current policy are effective.
n If provider security groups exist, in addition to the policy rules, tenant VMs are also be enforced
with the rules defined in the provider security groups.
2 Cloud administrator can allow the creation of regular security groups with different options.
n VMs launched with user-defined regular security groups are only enforced with the rules defined
in these security groups.
n If a provider security group exists, in addition to the rules in the regular security group, tenant
VMs are also enforced with the rules defined in the provider security groups. In this case, provider
security group rules take precedence over regular security group rules. Similarly, if you use
policy-based security groups with regular security groups, policy-based rules take precedence.
n You can have security groups either with a policy or rules, but not with both.
VMware, Inc. 72
VMware Integrated OpenStack Administrator Guide
Enforce provider security groups on existing VM ports neutron port-update <PORT_ID> --provider-security-
groups list=true <SECURITY_GROUP_ID1>
<SECURITY_GROUP_ID2>
Ensure that a new policy, created on the NSX side is placed sudo -u neutron nsxadmin --config-
before all the OpenStack security groups section by using the file /etc/neutron/neutron.conf --config-
nsxadmin utility. file /etc/neutron/plugins/vmware/nsxv.ini -r
firewall-sections -o nsx-reorder
Note When more than one policy-based security groups are
enforced on a VM/port, the order in which the policy rules are
enforced is controlled by the NSX admin through the firewall
section.
Additionally you must set the default security policy for the default security group for a new tenant and
optionally, allow or forbid tenants to create own policies.
Procedure
VMware, Inc. 73
VMware Integrated OpenStack Administrator Guide
4 Enable security policies in Neutron using VIO customization by editing the custom.yml file according
to your configuration.
a Uncomment and edit nsxv_use_nsx_policies value to true, set the mandatory default policy
for tenants nsxv_default_policy_id, and allow or forbid tenants to create their own policies
nsxv_allow_tenant_rules_with_policy: false, for example:
Prerequisites
Procedure
neutron-security-group-list
neutron-security-group-show <SECURITY_GROUP_ID>
In the output you see the policy associated with this security group.
VMware, Inc. 74
VMware Integrated OpenStack Administrator Guide
You have changed the associated security policy to a given security group.
Prerequisites
n Verify that you are logged in to the VMware Integrated OpenStack dashboard as a cloud
administrator.
n Verify that a configured OpenStack project is available. See Create an OpenStack Project.
n The local domain now contains the service users, vioservice user, and admin user. This domain is
backed by SQL. The Default domain contains either your standard users if using SQL or LDAP users
if AD was configured. For convenience, the admin user is also available on the Default domain.
n Along with the domain context in Horizon, in the CLI you will also need to specify a domain if not
using the Default. OpenStack command lines will always default to the default domain.
n When logging in to the dashboard, users are now prompted for a domain name. To log in
successfully, they must enter "default" for the domain name
Procedure
1 On the VMware Integrated OpenStack dashboard, select the admin project from the drop-down menu
in the title bar.
4 Ensure that the Domain ID field is set to default and the Domain name is Default.
Users must enter the correct domain name to successfully log into the VMware Integrated OpenStack
dashboard.
Option Description
VMware, Inc. 75
VMware Integrated OpenStack Administrator Guide
Option Description
Primary Project Project to which the user is assigned. You cannot create a user account without
assigning it to at least one project.
Role Role to which the user is assigned. A role is a set of rights and privileges. A user
assigned that role inherits those rights and privileges.
Enable To enable the user, check the Enable check box. To enable the user at a later
time, leave the Enable check box unchecked.
The VMware Integrated OpenStack dashboard assigns an ID to the user, and the user now appears on
the Users page.
Prerequisites
Verify that you are logged in to the VMware Integrated OpenStack dashboard as a cloud administrator.
Procedure
1 In the VMware Integrated OpenStack dashboard, select the admin project from the drop-down menu
in the title bar.
Option Action
Delete one or more user accounts. a Select the user accounts to delete.
b Click Delete Users.
c At the prompt, confirm the deletion.
VMware, Inc. 76
Working with Instances in
OpenStack 4
Instances are virtual machines that run in the cloud.
As a cloud administrative user, you can manage instances for users in various projects. You can view,
terminate, edit, perform a soft or hard reboot, create a snapshot from, and migrate instances. You can
also view the logs for instances or start a VNC console for an instance.
For information about how to use the dashboard to start instances as an end user, see the VMware
Integrated OpenStack User's Guide.
You import VMs using the Datacenter Command Line Interface (DCLI), which is packaged with the
VMware Integrated OpenStack management server, and is powered by the
VMware Integrated OpenStack vAPI provider.
Though imported VMs become OpenStack instances, they remain distinct in several ways:
n If the imported VM has multiple disks:
n Nova snapshot creation is not supported.
VMware, Inc. 77
VMware Integrated OpenStack Administrator Guide
n Existing networks are imported as provider network type port group, with subnets created with DHCP
disabled. This prevents conflict between the DHCP node in OpenStack and the external DHCP
server.
Note If the DHCP server cannot maintain the same IP address during lease renewal, the instance
information in OpenStack will show the incorrect IP address. For this reason, it is recommended that
you use static DHCP bindings on existing DHCP servers. Also, it is not recommended to launch new
OpenStack instances on the imported networks since the DHCP address from the external server, if
any, might conflict with OpenStack.
n The flavor for the imported VM shows the correct CPU and memory but the root disk incorrectly
displays as having 0 GB.
Prerequisites
n Verify that you are running VMware Integrated OpenStack version 4.0.
n Importing VMs is supported with NSX and the VDS plugin for Neutron.
Note If you are running VMware Integrated OpenStack 3.0, you cannot import VMs that are backed
by a NSX logical switch. The network backing must be a regular distributed port group. This feature is
supported in VMware Integrated OpenStack 3.1 and later.
Procedure
1 Add the clusters containing the VMs to be imported to the VMware Integrated OpenStack
deployment.
a In the vSphere Web Client, identify the cluster containing the VMs to be imported.
b Add the cluster to the VMware Integrated OpenStack deployment as a Nova compute cluster.
After the cluster is added as a Nova compute cluster, you can import the VMs.
VMware, Inc. 78
VMware Integrated OpenStack Administrator Guide
Unmanaged VMs are VMs in VMware Integrated OpenStack that are not managed as OpenStack
instances. In this case, the unmanaged VMs include the VMs in the cluster you added to the
Compute node.
6 (Optional) List all unmanaged VMs in a specific target cluster that you added to the Nova Compute
node.
VMware, Inc. 79
VMware Integrated OpenStack Administrator Guide
Option Description
--cluster CLUSTER Specify the Nova compute cluster where the VMs are located.
--tenant-mapping Specify whether to map the vSphere VMs to OpenStack projects based on
{FOLDER,RESOURCE_POOL} their location in folders or resource pools.
This parameter is optional. If no tenant mapping is specified, imported VMs
become instances in the import_service project in OpenStack.
--root-folder ROOT_FOLDER Optionally, if you specified FOLDER for the tenant-mapping parameter, you
can specify the name of the root folder containing the VMs to be imported.
n All the VMs in the specified root folder are imported, including those
contained in sub-folders.
n The VMs will be imported as instances into an OpenStack project with the
same name as the specified root folder.
n If the root folder contains VMs in sub-folders, those VMs will be imported
into OpenStack projects with the same names as the sub-folders.
Note If no root folder is specified, the name of the top level folder in the
cluster is used by default.
VMware, Inc. 80
VMware Integrated OpenStack Administrator Guide
Option Description
n If the root resource pool contains VMs in child resource pools, those VMs
will be imported into OpenStack projects with the same names as the child
resource pools.
Option Description
--vm VM Specify the vm-<id> of the specific VM to be imported.
You can view the ID values of all VMs to be imported by running the com
vmware vio vm unmanaged list command.
--tenant TENANT Specify the OpenStack project where the imported VM will reside as an
OpenStack instance.
This parameter is optional. If unspecified, imported VMs become instances in
the import_service project in OpenStack.
--nic-mac-address Optionally, provide the MAC address for the VM's NIC.
NIC_MAC_ADDRESS If the import process is unable to discover this value, the import will fail. This
parameter enables you manually enter the NIC MAC address.
8 (Optional) You can enable or disable the relocation and renaming of imported VMs by modifying the
custom.yml file.
a If you have not already done so, implement the custom.yml file.
b To disable the relocation and renaming of imported VMs, uncomment the following parameter in
the custom.yml file.
nova_import_vm_relocate: false
VMware, Inc. 81
VMware Integrated OpenStack Administrator Guide
You can create a snapshot of an instance directly from the Instances page.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
5 In the Actions column, click More and select the state from the drop-down menu.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
The Overview page shows the usage summary and project-specific usage information. You can
specify a period of time for the usage information. Optionally, you can download a CSV summary.
VMware, Inc. 82
VMware Integrated OpenStack Administrator Guide
Prerequisites
n Verify that you are running VMware Integrated OpenStack version 2.0.x or later.
n Verify that VMware Integrated OpenStack is running in vSphere. Go to Home > VMware Integrated
OpenStack > OpenStack Deployments > [Deployment Name].
n At least one dummy VM in the Compute cluster to use as a template to create a DRS VM group.
Procedure
Procedure
3 Select the Compute cluster configured for the VMware Integrated OpenStack deployment.
VMware, Inc. 83
VMware Integrated OpenStack Administrator Guide
n DRS is enabled.
8 Create a VM group.
a Click Add.
d Click Add.
f Click OK.
a Click Add.
d Click Add.
e On the Filter tab, add members to the group by selecting one or more hosts.
f Click OK.
Both groups now appear in the VM/Host Groups list on the VM/Host page.
What to do next
You can now create a rule that determines how OpenStack instances assigned to the VM group are
distributed on the hosts in the host group. See Create a DRS Rule for OpenStack Instance Placement.
If you are continuing from Define VM and Host Groups for Placing OpenStack Instances, skip ahead to
Step 5 .
Prerequisites
VMware, Inc. 84
VMware Integrated OpenStack Administrator Guide
Procedure
2 Go to the vCenter Hosts and Clusters view and select the Compute cluster configured for the
VMware Integrated OpenStack deployment.
n DRS is enabled .
6 Click Add.
7 Enter a name for the new rule and select or deselect the Enable rule option to enable or disable the
rule.
9 From the VM Group drop-down menu, select the VM group that identifies the OpenStack instances
you want to place .
Setting Description
Must run on hosts in group OpenStack instances in the specified VM group must run on hosts in the specified
host group.
Should run on hosts in group OpenStack instances in the specified VM group should, but are not required, to run
on hosts in the specified host group.
Must not run on hosts in group OpenStack instances in the specified VM group must never run on host in the
specified host group.
Should not run on hosts in group OpenStack instances in the specified VM group should not, but may, run on hosts in
the specified host group.
12 From the Host Group drop-down menu, select the host group that contains the hosts on which the
OpenStack instances will be placed .
13 Click OK.
The rule now determines that OpenStack instances in the specified VM group must run on hosts in the
specified host group.
VMware, Inc. 85
VMware Integrated OpenStack Administrator Guide
What to do next
In the VMware Integrated OpenStack dashboard, you can now modify the metadata for a specific image
to ensure that all instances generated from that image are automatically included in the VM group, and
therefore subject to the DRS rule.
Prerequisites
n Verify that a VM group is configured in the vSphere Web Client for the Compute cluster.
n Verify that the DRS VM group name is defined in the vSphere Web Client. See Use DRS to Control
OpenStack Instance Placement.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
5 In the Actions column of the image listing, click the down arrow and select Update Metadata.
The Update Metadata dialog box displays two columns. The column on the right displays metadata
tags already applied to the image, and the one on the left displays available metadata tags, which are
grouped by categories, such as Guest Customization, Instance Config Data, and so on.
a In the Available Metadata column, select the VMware Driver Options > DRS VM group property.
b Click the plus sign (+) to add the property to the image metadata.
c For the metadata value, enter DRS VM group name as defined in the vSphere Web Client.
d To remove a metadata tag from the image definition, click the minus sign (-).
7 Click Save.
All instances generated from this source image are automatically assigned to the specified VM group in
the VMware Integrated OpenStack deployment in vCenter.
VMware, Inc. 86
VMware Integrated OpenStack Administrator Guide
You apply the affinity or anti-affinity filter as a policy to a server group. All instances that are members of
the same group are subject to the same filters. When you create an OpenStack instance, you can specify
the server group to which the instance will belong and therefore what filter will be applied.
You can perform this configuration using either the OpenStack CLI or ServerGroup API. You cannot
perform this configuration in the VMware Integrated OpenStack Horizon dashboard.
This approach to placing OpenStack instances is tenant-based. Affinity and anti-affinity determine the
relationship among instances in the same server group, but they cannot determine the hosts on which the
instances are placed in vCenter. For an administrator-based approach that provides greater control, see
Use DRS to Control OpenStack Instance Placement.
Prerequisites
n Verify that the intended filter configuration does not conflict with any existing administrative
configuration, such as DRS rules that manage instance placement on hosts.
n Verify that you are running VMware Integrated OpenStack version 2.0.x or later.
n Verify that you are using a Python nova-client version 2.17.0.6 or later as required for the
ServerGroup API. Go to
http://docs.openstack.org/user-guide/common/cli_install_openstack_command_line_clients.html.
Procedure
2 (Optional) Obtain the ID of the image you will use to create the instance.
You can use the nova image-list command to view the list of available images and their ID values.
3 (Optional) Obtain the ID of the flavor you will use to define the instance .
You can use the nova flavor-list command to view the list of flavor definitions and their ID
values.
VMware, Inc. 87
VMware Integrated OpenStack Administrator Guide
In both case, the CLI returns the auto-generated server group UUID, name, and policy.
5 Launch a new instance, using the --image, --flavor, and --hint flags to apply the server group
affinity policy .
6 (Optional) Confirm that the new rule and the server group instances appear and are running correctly
in the VMware Integrated OpenStack deployment in vCenter Server.
The details appear in the Manage > Settings > VM/Host Rules page for the Compute cluster.
Prerequisites
n Verify that the intended anti-affinity filter configuration does not conflict with any existing
administrative configuration, such as DRS rules that manage instance placement on hosts.
n Verify that you are running VMware Integrated OpenStack version 2.0.x or later.
n Verify that you are using a Python nova-client version 2.17.0.6 or later, as required for the
ServerGroup API. Go to http://docs.openstack.org/user-
guide/common/cli_install_openstack_command_line_clients.html.
VMware, Inc. 88
VMware Integrated OpenStack Administrator Guide
Procedure
POST /v2/TENANT_ID/os-server-groups
{
"server_group": {
"name": "SERVER_GROUP_NAME",
"policies": ["POLICY_TYPE"]
}
}
Option Description
2 Launch a new instance, including the os:scheduler_hints argument with the server group ID in the
GET /servers command.
3 (Optional) Confirm that the new rule and the server group instances appear and are running correctly
in the VMware Integrated OpenStack deployment in vCenter.
The rule details appear in the Manage > Settings > VM/Host Rules page for the Compute cluster.
Prerequisites
n Requires an OpenStack flavor with the desired QoS resource allocation settings. See Configure QoS
Resource Allocation for Instances Using Flavor Metadata.
n Verify that you are logged in to the VMware Integrated OpenStack dashboard as a cloud
administrator.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
VMware, Inc. 89
VMware Integrated OpenStack Administrator Guide
4 Click the hyperlinked name of the instance to access the Instance Details page.
5 Click the down arrow (next to the Create Snapshot button) and choose Resize Instance.
6 In the Flavor Choice tab, open the New Flavor drop-down list and select the flavor with the desired
QoS resource allocations
7 Click Resize.
The instance is now subject to the QoS settings as defined in the flavor metadata.
After you enable the storage policy in the custom.yml file, you apply the policy by modifying the
metadata of an OpenStack flavor. All instances created by using that flavor inherit the storage policy
configuration.
Procedure
##############################
# PBM options
##############################
# (string) The PBM default policy to use when no policy is associated with a flavor (Mandatory) if
nova_pbm_enabled is set to True.
nova_pbm_default_policy: nova
# (boolean) The PBM status. Set this to True to enable storage policies for nova flavors.
nova_pbm_enabled: False
nova_pbm_enabled: True
VMware, Inc. 90
VMware Integrated OpenStack Administrator Guide
b Select the admin project from the drop-down menu in the title bar.
d (Optional) Create a flavor specific to the intended use of this metadata property.
Create a custom flavor to contain the specific configuration. This action leaves the original flavor
configuration intact and available for other instance creation.
f In the Actions column of the image listing, click the down arrow and select Update Metadata.
In the column under Existing Metadata, the newly added metadata property appears.
6 Click Save.
The default Nova storage policy is applied to all future OpenStack instances that are created from this
flavor.
VMware, Inc. 91
Working with Volumes and
Volume Types in OpenStack 5
Volumes are block storage devices that you attach to instances to enable persistent storage.
As a cloud administrative user, you can manage volumes and volume types for users in various projects.
You can create and delete volume types, and you can view and delete volumes.
Cloud users can attach a volume to a running instance or detach a volume and attach it to another
instance at any time. For information about how to use the dashboard to create and manage volumes as
an end user, see the VMware Integrated OpenStack User Guide.
By default, empty volumes are always created and attached to a lsiLogic controller. When a volume is
created from image, Cinder respects the vmware_adaptertype property of the image and creates the
corresponding controller. For newly created volumes you set the adapter type by using the
cinder_volume_default_adapter_type parameter in the custom.yml file with one of the following
values.
Value Description
VMware, Inc. 92
VMware Integrated OpenStack Administrator Guide
Procedure
##############################
# cinder-volume options
##############################
Prerequisites
n Verify that the storage policy to be associated with the volume type exists. See the vSphere product
documentation.
n Verify the name of the storage policy. This value is required when you run the CLI command to
associate the volume type with the storage policy.
Procedure
2 Select the project from the drop-down menu in the title bar.
The Volumes page lists the volumes that are configured and available to the current user.
VMware, Inc. 93
VMware Integrated OpenStack Administrator Guide
7 Enter a description for the volume type and then click Create Volume Type.
b Run the cinder command to associate the volume type with a storage policy.
name-of-volume-type Name of the volume type that you defined when you
created the volume type.
9 (Optional) If you want to override the default adapter type, associate the volume type with another
adapter type.
For adapter type, you can select between one of the following values.
Value Description
Procedure
2 Select the project from the drop-down menu in the title bar.
The Volumes page lists the volumes that are currently configured and available to the current user.
VMware, Inc. 94
VMware Integrated OpenStack Administrator Guide
Note You cannot migrate any volume that has snapshots attached. You must first detach the snapshots.
Prerequisites
n Verify that Storage DRS is enabled in Not Automation (Manual Mode) for the datastore cluster.
n Verify that the volume does not have any snapshots attached. If so, you must detach them first.
Procedure
sudo su -
This step prepares all volumes on the specified datastore for migration.
Option Description
-d DEPLOYMENT Indicates the name of the VMware Integrated OpenStack deployment.
VMware, Inc. 95
VMware Integrated OpenStack Administrator Guide
When you place the datastore in maintenance mode, the datastore is evacuated and the volumes
automatically migrate to other datastores in the same datastore cluster.
Prerequisites
Verify that the volume does not have any snapshots attached. If so, you must detach them first.
Procedure
sudo su -
Mandatory or
Parameter Optional Description
-d, --deployment Automatic Name of the deployment in which the volumes to be migrated.
NAME Applied automatically. The default value is the name of the current
deployment.
--source-ds Mandatory unless Used with the --source-dc parameter uniquely to identify the
SRC_DS_NAME VOLUME_UUIDS is datastore.
specified. For example, the following command migrates all the volumes from
datastore DS-01 in data center DC-01 to datastore DS-02 in data
center DC-02.
viocli volume-migrate --source-dc DC-01 --source-ds
DS-01 DC-02 DS-02
--volume-ids Mandatory unless Migrates one or more individual volumes specified by UUID value.
VOLUME_UUIDS SRC_DC_NAME and To specify more than one volume, separate the UUIDs by commas.
SRC_DS_NAME are For example, the following command migrates two volumes
specified. specified by their UUID values to datastore DS-01 in data center
DC-01.
viocli volume-migrate --volume-ids
25e121d9-1153-4d15-92f8-c92c10b4987f,
4f1120e1-9ed4-421a-b65b-908ab1c6bc50 DC-01 DS-01
VMware, Inc. 96
VMware Integrated OpenStack Administrator Guide
Mandatory or
Parameter Optional Description
-h, --help Optional Show the use and arguments for this command.
Prerequisites
Verify that the volume does not have any snapshots attached. If so, you must detach them first.
Procedure
sudo su -
This step prepares all volumes on the specified datastore for migration.
Option Description
-d DEPLOYMENT Indicates the name of the VMware Integrated OpenStack deployment.
5 Locate the virtual machine that corresponds to the Nova instance to which the volume is attached.
VMware, Inc. 97
VMware Integrated OpenStack Administrator Guide
6 Use the Storage vMotion feature in the vSphere Web Client to migrate the virtual machine to a
different datastore.
The volume migrates to the new datastore, but only the disk of the shadow VM moves to the new
datastore. The shadow VM remains on the old datastore with no disk.
7 (Optional) To fix the disk of the shadow VM, run a volume detach procedure.
The detach operation disconnects the volume from the instance. Failures to read or write from the
volume might occur.
VMware, Inc. 98
Managing Images for the Image
Service 6
In the OpenStack context, an image is a file that contains a virtual disk from which you can install an
operating system on a VM. You create an instance in your OpenStack cloud by using one of the images
available. The VMware Integrated OpenStack Image Service component natively supports images that
are packaged in the ISO, OVA, and VMDK formats.
If you have existing images in vSphere that you want to use in OpenStack, you can export them in one of
the supported formats and upload them to the Image Service. If you obtain an image that is in an
unsupported format, you can convert it as part of the import process. Unsupported formats are RAW,
QCOW2, VDI, and VHD.
n Migrating Images
n Configure Images to Enable Live Resize of VMs Deployed From That Image
Prerequisites
To be successfully imported, verify that the image is in one of the natively supported image formats (ISO,
OVA, VMDK) or in a format that can be converted during the import process (RAW, QCOW2, VDI, VHD).
VMware, Inc. 99
VMware Integrated OpenStack Administrator Guide
Procedure
Prerequisites
n Verify that the image is packaged in the ISO, VMDK, OVA, RAW, QCOW2, VDI, or VHD format.
n If the source image format is RAW, QCOW2, VDI, or VHD, verify that the source image is hosted on a
server without credentials to allow plain HTTP requests.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
Option Action
Option Action
Minimum Disk (GB) Specify the minimum disk size for the image in GB.
Minimum RAM (GB) Specify the minimum RAM for the image.
Public Select to make the image visible and available to all tenants.
To import an image in a non-supported format such as RAW, QCOW2, VDI, or VHD, see Import Images in
Unsupported Formats by Using the CLI.
Prerequisites
n Verify that the images are packaged in the ISO, VMDK, or OVA format.
Procedure
1 Log in to the OpenStack management cluster as a user with administrative privileges to upload the
image to the Image Service component.
2 Run the glance image-create command to obtain, define, and import the image.
disk_format=vmdk The disk format of the source image. You can specify ISO, VMDK, or OVA.
container_format=bare The container format indicates if the image is in a format that contains
metadata about the actual virtual machine. Because the container format
string is not currently used by Glance, it is recommended to specify bare for
this parameter.
--visibility="public" The privacy setting for the image in OpenStack. When set to public, the
image is available to all users. When set to private, the image is available
only to the current user.
--property During import, the VMDK disk is introspected to capture its adapter type
vmware_adaptertype="lsiLogicsas" property.
You also have the option of using the vmware_adaptertype to specify
adapter type.
Note If you are using a disk with the paraVirtual or LSI Logic SAS adapter
type, it is recommend that you use this parameter. For example,
vmware_adaptertype= lsiLogicsas or vmware_adaptertype=
paraVirtual.
--property vmware_disktype="sparse" During import, the VMDK disk type is introspected to capture its disk type
property.
You also have the option of specifying disk type using the
vmware_disktype property.
--property The name of the image file after it is imported to the Image Service. In the
vmware_ostype="ubuntu64Guest" example above, the resulting name will be ubuntuLTS-sparse.vmdk.
3 (Optional) In the Compute component, confirm that the image was successfully imported.
$ glance image-list
The command returns a list of all images that are available in the Image Service.
You can also use the glance-import tool to import images in the supported OVA and VMDK formats.
Prerequisites
n Verify that the image is packaged in the RAW, QCOW2, VDI, or VHD format.
n To allow plain HTTP requests, verify that the image is hosted on a server without credentials.
n Verify that the VMware Integrated OpenStack controller can access the hosted server where the
image is stored.
Procedure
2 From the VMware Integrated OpenStack manager, use SSH to log in to the controller01 node.
sudo su -
source cloudadmin.rc
export OS_AUTH_URL=http://INTERNAL_VIP:35357/v2.0
Parameter Description
image-name Specify the name for the image as it will appear in the Image Service.
image_format Specify the format of the source image file. Non-VMDK images are converted
automatically to the VMDK format.
The following formats are supported:
n VMDK
n OVA
n RAW
n QCOW2
n VDI
n VHD
For example:
The CLI displays the task information and status, including the task ID and image ID.
If the image is large and requires a lot of time, you can exit the utility safely without affecting the
operation and check the task status later.
Note You must know the task ID to be able to check the status.
For example:
You must know the image ID created by the glance-import command to confirm the import.
glance image-list
The command returns a list of all images that are available in the Image Service.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
You can manage metadata definitions on the Metadata Definitions page located atAdmin > System >
Metadata Definitions.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
5 In the Actions column of the image listing, click the down arrow and select Update Metadata.
The Update Metadata dialog has two columns. The right shows metadata tags already applied to the
image, and the left column shows available metadata tags, which are grouped by category, such as
Guest Customization, Instance Config Data, and so on.
a To add a metadata tag to the image definition, click the plus sign (+).
c To remove a metadata tag from the image definition, click the minus sign (-).
7 Click Save.
The Windows guest customization feature provides an alternative to the cloudbase-init approach to
enabling guest customization. If an image currently uses cloudbase-init, do not use the
VMware Integrated OpenStack Windows guest customization feature.
Prerequisites
n Verify that you are logged in to the VMware Integrated OpenStack dashboard as a cloud
administrator.
n Verify that you have an appropriate Windows OS image available in the Glance Image Service.
n Verify that the correct versions of the Microsoft System Preparation tools (sysprep) for each guest
operating system you want to customize are installed in vSphere. See Installing the Microsoft
Sysprep Tool in the vSphere product documentation.
n Verify that the image disk type property correctly reflects the image disk type prior to import.
This applies only to images imported into Glance in VMware Integrated OpenStack versions earlier
than 2.0. In version 2.0.x and later, image properties (such as disk type) are automatically
introspected during the Glance import process.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
You can only view the metadata definitions in the VMware Integrated OpenStack dashboard. You
cannot modify the metadata.
6 In the Actions column of the image listing, click the down arrow and select Update Metadata.
7 In the column under Available Metadata, expand the Guest Customization Options tab.
Note If the Guest Customization Options tab is not present, the related metadata properties might
already be configured.
8 Click the plus sign (+) next to the guest customization option you want to add.
Tip You can add all the options simultaneously by the clicking the plus sign (+) on the top Guest
Customization Options tab.
In the column under Existing Metadata, the newly added metadata properties appear.
Note You may need to scroll to the bottom of this column to see the newly added metadata
properties.
Note This serial number is ignored if the original guest operating system was
installed using a volume-licensed CD.
10 Click Save.
The image metadata is now configured for Windows guest customization and are applied for all future
VMs that are created from this image.
QoS resource allocation for an instance can also be specified by flavor metadata. In the event of a
conflict, the image metadata configuration overrules the flavor metadata configuration. See Configure
QoS Resource Allocation for Instances Using Flavor Metadata.
Prerequisites
n Verify that you are logged in to the VMware Integrated OpenStack dashboard as a cloud
administrator.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
5 In the Actions column of the image listing, click the down arrow and select Update Metadata.
6 In the column under Available Metadata, expand the VMware Quota tab.
Note If the VMware Quota tab is not present, the related metadata properties might already be
configured.
7 Click the plus sign (+) next to the VMware Quota metadata property you want to add.
Tip You can add all the options simultaneously by the clicking the plus sign (+) on the VMware
Quota tab.
In the column under Existing Metadata, the newly added metadata properties appear .
9 Click Save.
The image metadata is now configured for limits, reservations, and shares for CPU, IOPS, memory, and
network bandwidth. This configuration is applied to all future OpenStack instances that are created from
this image.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
Migrating Images
You can migrate images between datastores in a way that preserves their UUID and metadata.
This process requires you to copy the images folder from the current datastore to an offline datastore and
modify the Image Service image location configuration.
Procedure
Prerequisites
Verify that both the current and destination datastores are available.
Procedure
1 Using SSH, log in to the ESXi host on which the current Image Service datastore is mounted.
sudo su -
The images folder is typically called images and resides on the top level.
4 Using the cp or scp Linux command, copy the images folder to the new datastore.
Important When copying the folder to the new datastore, retain both the images folder name and
relative path.
What to do next
You must now modify the images data to reflect the new location. For details, see Update the Migrated
Images Location Data.
Prerequisites
n Verify that the images folder has been copied to the new datastore.
n Verify that the image folder name and relative path on the new datastore are the same as as on the
previous datastore.
n Verify that you know the image ID values of the images you want to update.
Procedure
1 Repeat this procedure for all images that you want to migrate.
sudo su -
source cloudadmin.rc
glance image-list
vsphere://<vcenter_ip>/folder/<image_folder_name>/<image_id>dcPath=<path_to_datac
enter>&dsName=<old_datastore_name>
For example:
vsphere://10.20.123.456/folder/images/6c4a7e0d-65e7-4f3c-9dde-0de75f729a0c
?dcPath=Datacenter1&dsName=old_ds
8 Update the image's location URL to reflect the destination datastore to complete the migration of a
single image.
Option Description
new_url The new URL is the same as the previous URL except the dsName argument
specifies the name of the new datastore.
vsphere://<vcenter_ip>/folder/<image_folder_name>/<image_id>dc
Path=<path_to_datacenter>&dsName=<new_datastore_name>
If the command returns a 400 Bad Request: Invalid Location message, verify that file path
of the image on the destination datastore is correct.
c View the image information again to verify that the locations parameter correctly reflects the
new datastore.
Prerequisites
n Verify that the existing VMs template resides in the same vCenter as your
VMware Integrated OpenStack deployment.
Procedure
n The vmware_ostype is required for Windows images, but optional for Linux images.
n The hw_vif_model is recommended for specifying NIC type. Before defining this setting, confirm
the correct NIC type for this image template. For example, if this setting is undefined, the instance
is provisioned with the E1000 NIC by default. To ensure another NIC is provisioned, define this
setting appropriately.
n vmware_adaptertype
n vmware_disktype
3 Run the glance command to obtain, define, and import the image.
The location-add command points to the inventory path for the VM template and can refer to either
VM or host. For example:
"vi://<datacenter-path>/vm/<template_name>”
or
"vi://<datacenter-path>/host/<host_name>/<template_name>"
The vm and host keywords in the inventory path represent the VM and Templates View and Host
and Cluster View hierarchy in your vSphere Web Client.
The live-resize functionality uses the os_live_resize property for images that is not available in
previous versions of VMware Integrated OpenStack, so that you must add it to your existing images to be
able to resize new VMs without powering them off. The value of os_live_resize can be memory, disk,
and vcpu, or any combination separated by commas. For example
os_live_resize=disk,memory,vcpu.
Prerequisites
To be able to deploy VMs that are capable of live-resizing, the following requirements for the image must
be met.
n Create the VM image in VMware Integrated OpenStack 4.0 or later, so that the os_live_resize
property is available.
n To be able to resize disks, deploy the VMs as full clones not linked clones and use SCSI virtual disk
adapter types. IDE adapter type is not supported.
Procedure
4 Configure the VMs to deploy from the image to be full clones and not linked ones.
5 Configure the VM settings to be available for live-resize through the os_live_resize property.
You created a new image for VMs that can be resized with no need to power them off.
Before VMware Integrated OpenStack 2.5, the default behavior was to store Nova snapshots as
streamOptimized VMDK disks. This procedure enables you to restore the pre-2.5 default.
Procedure
##############################
# Glance Template Store
# options that affect the use of glance template store
##############################
#glance_default_store: vi
nova_snapshot_format: streamOptimized
#cinder_image_format: template
Before VMware Integrated OpenStack 4.0, the default behavior was to store the Glance images as
streamOptimized VMDK disks. This procedure enables you to restore the pre-4.0 default.
Procedure
##############################
# Glance Template Store
# options that affect the use of glance template store
##############################
#glance_default_store: vi
#nova_snapshot_format: template
cinder_image_format: streamOptimized
n Create a Flavor
n Delete a Flavor
m1.tiny 1 512 1
m1.small 1 2048 20
m1.medium 2 4096 40
m1.large 4 8192 80
Create a Flavor
Administrative users can create custom flavors.
Prerequisites
Verify that you are logged in to the VMware Integrated OpenStack dashboard as a cloud administrator.
Procedure
1 On the VMware Integrated OpenStack dashboard, select the admin project from the drop-down menu
in the title bar.
Parameter Description
VCPUs Number of virtual CPUs that an instance made from this flavor will use.
RAM MB Megabytes of RAM for virtual machines made from this flavor.
Root Disk GB Gigabytes of disk used for the root (/) partition in instances made from this flavor.
Ephemeral Disk Gigabytes of disk space to use for the ephemeral partition. If unspecified, the value is 0 by default.
GB Ephemeral disks offer machine local disk storage linked to the life cycle of a VM instance. When a VM
is terminated, all data on the ephemeral disk is lost. Ephemeral disks are not included in snapshots.
5 Click Create Flavor at the bottom of the dialog box to complete the process.
6 (Optional) Specify which projects can access instances created from specific flavors.
a On the Flavors page, click Edit Flavor in the Actions column of the instance.
b In the Edit Flavor dialog box, click the Flavor Access tab.
c Use the toggle controls to select the projects that can access the instance.
d Click Save.
a On the Flavors page, click Edit Flavor in the Actions column of the instance.
b In the Edit Flavor dialog box, modify the settings in either the Flavor Info or Flavor Access tab.
c Click Save.
Delete a Flavor
You can manage the number and variety of flavors by deleting those that no longer meet users' needs,
duplicate other flavors, or for other reasons.
Note You cannot undo the deletion of a flavor. Do not delete default flavors.
Prerequisites
You must be logged in to the VMware Integrated OpenStack dashboard as a cloud administrator to
perform this task.
Procedure
1 In the VMware Integrated OpenStack dashboard, select the admin project from the drop-down menu
in the title bar.
You can also use image metadata to specify many flavor metadata settings. If a conflict occurs, the image
metadata configuration overrules the flavor metadata configuration.
Prerequisites
n Verify that you are logged in to the VMware Integrated OpenStack dashboard as a cloud
administrator.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
4 (Optional) Create a flavor specific to the intended use of the metadata application.
Create a custom flavor to contain the specific configuration. The custom flavor leaves the original
flavor configuration intact and available for other instance creation.
6 In the Actions column of the image listing, click the down arrow and select Update Metadata.
7 Click the plus sign (+) next to the metadata properties to add.
In the column under Existing Metadata, the newly added metadata properties appear.
For example, you might have to select an option from a drop-down list or enter a string value.
9 Click Save.
The newly added flavor metadata properties are now configured. This configuration is applied to all future
OpenStack instances that are created from this flavor.
QoS resource allocation can also be specified by image metadata. In the event of a conflict, the image
metadata configuration overrules the flavor metadata configuration. See Configure QoS Resource
Allocation for Instances Using Image Metadata.
Prerequisites
n Verify that you are logged in to the VMware Integrated OpenStack dashboard as a cloud
administrator.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
You must create a custom flavor to contain the specific configuration. This leaves the original flavor
configuration intact and available for other uses.
6 In the Actions column of the image listing, click the down arrow and select Update Metadata.
7 In the column under Available Metadata, expand the VMware Quota tab.
Note If the VMware Quota tab is not present, the related metadata properties might already be
configured.
8 Click the plus sign (+) next to the VMware Quota metadata property you want to add.
Tip You can add all the options simultaneously by the clicking the plus sign (+) on the VMware
Quota tab.
In the column under Existing Metadata, the newly added metadata properties appear.
10 Click Save.
The flavor metadata is now configured for limits, reservations, and shares for CPU, IOPS, memory, and
network bandwidth. This configuration is applied to all future OpenStack instances that are created from
this flavor.
As a communication service provider (CSP), you can use VMware Integrated OpenStack Carrier Edition
to run Carrier Grade OpenStack solutions on the vCloud NFV platform.
While quotas on projects set limits on the OpenStack resources across multiple compute nodes or
availability zones, they do not guarantee resource reservation. By using the Tenant Virtual Data Center to
allocate CPU and memory for an OpenStack project or tenant on a compute node, you provide a
resource guarantee for tenants and avoid noisy neighbor scenarios in a multi-tenant environment.
To manage the Tenant Virtual Data Center, you use the VMware Integrated OpenStack command line
utility. The viocli inventory-admin command includes parameters to create, list, and delete a tenant
virtual data center.
Yo use the Tenant Virtual Data Center to allocate resources at the compute node level. To allocate
resources for Virtual Network Functions (VNF), see Configure QoS Resource Allocation for Instances
Using Flavor Metadata.
Prerequisites
Verify that VMware Integrated OpenStack version 4.0 or later is deployed and running.
Procedure
Parameter Description
cpu-limit Upper limit for CPU in MHz within the compute node
cpu-reserve Minimum guaranteed or reserved value for CPU in MHz within the compute node
mem-reserve Minimum guaranteed or reserved value for memory in MB within the compute node
The result lists the Tenant Virtual Data Center name and its UUID.
+-----------------------------------------+----------------------------------+
| name | id |
+--------------------------------------------------+----------------------------------+
+--------------------------------------------------+----------------------------------+
Parameter Description
project Project allowed to access private flavor specified as name or ID. Must be used with --private option.
+----------------------------+--------------------------------------+
| Field | Value |
+----------------------------+--------------------------------------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| disk | 10 |
| id | 7796b6ea-17b1-4dec-868c-12e4a7196efd |
| name | companyA_gold |
| os-flavor-access:is_public | False |
| properties | |
| ram | 2048 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+----------------------------+--------------------------------------+
5 Use the OpenStack flavor extra specs to expose the Tenant Virtual Data Center.
The following example includes values for the Tenant Virtual Data Center and flavor UUIDs.
6 (optional) You can use the following command to expose the VNF level resource allocation with the
Tenant Virtual Data Center.
What to do next
When the Tenant Virtual Data Center is no longer needed, delete it.
For more information about SR-IOV requirements and supported features, see the vSphere Web Client
documentation.
The following table describes the key components of SR-IOV and their role.
Nova Compute n Collects the list of SR-IOV devices and updates the list of
PCI device specifications.
n Embeds the host object ID in device specifications.
Nova PCI manager n Creates and maintains a device pool with address, vendor
ID, product ID, and host ID.
n Allocates and deallocates PCI devices to instances based
on PCI requests.
Prerequisites
n Verify that your deployment is VDS based. SR-IOV does not work with NSX.
Procedure
Procedure
You can look at the SR-IOV property to see whether a physical adapter supports SR-IOV.
5 In the Number of virtual functions text box, type the number of virtual functions that you want to
configure for the adapter.
6 Click OK.
Because DRS rules do not work on SR-IOV-enabled devices, create a dedicated compute cluster for SR-
IOV-enabled hosts and adapters, called vmnics.
The virtual functions become active on the NIC port represented by the physical adapter entry. They
appear in the PCI Devices list in the Settings tab for the host.
You can use the esxcli network sriovnic vCLI commands to examine the configuration of virtual
functions on the host.
What to do next
You can now configure the flavor and image metadata in the VMware Integrated OpenStack dashboard.
Consumption of GPU and passthrough features is achieved by using the appropriate flavor. Modify the
metadata parameters of the flavor to create the instance.
Prerequisites
Make sure that you perform the following settings in your environment before you can configure GPU
passthrough devices:
n Enable DirectPath I/O in vSphere. See the DirectPath I/O chapter in the VMware vSphere 6.5
Documentation.
n Enable SR-IOV on GPU devices on your ESXi hosts. See Configuring AMD Multiuser GPU Using
vDGA in the VMware Horizon documentation.
Procedure
4 Create PCI alias using VIO customization by editing the custom.yml file according to your
configuration.
a Edit nova_pci_alias value to create PCI alias based on device_type, vendor_id, and
product_id and name the alias, for example:
What to do next
Consumption of DirectPath I/O passthrough features is achieved by using the appropriate flavor. Modify
the metadata parameters of the flavor to create the instance.
Prerequisites
Make sure that you perform the following settings in your environment before you can configure
DirectPath I/O passthrough devices:
n Enable DirectPath I/O in vSphere. See the DirectPath I/O chapter in the VMware vSphere 6.5
Documentation.
Procedure
4 Create PCI alias using VIO customization by editing the custom.yml file according to your
configuration.
a Edit nova_pci_alias value to create PCI alias based on device_type, vendor_id, and
product_id and name the alias, for example:
What to do next
Procedure
2 Select the admin project from the drop-down menu in the title bar.
The original flavor configuration remains intact and available for other uses.
6 In the Actions column of the image listing, click the down arrow and select Update Metadata.
7 In the column under Available Metadata, expand the VMware Driver Options for Flavors tab.
Note If the VMware Driver Options for Flavors tab is not present, the related metadata property
might already be configured.
8 Click the plus sign (+) next to the PCI Passthrough alias metadata property.
In the column under Existing Metadata, the newly added metadata property and the default value
appear. The numerical portion represents the number of virtual functions that you can request.
The PCI Passthrough alias refers to a PCI request specification that contains vendor_id,
product_id, and device_type. In VMware Integrated OpenStack, the alias is already created and
refers to a PCI request specification that you can use to allocate any device regardless of the
vendor_id, product_id, and device_type.
10 Click Save.
Procedure
2 Select the admin project from the drop-down menu in the title bar.
The original image configuration remains intact and available for other uses.
6 In the Actions column of the image listing, click the down arrow and select Update Metadata.
7 In the column under Available Metadata, expand the VMware Driver Options tab.
Note If the VMware Driver Options tab is not present, the related metadata property might already
be configured.
8 Click the plus sign (+) next to the Virtual Network Interface metadata property.
In the column under Existing Metadata, the newly added metadata property appears as
hw_vif_model.
10 Click Save.
Mandatory or
Parameter Optional Description
NFS_VOLUME Mandatory Name or IP address of the target NFS volume and directory in the format
remote_host:remote_dir.
For example: 192.168.1.77:/backups
-h, --help Optional Show the use and arguments for this command.
The backup file of the VMware Integrated OpenStack management server is labeled with the time stamp
vio_ms_yyyymmddhhmmss. The backup file of the VMware Integrated OpenStack database is labeled with
the time stamp vio_os_db_yyyymmddhhmmss.
-h, --help Optional Show the use and arguments for this command.
Mandatory or
Parameter Optional Description
ACTION Mandatory
start Start the deployment.
Use one of the following
positional arguments: stop Stop the deployment.
n start pause Pause the deployment.
n stop
resume Resume the paused deployment.
n pause
n resume configure Reconfigure the entire deployment.
n configure cert-req- Create a certificate signing request for a certificate
n cert-req-create create authority.
n cert-update
cert-update Update VMware Integrated OpenStack with the
n getlogs
provided certificate.
n status
getlogs Generate log files for the current deployment,
including the ansible executed commands and
output. Log files are written
to /var/log/viocli/viocli.log and rotated
after they reach 100 MB, with a maximum of seven
rotations.
-h, --help Optional Show the use and arguments for this command.
-h, --help Optional Show the use and arguments for this command.
VMware Integrated OpenStack has been tested with vRealize Operations Manager 6.2.1
Mandatory or
Parameter Optional Description
ACTION Mandatory
install Install the Endpoint Operations
Use one of the following positional Management agent.
arguments:
uninstall Uninstall the Endpoint Operations
n install
Management agent.
n uninstall
n config config Configure the Endpoint Operations
n start Management agent.
-h, --help Optional Show the use and arguments for this command.
The viocli inventory-admin command collects vCenter and OpenStack credentials from internal
inventories. This command requires that you enter the OpenStack administrative password. To prevent
having to enter the password each time, set the OS_PASSWORD environment variable.
Mandatory or
Parameter Optional Description
SHOW_ACTION Mandatory
show- Display orphaned OpenStack instances.
Use one of the following positional instances
arguments:
show- Display orphaned vSphere instances.
n show-instances
instance-vms
n show-instance-vms
n show-shadow-vms show-shadow- Display orphaned volume shadow VMs. These
vms are volume VMs that do not have
corresponding block storage volumes in the
OpenStack database.
CLEAN_ACTION Mandatory
clean- Remove orphaned OpenStack instances.
Use one of the following positional instances
arguments:
clean- Remove orphaned vSphere instances.
n clean-instances
instance-vms
n clean-instance-vms
n clean-shadow-vms clean- Remove orphaned volume shadow VMs.
shadow-vms These are volume VMs that do not have
corresponding block storage volumes in the
OpenStack database.
--json Optional Return output in JSON format. This is the default format when this
command is used noninteractively.
--pretty Optional Return output in human-readable format. This is the default format
when this command is used interactively.
--all Optional Show all objects. The default is to show only orphaned objects.
-h, --help Optional Show the use and arguments for this command.
Mandatory or
Parameter Optional Description
-d, --deployment NAME Automatic Name of the deployment containing the nodes to be recovered.
Applied automatically. The default value is the name of the current
deployment.
-r, --role ROLE Mandatory Recovers all the nodes assigned to a given role. You can specify multiple roles
unless NODE is in one command. You can also specify -n, --node to the same command to
specified recover additional nodes that are not assigned to that role.
Use the group name as it appears in the VMware Integrated OpenStack
manager. To view the group name, select VMware Integrated OpenStack >
OpenStack Deployments > [Deployment Name].
The valid role names are: ComputeDriver, Controller, DB, LoadBalancer.
For example, the following command recovers the nodes in the DB node group
from the specified NFS backup file.
viocli recover -r DB -dn vio_os_db_20150830215406 -nfs
10.146.29.123:/backups
-n, --node NODE Mandatory Recovers a specified node. You can specify multiple nodes in one command.
unless ROLE is Use the VM name as it appears in the VMware Integrated OpenStack
specified manager. To view the name, select VMware Integrated OpenStack >
OpenStack Deployments > [Deployment Name].
For example, the following command recovers the specified database nodes
(VIO-DB-0, VIO-DB-1, and VIO-DB-2) from the specified NFS backup file.
viocli recover –n VIO-DB-0 VIO-DB-1 VIO-DB-2 –dn
vio_os_db_20150830215406 -nfs 10.146.29.123:/backups
-dn, --dir-name Mandatory for Indicates the time stamp label of the backup file to use to restore the database.
BACKUP_NAME OpenStack
database
recovery
-h, --help Optional Show the use and arguments for this command.
Mandatory or
Parameter Optional Description
-h, --help Optional Show the use and arguments for this command.
The backup file of the VMware Integrated OpenStack management server is labeled with the time stamp
vio_ms_yyyymmddhhmmss. The backup file of the VMware Integrated OpenStack database is labeled with
the time stamp vio_os_db_yyyymmddhhmmss.
-h, --help Optional Show the use and arguments for this command.
Mandatory or
Parameter Optional Description
ACTION Mandatory
start Start the deployment.
Use one of the following positional
arguments: stop Stop the deployment.
n start
n stop
-h, --help Optional Show the use and arguments for this command.
-p, --inventory-path Optional Displays the inventory path used for the current deployment .
-i, --inventory Optional Displays inventory file content used for the current deployment
-h, --help Optional Show the use and arguments for this command.
Mandatory or
Parameter Optional Description
-h, --help Optional Show the use and arguments for this command.
In this case, migrate the corresponding instance. Attached volumes migrate with the instance.
Note Corresponding volume shadow VMs do not migrate. To migrate such volume shadow VMs, run
the viocli ds-migrate-prep Command, then migrate the shadow VMs using the vSphere Web Client.
n Volume migration fails, if the volume has a storage policy that cannot be satisfied by the destination
datastore.
You can force the migration by including the --ignore-storage-policy parameter. The command
outputs a warning if the storage policy is ignored for the migration to a non-compliant datastore.
-d, --deployment Automatic Name of the deployment in which the volumes to be migrated.
NAME Applied automatically. The default value is the name of the current
deployment.
--source-ds Mandatory unless Used with the --source-dc parameter uniquely to identify the
SRC_DS_NAME VOLUME_UUIDS is datastore.
specified. For example, the following command migrates all the volumes from
datastore DS-01 in data center DC-01 to datastore DS-02 in data center
DC-02.
viocli volume-migrate --source-dc DC-01 --source-ds DS-01
DC-02 DS-02
--volume-ids Mandatory unless Migrates one or more individual volumes specified by UUID value. To
VOLUME_UUIDS SRC_DC_NAME and specify more than one volume, separate the UUIDs by commas.
SRC_DS_NAME are For example, the following command migrates two volumes specified by
specified. their UUID values to datastore DS-01 in data center DC-01.
viocli volume-migrate --volume-ids
25e121d9-1153-4d15-92f8-c92c10b4987f, 4f1120e1-9ed4-421a-
b65b-908ab1c6bc50 DC-01 DS-01
-h, --help Optional Show the use and arguments for this command.
When you integrate VMware Integrated OpenStack with vRealize Automation, you can benefit from the
following features:
n Securely use existing credentials to access cloud resources through integration with VMware Identity
Manager.
n Manage all your OpenStack deployments from a single GUI through the new VMware Integrated
OpenStack tab that appears in the vRealize Automation portal.
n Consume VMware Integrated OpenStack based infrastructure through vRealize Automation XaaS
blueprints.
n Run OpenStack Heat workflows that provide on-demand network capabilities on OpenStack based
resource pools
Extended by
GUI vRealize OpenStack Service
OpenStack Services
Identity
VMware Identity Federation Keystone
Manager (Auth)
Procedure
1 Enable the service that integrates VMware Integrated OpenStack with vRealize Automation.
b Run the command to configure the VMware Integrated OpenStack tab for yourv Realize
Automation tenant.
2 Prior to being able to login a VMware Identity Manager user to VMware Integrated OpenStack, assign
a role or project to the group that user belongs to.
a Create JSON file and configure mappings between the vIDM domain, the Openstack project, and
the OpenStack group.
{
"domain": {
"name": "Default", //domain where VMware Identity Manager users will consume
resource from.
"project": {
"name": "fed-project1", // new OpenStack project for this group of users.
"group": {
"name": "fed-group1", // new OpenStack group for these vRealize Automation users
"users": [ // list of vIDM users will be added to the group.
{
"name": "user1"
},
{
"name": ”user2"
}
]
}
}
}
}
You can log in to either the vRealize Orchestrator embedded in your vRealize Automation server
or the external vRealize Orchestrator connected to the vRealize Automation server.
The vRealize Orchestrator server installs the plug-in. After the plug-in is installed, the Manage
Plug-Ins page refreshes and indicates that the installation was successful. The page also displays
a message prompting you to restart the vRealize Orchestrator server.
f Click Install.
g Click Startup Options to access controls and restart the vRealize Orchestrator server.
You can now administrate VMware Integrated OpenStack through the vRealize Automation portal, design,
and consume blueprints.
Prerequisites
n Verify that you have service architect user privileges to access the plug-in.
n Verify that the OpenStack Keystone service is connected to an Active Directory server for automatic
synchronization. This configuration automatically synchronizes user accounts in Keystone
Procedure
3 Click New.
4 Select the workflow Orchestrator > Library > VMware Integrated OpenStack > Deploy an
OpenStack project or Delete an OpenStack project, and click Next.
Keystone URL, Project name, Keystone domain name, User name, and Password parameters are
mandatory for all blueprints. For the delete blueprint you only need the Project name parameter and
the mandatory ones.
Visibility to
Parameter Label Value user
keystone_url Keystone URL Provide the URL to the Keystone Public Service. False
admin_username Admin Provide a valid Active Directory or LDAP user name with False
Username administrative permissions.
admin_password Admin Provide a valid password for the Active Directory or LDAP False
Password user name.
admin_project_name Admin Project Enter the name for the administrative OpenStack project name False
Name where the OpenStack instances will be provisioned. The
default is admin.
keystone_domain_name Keystone Specify the Keystone domain for OpenStack user False
Domain Name authentication. Keystone is the OpenStack Identity Service
component. The default domain name is default.
new_project_name New Project Specify the name of the new OpenStack project where the True
Name OpenStack instances will be provisioned. You can leave this
value empty, which enables the catalog user to specify the
name.
user_name Username The catalog user's OpenStack account name with the Active True
Directory or LDAP domain suffix omitted.
quotas quotas settings Configure the predefined quota keys and values for the new False
project.
n nova_instances = 120
n neutron_subnet = 130
n cinder_snapshots = 140
The quota key names use the servicename_quotaname
format, where servicename is the name of the standard
OpenStack service and quotaname is the name of the
standard OpenStack service quota .
6 Click Finish.
7 To publish the blueprint, select it from the list and click Publish.
A blueprint becomes available for consumption only after you publish it.
Prerequisites
n Verify that you have service architect user privileges to access the plug-in.
n Verify that the OpenStack Keystone service is connected to an Active Directory server for automatic
synchronization. This configuration automatically synchronizes user accounts in Keystone
Procedure
3 Click New.
4 Select the workflow Orchestrator > Library > VMware Integrated OpenStack > Deploy a Heat
stack or Delete a Heat stack, and click Next.
You must enter custom labels for all parameters. Parameters listed below are specific for this
blueprint. Keystone URL, Project name, Keystone domain name, User name, and Password
parameters are mandatory for all blueprints. For the delete blueprint you only need the first parameter
from the table and the mandatory ones.
Visibility to
Parameter Label Value user
stack_name New Stack Name Specify the name for the new Heat stack. You can leave True
this value empty to allow the catalog user to specify the new
stack name.
template_content Template Content Provide the Heat template file content to be published. True
Configure as text area.
A Heat template is a static architectural design of the
orchestrated application, and are written in the HOT (Heat
Orchestration Template) format.
environment_content Environment Provide the Heat environment file content. Configure as text False
Content area.
The Heat environment file contains values for specific
parameters in the Heat template.
For authoring information, see the OpenStack
documentation.
timeout timeout in minutes Specify the timeout period for this service in minutes. False
7 Click Finish.
8 To publish the blueprint, select it from the list and click Publish.
A blueprint becomes available for consumption only after you publish it.
Prerequisites
n Verify that you have service architect user privileges to access the plug-in.
n Verify that the OpenStack Keystone service is connected to an Active Directory server for automatic
synchronization. This configuration automatically synchronizes user accounts in Keystone
Procedure
3 Click New.
4 Select the workflow Orchestrator > Library > VMware Integrated OpenStack > create an instance
or delete an instance, and click Next.
You must enter custom labels for all parameters. Parameters listed below are specific for this
blueprint. Keystone URL, Project name, Keystone domain name, User name, and Password
parameters are mandatory for all blueprints. For the delete blueprint you only need the first parameter
from the table and the mandatory ones.
Visibility to
Parameter Description user
Keypair name Select an existing key pair, import a key pair, or generate a new key pair. True
A key pair allows you to connect over SSH to your newly created instance.
Timeout Timeout for the workflow to wait for creation complete. True
6 Click Finish.
7 To publish the blueprint, select it from the list and click Publish.
A blueprint becomes available for consumption only after you publish it.
Prerequisites
n Verify that you have service architect user privileges to access the plug-in.
n Verify that the OpenStack Keystone service is connected to an Active Directory server for automatic
synchronization. This configuration automatically synchronizes user accounts in Keystone
Procedure
3 Click New.
4 Select the workflow Orchestrator > Library > VMware Integrated OpenStack > create a keypairor
delete a keypair, and click Next.
You must enter custom labels for all parameters. Parameters listed below are specific for this
blueprint. Keystone URL, Project name, Keystone domain name, User name, and Password
parameters are mandatory for all blueprints.
6 Click Finish.
7 To publish the blueprint, select it from the list and click Publish.
A blueprint becomes available for consumption only after you publish it.
Prerequisites
n Verify that you have service architect user privileges to access the plug-in.
n Verify that the OpenStack Keystone service is connected to an Active Directory server for automatic
synchronization. This configuration automatically synchronizes user accounts in Keystone
Procedure
3 Click New.
4 Select the workflow Orchestrator > Library > VMware Integrated OpenStack > create an image or
delete an image, and click Next.
You must enter custom labels for all parameters. Parameters listed below are specific for this
blueprint. Keystone URL, Project name, Keystone domain name, User name, and Password
parameters are mandatory for all blueprints. For the delete blueprint you only need the first parameter
from the table and the mandatory ones.
Visibility to
Parameter Description of Value Users
Disk format Format of the image file, for example: vmdk, qcow2, etc. True
Image location URL to the image file, for example: https://ip:port/image1.vmdk True
Is public If you select true, image is shared with other projects, false restricts it to the True
current project.
Disk type Enter the disk type, for example: streamOptimized or sparse. True
Container format Enter the container format, for example bare. True
Timeout Timeout in seconds for the workflow to wait for the image creation to finish. True
6 Click Finish.
7 To publish the blueprint, select it from the list and click Publish.
A blueprint becomes available for consumption only after you publish it.
Prerequisites
n Verify that you have service architect user privileges to access the plug-in.
n Verify that the OpenStack Keystone service is connected to an Active Directory server for automatic
synchronization. This configuration automatically synchronizes user accounts in Keystone
Procedure
3 Click New.
4 Select the workflow Orchestrator > Library > VMware Integrated OpenStack > create a network
or delete a network, and click Next.
You must enter custom labels for all parameters. Parameters listed below are specific for this
blueprint. Keystone URL, Project name, Keystone domain name, User name, and Password
parameters are mandatory for all blueprints. For the delete blueprint you only need the first parameter
from the table and the mandatory ones.
Visibility to
Parameter Description of Value Users
network type Enter the type of the physical network. For example: flat, vlan, True
portgroup, or vxlan.
physical network Enter the corresponding physical network for this new virtual network. True
project name for this network Enter the keystone project where this new virtual network is created. True
is shared If you select true, network is shared with other projects, false True
restricts it to the current project.
is admin state up Select the state to start the network in. True
6 Click Finish.
7 To publish the blueprint, select it from the list and click Publish.
A blueprint becomes available for consumption only after you publish it.
Prerequisites
n Verify that you have service architect user privileges to access the plug-in.
n Verify that the OpenStack Keystone service is connected to an Active Directory server for automatic
synchronization. This configuration automatically synchronizes user accounts in Keystone
Procedure
3 Click New.
4 Select the workflow Orchestrator > Library > VMware Integrated OpenStack > create a subnet or
delete a subnet, and click Next.
You must enter custom labels for all parameters. Parameters listed below are specific for this
blueprint. Keystone URL, Project name, Keystone domain name, User name, and Password
parameters are mandatory for all blueprints. For the delete blueprint you only need the first parameter
from the table and the mandatory ones.
Network name Name of the network that the subnet is created under. True
6 Click Finish.
7 To publish the blueprint, select it from the list and click Publish.
A blueprint becomes available for consumption only after you publish it.
Prerequisites
n Verify that you have service architect user privileges to access the plug-in.
n Verify that the OpenStack Keystone service is connected to an Active Directory server for automatic
synchronization. This configuration automatically synchronizes user accounts in Keystone
Procedure
3 Click New.
4 Select the workflow Orchestrator > Library > VMware Integrated OpenStack > create a floating ip
or delete a floating ip, and click Next.
You must enter custom labels for all parameters. Parameters listed below are specific for this
blueprint. Keystone URL, Project name, Keystone domain name, User name, and Password
parameters are mandatory for all blueprints. For the delete blueprint you only need the first parameter
from the table and the mandatory ones.
External network name Enter the name of the external network, where the floating IP is allocated True
from.
6 Click Finish.
7 To publish the blueprint, select it from the list and click Publish.
A blueprint becomes available for consumption only after you publish it.
Prerequisites
n Verify that you have service architect user privileges to access the plug-in.
n Verify that the OpenStack Keystone service is connected to an Active Directory server for automatic
synchronization. This configuration automatically synchronizes user accounts in Keystone
Procedure
3 Click New.
4 Select the workflow Orchestrator > Library > VMware Integrated OpenStack > create a router or
delete a router, and click Next.
You must enter custom labels for all parameters. Parameters listed below are specific for this
blueprint. Keystone URL, Project name, Keystone domain name, User name, and Password
parameters are mandatory for all blueprints. For the delete blueprint you only need the first parameter
from the table and the mandatory ones.
External network Enter name of the network where the router is uplinked. True
Is admin state up Select the state to start the router in. True
6 Click Finish.
7 To publish the blueprint, select it from the list and click Publish.
A blueprint becomes available for consumption only after you publish it.
Prerequisites
n Verify that you have service architect user privileges to access the plug-in.
n Verify that the OpenStack Keystone service is connected to an Active Directory server for automatic
synchronization. This configuration automatically synchronizes user accounts in Keystone
Procedure
3 Click New.
4 Select the workflow Orchestrator > Library > VMware Integrated OpenStack > create a security
group or delete a security group, and click Next.
You must enter custom labels for all parameters. Parameters listed below are specific for this
blueprint. Keystone URL, Project name, Keystone domain name, User name, and Password
parameters are mandatory for all blueprints. For the delete blueprint you only need the first parameter
from the table and the mandatory ones.
6 Click Finish.
7 To publish the blueprint, select it from the list and click Publish.
A blueprint becomes available for consumption only after you publish it.
Prerequisites
n Verify that you have service architect user privileges to access the plug-in.
n Verify that the OpenStack Keystone service is connected to an Active Directory server for automatic
synchronization. This configuration automatically synchronizes user accounts in Keystone
Procedure
3 Click New.
4 Select the workflow Orchestrator > Library > VMware Integrated OpenStack > attach volume to
server or detach volume to server, and click Next.
You must enter custom labels for all parameters. Parameters listed below are specific for this
blueprint. Keystone URL, Project name, Keystone domain name, User name, and Password
parameters are mandatory for all blueprints. For the delete blueprint you only need the first parameter
from the table and the mandatory ones.
6 Click Finish.
7 To publish the blueprint, select it from the list and click Publish.
A blueprint becomes available for consumption only after you publish it.
Prerequisites
n Verify that you have service architect user privileges to access the plug-in.
n Verify that the OpenStack Keystone service is connected to an Active Directory server for automatic
synchronization. This configuration automatically synchronizes user accounts in Keystone
Procedure
3 Click New.
4 Select the workflow Orchestrator > Library > VMware Integrated OpenStack > attach volume to
server or detach volume to server, and click Next.
You must enter custom labels for all parameters. Parameters listed below are specific for this
blueprint. Keystone URL, Project name, Keystone domain name, User name, and Password
parameters are mandatory for all blueprints. For the delete blueprint you only need the first parameter
from the table and the mandatory ones.
6 Click Finish.
7 To publish the blueprint, select it from the list and click Publish.
A blueprint becomes available for consumption only after you publish it.
Prerequisites
Verify that you have tenant administrator user privileges to access the plug-in.
Procedure
These values appear in the service catalog for the catalog users. For example, if it does not exist
already, you can create the OpenStack Services category.
5 (Optional) To associate the OpenStack icon with the new service, click Browse and select the
OpenStack icon.
6 Click Finish.
7 Select OpenStack Services and click Manage Catalog Items from the drop-down menu.
9 Add the selected blueprints to the current service and click OK.
10 Select OpenStack Services and click Activate from the drop-down menu.
11 (Optional) Select Administration > Catalog Management > Catalog Items and to update the added
services with the OpenStack icon.
What to do next
You can now configure entitlements for users and groups to use the new OpenStack services. See the
vRealize Automation product documentation.
For more information about using entitlements and how they determine which users and groups can
request specific catalog items or perform specific actions, see the vRealize Automation product
documentation.
Prerequisites
n Verify that you have the user privileges to access the plug-in as a catalog user.
n Verify that your user account possesses the required entitlement to access and request OpenStack
Services.
Procedure
The actual name of this service is determined by the person who creates the source blueprint.
The New Request page displays the parameters you need to supply.
6 Click Submit.
The request is submitted. After the request is approved, depending on the approval policy associated
with the catalog service, the OpenStack service request runs.
7 To confirm if the request was successful, you can log in to OpenStack to verify that the OpenStack
service request completed successfully.
You must log in to OpenStack as the same user who requested the new service.