Fix Key Error when editing CD ROM path

lxml only accepts strings as parameters when looking
up xml elements. The port for remote ISO was being
passed in as an int, and a KeyError was thrown.

This patch just casts the ints to strings for the
lookups.

Signed-off-by: Christy Perez <christy@linux.vnet.ibm.com>
Fix verification of remote ISO

Currently the entire ISO is grabbed, which times out.
Use httplib to connect to the server and just get
the head of the http object.

Signed-off-by: Christy Perez <christy@linux.vnet.ibm.com>
Add unit tests for remote-backed CD ROM updates.

Adding tests to ensure that updating an existing CD ROM
can be done when using remote ISOs. This is to test for
regression for the libxml KeyError seen when even saving
the same CD ROM ISO as the update.

Signed-off-by: Christy Perez <christy@linux.vnet.ibm.com>
Remote ISO attachment: fix UI to accept remote ISO link for cdrom attachment

UI just accept local ISO as cdrom attachment before,
enable remote ISO link for it.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Refactor vmstorage name generation

We generated all storage name with 'hd' prefix,
which is not proper for scsi and virtio disk.
So refactor name generation to produce proper device name.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Fix UI: Show proper message when detaching a guest storage

Whenever an user tries to detach a storage from a guest, the
confirmation message always contains "CDROM". This patch fix this
problem, so when the storage type is "disk", it shows the right
message.

Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo@linux.vnet.ibm.com>