Re: ISO download Error

2015-05-18 Thread merlin
Hi Remi ,

Here is the log :

tail /var/log/cloud/cloud.out
2015-05-15 09:19:40,908 INFO  [agent.transport.Request]
(agentRequest-Handler-5:null) not building log message for '[{}]',
_cmds.length == 1
2015-05-15 09:19:40,908 DEBUG [cloud.agent.Agent]
(agentRequest-Handler-5:null) Processing command:
com.cloud.agent.api.GetStorageStatsCommand
2015-05-15 09:19:40,908 INFO 
[storage.resource.NfsSecondaryStorageResource]
(agentRequest-Handler-5:null) Determined host 10.8.15.5 corresponds to IP
10.8.15.5
2015-05-15 09:19:40,920 INFO  [agent.transport.Request]
(agentRequest-Handler-5:null) not building log message for '[{}]',
_cmds.length == 1
2015-05-15 09:20:27,730 DEBUG [cloud.agent.Agent] (UgentTask-5:null)
Sending ping: Seq 5-6:  { Cmd , MgmtId: -1, via: 5, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.PingStorageCommand":{"changes":{},"hostType":"Storage","hostId":5,"wait":0}}]
}
2015-05-15 09:20:27,787 DEBUG [cloud.agent.Agent] (Agent-Handler-5:null)
Received response: Seq 5-6:  { Ans: , MgmtId: 279278805450858, via: 5,
Ver: v1, Flags: 100010,
[{"com.cloud.agent.api.PingAnswer":{"_command":{"hostType":"Storage","hostId":5,"wait":0},"result":true,"wait":0}}]
}
2015-05-15 09:20:41,024 INFO  [agent.transport.Request]
(agentRequest-Handler-1:null) not building log message for '[{}]',
_cmds.length == 1
2015-05-15 09:20:41,025 DEBUG [cloud.agent.Agent]
(agentRequest-Handler-1:null) Processing command:
com.cloud.agent.api.GetStorageStatsCommand
2015-05-15 09:20:41,025 INFO 
[storage.resource.NfsSecondaryStorageResource]
(agentRequest-Handler-1:null) Determined host 10.8.15.5 corresponds to IP
10.8.15.5
2015-05-15 09:20:41,036 INFO  [agent.transport.Request]
(agentRequest-Handler-1:null) not building log message for '[{}]',
_cmds.length == 1



2015-05-15 09:20:41,024 INFO  [agent.transport.Request]
(agentRequest-Handler-1:null) not building log message for '[{}]',
_cmds.length == 1
2015-05-15 09:20:41,025 DEBUG [cloud.agent.Agent]
(agentRequest-Handler-1:null) Processing command:
com.cloud.agent.api.GetStorageStatsCommand
2015-05-15 09:20:41,025 INFO 
[storage.resource.NfsSecondaryStorageResource]
(agentRequest-Handler-1:null) Determined host 10.8.15.5 corresponds to IP
10.8.15.5
2015-05-15 09:20:41,036 INFO  [agent.transport.Request]
(agentRequest-Handler-1:null) not building log message for '[{}]',
_cmds.length == 1
2015-05-15 09:21:27,730 DEBUG [cloud.agent.Agent] (UgentTask-5:null)
Sending ping: Seq 5-7:  { Cmd , MgmtId: -1, via: 5, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.PingStorageCommand":{"changes":{},"hostType":"Storage","hostId":5,"wait":0}}]
}
2015-05-15 09:21:27,779 DEBUG [cloud.agent.Agent] (Agent-Handler-2:null)
Received response: Seq 5-7:  { Ans: , MgmtId: 279278805450858, via: 5,
Ver: v1, Flags: 100010,
[{"com.cloud.agent.api.PingAnswer":{"_command":{"hostType":"Storage","hostId":5,"wait":0},"result":true,"wait":0}}]
}
2015-05-15 09:21:41,131 INFO  [agent.transport.Request]
(agentRequest-Handler-2:null) not building log message for '[{}]',
_cmds.length == 1
2015-05-15 09:21:41,132 DEBUG [cloud.agent.Agent]
(agentRequest-Handler-2:null) Processing command:
com.cloud.agent.api.GetStorageStatsCommand
2015-05-15 09:21:41,133 INFO 
[storage.resource.NfsSecondaryStorageResource]
(agentRequest-Handler-2:null) Determined host 10.8.15.5 corresponds to IP
10.8.15.5
2015-05-15 09:21:41,150 INFO  [agent.transport.Request]
(agentRequest-Handler-2:null) not building log message for '[{}]',
_cmds.length == 1


Also , when on host machine i check, for host_template_ref table in
database, I do not see any entry. Not even the defualt templates.

Here is the management server log:
2015-05-13 14:45:35,396 INFO  [c.c.c.ClusterManagerImpl]
(Cluster-Heartbeat-1:ctx-73956f91) Trying to connect to 10.8.15.5
2015-05-13 14:45:35,396 INFO  [c.c.c.ClusterManagerImpl]
(Cluster-Heartbeat-1:ctx-73956f91) Management node 1 is detected inactive
by timestamp but is pingable
2015-05-13 14:45:36,003 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-9:null) SeqA 2-181: Processing Seq 2-181:  { Cmd ,
MgmtId: -1, via: 2, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
 \"connections\": []\n}","wait":0}}] }
2015-05-13 14:45:36,103 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-9:null) SeqA 2-181: Sending Seq 2-181:  { Ans: ,
MgmtId: 279278805451141, via: 2, Ver: v1, Flags: 100010,
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2015-05-13 14:45:36,871 DEBUG [c.c.c.ClusterManagerImpl]
(Cluster-Heartbeat-1:ctx-4792a1fe) Detected management node left, id:1,
nodeIP:10.8.15.5
2015-05-13 14:45:36,872 INFO  [c.c.c.ClusterManagerImpl]
(Cluster-Heartbeat-1:ctx-4792a1fe) Trying to connect to 10.8.15.5
2015-05-13 14:45:36,872 INFO  [c.c.c.ClusterManagerImpl]
(Cluster-Heartbeat-1:ctx-4792a1fe) Management node 1 is detected inactive
by timestamp but is pingable
2015-05-13 14:45:38,372 DEBUG [c.c.c.ClusterManagerImpl]
(Cluster-Heartbeat-1:ctx-432d0092) Det

[CLOUDSTACK DAY SEATTLE] CFP Deadline June 12

2015-05-18 Thread Likitha Shetty
Hi everyone,

Just a friendly reminder that the deadline for submitting a proposal for 
CloudStack Day Seattle is Friday, June 12. You can submit your proposal @ 
http://events.linuxfoundation.org/events/cloudstack-seattle/program/cfp.

Thanks,
Likitha


Attach ISO doesn't work after QEMU upgrade

2015-05-18 Thread Indra Pramana
Dear all,

I am using CloudStack 4.2.0 and KVM. My hypervisor hosts are using Ubuntu
12.04 LTS. Due to VENOM vulnerability, I upgraded QEMU on my Ubuntu hosts
to the latest version on Ubuntu repository package:

qemu-kvm 1.0+noroms-0ubuntu14.22

as per below recommendation:

http://www.ubuntu.com/usn/usn-2608-1/

After the upgrade, I noted that the attach ISO function doesn't work:

- During Windows OS installation, I tried to attach VirtIO driver ISO but
it cannot browse the file;
- I attached a Linux installation ISO and reboot a VM, it cannot detect the
CD/DVD drive.
- Generally, it seems that I can only view content of an attached ISO only
after I reboot the VM. Prior to the upgrade, this was not the case and an
attached ISO is normally detected and browse-able immediately after being
attached.

Prior to this, I am using older version of QEMU 1.5.1 compiled from source,
and to address the VENOM issue, I decided to revert back to the QEMU
package provided by Ubuntu. Could this be the reason?

I didn't download and compile QEMU from source since the latest version
available on QEMU website: version 2.3.0 is released before VENOM
vulnerability was disclosed so I am not too sure whether it contains the
latest patches to address the vulnerability.

Any advice is highly appreciated.

Thank you.


Re: ISO download Error

2015-05-18 Thread Remi Bergsma
Hi,

Could you post the cloud.log of the SSVM? That could bring some hints. You
can login using SSH from the hypervisor like this:
ssh -p 3922 -i ~/.ssh/cloud_rsa 169.254.x.x (get the ip from the UI/API).
Then look at /var/log/cloud.log

Also, what do the logs of your webserver say?
It sounds to me a 404 error really is a file-not-found served by the
webserver.

Could you also try one of the templates I suggested?

Regards,
Remi


2015-05-18 8:21 GMT+02:00 :

> Hi Remi,
>
> The ISO image that I used was freshly downloaded and put in my /var/www
> folder, whose path was mentioned by me during the upload.
> ie. http://IP/ubuntu-15.04...
>
> And still I received that the system cant download it.
>
>
>
>
> > Hi Merlin,
> >
> > The guide you used, instructs you to add an ISO image and the url listed
> > does not exist any more. Hence, the 404 error.
> >
> > Instead of using an ISO, I’d recommend uploading ready-to-go templates.
> > You can download many different flavours here:
> > http://dl.openvm.eu/cloudstack/ 
> >
> > Regards,
> > Remi
> >
> >
> >> On 15 May 2015, at 14:09 , mer...@students.iitmandi.ac.in wrote:
> >>
> >> Hi,
> >>
> >> I am using Cloudstack4.4.3 on a server system which is both the
> >> management
> >> and agent server. Installed and configured using this link
> >> :
> http://www.greenhills.co.uk/2015/02/23/cloudstack-4.4-single-server-on-ubuntu-14.04.1-with-kvm.html
> >>
> >> There is one zone, one pod with 5 IP's, one cluster and one host.
> >> When I try to download the default xs-tools.iso from the screen, I get
> >> an
> >> error:- unable to download xs.tools.iso as it resides on host and not on
> >> ssvm
> >>
> >> Similarly when I try to upload an iso image, in the tab Zones, under the
> >> status it reads:  HTTP Server returned 404 (expected 200 OK)
> >>
> >> I followed the guide in this link
> >> :
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM,+templates,+Secondary+storage+troubleshooting
> >>
> >> After logging into ssvm and running the script, there was no error or
> >> warning thrown, hence I checked the LOg:
> >>
> >> tail /var/log/cloud/cloud.out
> >> 2015-05-15 09:19:40,908 INFO  [agent.transport.Request]
> >> (agentRequest-Handler-5:null) not building log message for '[{}]',
> >> _cmds.length == 1
> >> 2015-05-15 09:19:40,908 DEBUG [cloud.agent.Agent]
> >> (agentRequest-Handler-5:null) Processing command:
> >> com.cloud.agent.api.GetStorageStatsCommand
> >> 2015-05-15 09:19:40,908 INFO
> >> [storage.resource.NfsSecondaryStorageResource]
> >> (agentRequest-Handler-5:null) Determined host 10.8.15.5 corresponds to
> >> IP
> >> 10.8.15.5
> >> 2015-05-15 09:19:40,920 INFO  [agent.transport.Request]
> >> (agentRequest-Handler-5:null) not building log message for '[{}]',
> >> _cmds.length == 1
> >> 2015-05-15 09:20:27,730 DEBUG [cloud.agent.Agent] (UgentTask-5:null)
> >> Sending ping: Seq 5-6:  { Cmd , MgmtId: -1, via: 5, Ver: v1, Flags: 11,
> >>
> [{"com.cloud.agent.api.PingStorageCommand":{"changes":{},"hostType":"Storage","hostId":5,"wait":0}}]
> >> }
> >> 2015-05-15 09:20:27,787 DEBUG [cloud.agent.Agent] (Agent-Handler-5:null)
> >> Received response: Seq 5-6:  { Ans: , MgmtId: 279278805450858, via: 5,
> >> Ver: v1, Flags: 100010,
> >>
> [{"com.cloud.agent.api.PingAnswer":{"_command":{"hostType":"Storage","hostId":5,"wait":0},"result":true,"wait":0}}]
> >> }
> >> 2015-05-15 09:20:41,024 INFO  [agent.transport.Request]
> >> (agentRequest-Handler-1:null) not building log message for '[{}]',
> >> _cmds.length == 1
> >> 2015-05-15 09:20:41,025 DEBUG [cloud.agent.Agent]
> >> (agentRequest-Handler-1:null) Processing command:
> >> com.cloud.agent.api.GetStorageStatsCommand
> >> 2015-05-15 09:20:41,025 INFO
> >> [storage.resource.NfsSecondaryStorageResource]
> >> (agentRequest-Handler-1:null) Determined host 10.8.15.5 corresponds to
> >> IP
> >> 10.8.15.5
> >> 2015-05-15 09:20:41,036 INFO  [agent.transport.Request]
> >> (agentRequest-Handler-1:null) not building log message for '[{}]',
> >> _cmds.length == 1
> >>
> >> Also checked the  for host file
> >> here is the entry :
> >>
> >> |  5 | s-4-VM | 38297028-25bb-4067-8387-6e27b1b4a90c | Up   |
> >> SecondaryStorageVM | 10.8.2.15  | 255.255.0.0 |
> >> 06:39:4a:00:00:05   | 10.8.2.15  | 255.255.0.0 |
> >> 06:39:4a:00:00:05   | NULL | NULL  |
> >> NULL
> >>|   NULL | 10.8.2.20 | 255.255.0.0|
> >> 06:b8:2c:00:00:0a  |   NULL |  1 |  1 |NULL
> >> |
> >> NULL |  NULL | NoIqn | NULL| NULL| NULL   |
> >>   0 | NULL | 4.4.3   | NULL   |   NULL | NULL |
> >> s-4-VM-NfsSecondaryStorageResource|
> >> 1
> >> | 0 |   0 | 1398129837 | 279278805450858 | 2015-05-15
> >> 09:17:13
> >> | 2015-05-13 14:13:57 | NULL|   14 | Enabled
> >> | NULL  | NULL| Disabled |
> >>
>