-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.OCF
executable file
·152 lines (107 loc) · 4.72 KB
/
README.OCF
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
========
OVERVIEW
========
OFELIA Control Framework (OCF) is a set of software tools for testbed
management. It controls experimentation life-cycle; reservation,
instantiation, configuration, monitoring and uninistantiation.
Features:
Full software stack: frontend, clearinghouse and resources managers
(AMs) Support for mangement of Openflow, Virtual Machines (currently XEN)
and Emulab resources.
OCF is currently deployed in OFELIA FP7 project testbed, the European
Openflow testbed. The ideas behind its architecture are heavily influenced
by the experience of other testbed management tools and GENI architectural
concepts. Take a look at Overview section for more details.
==============
INSTALLING OCF
==============
1. Requirements
---------------
* Expedient, Opt-in and VT manager
* One (or more) GNU/Linux Debian-based distros (see Note #1)
* Developed and ensured to work under Debian 7.0 (Wheezy) using
the following packages:
* Python 2.7
* Django 1.4.5 (automatically installed)
* MySQL server (automatically installed)
* OXAD (virtualization servers)
* One (or more) GNU/Linux Debian-based distros to be virtualized by XEN
* Developed and ensured to work under Debian 6.0 (Squeeze) using
the following packages:
* Python 2.6
* Django 1.2.3 (automatically installed)
* MySQL server (automatically installed)
* FlowVisor (Opt-in Manager installations only) (automatically installed)
Note #1: the OCF upgrading system (OFVER) [http://code.google.com/p/ofver/]
supports Debian-based distros only. For other distros you shall install
the components manually.
2. Installing
-------------
2.1 Clone the OCF repository:
2.1.1 For Expedient, Opt-in, VT manager: you may place it anywhere
(e.g. under /opt/ofelia)
2.1.2 For OXAD (XEN agent for virtualization purposes); you MUST
place it under /opt/ofelia
git clone https://github.com/fp7-ofelia/ocf.git /opt/ofelia
Alternatively you can download the tarball and uncompress in place
2.2 For Expedient, Opt-in, VT manager: choose the components to install
as a root user. This will implicitly trigger OFVER:
cd /opt/ofelia/deploy
python install.py
The following actions will take place:
* Install dependencies
* Build Certificates (see Note #2)
* Configure Apache
* Set file permissions
* Modify the localsettings.py or mySettings.py depending on the
component being installed
* Populate database
* When installation starts, ofver will ask if it is an OFELIA
project installation or not. Select No (N) for non OFELIA testbeds.
Note #2: When installing the component, you will need to create the
certificates for the Certification Authority (CA) first and for the
component later. Do not use the same Common Name (CN) for both of them,
and make sure that the CN you use in the component later certificate
(you can use an IP) is the same you then set in the SITE_DOMAIN field
in the localsettings.py file.
2.3 For OXAD (XEN agent for virtualization purposes):
Create the directory and clone the repository:
mkdir -p /opt/ofelia/oxa
git clone https://github.com/fp7-ofelia/ocf.git /opt/ofelia/oxa/repository
The tree should look like:
marc@foix:/opt/ofelia/oxa$ tree . -L 1
'-- repository
Trigger OFVER install by performing the following as a root user (see Note #3):
cd /opt/ofelia/oxa/repository/vt_manager/src/python/agent/tools
./ofver install
Note #3: When installation starts, ofver will ask if it is an OFELIA project
installation or not, and accordingly ofver will download the VMs templates
from the proper storage.
3. Upgrading
------------
3.1 For Expedient, Opt-in, VT manager: choose the components to install as a
root user. This will implicitly trigger OFVER:
cd /opt/ofelia/deploy
python upgrade.py
3.2 For OXAD (XEN agent for virtualization purposes):
cd /opt/ofelia/oxa/repository/vt_manager/src/python/agent/tools
./ofver upgrade
4. Migrating
------------
4.1 For Expedient, Opt-in, VT manager: choose the new path in your servers
where you want the OCF stack code to be migrated:
cd /opt/ofelia/deploy
python migrate.py
4.2 For OXAD (XEN agent for virtualization purposes); this features is not
supported
5. Additional notes
-------------------
Please have a look to Manuals [https://github.com/fp7-ofelia/ocf/wiki/Manuals]
for further component configuration.
You can use -f force flag on OFVER to force installation/upgrade. Take a look
at ./ofver -h for more details.
===============
FURTHER READING
===============
For more information about configuration, troubleshooting, contribution and
so on please visit https://github.com/fp7-ofelia/ocf/wiki