Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
gpg --verify apache-cloudstack-4cloudmonkey-5.31.0-src.tar.bz2.asc

This command should return "Good Signature".

Code Block
gpg --print-md MD5 apache-cloudstack-cloudmonkey-45.31.0-src.tar.bz2 | diff - apache-cloudstack-cloudmonkey-45.31.0-src.tar.bz2.md5
gpg --print-md SHA512 apache-cloudstack-cloudmonkey-45.31.0-src.tar.bz2 | diff - apache-cloudstack-4cloudmonkey-5.31.0-src.tar.bz2.sha

Each of these commands should return no output. If there is any output from them, then there is a difference between the hash you generated locally and the hash that has been pulled from the server.

...

Code Block
mkdir /tmp/cloudstack-cloudmonkey/git
mkdir /tmp/cloudstack-cloudmonkey/tree

Pull down the git repo:

Code Block
git clone https://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey.git /tmp/cloudstack-cloudmonkey/git
cd /tmp/cloudstack-cloudmonkey/git
git archive --format=tar --prefix=/tmp/cloudstack-cloudmonkey/tree/ <commit-hash> | tar Pxf -

...

Code Block
cd /tmp/cloudstack-cloudmonkey
tar xvfj apache-cloudstack-cloudmonkey-45.31.0-src.tar.bz2

Compare the contents of the release artifact with the contents pulled from the repo:

Code Block
diff -r /tmp/cloudstack-cloudmonkey/apache-cloudstack-cloudmonkey-45.31.0-src /tmp/cloudstack-cloudmonkey/tree

Nothing should be different.

Verify the Code's License Headers

There are no automated tools at the moment, but this should help:

Code Block
$ cd /tmp/cloudstack-cloudmonkey/apache-cloudstack-cloudmonkey-5.1.0-src
$ head -18 *.py */*.py

Verify that each file has the ASL

Run Some Tests

This assumes that you have a working CloudStack management server running that you can test against. Create a cloudmonkey config file along these lines (change as appropriate to your CloudStack installation)

Code Block
$ cd /tmp/cloudstack-cloudmonkey/ 
$ cat > test.cfg << EOF 
[core] 
cache_file = /tmp/cloudstack-cloudmonkey/cache 
log_file = /tmp/cloudstack-cloudmonkey/log 
asyncblock = true 
paramcompletion = false 
history_file = /tmp/cloudstack-cloudmonkey//history 
 
[ui] 
color = true 
prompt = >  
display = default 
 
[user] 
secretkey = 
apikey =  
username = admin 
password = password  
 
[server] 
path = /client/api 
host = localhost 
protocol = http 
port = 8080 
timeout = 3600 
expires = 300 
EOF

 

Start cloudmonkey

Code Block
$ cd /tmp/cloudstack-cloudmonkey/apache-cloudstack-cloudmonkey-5.1.0-src/cloudmonkey
$ python cloudmonkey.py -c ../../test.cfg
 

Make sure you see '5.1.0' in the welcome message.

Try some initial tests

Code Block
> list zones  
> list virtualmachines

Also make sure you try some asynchronous apis such as 'deploy virtualmachine'.

Edit the configuration file and enter valid values for the api key and secret key. Redo the tests.

End!

If we made it this far, the release has at least been reasonably "smoke tested".