Merge lp:~mbruzek/charms/trusty/mellanox/fix-install into lp:~yaell/charms/trusty/mellanox/trunk

Proposed by Matt Bruzek
Status: Merged
Merged at revision: 6
Proposed branch: lp:~mbruzek/charms/trusty/mellanox/fix-install
Merge into: lp:~yaell/charms/trusty/mellanox/trunk
Diff against target: 105 lines (+32/-24)
2 files modified
README.md (+28/-24)
hooks/install (+4/-0)
To merge this branch: bzr merge lp:~mbruzek/charms/trusty/mellanox/fix-install
Reviewer Review Type Date Requested Status
Yael Leventer Pending
Review via email: mp+245920@code.launchpad.net

Description of the change

Yael,

I edited the README to have correct commands and added mkdir to the install hook because of the error I ran into. These changes deployed correctly on our system with a mellanox card. If you agree with these changes please merge these changes with your branch so you are current with what is in the charm store.

Thanks!

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README.md'
2--- README.md 2014-12-16 21:35:02 +0000
3+++ README.md 2015-01-09 00:49:40 +0000
4@@ -6,6 +6,7 @@
5
6 Founded in 1999, Mellanox Technologies is headquartered in Sunnyvale, California and Yokneam, Israel.
7
8+
9 # Usage
10
11 Deploy the Mellanox charm from the Juju GUI or the command line:
12@@ -20,30 +21,19 @@
13
14 juju set mellanox accept-mellanox-license=True
15
16-Alternately a configuration YAML file can be passed on deployment. Create a
17-YAML file that contains the following content:
18-
19- mellanox:
20- accept-mellanox-license:"True"
21-
22-Then deploy the Mellanox charm with this configuration file:
23-
24- juju deploy mellanox --config mellanox.yaml
25-
26-If the license is not accepted the Mellanox software will not be installed.
27+If the license is not accepted the Mellanox software **will not** be installed.
28
29 ## Intel hardware (x86)
30
31 The Mellanox charm can be configured to run on x86 hardware. To run on Intel
32-hardware set the`ofed-file` and `md5sum` configuration values appropriately.
33-Go to "Downloads" section on the
34-[Mellanox product webpage](http://www.mellanox.com/page/products_dyn?product_family=26)
35+hardware set the`ofed-file` and `md5sum` configuration values appropriately.
36+Go to "Downloads" section on the
37+[Mellanox product webpage](http://www.mellanox.com/page/products_dyn?product_family=26)
38 to find the version and architecture of software that you wish to install.
39 For example:
40
41- juju set ofed-file=MLNX_OFED_LINUX-2.3-2.0.0-ubuntu14.04-x86_64.tgz
42- juju set md5sum=0985c1a6d991b1169e32bebe2c146980
43-
44+ juju set mellanox ofed-file=MLNX_OFED_LINUX-2.3-2.0.0-ubuntu14.04-x86_64.tgz
45+ juju set mellanox md5sum=0985c1a6d991b1169e32bebe2c146980
46
47 ## Power hardware (ppc)
48
49@@ -51,12 +41,26 @@
50 To change the version of popc64le Mellanox software installed you must change
51 the `ofed-file` and the `md5sum` configuration options:
52
53- juju set ofed-file=MLNX_OFED_LINUX-(version)-ubuntu14.04-ppc64le.tgz
54- juju set md5sum=(md5sum of the version)
55-
56-Go to "Downloads" section on the
57-[Mellanox product webpage](http://www.mellanox.com/page/products_dyn?product_family=26)
58-select the version and Ubuntu 14.04 to find the md5sum of each file.
59+ juju set mellanox ofed-file=MLNX_OFE enteredD_LINUX-(version)-ubuntu14.04-ppc64le.tgz
60+ juju set mellanox md5sum=(md5sum of the version)
61+
62+Go to "Downloads" section on the
63+[Mellanox product webpage](http://www.mellanox.com/page/products_dyn?product_family=26)
64+select the version and Ubuntu 14.04 to find the md5sum of each file.
65+
66+### Deploy using a configuration file
67+
68+Alternately a configuration YAML file can be passed on deployment. Create a
69+YAML file that contains the following content:
70+
71+ mellanox:
72+ accept-mellanox-license: True
73+ ofed-file: "MLNX_OFED_LINUX-2.3-2.0.0-ubuntu14.04-x86_64.tgz"
74+ md5sum: "0985c1a6d991b1169e32bebe2c146980"
75+
76+Then deploy the Mellanox charm with this configuration file:
77+
78+ juju deploy mellanox --config mellanox_x86.yaml
79
80 ## Relate the Mellanox charm to a container charm
81
82@@ -73,7 +77,7 @@
83
84 The Mellanox software requires a Mellanox Ethernet adapter to fully operate.
85
86-Per server the configuration can change and additional tuning is required if
87+Per server the configuration can change and additional tuning is required if
88 you can not get the full line performance measurements (e.g. ~40GbE).
89
90 # Contact Information
91
92=== modified file 'hooks/install'
93--- hooks/install 2014-12-16 15:17:33 +0000
94+++ hooks/install 2015-01-09 00:49:40 +0000
95@@ -17,6 +17,10 @@
96 if [ ! -f /usr/src/linux-headers-${KERNEL_RELEASE}/arch/powerpc/lib/crtsavres.o ]; then
97 if [ ! -f /usr/src/linux-source-*.tar.bz2 ]; then
98 apt-get install -y linux-source
99+ if [ -d ${PACKAGE_DIRECTORY} ]; then
100+ rm -rf ${PACKAGE_DIRECTORY}
101+ fi
102+ mkdir -p ${PACKAGE_DIRECTORY}
103 tar jxf /usr/src/linux-source-*.tar.bz2 -C ${PACKAGE_DIRECTORY}
104 cd ${PACKAGE_DIRECTORY}/linux-source-*
105 cp /boot/config-${KERNEL_RELEASE} ./.config

Subscribers

People subscribed via source and target branches

to all changes: