Updated CHANGES file in preparation for getting 4.0.1-incubating out the door.
CLOUDSTACK-505: Reworked approach to cleaning request / response strings

As noted in the bug, several of the API command in question
are async calls.  I've added a simple regex-based string cleaning
function, and have the request and response strings running through
it prior to being appended to the audit log.

Unit tests added for the new cleaning function as well.

The call to skip logging the createSSHKeyPair response remains intact
for now, although it should probably be scrubbed similarly to the
password fields.

Signed-off-by: Chip Childers <chip.childers@gmail.com>

Conflicts:
	utils/src/com/cloud/utils/StringUtils.java
CLOUDSTACK-505: Added string cleaning to the start and end debug
log statements within the API servlet.

Conflicts:
	server/src/com/cloud/api/ApiServlet.java
CLOUDSTACK-505: Converted regex expressions to pre-compiled Pattern objects

This was done for performance reasons.

I also refined the regex strings and added more test cases for different
string scenarios.

Signed-off-by: Chip Childers <chip.childers@gmail.com>
A few minor edits to the CHANGES file
Fix for CLOUDSTACK-1112
CLOUDSTACK-1088: EnableStaticNat error will clear the data in database

The issue occur in two conditions

(1) If I use two sessions or browsers to EnableStaticNat on CloudStack
UI. one is successful, the other is failed. However, there is no ip in
database.

(2) If I use API call EnableStaticNat several times The first time
succeed, the second failed, the third succeed. the result is
success-fail-success-fail-success-fail, which it is not correct.

Reported-by: Wei Zhou <w.zhou@leaseweb.com>
Reviewed-by: https://reviews.apache.org/r/9254/
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
If filesystem in virtual router is in read-only state, reports error to
commands send to virtual router, instead of keeping silence.

Test:

Before change:
(1) Acquire IP. always in "Allocating" state.
(2) EnableStaticNat, the result is success(it is incorrect).
(3) DisableStaticNat, will get error message.. This is correct.
(4) Add Firewalls. always in "Adding" state.
(5) The AgentManager report statistics every 60 minutes(normally it
should be router.stats.interval=5 minutes).

After change:
(1) Acquire IP, will get error message.
(2) EnableStaticNat, will get error message.
(3) DisableStaticNat, will get error message.
(4) Add Firewalls, will get error message. But the firewall rules are
saved in database.
(5) The AgentManager report statistics every 5 minutes, except the
network with read-only FS virtual router.
Summary: Document the procedure for TCP listening of libvirt on Ubuntu 12.04

Detail: This is now controlled by a variable in /etc/default/libvirt-bin

BUG-ID: CLOUDSTACK-1150
Bugfix-for:
Reviewed-by: Wido den Hollander <wido@widodh.nl>
Reported-by: Logan McNaughton <logan@bacoosta.com>
Signed-off-by: Wido den Hollander <wido@widodh.nl> 1360178633 +0100

Conflicts:
	docs/en-US/hypervisor-host-install-libvirt.xml
re-added docs tmp files to .gitignore.
Missing quotes in libvirt configuration instructions. Thanks to  Nux! <nux@li.nux.ro> for finding the issue
CLOUDSTACK-1265: /etc/init.d/dnsmasq puts pid in /var/run/dnsmasq/dnsmasq.pid
logrotate checks /var/run/dnsmasq.pid instead and may not send SIGUSR2 to dnsmasq to start writing to the new log file instead
ignore unassignIPFromVpcNetwork in finally block of EnableStaticNat

unassignIPFromVpcNetwork processing should not execute when
EnableStaticNat succeed.  Without this patch, unassignIPFromVpcNetwork
will execute whenever EnableStaticNat is successful or failed

Reviewed-by: https://reviews.apache.org/r/9443/
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
CLOUDSTACK-1137: force reconnect to a disconnected host throws error.
first pass at fixing runbook for ACS4.0.x
fixing a few types and mangled commands
Removing the separate mount command to simplify template installation - thanks to Nux! <nux@li.nux.ro> for the suggestion
Fixing a config file typo (thanks to Nux! <nux@li.nux.ro> for finding it) and removing a libvirtd restart
fixing some whitespace issues
adding pot files for l10n