~gandelman-a/charms/precise/nova-vmware/trunk

« back to all changes in this revision

Viewing changes to README

  • Committer: Adam Gandelman
  • Date: 2013-10-09 00:52:24 UTC
  • Revision ID: adamg@canonical.com-20131009005224-ub1yu8wdkch45xka
Init new repo.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Sets up nova-compute using vCenter driver for spawning instances on a VMWare
 
2
vCenter cluster.
 
3
 
 
4
vCenter Setup
 
5
-------------
 
6
    - Create a new datacenter.
 
7
    - Create a new cluster, eg "NovaCluster"
 
8
        * Enable DRS for the cluster.
 
9
    - Add ESX host(s) to the new cluster.
 
10
 
 
11
    FlatDHCP Networking:
 
12
    - In the 'Configuration' tab of the ESX host(s), a port group news to be
 
13
      created that matches the flat_network_bridge value in nova.conf.  This
 
14
      is set to br100 by default, but is configurable in the charm config.  The
 
15
      port group should be associated with a valid vSwitch.
 
16
 
 
17
    Quantum:
 
18
    - TODO
 
19
 
 
20
Deployment
 
21
----------
 
22
 
 
23
Currently, the nova-vmware charm is a subordinate that can be with the
 
24
nova-cloud-controller service, eliminating the need to deply a dedicated
 
25
compute node just to act as a proxy to vCenter.  This is okay for a small
 
26
installation, but we may wish to allow a relation to nova-compute nodes as
 
27
well.  This would better address scalability issues and allow for segmenting
 
28
into cells.
 
29
 
 
30
The following assumes a vCenter cluster running @ http://192.168.25.100
 
31
with default credentials and a cluster named NovaCluster with appropriate
 
32
networking resources setup.
 
33
 
 
34
Deploy the minimal basics:
 
35
 
 
36
    $ juju deploy mysql
 
37
    $ juju deploy rabbitmq-server
 
38
    $ juju deploy glance
 
39
    $ juju deploy keystone
 
40
    $ juju deploy nova-cloud-controller
 
41
    $ juju add-relation nova-cloud-controller mysql
 
42
    $ juju add-relation nova-cloud-controller rabbitmq-server
 
43
    $ juju add-relation nova-cloud-controller glance
 
44
    $ juju add-relation nova-cloud-controller keystone
 
45
    $ juju add-relation glance keystone
 
46
 
 
47
Deploy the subordinate with appropriate config for the envirnoment:
 
48
 
 
49
    $ cat >vmware.cfg <<END
 
50
    vmwareapi_ip: 192.168.25.100
 
51
    vmwareapi_username: root
 
52
    vmwareapi_password: vmware
 
53
    vmwareapi_cluster_name: testcluster
 
54
    END
 
55
    $ juju deploy --repository=. --config=vmware.cfg local:nova-vmware
 
56
    $ juju add-relation nova-vmware nova-cloud-controller
 
57
 
 
58
Upload VMDK to Glance:
 
59
 
 
60
Images need to published to glance with special format and parameters.  Nicira
 
61
currently hosts a debian image for testing (as of Fri Aug  2 17:27:09 PDT 2013)
 
62
 
 
63
    $ wget https://www.dropbox.com/s/utvri5bw3zztty6/Debian-flat.vmdk
 
64
       glance image-create --name Debian --is-public=True \
 
65
       --container-format=bare --disk-format=vmdk --property \
 
66
       vmware-disktype="preallocated" < ~/Debian-flat.vmdk
 
67
 
 
68
Create network:
 
69
    1. nova-network
 
70
        Login to a nova node, create the network:
 
71
        $ sudo nova-manage network create private \
 
72
            192.168.21.0/24 1 256 --bridge=br100
 
73
        $ sudo nova-manage floating create 192.168.20.224/27
 
74
 
 
75
    2. quantum
 
76
 
 
77
        TODO
 
78
 
 
79
Boot image normally:
 
80
 
 
81
    $ nova boot --image <image-id> --flavor 1 test1
 
82
 
 
83
You should see activity in the 'Recent Tasks' section of the vCenter Client.
 
84
Note that spawning the image for the first time takes a *long time*.  The
 
85
image gets streamed from glance -> nova -> vCenter and can take ~10 mins for
 
86
the 1GB debian image.
 
87
 
 
88
Note as of Grizzly 2013.1.3, https://bugs.launchpad.net/nova/+bug/1180044.
 
89
Instances will fail if you have more than 1 data center setup / DRS disabled.
 
90
 
 
91
Links:
 
92
   http://docs.openstack.org/trunk/openstack-compute/admin/content/vmware.html
 
93
   https://wiki.openstack.org/wiki/NovaVMware/DeveloperGuide