CloudStack Vs HP CSA

2014-03-24 Thread Huzefa Hussain
Hi

I am trying to compare Cloud Stack with HP CSA. HP CSA is super costly so I
am trying to search for an alternative. It seems Cloud Stack can do the job
but I am not very sure. Can some one in the list please help me and suggest
if following use cases can be worked out using Cloud Stack or with
combination of other open source tools.



*Use Case #*

*Use Case Name*

*Description*

1

Provision and Patch OS (via CSA)

*Provision virtual infrastructure with OS *
* CSA: Subscriber requests Windows VMware VM with vCenter
* Subscriber selects patching policy to apply to server
* Submit request - VM is provisioned
*Patch*
* Show how subscriber can check OS patching compliance status
* Show how user can request remediation

2

Provision and Patch Database (via CSA)

*Provision virtual infrastructure with OS and Oracle database  *
* CSA: Subscriber requests  Linux VMware VM with vCenter
* Subscriber enters database name
* Submit request - VM with OS and Oracle SI DB is provisioned
*Patch*
* Show how subscriber can check Database patching compliance status
* Show how user can request patching

3

OS Compliance

*Provision virtual infrastructure with OS  *
* CSA: Enter provisioned windows server on portal
- Subscriber selects PCI or SOX audit policy(ies) to apply to server
- Submit request - VM is put under SA management (agent installed) and
audit policies applied
*Audit*
- Show how subscriber can request audit compliance scan
- Portal show status (compliant/non-compliant) and detailed e-mail sent to
subscriber
- Show how user can request remediation

4

Database Compliance (via CSA)

Go to CSA portal
* Provision virtual infrastructure with OS & Oracle Database
* Subscriber enters e-mail to send compliance report
* Subscriber requests Run CIS Compliance Check
* DMA Compliance workflow is run, and pass/fail

5

Self-Healing Remediation

*Provision demo target VM *
* CSA: Subscriber requests VMware VM with vCenter
* SiteScope monitors for filesystem automatically configured
# "File System full" Incident created based on an "event" (automated
monitoring through Sitescope) that auto triggers appropriate "Action" (HP
OO workflow)
# HP OO creates new ticket in HP Service Manager (show newly created ticket)
# HP OO triggers performs impact analysis (capture outcome in the ticket)
# HP OO triggers action to free up File System ("empties /tmp")
# HP OO updates ticket with details (time to resolve, etc.) and closes the
incident (show the closed ticket)



Thanks,

Huzefa


Adding hosts of different CPU to the new zone

2014-03-24 Thread iStar Cloud
Hi everyone,

I tried to add new hosts to the existing zone whose hosts are of XenServer
based o n Intel processors. But the new ones I was trying to add are of the
same hipervisor based on AMD processors. And it failed.
After reviewing document, I figured that each host of the same hipervisor
shoud be homogeneous in CPU configurations.
Then if I create a new zone, is it possible to add hosts that are AMD based
in it?



Regards,
Nancy


RE: Adding hosts of different CPU to the new zone

2014-03-24 Thread Marcel Keller
Hey Nancy,

The CPUs in an Cluster must be homogenous and not in a Zone... So just add a 
new cluster in CS and add all the AMD based server to it...

-Original Message-
From: iStar Cloud [mailto:sanotecna...@gmail.com] 
Sent: Montag, 24. März 2014 09:38
To: users@cloudstack.apache.org
Subject: Adding hosts of different CPU to the new zone

Hi everyone,

I tried to add new hosts to the existing zone whose hosts are of XenServer 
based o n Intel processors. But the new ones I was trying to add are of the 
same hipervisor based on AMD processors. And it failed.
After reviewing document, I figured that each host of the same hipervisor shoud 
be homogeneous in CPU configurations.
Then if I create a new zone, is it possible to add hosts that are AMD based in 
it?



Regards,
Nancy


Re: Instantiated CentOS VMs shutting down

2014-03-24 Thread Osay Osman Yuuni
Hi,

I think I found the problem.  It appears that the templates based on CentOS
6.3 upward do not work.  Once I created a new template based on CentOS 6.2
it worked.  The question is whether this is not breaking something.  The
actual OS is 6.5 but when creating a template I selected 6.2 and the
instances based on this template stay up while the instance based on a
template that was created using OS type CentOS 6.3 or CentOS 6.4 die with
the error "Can't find the guest os: CentOS 6.4 (64-bit) mapping into XCP's
guestOS type, start it as HVM guest" or similar in the log.  I know XCP 6.1
supports guest OS types up to CentOS 6.4 but it looks like CS 4.2.1 does
not.  I also saw, in my searches, a jira entry mentioning this.  Was a
patch applied and where can I find it?

Regards,

Osay


On 24 March 2014 08:20, Osay Osman Yuuni  wrote:

> Hi,
> I have a CS 4.2.1 installed with XCP 6.1 as hypervisor.  I have various
> templates (windows 2k12R2, CentOS 6.3, CentOS 6.5, Ubuntu 12.04.3 LTS).
> I'm able to instantiate windows and Ubuntu VMs without issues but when I
> instantiate the CentOS 6.3 or 6.5 VMs they just die.  The VM appears in the
> hypervisor and after about a minute it disappears.  In the management
> server GUI the VM is stopped.  When I restart it, it starts but after about
> a minute it stops again.  I've combed through the management server log but
> am unable to pin down what is causing this to happen.  Is it that CentOS 6
> is unsupported (the default 5.6 template can be instantiated without
> issues).
>
>
> Below is a snippet of  the management server log.  The only issue I see is
> the error "cannot bridge firewall", which to be honest, I don't
> understand.  Perhaps the more seasoned users can point out something that's
> obviously causing the VM to stop?
>
> ===
>
> 2014-03-24 08:04:41,048 DEBUG [cloud.capacity.CapacityManagerImpl]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ]) Hosts's
> actual total CPU: 16 and CPU after applying overprovisioning: 16
> 2014-03-24 08:04:41,048 DEBUG [cloud.capacity.CapacityManagerImpl]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ]) We need
> to allocate to the last host again, so checking if there is enough reserved
> capacity
> 2014-03-24 08:04:41,048 DEBUG [cloud.capacity.CapacityManagerImpl]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ])
> Reserved CPU: 0 , Requested CPU: 1500
> 2014-03-24 08:04:41,048 DEBUG [cloud.capacity.CapacityManagerImpl]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ])
> Reserved RAM: 0 , Requested RAM: 1073741824
> 2014-03-24 08:04:41,048 DEBUG [cloud.capacity.CapacityManagerImpl]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ]) STATS:
> Failed to alloc resource from host: 1 reservedCpu: 0, requested cpu: 1500,
> reservedMem: 0, requested mem: 1073741824
> 2014-03-24 08:04:41,049 DEBUG [cloud.capacity.CapacityManagerImpl]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ]) Host
> does not have enough reserved CPU available, cannot allocate to this host.
> 2014-03-24 08:04:41,049 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ]) The
> last host of this VM does not have enough capacity
> 2014-03-24 08:04:41,049 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ]) Cannot
> choose the last host to deploy this VM
> 2014-03-24 08:04:41,049 DEBUG [cloud.deploy.FirstFitPlanner]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ])
> Searching resources only under specified Cluster: 1
> 2014-03-24 08:04:41,072 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ])
> Checking resources in Cluster: 1 under Pod: 1
> 2014-03-24 08:04:41,082 DEBUG [allocator.impl.FirstFitAllocator]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ]
> FirstFitRoutingAllocator) Looking for hosts in dc: 1  pod:1  cluster:1
> 2014-03-24 08:04:41,095 DEBUG [allocator.impl.FirstFitAllocator]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ]
> FirstFitRoutingAllocator) FirstFitAllocator has 1 hosts to check for
> allocation: [Host[-1-Routing]]
> 2014-03-24 08:04:41,107 DEBUG [allocator.impl.FirstFitAllocator]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ]
> FirstFitRoutingAllocator) Found 1 hosts for allocation after
> prioritization: [Host[-1-Routing]]
> 2014-03-24 08:04:41,107 DEBUG [allocator.impl.FirstFitAllocator]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ]
> FirstFitRoutingAllocator) Looking for speed=1500Mhz, Ram=1024
> 2014-03-24 08:04:41,132 DEBUG [cloud.capacity.CapacityManagerImpl]
> (Job-Executor-26:job-33 = [ 0290d97b-4bd9-4509-8bd2-53b16b032f1b ]
> FirstFitRoutingAllocator) Checking if

Not able to download CentOS template

2014-03-24 Thread Tejas Gadaria
Hi,

After CS installation I am unable to download CentOS template. SSVM and
CPVM public IP's are not pinging.

I am following this Doc..
https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM%2C+templates%2C+Secondary+storage+troubleshooting

1) Not able to login from Management server to SSVM with SSVM private ip.



*ssh -i /root/.ssh/id_rsa.cloud -p 3922 10.129.151.96ssh: connect to host
10.129.151.96 port 3922: Connection refused*
2)
*ssh root@169.254.2.113  (Link local ip from Xenserver
host)ssh: connect to host 169.254.2.113 <169.254.2.113> port 22: Connection
timed out*

I management server log it does not shows any error, except template "NOT
DOWNLOADED" error

Then I took console in xencenter and check the SSVM log,

07:21:48,210  INFO Agent:154 - id is 3
07:21:48,251  INFO NfsSecondaryStorageResource:2046 - config_ssl.sh found
in /us r/local/cloud/systemvm/config_ssl.sh
07:21:48,251  INFO NfsSecondaryStorageResource:2051 - config_auth.sh found
in /u sr/local/cloud/systemvm/config_auth.sh
07:21:48,252  INFO NfsSecondaryStorageResource:2056 - _configIpFirewallScr
found in /usr/local/cloud/systemvm/ipfirewall.sh
07:21:48,255  INFO NfsSecondaryStorageResource:2070 - Secondary storage
runs in role templateProcessor
07:21:48,298  INFO DownloadManagerImpl:1014 - DownloadManager: starting
additional services since we are inside system vm
07:21:48,850  INFO DownloadManagerImpl:1034 - listvmtmplt.sh found in
/usr/local/cloud/systemvm/scripts/storage/secondary/listvmtmplt.sh
07:21:48,851  INFO DownloadManagerImpl:1040 - createtmplt.sh found in
/usr/local/cloud/systemvm/scripts/storage/secondary/createtmplt.sh
07:21:48,853  INFO DownloadManagerImpl:1046 - listvolume.sh found in
/usr/local/cloud/systemvm/scripts/storage/secondary/listvolume.sh
07:21:48,853  INFO DownloadManagerImpl:1052 - createvolume.sh found in
/usr/local/cloud/systemvm/scripts/storage/secondary/createvolume.sh
07:21:48,863  INFO UploadManagerImpl:477 - UploadManager: starting
additional services since we are inside system vm
07:21:49,031  INFO GsonHelper:53 - Default Builder inited.
07:21:49,042  INFO Agent:182 - Agent [id = 3 : type =
PremiumSecondaryStorageResource : zone = 1 : pod = 1 : workers = 5 : host =
10.129.151.57 : port = 8250
07:21:49,064  INFO NioClient:54 - Connecting to 10.129.151.57:8250
07:21:49,515  INFO NioClient:80 - SSL: Handshake done
07:21:49,515  INFO NioClient:81 - Connected to 10.129.151.57:8250
07:21:49,623  INFO Agent:445 - Proccess agent startup answer, agent id = 0
07:21:49,623  INFO Agent:291 - Set agent id 0
07:21:49,629  INFO Agent:455 - Startup Response Received: agent id = 0
07:21:49,841  INFO NfsSecondaryStorageResource:2365 - snapshots directory
created/exists on Secondary Storage.
07:21:49,842  INFO NfsSecondaryStorageResource:2365 - volumes directory
created/exists on Secondary Storage.
07:21:51,702  INFO DownloadManagerImpl:799 - found 0 volumes[]
07:21:51,851  INFO DownloadManagerImpl:811 - found 2
templates[/mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/5/,
/mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/1/b36ee4f8-0afb-49e5-918a-a4f31b00b02a.vhd]

07:21:51,856  WARN DownloadManagerImpl:830 - Post download installation was
not completed for
/mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/5
07:21:52,010  INFO Agent:592 - Proccess agent ready command, agent id = 3
07:21:52,011  INFO Agent:291 - Set agent id 3
07:21:52,011  INFO Agent:596 - Ready command is processed: agent id = 3
07:21:52,060  INFO Agent:592 - Proccess agent ready command, agent id = 3
07:21:52,060  INFO Agent:291 - Set agent id 3
07:21:52,060  INFO Agent:596 - Ready command is processed: agent id = 3
07:21:52,204  INFO HttpTemplateDownloader:147 - No credentials configured
for host=download.cloud.com:80


*07:21:55,243  INFO HttpMethodDirector:439 - I/O exception
(java.net.NoRouteToHostException) caught when processing request: No route
to host 07:21:55,243  INFO HttpMethodDirector:445 - Retrying request
07:21:58,251  INFO DownloadManagerImpl:268 - Download Completion for jobId:
99e4ca29-e97f-4550-a13f-85d10e44ab0b, status=UNRECOVERABLE_ERROR *
07:21:58,252  INFO DownloadManagerImpl:269 - local:
/mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/null/dnld1959129797294693271tmp_,
bytes=0, error=No route to host, pct=0


I am using Local storage as primary storage and NFS as secondary storage
for Xen 6.0.2 on CS 4.2.1
CentOS template also shows "*No route to host* " .

SSVM health check shows everything is fine,

root@s-1-VM:/usr/local/cloud/systemvm# sh ssvm-check.sh

First DNS server is  8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=56 time=176.230 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=157.860 ms
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 157.860/167.045/176.230/9.185 ms
Good: Can ping DNS

Decrypting the password that we get using "getVmPassword" API

2014-03-24 Thread yarish kumar
Hi -

I am using getVmPassword() API to get ENCRYPTEDTEXT

now i would like to decrypt using the following methods described in the
wiki.
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=34014652

$ openssl enc -in ciphertext -out binarytext -d -a

cipertext - has the encrypted password text.
after executing the command , getting empty(0 byte) binarytext file!

next step returns password
$ openssl rsautl -decrypt -in binarytext -out plaintext -inkey private.pem

am I missing anything or the documentation has typos ?

Thanks
yarish kumar


Timeout waiting for response from storage hos

2014-03-24 Thread sandeep khandekar
Dear All,

I am adding templates to my cloudstack while adding ubuntu template it is
showing the following error.
Timeout waiting for response from storage host
How to solve these error?

management-server.log file

2014-03-24 16:07:36,273 INFO  [cloud.cluster.ClusterManagerImpl]
(Cluster-Heartbeat-1:null) Trying to connect to 10.4.29.88
2014-03-24 16:07:36,274 INFO  [cloud.cluster.ClusterManagerImpl]
(Cluster-Heartbeat-1:null) Management node 3 is detected inactive by
timestamp but is pingable
2014-03-24 16:07:37,790 DEBUG [cloud.cluster.ClusterManagerImpl]
(Cluster-Heartbeat-1:null) Detected management node left, id:3,
nodeIP:10.4.29.88
2014-03-24 16:07:37,790 INFO  [cloud.cluster.ClusterManagerImpl]
(Cluster-Heartbeat-1:null) Trying to connect to 10.4.29.88
2014-03-24 16:07:37,791 INFO  [cloud.cluster.ClusterManagerImpl]
(Cluster-Heartbeat-1:null) Management node 3 is detected inactive by
timestamp but is pingable
2014-03-24 16:07:38,201 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-5:null) Ping from 1
^C

Thankyou
-- 
SANDEEP KHANDEKAR
Assistant Professor
Department of Computer science and engineering
Sreenidhi Institute of science and Technology
Hyderabad


Re: Not able to download CentOS template

2014-03-24 Thread Osay Osman Yuuni
Try redownloading the template as per the documentation.  Don't forget to
use the -F to force the download.  Ensure that the template is successfully
installed (output of the command to install the template).  Check
/template/tmpl/1/ to see whether the template exists (should be
the uuid of the template with a .vhd extension).  There should also be a
template.properties file in there.

You can also check the through the management server GUI to see the status
of the template by clicking on it.  If it does not say ready then there
must be something wrong with your secondary storage.


On 24 March 2014 11:18, Tejas Gadaria  wrote:

> Hi,
>
> After CS installation I am unable to download CentOS template. SSVM and
> CPVM public IP's are not pinging.
>
> I am following this Doc..
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM%2C+templates%2C+Secondary+storage+troubleshooting
>
> 1) Not able to login from Management server to SSVM with SSVM private ip.
>
>
>
> *ssh -i /root/.ssh/id_rsa.cloud -p 3922 10.129.151.96ssh: connect to host
> 10.129.151.96 port 3922: Connection refused*
> 2)
> *ssh root@169.254.2.113  (Link local ip from Xenserver
> host)ssh: connect to host 169.254.2.113 <169.254.2.113> port 22: Connection
> timed out*
>
> I management server log it does not shows any error, except template "NOT
> DOWNLOADED" error
>
> Then I took console in xencenter and check the SSVM log,
>
> 07:21:48,210  INFO Agent:154 - id is 3
> 07:21:48,251  INFO NfsSecondaryStorageResource:2046 - config_ssl.sh found
> in /us r/local/cloud/systemvm/config_ssl.sh
> 07:21:48,251  INFO NfsSecondaryStorageResource:2051 - config_auth.sh found
> in /u sr/local/cloud/systemvm/config_auth.sh
> 07:21:48,252  INFO NfsSecondaryStorageResource:2056 - _configIpFirewallScr
> found in /usr/local/cloud/systemvm/ipfirewall.sh
> 07:21:48,255  INFO NfsSecondaryStorageResource:2070 - Secondary storage
> runs in role templateProcessor
> 07:21:48,298  INFO DownloadManagerImpl:1014 - DownloadManager: starting
> additional services since we are inside system vm
> 07:21:48,850  INFO DownloadManagerImpl:1034 - listvmtmplt.sh found in
> /usr/local/cloud/systemvm/scripts/storage/secondary/listvmtmplt.sh
> 07:21:48,851  INFO DownloadManagerImpl:1040 - createtmplt.sh found in
> /usr/local/cloud/systemvm/scripts/storage/secondary/createtmplt.sh
> 07:21:48,853  INFO DownloadManagerImpl:1046 - listvolume.sh found in
> /usr/local/cloud/systemvm/scripts/storage/secondary/listvolume.sh
> 07:21:48,853  INFO DownloadManagerImpl:1052 - createvolume.sh found in
> /usr/local/cloud/systemvm/scripts/storage/secondary/createvolume.sh
> 07:21:48,863  INFO UploadManagerImpl:477 - UploadManager: starting
> additional services since we are inside system vm
> 07:21:49,031  INFO GsonHelper:53 - Default Builder inited.
> 07:21:49,042  INFO Agent:182 - Agent [id = 3 : type =
> PremiumSecondaryStorageResource : zone = 1 : pod = 1 : workers = 5 : host =
> 10.129.151.57 : port = 8250
> 07:21:49,064  INFO NioClient:54 - Connecting to 10.129.151.57:8250
> 07:21:49,515  INFO NioClient:80 - SSL: Handshake done
> 07:21:49,515  INFO NioClient:81 - Connected to 10.129.151.57:8250
> 07:21:49,623  INFO Agent:445 - Proccess agent startup answer, agent id = 0
> 07:21:49,623  INFO Agent:291 - Set agent id 0
> 07:21:49,629  INFO Agent:455 - Startup Response Received: agent id = 0
> 07:21:49,841  INFO NfsSecondaryStorageResource:2365 - snapshots directory
> created/exists on Secondary Storage.
> 07:21:49,842  INFO NfsSecondaryStorageResource:2365 - volumes directory
> created/exists on Secondary Storage.
> 07:21:51,702  INFO DownloadManagerImpl:799 - found 0 volumes[]
> 07:21:51,851  INFO DownloadManagerImpl:811 - found 2
>
> templates[/mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/5/,
>
> /mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/1/b36ee4f8-0afb-49e5-918a-a4f31b00b02a.vhd]
>
> 07:21:51,856  WARN DownloadManagerImpl:830 - Post download installation was
> not completed for
> /mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/5
> 07:21:52,010  INFO Agent:592 - Proccess agent ready command, agent id = 3
> 07:21:52,011  INFO Agent:291 - Set agent id 3
> 07:21:52,011  INFO Agent:596 - Ready command is processed: agent id = 3
> 07:21:52,060  INFO Agent:592 - Proccess agent ready command, agent id = 3
> 07:21:52,060  INFO Agent:291 - Set agent id 3
> 07:21:52,060  INFO Agent:596 - Ready command is processed: agent id = 3
> 07:21:52,204  INFO HttpTemplateDownloader:147 - No credentials configured
> for host=download.cloud.com:80
>
>
> *07:21:55,243  INFO HttpMethodDirector:439 - I/O exception
> (java.net.NoRouteToHostException) caught when processing request: No route
> to host 07:21:55,243  INFO HttpMethodDirector:445 - Retrying request
> 07:21:58,251  INFO DownloadManagerImpl:268 - Download Completion for jobId:
> 99e4ca29-e97f-4550-a13f-85d10e44ab0b, status=UNRECOVERABLE_ERROR *
> 07:21:58,252  INFO DownloadManagerImp

Re: Not able to download CentOS template

2014-03-24 Thread ronald higgins
Hi Tejas,

# Not able to login from Management server to SSVM with SSVM private ip.

You would run the SSH from the host that the SSVM is running on and not
from the Mangement Server. At least that's how it works with KVM Hosts.


On Mon, Mar 24, 2014 at 1:02 PM, Osay Osman Yuuni  wrote:

> Try redownloading the template as per the documentation.  Don't forget to
> use the -F to force the download.  Ensure that the template is successfully
> installed (output of the command to install the template).  Check
> /template/tmpl/1/ to see whether the template exists (should be
> the uuid of the template with a .vhd extension).  There should also be a
> template.properties file in there.
>
> You can also check the through the management server GUI to see the status
> of the template by clicking on it.  If it does not say ready then there
> must be something wrong with your secondary storage.
>
>
> On 24 March 2014 11:18, Tejas Gadaria  wrote:
>
> > Hi,
> >
> > After CS installation I am unable to download CentOS template. SSVM and
> > CPVM public IP's are not pinging.
> >
> > I am following this Doc..
> >
> >
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM%2C+templates%2C+Secondary+storage+troubleshooting
> >
> > 1) Not able to login from Management server to SSVM with SSVM private ip.
> >
> >
> >
> > *ssh -i /root/.ssh/id_rsa.cloud -p 3922 10.129.151.96ssh: connect to host
> > 10.129.151.96 port 3922: Connection refused*
> > 2)
> > *ssh root@169.254.2.113  (Link local ip from
> Xenserver
> > host)ssh: connect to host 169.254.2.113 <169.254.2.113> port 22:
> Connection
> > timed out*
> >
> > I management server log it does not shows any error, except template "NOT
> > DOWNLOADED" error
> >
> > Then I took console in xencenter and check the SSVM log,
> >
> > 07:21:48,210  INFO Agent:154 - id is 3
> > 07:21:48,251  INFO NfsSecondaryStorageResource:2046 - config_ssl.sh found
> > in /us r/local/cloud/systemvm/config_ssl.sh
> > 07:21:48,251  INFO NfsSecondaryStorageResource:2051 - config_auth.sh
> found
> > in /u sr/local/cloud/systemvm/config_auth.sh
> > 07:21:48,252  INFO NfsSecondaryStorageResource:2056 -
> _configIpFirewallScr
> > found in /usr/local/cloud/systemvm/ipfirewall.sh
> > 07:21:48,255  INFO NfsSecondaryStorageResource:2070 - Secondary storage
> > runs in role templateProcessor
> > 07:21:48,298  INFO DownloadManagerImpl:1014 - DownloadManager: starting
> > additional services since we are inside system vm
> > 07:21:48,850  INFO DownloadManagerImpl:1034 - listvmtmplt.sh found in
> > /usr/local/cloud/systemvm/scripts/storage/secondary/listvmtmplt.sh
> > 07:21:48,851  INFO DownloadManagerImpl:1040 - createtmplt.sh found in
> > /usr/local/cloud/systemvm/scripts/storage/secondary/createtmplt.sh
> > 07:21:48,853  INFO DownloadManagerImpl:1046 - listvolume.sh found in
> > /usr/local/cloud/systemvm/scripts/storage/secondary/listvolume.sh
> > 07:21:48,853  INFO DownloadManagerImpl:1052 - createvolume.sh found in
> > /usr/local/cloud/systemvm/scripts/storage/secondary/createvolume.sh
> > 07:21:48,863  INFO UploadManagerImpl:477 - UploadManager: starting
> > additional services since we are inside system vm
> > 07:21:49,031  INFO GsonHelper:53 - Default Builder inited.
> > 07:21:49,042  INFO Agent:182 - Agent [id = 3 : type =
> > PremiumSecondaryStorageResource : zone = 1 : pod = 1 : workers = 5 :
> host =
> > 10.129.151.57 : port = 8250
> > 07:21:49,064  INFO NioClient:54 - Connecting to 10.129.151.57:8250
> > 07:21:49,515  INFO NioClient:80 - SSL: Handshake done
> > 07:21:49,515  INFO NioClient:81 - Connected to 10.129.151.57:8250
> > 07:21:49,623  INFO Agent:445 - Proccess agent startup answer, agent id =
> 0
> > 07:21:49,623  INFO Agent:291 - Set agent id 0
> > 07:21:49,629  INFO Agent:455 - Startup Response Received: agent id = 0
> > 07:21:49,841  INFO NfsSecondaryStorageResource:2365 - snapshots directory
> > created/exists on Secondary Storage.
> > 07:21:49,842  INFO NfsSecondaryStorageResource:2365 - volumes directory
> > created/exists on Secondary Storage.
> > 07:21:51,702  INFO DownloadManagerImpl:799 - found 0 volumes[]
> > 07:21:51,851  INFO DownloadManagerImpl:811 - found 2
> >
> >
> templates[/mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/5/,
> >
> >
> /mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/1/b36ee4f8-0afb-49e5-918a-a4f31b00b02a.vhd]
> >
> > 07:21:51,856  WARN DownloadManagerImpl:830 - Post download installation
> was
> > not completed for
> > /mnt/SecStorage/87d42d71-bb1f-3572-af86-17add6e61e15/template/tmpl/1/5
> > 07:21:52,010  INFO Agent:592 - Proccess agent ready command, agent id = 3
> > 07:21:52,011  INFO Agent:291 - Set agent id 3
> > 07:21:52,011  INFO Agent:596 - Ready command is processed: agent id = 3
> > 07:21:52,060  INFO Agent:592 - Proccess agent ready command, agent id = 3
> > 07:21:52,060  INFO Agent:291 - Set agent id 3
> > 07:21:52,060  INFO Agent:596 - Ready command is processed: agent id = 3
> > 07:21:52,204  INFO

vm migration between zones

2014-03-24 Thread Ivan Derbenev
Hello guys, I am deploying cloudstack 4.2 with XenServer 6.2

For now I have a problem. We have 2 datacenters, each would be in its own zone 
(or region, we haven't decided yet).
So...

1)  Can we have different mysql databases, for management servers in each 
datacenter? Without replication between each other? Because management server 
in first datacenter doesn't really need to know anything about second DC's 
hosts\vms\etc.

But in the same time it would be great if I could login any of management 
servers in each DC and get access to any zone.

So the question is - can we connect two datacenters without database 
replication over internet?


2)  The only thing we really need from this connection is the ability to 
migrate instances from one datacenter to another. But I could't find any way 
how to migrate instance between zones\regions, or just export and import it. Is 
it really possible to do that or it can be done inside clusters only?

Regards,
Ivan Derbenev



Error in terminal:No package cloud-client availble

2014-03-24 Thread Ekta Agrawal
Hi,

I am new to cloud stack,I have installed CentOs 5 of x386 on virtual
machine and followed these steps for installing cloudstack:

1)logged in as root
2)created a file /etc/yum/repos.d/cloudstack.repo
   copied:
 [cloudstack]
name=cloudstack
baseurl=http://cloudstack.apt-get.eu/rhel/4.0/
enabled=1
gpgcheck=0

3)pinged www.cloudstack.org

4)installed ntp

5)Now I am trying to install cloud-client:

This is the message I am getting.

 [root@localhost user]# yum install cloud-client
extras100% |=| 2.1 kB00:00

Setting up Install Process
Parsing package install arguments
No package cloud-client available.
Nothing to do

Please provide a solution ,how to proceed on this.

Regards,
Ekta


RE: vm migration between zones

2014-03-24 Thread Geoff Higginbottom
Ivan,

If you want effectively two independent Data Centers, then simply make each DC 
a Zone within its own Region.  This way you will have two independent 'Clouds' 
but will be able to share login information and switch between the Regions with 
a single login etc.

It is not possible (yet) to 'migrate' VMs between different Zones or Regions so 
you would need to export the VM from one Zone, and then import it into the 
other Zone.

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbot...@shapeblue.com

-Original Message-
From: Ivan Derbenev [mailto:ivan.derbe...@tech-corps.com]
Sent: 24 March 2014 11:54
To: users@cloudstack.apache.org
Subject: vm migration between zones

Hello guys, I am deploying cloudstack 4.2 with XenServer 6.2

For now I have a problem. We have 2 datacenters, each would be in its own zone 
(or region, we haven't decided yet).
So...

1)  Can we have different mysql databases, for management servers in each 
datacenter? Without replication between each other? Because management server 
in first datacenter doesn't really need to know anything about second DC's 
hosts\vms\etc.

But in the same time it would be great if I could login any of management 
servers in each DC and get access to any zone.

So the question is - can we connect two datacenters without database 
replication over internet?


2)  The only thing we really need from this connection is the ability to 
migrate instances from one datacenter to another. But I could't find any way 
how to migrate instance between zones\regions, or just export and import it. Is 
it really possible to do that or it can be done inside clusters only?

Regards,
Ivan Derbenev

Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure 
Support offers the 
best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2.1 training
18th-19th February 2014, Brazil. 
Classroom
17th-23rd March 2014, Region A. Instructor led, 
On-line
24th-28th March 2014, Region B. Instructor led, 
On-line
16th-20th June 2014, Region A. Instructor led, 
On-line
23rd-27th June 2014, Region B. Instructor led, 
On-line

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


help with VPC and public IPs change

2014-03-24 Thread Andrei Mikhailovsky
Hello guys, 

I am changing my public IP range and I was having some issues with VPCs. I've 
managed to do it without any issues for the normal networks by changing the 
values in the database, however, The same procedure did not work for the VPCs. 
Here is what I've done: 

Changed the relevant values from the old range to the new range in the 
user_ip_address and firewall_rules tables. After that I've restarted the VPC, 
which has picked up the new ips and the firewall rules. However, the VR only 
had a single source NAT ip address and not the rest of ips it should have had. 
Also, the load balancing and port forwarding rules were not showing up. 

I did look at the load_balancing_rules table, but couldn't find the values that 
link back to the old IPs. 

Could some one please suggest to me what tables I should be changing for the 
VPCs to switch the public IP range. 

Many thanks 

Andrei 


custom DNS entry for secondary IP address

2014-03-24 Thread Jochim, Ingo
Hi all,

is it possible to get a custom DNS entry for a secondary IP address of an 
instance?

I added a second IP address to my instance but like to use a different name for 
resolution (not the hostname).

Thanks,
Ingo

-- 
This email was Virus checked by Astaro Security Gateway. http://www.astaro.com


Re: help with VPC and public IPs change

2014-03-24 Thread Jayapal Reddy Uradi
Hi,

check the nics table also. Also grep for old ups in db dumb.
Try adding new firewall rule and see all the rules are restored.

If the rules are not configured then check the management server logs.

Thanks,
Jayapal
On 24-Mar-2014, at 7:53 PM, Andrei Mikhailovsky 
 wrote:

> Hello guys, 
> 
> I am changing my public IP range and I was having some issues with VPCs. I've 
> managed to do it without any issues for the normal networks by changing the 
> values in the database, however, The same procedure did not work for the 
> VPCs. Here is what I've done: 
> 
> Changed the relevant values from the old range to the new range in the 
> user_ip_address and firewall_rules tables. After that I've restarted the VPC, 
> which has picked up the new ips and the firewall rules. However, the VR only 
> had a single source NAT ip address and not the rest of ips it should have 
> had. Also, the load balancing and port forwarding rules were not showing up. 
> 
> I did look at the load_balancing_rules table, but couldn't find the values 
> that link back to the old IPs. 
> 
> Could some one please suggest to me what tables I should be changing for the 
> VPCs to switch the public IP range. 
> 
> Many thanks 
> 
> Andrei 



Re: Virtual Router doesn't start

2014-03-24 Thread Alena Prokharchyk
Kambiz, can you please try one more thing.

1) Locate all the firewall rules for your guest network (205, right?)

Select id, ip_address_id from firewall_rules where network_id=205;

2) Now get all static nat enabled ip addresses for those rules:

Select vm_id, network_id from user_ip_address where id in (Select id,
ip_address_id from firewall_rules where network_id=205);

For each vmId/networkId combo, check if there is non-removed nic and
non-expunged vm. There might be some incorrect static nat ip/vm reference
referring to vm that is removed already. If you find any, let me know and
I will tell you how to clean it up

-Alena.

On 3/22/14, 5:41 AM, "Kambiz Darabi"  wrote:

>Hi Alena,
>
>thank you for your help.
>
>The query returns no rows, i.e. nics.removed was not null, but I removed
>the row though to see what happens: a new virtual router was created
>which also couldn't be started due to the same NPE. I reverted the
>change by restoring from the dump.
>
>I have to mention that prior to the restart, r-7-VM was the router which
>was used by my instances. I deleted the router using the UI after the
>first
>occurrence of the NPE, because a post with a similar problem suggested
>that the deleted router would be recreated again (and this procedure
>solved the problem).
>
>Below I have attached the state of the two tables.
>
>Anything else I can try?
>
>Thank you
>
>
>Kambiz
>
>mysql> select n.id, n.removed, n.ip4_address, n.netmask, n.gateway,
>n.ip_type, n.reserver_name, n.network_id, i.id as instance_id, i.name,
>i.state, i.type from vm_instance i join nics n on n.instance_id = i.id
>where i.type = 'DomainRouter';
>++-+---+---+-+
>-+--++-+-+
>---+--+
>| id | removed | ip4_address   | netmask   | gateway
>| ip_type | reserver_name| network_id | instance_id | name
>| state | type |
>++-+---+---+-+
>-+--++-+-+
>---+--+
>|  9 | 2014-03-17 11:27:58 | 10.124.99.1   | 255.255.255.0 | NULL
>| NULL| ExternalGuestNetworkGuru |204 |   4 | r-4-VM
>| Expunging | DomainRouter |
>| 10 | 2014-03-17 11:27:58 | NULL  | NULL  | NULL
>| NULL| ControlNetworkGuru   |202 |   4 | r-4-VM
>| Expunging | DomainRouter |
>| 11 | 2014-03-17 11:27:58 | 10.193.17.139 | 255.255.255.0 | 10.193.17.1
>| NULL| PublicNetworkGuru|200 |   4 | r-4-VM
>| Expunging | DomainRouter |
>| 14 | 2014-03-17 11:27:52 | 10.124.99.1   | 255.255.255.0 | NULL
>| NULL| ExternalGuestNetworkGuru |205 |   7 | r-7-VM
>| Expunging | DomainRouter |
>| 15 | 2014-03-17 11:27:52 | NULL  | NULL  | NULL
>| NULL| ControlNetworkGuru   |202 |   7 | r-7-VM
>| Expunging | DomainRouter |
>| 16 | 2014-03-17 11:27:52 | 10.193.17.190 | 255.255.255.0 | 10.193.17.1
>| NULL| PublicNetworkGuru|200 |   7 | r-7-VM
>| Expunging | DomainRouter |
>| 26 | 2014-03-18 08:11:16 | 10.124.99.1   | 255.255.255.0 | NULL
>| NULL| ExternalGuestNetworkGuru |205 |  18 | r-18-VM
>| Expunging | DomainRouter |
>| 27 | 2014-03-18 08:11:16 | NULL  | NULL  | NULL
>| NULL| ControlNetworkGuru   |202 |  18 | r-18-VM
>| Expunging | DomainRouter |
>| 28 | 2014-03-18 08:11:16 | 10.193.17.190 | 255.255.255.0 | 10.193.17.1
>| NULL| PublicNetworkGuru|200 |  18 | r-18-VM
>| Expunging | DomainRouter |
>| 29 | NULL| 10.124.99.1   | 255.255.255.0 | NULL
>| NULL| ExternalGuestNetworkGuru |205 |  19 | r-19-VM
>| Stopped   | DomainRouter |
>| 30 | NULL| NULL  | NULL  | NULL
>| NULL| ControlNetworkGuru   |202 |  19 | r-19-VM
>| Stopped   | DomainRouter |
>| 31 | NULL| 10.193.17.190 | 255.255.255.0 | 10.193.17.1
>| NULL| PublicNetworkGuru|200 |  19 | r-19-VM
>| Stopped   | DomainRouter |
>++-+---+---+-+
>-+--++-+-+
>---+--+
>
>mysql> select * from router_network_ref;
>++---+++
>| id | router_id | network_id | guest_type |
>++---+++
>|  1 | 4 |204 | Isolated   |
>|  2 | 7 |205 | Isolated   |
>|  3 |18 |205 | Isolated   |
>|  4 |19 |205 | Isolated   |
>++---+++
>
>
>
>Alena Prokharchyk  wrote:
>> 
>> The error happens not because Ip is null, but because the nic in a
>>certain
>> network can¹t be foun

Re: Virtual Router doesn't start

2014-03-24 Thread Kambiz Darabi
Hi,

I hope I have understood what you wrote and created the following query
correctly:

select uip.vm_id, uip.network_id, uip.public_ip_address,
   n.state as nic_state, n.removed as nic_removed,
   vm.state as vm_state, vm.removed as vm_removed
from user_ip_address uip
 join nics n on uip.vm_id = n.instance_id
 join vm_instance vm on uip.vm_id = vm.id
where uip.id in (Select ip_address_id from firewall_rules fr where 
fr.network_id=205);


+---++---+--+-+---++
| vm_id | network_id | public_ip_address | nic_state| nic_removed | 
vm_state  | vm_removed |
+---++---+--+-+---++
| 6 |205 | 10.193.17.169 | Allocated| NULL| 
Stopped   | NULL   |
|10 |205 | 10.193.17.136 | Allocated| NULL| 
Stopped   | NULL   |
|12 |205 | 10.193.17.140 | Allocated| NULL| 
Stopped   | NULL   |
|13 |205 | 10.193.17.141 | Allocated| NULL| 
Stopped   | NULL   |
|14 |205 | 10.193.17.142 | Allocated| NULL| 
Stopped   | NULL   |
|15 |205 | 10.193.17.174 | Deallocating | 2014-03-18 23:00:53 | 
Expunging | NULL   |
|16 |205 | 10.193.17.103 | Allocated| NULL| 
Stopped   | NULL   |
+---++---+--+-+---++

Is VM id 15 what you are looking for?

Thank you


Kambiz

Alena Prokharchyk  wrote:
> 
> Kambiz, can you please try one more thing.
>
> 1) Locate all the firewall rules for your guest network (205, right?)
>
> Select id, ip_address_id from firewall_rules where network_id=205;
>
> 2) Now get all static nat enabled ip addresses for those rules:
>
> Select vm_id, network_id from user_ip_address where id in (Select id,
> ip_address_id from firewall_rules where network_id=205);
>
> For each vmId/networkId combo, check if there is non-removed nic and
> non-expunged vm. There might be some incorrect static nat ip/vm reference
> referring to vm that is removed already. If you find any, let me know and
> I will tell you how to clean it up
>
> -Alena.
>
> On 3/22/14, 5:41 AM, "Kambiz Darabi"  wrote:
>
>>Hi Alena,
>>
>>thank you for your help.
>>
>>The query returns no rows, i.e. nics.removed was not null, but I removed
>>the row though to see what happens: a new virtual router was created
>>which also couldn't be started due to the same NPE. I reverted the
>>change by restoring from the dump.
>>
>>I have to mention that prior to the restart, r-7-VM was the router which
>>was used by my instances. I deleted the router using the UI after the
>>first
>>occurrence of the NPE, because a post with a similar problem suggested
>>that the deleted router would be recreated again (and this procedure
>>solved the problem).
>>
>>Below I have attached the state of the two tables.
>>
>>Anything else I can try?
>>
>>Thank you
>>
>>
>>Kambiz
>>
>>mysql> select n.id, n.removed, n.ip4_address, n.netmask, n.gateway,
>>n.ip_type, n.reserver_name, n.network_id, i.id as instance_id, i.name,
>>i.state, i.type from vm_instance i join nics n on n.instance_id = i.id
>>where i.type = 'DomainRouter';
>>++-+---+---+-+
>>-+--++-+-+
>>---+--+
>>| id | removed | ip4_address   | netmask   | gateway
>>| ip_type | reserver_name| network_id | instance_id | name
>>| state | type |
>>++-+---+---+-+
>>-+--++-+-+
>>---+--+
>>|  9 | 2014-03-17 11:27:58 | 10.124.99.1   | 255.255.255.0 | NULL
>>| NULL| ExternalGuestNetworkGuru |204 |   4 | r-4-VM
>>| Expunging | DomainRouter |
>>| 10 | 2014-03-17 11:27:58 | NULL  | NULL  | NULL
>>| NULL| ControlNetworkGuru   |202 |   4 | r-4-VM
>>| Expunging | DomainRouter |
>>| 11 | 2014-03-17 11:27:58 | 10.193.17.139 | 255.255.255.0 | 10.193.17.1
>>| NULL| PublicNetworkGuru|200 |   4 | r-4-VM
>>| Expunging | DomainRouter |
>>| 14 | 2014-03-17 11:27:52 | 10.124.99.1   | 255.255.255.0 | NULL
>>| NULL| ExternalGuestNetworkGuru |205 |   7 | r-7-VM
>>| Expunging | DomainRouter |
>>| 15 | 2014-03-17 11:27:52 | NULL  | NULL  | NULL
>>| NULL| ControlNetworkGuru   |202 |   7 | r-7-VM
>>| Expunging | DomainRouter |
>>| 16 | 2014-03-17 11:27:52 | 10.193.17.190 | 255.255.255.0 | 10.193.17.1
>>| NULL| PublicNetworkGuru|200 |   7 | r-7-VM
>>| Expun

Re: Virtual Router doesn't start

2014-03-24 Thread Alena Prokharchyk
Yes, Kambiz, you followed up right, and vm id=15 is the culprit. If vm
id=15 is expunged, we have to clear out the reference to it from
user_ip_address table. Here is the flow:

1) Save the db dump.
2) Run the query to cleanup the reference:

Update user_ip_address set one_to_one_nat=0, instance_id=null where
id=



Let me know how it works.

-Alena.

On 3/24/14, 10:55 AM, "Kambiz Darabi"  wrote:

>Hi,
>
>I hope I have understood what you wrote and created the following query
>correctly:
>
>select uip.vm_id, uip.network_id, uip.public_ip_address,
>   n.state as nic_state, n.removed as nic_removed,
>   vm.state as vm_state, vm.removed as vm_removed
>from user_ip_address uip
> join nics n on uip.vm_id = n.instance_id
> join vm_instance vm on uip.vm_id = vm.id
>where uip.id in (Select ip_address_id from firewall_rules fr where
>fr.network_id=205);
>
>
>+---++---+--+-
>+---++
>| vm_id | network_id | public_ip_address | nic_state| nic_removed
>| vm_state  | vm_removed |
>+---++---+--+-
>+---++
>| 6 |205 | 10.193.17.169 | Allocated| NULL
>| Stopped   | NULL   |
>|10 |205 | 10.193.17.136 | Allocated| NULL
>| Stopped   | NULL   |
>|12 |205 | 10.193.17.140 | Allocated| NULL
>| Stopped   | NULL   |
>|13 |205 | 10.193.17.141 | Allocated| NULL
>| Stopped   | NULL   |
>|14 |205 | 10.193.17.142 | Allocated| NULL
>| Stopped   | NULL   |
>|15 |205 | 10.193.17.174 | Deallocating | 2014-03-18
>23:00:53 | Expunging | NULL   |
>|16 |205 | 10.193.17.103 | Allocated| NULL
>| Stopped   | NULL   |
>+---++---+--+-
>+---++
>
>Is VM id 15 what you are looking for?
>
>Thank you
>
>
>Kambiz
>
>Alena Prokharchyk  wrote:
>> 
>> Kambiz, can you please try one more thing.
>>
>> 1) Locate all the firewall rules for your guest network (205, right?)
>>
>> Select id, ip_address_id from firewall_rules where network_id=205;
>>
>> 2) Now get all static nat enabled ip addresses for those rules:
>>
>> Select vm_id, network_id from user_ip_address where id in (Select id,
>> ip_address_id from firewall_rules where network_id=205);
>>
>> For each vmId/networkId combo, check if there is non-removed nic and
>> non-expunged vm. There might be some incorrect static nat ip/vm
>>reference
>> referring to vm that is removed already. If you find any, let me know
>>and
>> I will tell you how to clean it up
>>
>> -Alena.
>>
>> On 3/22/14, 5:41 AM, "Kambiz Darabi"  wrote:
>>
>>>Hi Alena,
>>>
>>>thank you for your help.
>>>
>>>The query returns no rows, i.e. nics.removed was not null, but I removed
>>>the row though to see what happens: a new virtual router was created
>>>which also couldn't be started due to the same NPE. I reverted the
>>>change by restoring from the dump.
>>>
>>>I have to mention that prior to the restart, r-7-VM was the router which
>>>was used by my instances. I deleted the router using the UI after the
>>>first
>>>occurrence of the NPE, because a post with a similar problem suggested
>>>that the deleted router would be recreated again (and this procedure
>>>solved the problem).
>>>
>>>Below I have attached the state of the two tables.
>>>
>>>Anything else I can try?
>>>
>>>Thank you
>>>
>>>
>>>Kambiz
>>>
>>>mysql> select n.id, n.removed, n.ip4_address, n.netmask, n.gateway,
>>>n.ip_type, n.reserver_name, n.network_id, i.id as instance_id, i.name,
>>>i.state, i.type from vm_instance i join nics n on n.instance_id = i.id
>>>where i.type = 'DomainRouter';
>>>++-+---+---+
>>>-+
>>>-+--++-+
>>>-+
>>>---+--+
>>>| id | removed | ip4_address   | netmask   | gateway
>>>| ip_type | reserver_name| network_id | instance_id | name
>>>| state | type |
>>>++-+---+---+
>>>-+
>>>-+--++-+
>>>-+
>>>---+--+
>>>|  9 | 2014-03-17 11:27:58 | 10.124.99.1   | 255.255.255.0 | NULL
>>>| NULL| ExternalGuestNetworkGuru |204 |   4 | r-4-VM
>>>| Expunging | DomainRouter |
>>>| 10 | 2014-03-17 11:27:58 | NULL  | NULL  | NULL
>>>| NULL| ControlNetworkGuru   |202 |   4 | r-4-VM
>>>| Expunging | DomainRouter |
>>>| 11 | 2014-03-17 11:27:58 | 10.193.17.139 | 255.255.255.0 | 10.193.17.1
>>>| NULL| PublicNetworkGuru|200 |   4 | r-4-VM
>>>| Expunging | DomainRouter |
>>>| 14 | 2014-03-17 11:27:52 | 10.124.99.1   | 

RE: CloudStack 4.2.1 XenServer version support

2014-03-24 Thread Peter Sadowski
It is a fresh install.

Thank you for your reply.

 

 

From: Amin Samir [mailto:a...@opencloud.net.au] 
Sent: Thursday, March 20, 2014 9:29 PM
To: users@cloudstack.apache.org
Subject: RE: CloudStack 4.2.1 XenServer version support

 

Yes it is supported in new management server installation only, meaning if
you upgrade from an earlier cloudstack version you will have only upgrade
path to xen server 6.1, if you have a new cloud stack management
installation then you can have xen server 6.2 for the compatibility matrix
check out the below table.

 



 

 

Kind Regards

Amin   

 

 

 

-Original Message-
From: Peter Sadowski [mailto:peter.m.sadow...@gmail.com] 
Sent: Friday, 21 March 2014 1:04 AM
To: users@cloudstack.apache.org  
Subject: CloudStack 4.2.1 XenServer version support

 

Hi, 

 

 

 

Since the release of CS 4.2.1 is XenServer 6.2 supported?

 

In the install docs all I see is support up to version 6.0.2.

 

 

 

Thx in advance, 

 

 

 

Peter 

 

 

 

 

 



Re: CloudStack Vs HP CSA

2014-03-24 Thread ilya musayev
At my previous employer, we've worked to  replace HP BSA (HPSA and 
HPOO), with


cloudstack - controlling vSphere, KVM and XEN
cobbler and spacewalk (linux physical provisioning and patch management)
Chef - package configuration
Microsoft SSCM - physical windows provisioning and management

CloudStack, KVM, Cobbler, Spacewalk and Chef - are all open source. SSCM 
and vSphere - something you had to pay for.


You can technically abstract SSCM, but there is no open source tool to 
best of my knowledge that would do all of that for Windows. vSphere was 
there because of ELA, but since we automated template build process, KVM 
or XEN as open source replacement - would have worked similarly.


In theory you can have this stack completely open source (free), but you 
have to have specific skillset to get all of subcomponents functional in 
somewhat similar fashion as proprietary. Depending on how large your ENV 
is, you have to decide which route you want to go.


Regards
ilya

On 3/24/14, 12:42 AM, Huzefa Hussain wrote:

Hi

I am trying to compare Cloud Stack with HP CSA. HP CSA is super costly so I
am trying to search for an alternative. It seems Cloud Stack can do the job
but I am not very sure. Can some one in the list please help me and suggest
if following use cases can be worked out using Cloud Stack or with
combination of other open source tools.



*Use Case #*

*Use Case Name*

*Description*

1

Provision and Patch OS (via CSA)

*Provision virtual infrastructure with OS *
* CSA: Subscriber requests Windows VMware VM with vCenter
* Subscriber selects patching policy to apply to server
* Submit request - VM is provisioned
*Patch*
* Show how subscriber can check OS patching compliance status
* Show how user can request remediation

2

Provision and Patch Database (via CSA)

*Provision virtual infrastructure with OS and Oracle database  *
* CSA: Subscriber requests  Linux VMware VM with vCenter
* Subscriber enters database name
* Submit request - VM with OS and Oracle SI DB is provisioned
*Patch*
* Show how subscriber can check Database patching compliance status
* Show how user can request patching

3

OS Compliance

*Provision virtual infrastructure with OS  *
* CSA: Enter provisioned windows server on portal
- Subscriber selects PCI or SOX audit policy(ies) to apply to server
- Submit request - VM is put under SA management (agent installed) and
audit policies applied
*Audit*
- Show how subscriber can request audit compliance scan
- Portal show status (compliant/non-compliant) and detailed e-mail sent to
subscriber
- Show how user can request remediation

4

Database Compliance (via CSA)

Go to CSA portal
* Provision virtual infrastructure with OS & Oracle Database
* Subscriber enters e-mail to send compliance report
* Subscriber requests Run CIS Compliance Check
* DMA Compliance workflow is run, and pass/fail

5

Self-Healing Remediation

*Provision demo target VM *
* CSA: Subscriber requests VMware VM with vCenter
* SiteScope monitors for filesystem automatically configured
# "File System full" Incident created based on an "event" (automated
monitoring through Sitescope) that auto triggers appropriate "Action" (HP
OO workflow)
# HP OO creates new ticket in HP Service Manager (show newly created ticket)
# HP OO triggers performs impact analysis (capture outcome in the ticket)
# HP OO triggers action to free up File System ("empties /tmp")
# HP OO updates ticket with details (time to resolve, etc.) and closes the
incident (show the closed ticket)



Thanks,

Huzefa





CloudStack DR Approach (not HA)

2014-03-24 Thread Jim Jones
Hello,

I am interested to know what everyone is using to provide disaster recovery
for VMs running in CloudStack?

Note, I am talking about true DR to another data center, not HA.  I have
seen the previous thread where someone asked about DR, but the answer
provided only talked about HA of VMs within the same Cluster or Zone.  This
is not my question.

I am looking for a method to maintain an up-to-date copy of a running VM,
including its data, in another Zone or Region, such that if the first Zone
is destroyed, the VM can be brought up in the other Zone and continue
production.

Before cloud, DR for virtualized environments was typically handled using
SAN replication.  The VMs would be quiesced and snapshotted at regular
intervals (e.g. hourly), and the SAN LUNs would be continuously replicated
asynchronously.  Following this approach, if the primary site was
destroyed, the SAN LUNs would be enabled for read-write at the secondary
location, and the VMs could then be started there, using the last
successful snapshot (the last consistency point).

I have looked at what Amazon and Rackspace provide for their Clouds, and
the approach seems to be user-initiated quiesced cloud snapshots, combined
with Secondary Storage that is automatically replicated and available
throughout their Clouds.  Therefore, if the site where the VM is running
gets destroyed, the latest VM snapshot can be deployed from Secondary
Storage to any other Zone.

I would like to know if anybody has experience/insights using this approach
on CloudStack, particularly using XenServer hosts.

Is there a mechanism available for end-users to create quiesced CloudStack
snapshots of running production VMs, such that applications and filesystems
are put into a consistent state prior to the snapshot being created?

Also, can anybody offer insight into how to automatically or continuously
replicate Secondary Storage across Zones or Regions, using NFS-based
Secondary Storage (not object storage), such that CloudStack users will see
any be able to deploy their Snapshots in any other Zone or Region?

If what I am describing is not yet possible with CloudStack, I would be
like to be pointed towards the part of the CloudStack roadmap that
discusses the planned architecture.

Thanks,
JJ


Re: CloudStack DR Approach (not HA)

2014-03-24 Thread Nux!

On 24.03.2014 19:11, Jim Jones wrote:

Hello,

I am interested to know what everyone is using to provide disaster 
recovery

for VMs running in CloudStack?


Hello Jim,

I'm also interested in this subject.
Right now for some DR VMs I (am trying to) use Xenserver + HAlizard, 
but this is just a 2 hypervisor setup.


If I had to do it now, my least cumbersome approach would probably be 
to recommend setting up VMs in the DR zone and replicate stuff at 
application level and do some load balancing.


I'm very curious what others do.

Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: Virtual Router doesn't start

2014-03-24 Thread Kambiz Darabi
Hi,

thank you, the NullPointerException doesn't occur any more, but there
still seems to be a problem during startup of the router.

When I start the virtual router, it comes up, but in agent.log, there
are lots of 'Could not connect to 169.254.1.x'  messages.

Then I logged into the virtual router to find out that the netmask of
eth1 is missing in the interfaces file:

root@host:~# virsh console r-19-VM
Connected to domain r-19-VM
Escape character is ^]

Debian GNU/Linux 6.0 r-19-VM ttyS0

r-19-VM login: root
...
root@r-19-VM:~# cat /etc/network/interfaces 
auto lo eth0 eth1 eth2
iface lo inet loopback

iface  eth0 inet static
  address 169.254.1.59 
  netmask 255.255.0.0
iface  eth1 inet static
  address 10.193.17.1 
  netmask 
iface  eth2 inet static
  address 10.193.17.190 
  netmask 255.255.255.0

I don't know if it is relevant, but this is the line from agent.log
where the parameters are visible:

2014-03-24 21:36:17,681 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:null) Executing: 
/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/rundomrpre.sh -l r-19-VM 
-t all -d /var/lib/libvirt/images/r-19-VM-patchdisk -p 
%template=domP%name=r-19-VM%eth2ip=10.193.17.190%eth2mask=255.255.255.0%gateway=10.193.17.1%eth0ip=10.124.99.1%eth0mask=255.255.255.0%domain=cs6cloud.internal%dhcprange=10.124.99.1%eth0ip=169.254.1.60%eth0mask=255.255.0.0%type=router%disable_rp_filter=true%dns1=10.193.17.1
 


Any hint is appreciated.

Thanks


Kambiz


Alena Prokharchyk  wrote:
> 
> Yes, Kambiz, you followed up right, and vm id=15 is the culprit. If vm
> id=15 is expunged, we have to clear out the reference to it from
> user_ip_address table. Here is the flow:
>
> 1) Save the db dump.
> 2) Run the query to cleanup the reference:
>
> Update user_ip_address set one_to_one_nat=0, instance_id=null where
> id=
>
>
>
> Let me know how it works.
>
> -Alena.
>
> On 3/24/14, 10:55 AM, "Kambiz Darabi"  wrote:
>
>>Hi,
>>
>>I hope I have understood what you wrote and created the following query
>>correctly:
>>
>>select uip.vm_id, uip.network_id, uip.public_ip_address,
>>   n.state as nic_state, n.removed as nic_removed,
>>   vm.state as vm_state, vm.removed as vm_removed
>>from user_ip_address uip
>> join nics n on uip.vm_id = n.instance_id
>> join vm_instance vm on uip.vm_id = vm.id
>>where uip.id in (Select ip_address_id from firewall_rules fr where
>>fr.network_id=205);
>>
>>
>>+---++---+--+-
>>+---++
>>| vm_id | network_id | public_ip_address | nic_state| nic_removed
>>| vm_state  | vm_removed |
>>+---++---+--+-
>>+---++
>>| 6 |205 | 10.193.17.169 | Allocated| NULL
>>| Stopped   | NULL   |
>>|10 |205 | 10.193.17.136 | Allocated| NULL
>>| Stopped   | NULL   |
>>|12 |205 | 10.193.17.140 | Allocated| NULL
>>| Stopped   | NULL   |
>>|13 |205 | 10.193.17.141 | Allocated| NULL
>>| Stopped   | NULL   |
>>|14 |205 | 10.193.17.142 | Allocated| NULL
>>| Stopped   | NULL   |
>>|15 |205 | 10.193.17.174 | Deallocating | 2014-03-18
>>23:00:53 | Expunging | NULL   |
>>|16 |205 | 10.193.17.103 | Allocated| NULL
>>| Stopped   | NULL   |
>>+---++---+--+-
>>+---++
>>
>>Is VM id 15 what you are looking for?
>>
>>Thank you
>>
>>
>>Kambiz
>>
>>Alena Prokharchyk  wrote:
>>> 
>>> Kambiz, can you please try one more thing.
>>>
>>> 1) Locate all the firewall rules for your guest network (205, right?)
>>>
>>> Select id, ip_address_id from firewall_rules where network_id=205;
>>>
>>> 2) Now get all static nat enabled ip addresses for those rules:
>>>
>>> Select vm_id, network_id from user_ip_address where id in (Select id,
>>> ip_address_id from firewall_rules where network_id=205);
>>>
>>> For each vmId/networkId combo, check if there is non-removed nic and
>>> non-expunged vm. There might be some incorrect static nat ip/vm
>>>reference
>>> referring to vm that is removed already. If you find any, let me know
>>>and
>>> I will tell you how to clean it up
>>>
>>> -Alena.
>>>
>>> On 3/22/14, 5:41 AM, "Kambiz Darabi"  wrote:
>>>
Hi Alena,

thank you for your help.

The query returns no rows, i.e. nics.removed was not null, but I removed
the row though to see what happens: a new virtual router was created
which also couldn't be started due to the same NPE. I reverted the
change by restoring from the dump.

I have to mention that prior to the restart, r-7-VM was the router which
was used by my instances. I deleted the router using the UI after the
first
occurrence of the NPE, because a post with a similar problem suggested
>>>

re: CloudStack DR Approach (not HA)

2014-03-24 Thread Kristoffer Sheather @ CloudCentral
Hi Jim,
  
 Very good questions and I am keen to see the answers as well.  CloudStack 
definitely needs to support this scenario (I don't believe it currently 
does).  Cross zone replication of snapshots with the ability to bring up 
VM's from those snapshots is something I'd like to see too.
  
 Regards,

Kristoffer Sheather
Cloud Central
Scale Your Data Center In The Cloud   
Phone: 1300 144 007 | Mobile: +61 414 573 130 | Email: 
k...@cloudcentral.com.au
LinkedIn:   | Skype: kristoffer.sheather | Twitter: 
http://twitter.com/kristofferjon

  


 From: "Jim Jones" 
Sent: Tuesday, March 25, 2014 6:11 AM
To: users@cloudstack.apache.org
Subject: CloudStack DR Approach (not HA)   
Hello,

I am interested to know what everyone is using to provide disaster 
recovery
for VMs running in CloudStack?

Note, I am talking about true DR to another data center, not HA. I have
seen the previous thread where someone asked about DR, but the answer
provided only talked about HA of VMs within the same Cluster or Zone. This
is not my question.

I am looking for a method to maintain an up-to-date copy of a running VM,
including its data, in another Zone or Region, such that if the first Zone
is destroyed, the VM can be brought up in the other Zone and continue
production.

Before cloud, DR for virtualized environments was typically handled using
SAN replication. The VMs would be quiesced and snapshotted at regular
intervals (e.g. hourly), and the SAN LUNs would be continuously replicated
asynchronously. Following this approach, if the primary site was
destroyed, the SAN LUNs would be enabled for read-write at the secondary
location, and the VMs could then be started there, using the last
successful snapshot (the last consistency point).

I have looked at what Amazon and Rackspace provide for their Clouds, and
the approach seems to be user-initiated quiesced cloud snapshots, combined
with Secondary Storage that is automatically replicated and available
throughout their Clouds. Therefore, if the site where the VM is running
gets destroyed, the latest VM snapshot can be deployed from Secondary
Storage to any other Zone.

I would like to know if anybody has experience/insights using this 
approach
on CloudStack, particularly using XenServer hosts.

Is there a mechanism available for end-users to create quiesced CloudStack
snapshots of running production VMs, such that applications and 
filesystems
are put into a consistent state prior to the snapshot being created?

Also, can anybody offer insight into how to automatically or continuously
replicate Secondary Storage across Zones or Regions, using NFS-based
Secondary Storage (not object storage), such that CloudStack users will 
see
any be able to deploy their Snapshots in any other Zone or Region?

If what I am describing is not yet possible with CloudStack, I would be
like to be pointed towards the part of the CloudStack roadmap that
discusses the planned architecture.

Thanks,
JJ
 



RE: CloudStack DR Approach (not HA)

2014-03-24 Thread Geoff Higginbottom
ShapeBlue are currently working on a solution for Zone Failover of VMs, I 
cannot confirm which version it will be included in, but 4.5 is a possibility.

With regards to the replication of volume snapshots, that is effectively 
available today using the S3 backed secondary storage feature.

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbot...@shapeblue.com

-Original Message-
From: Kristoffer Sheather @ CloudCentral 
[mailto:kristoffer.sheat...@cloudcentral.com.au]
Sent: 24 March 2014 20:53
To: users@cloudstack.apache.org
Subject: re: CloudStack DR Approach (not HA)

Hi Jim,

 Very good questions and I am keen to see the answers as well.  CloudStack 
definitely needs to support this scenario (I don't believe it currently does).  
Cross zone replication of snapshots with the ability to bring up VM's from 
those snapshots is something I'd like to see too.

 Regards,

Kristoffer Sheather
Cloud Central
Scale Your Data Center In The Cloud
Phone: 1300 144 007 | Mobile: +61 414 573 130 | Email:
k...@cloudcentral.com.au
LinkedIn:   | Skype: kristoffer.sheather | Twitter:
http://twitter.com/kristofferjon




 From: "Jim Jones" 
Sent: Tuesday, March 25, 2014 6:11 AM
To: users@cloudstack.apache.org
Subject: CloudStack DR Approach (not HA)
Hello,

I am interested to know what everyone is using to provide disaster recovery for 
VMs running in CloudStack?

Note, I am talking about true DR to another data center, not HA. I have seen 
the previous thread where someone asked about DR, but the answer provided only 
talked about HA of VMs within the same Cluster or Zone. This is not my question.

I am looking for a method to maintain an up-to-date copy of a running VM, 
including its data, in another Zone or Region, such that if the first Zone is 
destroyed, the VM can be brought up in the other Zone and continue production.

Before cloud, DR for virtualized environments was typically handled using SAN 
replication. The VMs would be quiesced and snapshotted at regular intervals 
(e.g. hourly), and the SAN LUNs would be continuously replicated 
asynchronously. Following this approach, if the primary site was destroyed, the 
SAN LUNs would be enabled for read-write at the secondary location, and the VMs 
could then be started there, using the last successful snapshot (the last 
consistency point).

I have looked at what Amazon and Rackspace provide for their Clouds, and the 
approach seems to be user-initiated quiesced cloud snapshots, combined with 
Secondary Storage that is automatically replicated and available throughout 
their Clouds. Therefore, if the site where the VM is running gets destroyed, 
the latest VM snapshot can be deployed from Secondary Storage to any other Zone.

I would like to know if anybody has experience/insights using this approach on 
CloudStack, particularly using XenServer hosts.

Is there a mechanism available for end-users to create quiesced CloudStack 
snapshots of running production VMs, such that applications and filesystems are 
put into a consistent state prior to the snapshot being created?

Also, can anybody offer insight into how to automatically or continuously 
replicate Secondary Storage across Zones or Regions, using NFS-based Secondary 
Storage (not object storage), such that CloudStack users will see any be able 
to deploy their Snapshots in any other Zone or Region?

If what I am describing is not yet possible with CloudStack, I would be like to 
be pointed towards the part of the CloudStack roadmap that discusses the 
planned architecture.

Thanks,
JJ


Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure 
Support offers the 
best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2.1 training
18th-19th February 2014, Brazil. 
Classroom
17th-23rd March 2014, Region A. Instructor led, 
On-line
24th-28th March 2014, Region B. Instructor led, 
On-line
16th-20th June 2014, Region A. Instructor led, 
On-line
23rd-27th June 2014, Region B. Instructor led, 
On-line

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 

Re: CloudStack DR Approach (not HA)

2014-03-24 Thread Andrei Mikhailovsky
Hi Jim, 


I would suggest looking at Ceph for the multisite data replication, including 
primary and secondary storage. I doubt nfs would be of much use here unless you 
are a masochist )) Alternatively, you may look at using zfs with zfs 
send/receive feature to remote copy across filesystem snapshots. You may ran 
nfs over zfs if nfs is preferred. 


As to the cloudstack, and I've not done any tests and just hypothesizing, you 
can have a vm in multiple regions/zones, which are pointing to the volume which 
you've synced across to a remote dc. If your primary zone/dc dies, you simply 
start the vm from another zone/region using the last snapshot state. 


I would also suggest looking at scalr, which should automate things for you 
when it comes to switching between failed and live dcs. It's a fantastic 
looking product from the looks of it. 


Andrei 


- Original Message -

From: "Jim Jones"  
To: users@cloudstack.apache.org 
Sent: Monday, 24 March, 2014 7:11:10 PM 
Subject: CloudStack DR Approach (not HA) 

Hello, 

I am interested to know what everyone is using to provide disaster recovery 
for VMs running in CloudStack? 

Note, I am talking about true DR to another data center, not HA. I have 
seen the previous thread where someone asked about DR, but the answer 
provided only talked about HA of VMs within the same Cluster or Zone. This 
is not my question. 

I am looking for a method to maintain an up-to-date copy of a running VM, 
including its data, in another Zone or Region, such that if the first Zone 
is destroyed, the VM can be brought up in the other Zone and continue 
production. 

Before cloud, DR for virtualized environments was typically handled using 
SAN replication. The VMs would be quiesced and snapshotted at regular 
intervals (e.g. hourly), and the SAN LUNs would be continuously replicated 
asynchronously. Following this approach, if the primary site was 
destroyed, the SAN LUNs would be enabled for read-write at the secondary 
location, and the VMs could then be started there, using the last 
successful snapshot (the last consistency point). 

I have looked at what Amazon and Rackspace provide for their Clouds, and 
the approach seems to be user-initiated quiesced cloud snapshots, combined 
with Secondary Storage that is automatically replicated and available 
throughout their Clouds. Therefore, if the site where the VM is running 
gets destroyed, the latest VM snapshot can be deployed from Secondary 
Storage to any other Zone. 

I would like to know if anybody has experience/insights using this approach 
on CloudStack, particularly using XenServer hosts. 

Is there a mechanism available for end-users to create quiesced CloudStack 
snapshots of running production VMs, such that applications and filesystems 
are put into a consistent state prior to the snapshot being created? 

Also, can anybody offer insight into how to automatically or continuously 
replicate Secondary Storage across Zones or Regions, using NFS-based 
Secondary Storage (not object storage), such that CloudStack users will see 
any be able to deploy their Snapshots in any other Zone or Region? 

If what I am describing is not yet possible with CloudStack, I would be 
like to be pointed towards the part of the CloudStack roadmap that 
discusses the planned architecture. 

Thanks, 
JJ 



RE: CloudStack DR Approach (not HA)

2014-03-24 Thread Kristoffer Sheather @ CloudCentral
+1 for this feature! We get questions from end-users about this 
functionality all the time.
  
 Regards,

Kristoffer Sheather
Cloud Central
Scale Your Data Center In The Cloud   
Phone: 1300 144 007 | Mobile: +61 414 573 130 | Email: 
k...@cloudcentral.com.au
LinkedIn:   | Skype: kristoffer.sheather | Twitter: 
http://twitter.com/kristofferjon

  


 From: "Geoff Higginbottom" 
Sent: Tuesday, March 25, 2014 7:57 AM
To: "users@cloudstack.apache.org" , 
"k...@cloudcentral.com.au" 
Subject: RE: CloudStack DR Approach (not HA)   
ShapeBlue are currently working on a solution for Zone Failover of VMs, I 
cannot confirm which version it will be included in, but 4.5 is a 
possibility.

With regards to the replication of volume snapshots, that is effectively 
available today using the S3 backed secondary storage feature.

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbot...@shapeblue.com

-Original Message-
From: Kristoffer Sheather @ CloudCentral 
[mailto:kristoffer.sheat...@cloudcentral.com.au]
Sent: 24 March 2014 20:53
To: users@cloudstack.apache.org
Subject: re: CloudStack DR Approach (not HA)

Hi Jim,

Very good questions and I am keen to see the answers as well. CloudStack 
definitely needs to support this scenario (I don't believe it currently 
does). Cross zone replication of snapshots with the ability to bring up 
VM's from those snapshots is something I'd like to see too.

Regards,

Kristoffer Sheather
Cloud Central
Scale Your Data Center In The Cloud
Phone: 1300 144 007 | Mobile: +61 414 573 130 | Email:
k...@cloudcentral.com.au
LinkedIn: | Skype: kristoffer.sheather | Twitter:
http://twitter.com/kristofferjon


From: "Jim Jones" 
Sent: Tuesday, March 25, 2014 6:11 AM
To: users@cloudstack.apache.org
Subject: CloudStack DR Approach (not HA)
Hello,

I am interested to know what everyone is using to provide disaster recovery 
for VMs running in CloudStack?

Note, I am talking about true DR to another data center, not HA. I have 
seen the previous thread where someone asked about DR, but the answer 
provided only talked about HA of VMs within the same Cluster or Zone. This 
is not my question.

I am looking for a method to maintain an up-to-date copy of a running VM, 
including its data, in another Zone or Region, such that if the first Zone 
is destroyed, the VM can be brought up in the other Zone and continue 
production.

Before cloud, DR for virtualized environments was typically handled using 
SAN replication. The VMs would be quiesced and snapshotted at regular 
intervals (e.g. hourly), and the SAN LUNs would be continuously replicated 
asynchronously. Following this approach, if the primary site was destroyed, 
the SAN LUNs would be enabled for read-write at the secondary location, and 
the VMs could then be started there, using the last successful snapshot 
(the last consistency point).

I have looked at what Amazon and Rackspace provide for their Clouds, and 
the approach seems to be user-initiated quiesced cloud snapshots, combined 
with Secondary Storage that is automatically replicated and available 
throughout their Clouds. Therefore, if the site where the VM is running 
gets destroyed, the latest VM snapshot can be deployed from Secondary 
Storage to any other Zone.

I would like to know if anybody has experience/insights using this approach 
on CloudStack, particularly using XenServer hosts.

Is there a mechanism available for end-users to create quiesced CloudStack 
snapshots of running production VMs, such that applications and filesystems 
are put into a consistent state prior to the snapshot being created?

Also, can anybody offer insight into how to automatically or continuously 
replicate Secondary Storage across Zones or Regions, using NFS-based 
Secondary Storage (not object storage), such that CloudStack users will see 
any be able to deploy their Snapshots in any other Zone or Region?

If what I am describing is not yet possible with CloudStack, I would be 
like to be pointed towards the part of the CloudStack roadmap that 
discusses the planned architecture.

Thanks,
JJ

Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure 
Support offers the 
best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2.1 
training
18th-19th February 2014, Brazil. 
Classroom
17th-23rd March 2014, Region A. Instructor led, 
On-line
24th-28th March 2014, Region B. Instructor led, 
On-line
16th-20th June 2014, Region A. Instructor led, 
On-line
23rd-27th June 2014, Region B. Instructor led, 
On-line

Re: Virtual Router doesn't start

2014-03-24 Thread Alena Prokharchyk
I don’t think its relevant as the piece we’ve fixed, just eliminated
static nat rule programming for non-existing vm. Missing netmask on eth1
doesn’t seem related to the problem (although we have to figure out why
its missing), as the connection that fails, happening to link local 169.x
eth0 interface.

Edison, can you please tell us how to debug link local connection failure,
on KVM agent?

Thank you,
Alena.

On 3/24/14, 1:47 PM, "Kambiz Darabi"  wrote:

>Hi,
>
>thank you, the NullPointerException doesn't occur any more, but there
>still seems to be a problem during startup of the router.
>
>When I start the virtual router, it comes up, but in agent.log, there
>are lots of 'Could not connect to 169.254.1.x'  messages.
>
>Then I logged into the virtual router to find out that the netmask of
>eth1 is missing in the interfaces file:
>
>root@host:~# virsh console r-19-VM
>Connected to domain r-19-VM
>Escape character is ^]
>
>Debian GNU/Linux 6.0 r-19-VM ttyS0
>
>r-19-VM login: root
>...
>root@r-19-VM:~# cat /etc/network/interfaces
>auto lo eth0 eth1 eth2
>iface lo inet loopback
>
>iface  eth0 inet static
>  address 169.254.1.59
>  netmask 255.255.0.0
>iface  eth1 inet static
>  address 10.193.17.1
>  netmask 
>iface  eth2 inet static
>  address 10.193.17.190
>  netmask 255.255.255.0
>
>I don't know if it is relevant, but this is the line from agent.log
>where the parameters are visible:
>
>2014-03-24 21:36:17,681 DEBUG [kvm.resource.LibvirtComputingResource]
>(agentRequest-Handler-2:null) Executing:
>/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/rundomrpre.sh -l
>r-19-VM -t all -d /var/lib/libvirt/images/r-19-VM-patchdisk -p
>%template=domP%name=r-19-VM%eth2ip=10.193.17.190%eth2mask=255.255.255.0%ga
>teway=10.193.17.1%eth0ip=10.124.99.1%eth0mask=255.255.255.0%domain=cs6clou
>d.internal%dhcprange=10.124.99.1%eth0ip=169.254.1.60%eth0mask=255.255.0.0%
>type=router%disable_rp_filter=true%dns1=10.193.17.1
>
>
>Any hint is appreciated.
>
>Thanks
>
>
>Kambiz
>
>
>Alena Prokharchyk  wrote:
>> 
>> Yes, Kambiz, you followed up right, and vm id=15 is the culprit. If vm
>> id=15 is expunged, we have to clear out the reference to it from
>> user_ip_address table. Here is the flow:
>>
>> 1) Save the db dump.
>> 2) Run the query to cleanup the reference:
>>
>> Update user_ip_address set one_to_one_nat=0, instance_id=null where
>> id=
>>
>>
>>
>> Let me know how it works.
>>
>> -Alena.
>>
>> On 3/24/14, 10:55 AM, "Kambiz Darabi"  wrote:
>>
>>>Hi,
>>>
>>>I hope I have understood what you wrote and created the following query
>>>correctly:
>>>
>>>select uip.vm_id, uip.network_id, uip.public_ip_address,
>>>   n.state as nic_state, n.removed as nic_removed,
>>>   vm.state as vm_state, vm.removed as vm_removed
>>>from user_ip_address uip
>>> join nics n on uip.vm_id = n.instance_id
>>> join vm_instance vm on uip.vm_id = vm.id
>>>where uip.id in (Select ip_address_id from firewall_rules fr where
>>>fr.network_id=205);
>>>
>>>
>>>+---++---+--+---
>>>--
>>>+---++
>>>| vm_id | network_id | public_ip_address | nic_state| nic_removed
>>>| vm_state  | vm_removed |
>>>+---++---+--+---
>>>--
>>>+---++
>>>| 6 |205 | 10.193.17.169 | Allocated| NULL
>>>| Stopped   | NULL   |
>>>|10 |205 | 10.193.17.136 | Allocated| NULL
>>>| Stopped   | NULL   |
>>>|12 |205 | 10.193.17.140 | Allocated| NULL
>>>| Stopped   | NULL   |
>>>|13 |205 | 10.193.17.141 | Allocated| NULL
>>>| Stopped   | NULL   |
>>>|14 |205 | 10.193.17.142 | Allocated| NULL
>>>| Stopped   | NULL   |
>>>|15 |205 | 10.193.17.174 | Deallocating | 2014-03-18
>>>23:00:53 | Expunging | NULL   |
>>>|16 |205 | 10.193.17.103 | Allocated| NULL
>>>| Stopped   | NULL   |
>>>+---++---+--+---
>>>--
>>>+---++
>>>
>>>Is VM id 15 what you are looking for?
>>>
>>>Thank you
>>>
>>>
>>>Kambiz
>>>
>>>Alena Prokharchyk  wrote:
 
 Kambiz, can you please try one more thing.

 1) Locate all the firewall rules for your guest network (205, right?)

 Select id, ip_address_id from firewall_rules where network_id=205;

 2) Now get all static nat enabled ip addresses for those rules:

 Select vm_id, network_id from user_ip_address where id in (Select id,
 ip_address_id from firewall_rules where network_id=205);

 For each vmId/networkId combo, check if there is non-removed nic and
 non-expunged vm. There might be some incorrect static nat ip/vm
reference
 referring to vm that is removed already. If you find any, let me know
and
 I will tell you how to clean it up

 -Alena.


Re: CloudStack DR Approach (not HA)

2014-03-24 Thread Matthew Kaufman
What about using iRODS (http://www.irods.org); with a custom
Micro-Service.  Conceptually; what does everyone think?


Is there a mechanism available for end-users to create quiesced CloudStack
snapshots of running production VMs, such that applications and filesystems
are put into a consistent state prior to the snapshot being created?

Also, can anybody offer insight into how to automatically or continuously
replicate Secondary Storage across Zones or Regions, using NFS-based
Secondary Storage (not object storage), such that CloudStack users will see
any be able to deploy their Snapshots in any other Zone or Region?

If what I am describing is not yet possible with CloudStack, I would be
like to be pointed towards the part of the CloudStack roadmap that
discusses the planned architecture.




On Mon, Mar 24, 2014 at 3:11 PM, Jim Jones wrote:

> Hello,
>
> I am interested to know what everyone is using to provide disaster recovery
> for VMs running in CloudStack?
>
> Note, I am talking about true DR to another data center, not HA.  I have
> seen the previous thread where someone asked about DR, but the answer
> provided only talked about HA of VMs within the same Cluster or Zone.  This
> is not my question.
>
> I am looking for a method to maintain an up-to-date copy of a running VM,
> including its data, in another Zone or Region, such that if the first Zone
> is destroyed, the VM can be brought up in the other Zone and continue
> production.
>
> Before cloud, DR for virtualized environments was typically handled using
> SAN replication.  The VMs would be quiesced and snapshotted at regular
> intervals (e.g. hourly), and the SAN LUNs would be continuously replicated
> asynchronously.  Following this approach, if the primary site was
> destroyed, the SAN LUNs would be enabled for read-write at the secondary
> location, and the VMs could then be started there, using the last
> successful snapshot (the last consistency point).
>
> I have looked at what Amazon and Rackspace provide for their Clouds, and
> the approach seems to be user-initiated quiesced cloud snapshots, combined
> with Secondary Storage that is automatically replicated and available
> throughout their Clouds.  Therefore, if the site where the VM is running
> gets destroyed, the latest VM snapshot can be deployed from Secondary
> Storage to any other Zone.
>
> I would like to know if anybody has experience/insights using this approach
> on CloudStack, particularly using XenServer hosts.
>
> Is there a mechanism available for end-users to create quiesced CloudStack
> snapshots of running production VMs, such that applications and filesystems
> are put into a consistent state prior to the snapshot being created?
>
> Also, can anybody offer insight into how to automatically or continuously
> replicate Secondary Storage across Zones or Regions, using NFS-based
> Secondary Storage (not object storage), such that CloudStack users will see
> any be able to deploy their Snapshots in any other Zone or Region?
>
> If what I am describing is not yet possible with CloudStack, I would be
> like to be pointed towards the part of the CloudStack roadmap that
> discusses the planned architecture.
>
> Thanks,
> JJ
>


Re: Not able to download CentOS template

2014-03-24 Thread Tejas Gadaria
Hi Osay,

I am running NFS server on top of Management server,
I have mounted nfs share..

[root@xen nfs]# mount
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb1 on /nfs type ext4 (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
10.129.151.57:/nfs/secondary on /mnt/secondary type nfs
(rw,vers=4,addr=10.129.151.57,clientaddr=10.129.151.57)

Systemvm template script..

/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
-m /mnt/secondary/ -f /home/systemvmtemplate-2013-07-12-master-xen.vhd.bz2
-h xenserver -F
Uncompressing to
/usr/share/cloudstack-common/scripts/storage/secondary/935313be-3da0-42ce-bc51-b608c34e5a2e.vhd.tmp
(type bz2)...could take a long time
Moving to
/mnt/secondary/template/tmpl/1/1///935313be-3da0-42ce-bc51-b608c34e5a2e.vhd...could
take a while
Successfully installed system VM template
/home/systemvmtemplate-2013-07-12-master-xen.vhd.bz2 to
/mnt/secondary/template/tmpl/1/1/

Template in NFS storage..

[root@xen ~]# ls -lR /nfs/secondary/
/nfs/secondary/:
total 4
drwxr-xr-x 3 root root 4096 Mar 24 18:29 template

/nfs/secondary/template:
total 4
drwxr-xr-x 3 root root 4096 Mar 24 18:29 tmpl

/nfs/secondary/template/tmpl:
total 4
drwxr-xr-x 3 root root 4096 Mar 24 18:29 1

/nfs/secondary/template/tmpl/1:
total 4
drwxr-xr-x 2 root root 4096 Mar 24 18:36 1

/nfs/secondary/template/tmpl/1/1:
total 2052016
-rw-r--r-- 1 root root 2101252608 Mar 24 18:32
a874c59d-ba92-4ab5-8aaf-c6142340f8cd.vhd
-rw-r--r-- 1 root root287 Mar 24 18:36 template.properties


Added Secondary Storage & Enabled the zone.
Still giving same error .!

Regards,
Tejas


Re: Not able to download CentOS template

2014-03-24 Thread Tejas Gadaria
Hi,

Also I have flush iptables in SSVM 'iptables -F'

service cloud stop
service cloud stop
service cloud start

Nothing happen..
Then restarted cloudstack-management service

Logs on Management server indicates ...

2014-03-25 09:16:59,188 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-11:null) SeqA 9-7087: Sending Seq 9-7087:  { Ans: ,
MgmtId: 345049296663, via: 9, Ver: v1, Flags: 100010,
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2014-03-25 09:17:02,444 DEBUG [storage.download.DownloadListener]
(Timer-9:null) Scheduling timeout at 3 ms, TEMPLATE: 5 at host 0
*2014-03-25 09:17:02,445 DEBUG [storage.download.DownloadListener]
(Timer-9:null) NOT_DOWNLOADED first timeout: checking again , TEMPLATE: 5
at host 0*
2014-03-25 09:17:09,182 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-12:null) SeqA 9-7088: Processing Seq 9-7088:  { Cmd ,
MgmtId: -1, via: 9, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":10,"_loadInfo":"{\n
\"connections\": []\n}","wait":0}}] }

After log in to CS, *Template status: ' Timeout waiting for response from
storage host'*

Need help on this


Regards,
Tejas


Re: Error in terminal:No package cloud-client availble

2014-03-24 Thread ilya musayev

You are using a really old version of cloudstack and OS.

I suggest using CentOS6 - 64bit and atleast cloudstack 4.2.1, though ACS 
4.3 will come out tomorrow.






On 3/24/14, 3:01 AM, Ekta Agrawal wrote:

Hi,

I am new to cloud stack,I have installed CentOs 5 of x386 on virtual
machine and followed these steps for installing cloudstack:

1)logged in as root
2)created a file /etc/yum/repos.d/cloudstack.repo
copied:
  [cloudstack]
name=cloudstack
baseurl=http://cloudstack.apt-get.eu/rhel/4.0/
enabled=1
gpgcheck=0

3)pinged www.cloudstack.org

4)installed ntp

5)Now I am trying to install cloud-client:

This is the message I am getting.

  [root@localhost user]# yum install cloud-client
extras100% |=| 2.1 kB00:00

Setting up Install Process
Parsing package install arguments
No package cloud-client available.
Nothing to do

Please provide a solution ,how to proceed on this.

Regards,
Ekta





Re: CloudStack DR Approach (not HA)

2014-03-24 Thread ilya musayev
I suggest attending this talk @ CCNA 14 that is going to explain some of 
what mentioned here.


http://cloudstackcollabconference2014.sched.org/event/f2162b8cb2fcaf4c0290a862ad5524ca?iframe=yes&w=100&sidebar=yes&bg=no#?iframe=yes&w=100&sidebar=yes&bg=no

Alena is going to explain how she wrote Disaster Recovery Orchestration 
Solution" on top of CloudStack - using APIs. This is not going to be 
open sourced (yet), but talk does sound promising and something an 
average use can do on their own with some programing experience.


Below is copy and paste of the topic:

- My experience writing Citrix proprietary service "Disaster Recovery 
Orchestration Solution" on top of CloudStack. It implements replicating 
(and later on synching up with the latest changes) CloudStack VM object 
along with all its data (networking rules, secondary ips for VM's nics, 
userdata, etc) from one Availability Zone to another, without direct DB 
modification, using just CloudStack APIs. The service can be used as a 
part of Disaster Recovery Solution if deployed with partner products for 
actual storage data replication. Although the component code is not an 
open source, I think the feature high level architecture design overview 
as well as the pitfalls I've faced/overcame while writing integration 
component on top of CloudStack, can be usefu



On 3/24/14, 2:03 PM, Kristoffer Sheather @ CloudCentral wrote:

+1 for this feature! We get questions from end-users about this
functionality all the time.
   
  Regards,


Kristoffer Sheather
Cloud Central
Scale Your Data Center In The Cloud
Phone: 1300 144 007 | Mobile: +61 414 573 130 | Email:
k...@cloudcentral.com.au
LinkedIn:   | Skype: kristoffer.sheather | Twitter:
http://twitter.com/kristofferjon

   



  From: "Geoff Higginbottom" 
Sent: Tuesday, March 25, 2014 7:57 AM
To: "users@cloudstack.apache.org" ,
"k...@cloudcentral.com.au" 
Subject: RE: CloudStack DR Approach (not HA)
ShapeBlue are currently working on a solution for Zone Failover of VMs, I
cannot confirm which version it will be included in, but 4.5 is a
possibility.

With regards to the replication of volume snapshots, that is effectively
available today using the S3 backed secondary storage feature.

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbot...@shapeblue.com

-Original Message-
From: Kristoffer Sheather @ CloudCentral
[mailto:kristoffer.sheat...@cloudcentral.com.au]
Sent: 24 March 2014 20:53
To: users@cloudstack.apache.org
Subject: re: CloudStack DR Approach (not HA)

Hi Jim,

Very good questions and I am keen to see the answers as well. CloudStack
definitely needs to support this scenario (I don't believe it currently
does). Cross zone replication of snapshots with the ability to bring up
VM's from those snapshots is something I'd like to see too.

Regards,

Kristoffer Sheather
Cloud Central
Scale Your Data Center In The Cloud
Phone: 1300 144 007 | Mobile: +61 414 573 130 | Email:
k...@cloudcentral.com.au
LinkedIn: | Skype: kristoffer.sheather | Twitter:
http://twitter.com/kristofferjon


From: "Jim Jones" 
Sent: Tuesday, March 25, 2014 6:11 AM
To: users@cloudstack.apache.org
Subject: CloudStack DR Approach (not HA)
Hello,

I am interested to know what everyone is using to provide disaster recovery
for VMs running in CloudStack?

Note, I am talking about true DR to another data center, not HA. I have
seen the previous thread where someone asked about DR, but the answer
provided only talked about HA of VMs within the same Cluster or Zone. This
is not my question.

I am looking for a method to maintain an up-to-date copy of a running VM,
including its data, in another Zone or Region, such that if the first Zone
is destroyed, the VM can be brought up in the other Zone and continue
production.

Before cloud, DR for virtualized environments was typically handled using
SAN replication. The VMs would be quiesced and snapshotted at regular
intervals (e.g. hourly), and the SAN LUNs would be continuously replicated
asynchronously. Following this approach, if the primary site was destroyed,
the SAN LUNs would be enabled for read-write at the secondary location, and
the VMs could then be started there, using the last successful snapshot
(the last consistency point).

I have looked at what Amazon and Rackspace provide for their Clouds, and
the approach seems to be user-initiated quiesced cloud snapshots, combined
with Secondary Storage that is automatically replicated and available
throughout their Clouds. Therefore, if the site where the VM is running
gets destroyed, the latest VM snapshot can be deployed from Secondary
Storage to any other Zone.

I would like to know if anybody has experience/insights using this approach
on CloudStack, particularly using XenServer hosts.

Is there a mechanism available for end-users to create quiesced CloudStack
snapshots of running producti

Re: CloudStack DR Approach (not HA)

2014-03-24 Thread ilya musayev

http://cloudstackcollabconference2014.sched.org/event/f2162b8cb2fcaf4c0290a862ad5524ca?iframe=no&w=100&sidebar=yes&bg=no#.UzEAQdzrX7I

What about using iRODS (http://www.irods.org); with a custom
Micro-Service.  Conceptually; what does everyone think?


Is there a mechanism available for end-users to create quiesced CloudStack
snapshots of running production VMs, such that applications and filesystems
are put into a consistent state prior to the snapshot being created?

Also, can anybody offer insight into how to automatically or continuously
replicate Secondary Storage across Zones or Regions, using NFS-based
Secondary Storage (not object storage), such that CloudStack users will see
any be able to deploy their Snapshots in any other Zone or Region?

If what I am describing is not yet possible with CloudStack, I would be
like to be pointed towards the part of the CloudStack roadmap that
discusses the planned architecture.




On Mon, Mar 24, 2014 at 3:11 PM, Jim Jones wrote:


Hello,

I am interested to know what everyone is using to provide disaster recovery
for VMs running in CloudStack?

Note, I am talking about true DR to another data center, not HA.  I have
seen the previous thread where someone asked about DR, but the answer
provided only talked about HA of VMs within the same Cluster or Zone.  This
is not my question.

I am looking for a method to maintain an up-to-date copy of a running VM,
including its data, in another Zone or Region, such that if the first Zone
is destroyed, the VM can be brought up in the other Zone and continue
production.

Before cloud, DR for virtualized environments was typically handled using
SAN replication.  The VMs would be quiesced and snapshotted at regular
intervals (e.g. hourly), and the SAN LUNs would be continuously replicated
asynchronously.  Following this approach, if the primary site was
destroyed, the SAN LUNs would be enabled for read-write at the secondary
location, and the VMs could then be started there, using the last
successful snapshot (the last consistency point).

I have looked at what Amazon and Rackspace provide for their Clouds, and
the approach seems to be user-initiated quiesced cloud snapshots, combined
with Secondary Storage that is automatically replicated and available
throughout their Clouds.  Therefore, if the site where the VM is running
gets destroyed, the latest VM snapshot can be deployed from Secondary
Storage to any other Zone.

I would like to know if anybody has experience/insights using this approach
on CloudStack, particularly using XenServer hosts.

Is there a mechanism available for end-users to create quiesced CloudStack
snapshots of running production VMs, such that applications and filesystems
are put into a consistent state prior to the snapshot being created?

Also, can anybody offer insight into how to automatically or continuously
replicate Secondary Storage across Zones or Regions, using NFS-based
Secondary Storage (not object storage), such that CloudStack users will see
any be able to deploy their Snapshots in any other Zone or Region?

If what I am describing is not yet possible with CloudStack, I would be
like to be pointed towards the part of the CloudStack roadmap that
discusses the planned architecture.

Thanks,
JJ





Re: custom DNS entry for secondary IP address

2014-03-24 Thread Jayapal Reddy Uradi
Hi Ingo,

You can make entry into /etc/hosts in VR for your secondary ip with your 
desired name.

Thanks,
Jayapal

On 24-Mar-2014, at 8:57 PM, "Jochim, Ingo"  wrote:

> Hi all,
> 
> is it possible to get a custom DNS entry for a secondary IP address of an 
> instance?
> 
> I added a second IP address to my instance but like to use a different name 
> for resolution (not the hostname).
> 
> Thanks,
> Ingo
> 
> -- 
> This email was Virus checked by Astaro Security Gateway. http://www.astaro.com



RE: Unable to start router vm

2014-03-24 Thread Sanjeev Neelarapu
Hi Sugandh,

Log says that there is no suitable storage pool for creating root volume for 
VR. Did the vm come up atleast once in your setup before restarting the network?

-Sanjeev

-Original Message-
From: Sugandh S [mailto:s.suga...@rocketmail.com] 
Sent: Monday, March 24, 2014 12:20 PM
To: users@cloudstack.apache.org
Subject: Re: Unable to start router vm

Here are the logs for when I start the router vm and when I start the instance:

http://pastebin.com/kkMK8G19






On Monday, 24 March 2014 12:16 PM, Sugandh S  wrote:
 
Hi,

I am using Cloudstack 4.2 and I've done a basic installation of it. I restarted 
the network and the router vm got destroyed. Now, when I start an instance, the 
router vm gets created but it won't start. Starting it manually would give me 
this error on the UI:

Unable to create a deployment for VM[DomainRouter|r-15-VM]

Any help is really appreciated.

Thanks,
Sugandh


Timeout waiting for response from storage host

2014-03-24 Thread sandeep khandekar
Dear All,

I am having the following error in Templates - >CentOS 5.5(64-bit) no GUI
(KVM)

Timeout waiting for response from storage host

Any help friends.

-- 
SANDEEP KHANDEKAR
Assistant Professor
Department of Computer science and engineering
Sreenidhi Institute of science and Technology
Hyderabad


RE: Not able to download CentOS template

2014-03-24 Thread Suresh Sadhu
What is the value  set for this global configuration : 
secstorage.allowed.internal.sites  

Set global configuration secstorage.allowed.internal.sites  to your internal 
network  cidr and restart the management server.

Regards
Sadhu


-Original Message-
From: Tejas Gadaria [mailto:refond.g...@gmail.com] 
Sent: 25 March 2014 08:50
To: users@cloudstack.apache.org; d...@cloudstack.apache.org
Subject: Re: Not able to download CentOS template

Hi Osay,

I am running NFS server on top of Management server, I have mounted nfs share..

[root@xen nfs]# mount
/dev/mapper/VolGroup-lv_root on / type ext4 (rw) proc on /proc type proc (rw) 
sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts 
(rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on 
/var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb1 on /nfs type ext4 (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
10.129.151.57:/nfs/secondary on /mnt/secondary type nfs
(rw,vers=4,addr=10.129.151.57,clientaddr=10.129.151.57)

Systemvm template script..

/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
-m /mnt/secondary/ -f /home/systemvmtemplate-2013-07-12-master-xen.vhd.bz2
-h xenserver -F
Uncompressing to
/usr/share/cloudstack-common/scripts/storage/secondary/935313be-3da0-42ce-bc51-b608c34e5a2e.vhd.tmp
(type bz2)...could take a long time
Moving to
/mnt/secondary/template/tmpl/1/1///935313be-3da0-42ce-bc51-b608c34e5a2e.vhd...could
take a while
Successfully installed system VM template
/home/systemvmtemplate-2013-07-12-master-xen.vhd.bz2 to 
/mnt/secondary/template/tmpl/1/1/

Template in NFS storage..

[root@xen ~]# ls -lR /nfs/secondary/
/nfs/secondary/:
total 4
drwxr-xr-x 3 root root 4096 Mar 24 18:29 template

/nfs/secondary/template:
total 4
drwxr-xr-x 3 root root 4096 Mar 24 18:29 tmpl

/nfs/secondary/template/tmpl:
total 4
drwxr-xr-x 3 root root 4096 Mar 24 18:29 1

/nfs/secondary/template/tmpl/1:
total 4
drwxr-xr-x 2 root root 4096 Mar 24 18:36 1

/nfs/secondary/template/tmpl/1/1:
total 2052016
-rw-r--r-- 1 root root 2101252608 Mar 24 18:32 
a874c59d-ba92-4ab5-8aaf-c6142340f8cd.vhd
-rw-r--r-- 1 root root287 Mar 24 18:36 template.properties


Added Secondary Storage & Enabled the zone.
Still giving same error .!

Regards,
Tejas


Re: Not able to download CentOS template

2014-03-24 Thread Tejas Gadaria
Hi Suresh,

'secstorage.allowed.internal.sites' already set to Management server IP
10.129.151.57/24 .

Regards,
Tejas


On Tue, Mar 25, 2014 at 11:01 AM, Suresh Sadhu wrote:

> What is the value  set for this global configuration :
> secstorage.allowed.internal.sites
>
> Set global configuration secstorage.allowed.internal.sites  to your
> internal network  cidr and restart the management server.
>
> Regards
> Sadhu
>
>
> -Original Message-
> From: Tejas Gadaria [mailto:refond.g...@gmail.com]
> Sent: 25 March 2014 08:50
> To: users@cloudstack.apache.org; d...@cloudstack.apache.org
> Subject: Re: Not able to download CentOS template
>
> Hi Osay,
>
> I am running NFS server on top of Management server, I have mounted nfs
> share..
>
> [root@xen nfs]# mount
> /dev/mapper/VolGroup-lv_root on / type ext4 (rw) proc on /proc type proc
> (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts
> (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw)
> /dev/sda1 on /boot type ext4 (rw)
> none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on
> /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
> /dev/sdb1 on /nfs type ext4 (rw)
> nfsd on /proc/fs/nfsd type nfsd (rw)
> 10.129.151.57:/nfs/secondary on /mnt/secondary type nfs
> (rw,vers=4,addr=10.129.151.57,clientaddr=10.129.151.57)
>
> Systemvm template script..
>
>
> /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
> -m /mnt/secondary/ -f /home/systemvmtemplate-2013-07-12-master-xen.vhd.bz2
> -h xenserver -F
> Uncompressing to
>
> /usr/share/cloudstack-common/scripts/storage/secondary/935313be-3da0-42ce-bc51-b608c34e5a2e.vhd.tmp
> (type bz2)...could take a long time
> Moving to
>
> /mnt/secondary/template/tmpl/1/1///935313be-3da0-42ce-bc51-b608c34e5a2e.vhd...could
> take a while
> Successfully installed system VM template
> /home/systemvmtemplate-2013-07-12-master-xen.vhd.bz2 to
> /mnt/secondary/template/tmpl/1/1/
>
> Template in NFS storage..
>
> [root@xen ~]# ls -lR /nfs/secondary/
> /nfs/secondary/:
> total 4
> drwxr-xr-x 3 root root 4096 Mar 24 18:29 template
>
> /nfs/secondary/template:
> total 4
> drwxr-xr-x 3 root root 4096 Mar 24 18:29 tmpl
>
> /nfs/secondary/template/tmpl:
> total 4
> drwxr-xr-x 3 root root 4096 Mar 24 18:29 1
>
> /nfs/secondary/template/tmpl/1:
> total 4
> drwxr-xr-x 2 root root 4096 Mar 24 18:36 1
>
> /nfs/secondary/template/tmpl/1/1:
> total 2052016
> -rw-r--r-- 1 root root 2101252608 Mar 24 18:32
> a874c59d-ba92-4ab5-8aaf-c6142340f8cd.vhd
> -rw-r--r-- 1 root root287 Mar 24 18:36 template.properties
>
>
> Added Secondary Storage & Enabled the zone.
> Still giving same error .!
>
> Regards,
> Tejas
>


Re: Unable to start router vm

2014-03-24 Thread Sugandh S
Hi Sanjeev,

After the network restart, the router vm didn't come up even once. I deleted 
the CS database and did a basic installation again, now everything is working.

Sugandh





On Tuesday, 25 March 2014 10:24 AM, Sanjeev Neelarapu 
 wrote:
 
Hi Sugandh,

Log says that there is no suitable storage pool for creating root volume for 
VR. Did the vm come up atleast once in your setup before restarting the network?

-Sanjeev


-Original Message-
From: Sugandh S [mailto:s.suga...@rocketmail.com] 
Sent: Monday, March 24, 2014 12:20 PM
To: users@cloudstack.apache.org
Subject: Re: Unable to start router vm

Here are the logs for when I start the router vm and when I start the instance:

http://pastebin.com/kkMK8G19






On Monday, 24 March 2014 12:16 PM, Sugandh S  wrote:

Hi,

I am using Cloudstack 4.2 and I've done a basic installation of it. I restarted 
the network and the router vm got destroyed. Now, when I start an instance, the 
router vm gets created but it won't start. Starting it manually would give me 
this error on the UI:

Unable to create a deployment for VM[DomainRouter|r-15-VM]

Any help is really appreciated.

Thanks,
Sugandh

RE: CloudStack DR Approach (not HA)

2014-03-24 Thread Suresh Sadhu
+1

-Original Message-
From: Kristoffer Sheather @ CloudCentral 
[mailto:kristoffer.sheat...@cloudcentral.com.au] 
Sent: 25 March 2014 02:34
To: users@cloudstack.apache.org
Subject: RE: CloudStack DR Approach (not HA)

+1 for this feature! We get questions from end-users about this
functionality all the time.
  
 Regards,

Kristoffer Sheather
Cloud Central
Scale Your Data Center In The Cloud   
Phone: 1300 144 007 | Mobile: +61 414 573 130 | Email: 
k...@cloudcentral.com.au
LinkedIn:   | Skype: kristoffer.sheather | Twitter: 
http://twitter.com/kristofferjon

  


 From: "Geoff Higginbottom" 
Sent: Tuesday, March 25, 2014 7:57 AM
To: "users@cloudstack.apache.org" , 
"k...@cloudcentral.com.au" 
Subject: RE: CloudStack DR Approach (not HA)   
ShapeBlue are currently working on a solution for Zone Failover of VMs, I 
cannot confirm which version it will be included in, but 4.5 is a possibility.

With regards to the replication of volume snapshots, that is effectively 
available today using the S3 backed secondary storage feature.

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbot...@shapeblue.com

-Original Message-
From: Kristoffer Sheather @ CloudCentral 
[mailto:kristoffer.sheat...@cloudcentral.com.au]
Sent: 24 March 2014 20:53
To: users@cloudstack.apache.org
Subject: re: CloudStack DR Approach (not HA)

Hi Jim,

Very good questions and I am keen to see the answers as well. CloudStack 
definitely needs to support this scenario (I don't believe it currently does). 
Cross zone replication of snapshots with the ability to bring up VM's from 
those snapshots is something I'd like to see too.

Regards,

Kristoffer Sheather
Cloud Central
Scale Your Data Center In The Cloud
Phone: 1300 144 007 | Mobile: +61 414 573 130 | Email:
k...@cloudcentral.com.au
LinkedIn: | Skype: kristoffer.sheather | Twitter:
http://twitter.com/kristofferjon


From: "Jim Jones" 
Sent: Tuesday, March 25, 2014 6:11 AM
To: users@cloudstack.apache.org
Subject: CloudStack DR Approach (not HA) Hello,

I am interested to know what everyone is using to provide disaster recovery for 
VMs running in CloudStack?

Note, I am talking about true DR to another data center, not HA. I have seen 
the previous thread where someone asked about DR, but the answer provided only 
talked about HA of VMs within the same Cluster or Zone. This is not my question.

I am looking for a method to maintain an up-to-date copy of a running VM, 
including its data, in another Zone or Region, such that if the first Zone is 
destroyed, the VM can be brought up in the other Zone and continue production.

Before cloud, DR for virtualized environments was typically handled using SAN 
replication. The VMs would be quiesced and snapshotted at regular intervals 
(e.g. hourly), and the SAN LUNs would be continuously replicated 
asynchronously. Following this approach, if the primary site was destroyed, the 
SAN LUNs would be enabled for read-write at the secondary location, and the VMs 
could then be started there, using the last successful snapshot (the last 
consistency point).

I have looked at what Amazon and Rackspace provide for their Clouds, and the 
approach seems to be user-initiated quiesced cloud snapshots, combined with 
Secondary Storage that is automatically replicated and available throughout 
their Clouds. Therefore, if the site where the VM is running gets destroyed, 
the latest VM snapshot can be deployed from Secondary Storage to any other Zone.

I would like to know if anybody has experience/insights using this approach on 
CloudStack, particularly using XenServer hosts.

Is there a mechanism available for end-users to create quiesced CloudStack 
snapshots of running production VMs, such that applications and filesystems are 
put into a consistent state prior to the snapshot being created?

Also, can anybody offer insight into how to automatically or continuously 
replicate Secondary Storage across Zones or Regions, using NFS-based Secondary 
Storage (not object storage), such that CloudStack users will see any be able 
to deploy their Snapshots in any other Zone or Region?

If what I am describing is not yet possible with CloudStack, I would be like to 
be pointed towards the part of the CloudStack roadmap that discusses the 
planned architecture.

Thanks,
JJ

Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure
Support offers the 
best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2.1
training
18th-19th February 2014, Brazil. 
Classroom
17th-23rd March 2014, Region A. Instructor led, 
On-line
24th-28th March 2014, Region B. Instructor led

RE: Not able to download CentOS template

2014-03-24 Thread Suresh Sadhu
Ok.

What is the value set  for the "system.vm.use.local.storage" and I hope you 
already  enabled  " use local storage " flag during zone creation.

If "system.vm.use.local.storage" set to false then  please change to  true and 
restart your MS.
Regards
sadhu

-Original Message-
From: Tejas Gadaria [mailto:refond.g...@gmail.com] 
Sent: 25 March 2014 11:09
To: d...@cloudstack.apache.org
Cc: users@cloudstack.apache.org
Subject: Re: Not able to download CentOS template

Hi Suresh,

'secstorage.allowed.internal.sites' already set to Management server IP
10.129.151.57/24 .

Regards,
Tejas


On Tue, Mar 25, 2014 at 11:01 AM, Suresh Sadhu wrote:

> What is the value  set for this global configuration :
> secstorage.allowed.internal.sites
>
> Set global configuration secstorage.allowed.internal.sites  to your 
> internal network  cidr and restart the management server.
>
> Regards
> Sadhu
>
>
> -Original Message-
> From: Tejas Gadaria [mailto:refond.g...@gmail.com]
> Sent: 25 March 2014 08:50
> To: users@cloudstack.apache.org; d...@cloudstack.apache.org
> Subject: Re: Not able to download CentOS template
>
> Hi Osay,
>
> I am running NFS server on top of Management server, I have mounted 
> nfs share..
>
> [root@xen nfs]# mount
> /dev/mapper/VolGroup-lv_root on / type ext4 (rw) proc on /proc type 
> proc
> (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts
> (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw)
> /dev/sda1 on /boot type ext4 (rw)
> none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on 
> /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
> /dev/sdb1 on /nfs type ext4 (rw)
> nfsd on /proc/fs/nfsd type nfsd (rw)
> 10.129.151.57:/nfs/secondary on /mnt/secondary type nfs
> (rw,vers=4,addr=10.129.151.57,clientaddr=10.129.151.57)
>
> Systemvm template script..
>
>
> /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-s
> ys-tmplt -m /mnt/secondary/ -f 
> /home/systemvmtemplate-2013-07-12-master-xen.vhd.bz2
> -h xenserver -F
> Uncompressing to
>
> /usr/share/cloudstack-common/scripts/storage/secondary/935313be-3da0-4
> 2ce-bc51-b608c34e5a2e.vhd.tmp
> (type bz2)...could take a long time
> Moving to
>
> /mnt/secondary/template/tmpl/1/1///935313be-3da0-42ce-bc51-b608c34e5a2
> e.vhd...could
> take a while
> Successfully installed system VM template
> /home/systemvmtemplate-2013-07-12-master-xen.vhd.bz2 to 
> /mnt/secondary/template/tmpl/1/1/
>
> Template in NFS storage..
>
> [root@xen ~]# ls -lR /nfs/secondary/
> /nfs/secondary/:
> total 4
> drwxr-xr-x 3 root root 4096 Mar 24 18:29 template
>
> /nfs/secondary/template:
> total 4
> drwxr-xr-x 3 root root 4096 Mar 24 18:29 tmpl
>
> /nfs/secondary/template/tmpl:
> total 4
> drwxr-xr-x 3 root root 4096 Mar 24 18:29 1
>
> /nfs/secondary/template/tmpl/1:
> total 4
> drwxr-xr-x 2 root root 4096 Mar 24 18:36 1
>
> /nfs/secondary/template/tmpl/1/1:
> total 2052016
> -rw-r--r-- 1 root root 2101252608 Mar 24 18:32 
> a874c59d-ba92-4ab5-8aaf-c6142340f8cd.vhd
> -rw-r--r-- 1 root root287 Mar 24 18:36 template.properties
>
>
> Added Secondary Storage & Enabled the zone.
> Still giving same error .!
>
> Regards,
> Tejas
>


Re: Not able to download CentOS template

2014-03-24 Thread Tejas Gadaria
Hi Suresh,

Yes "system.vm.use.local.storage" is already set to "true"

Regards,
Tejas


On Tue, Mar 25, 2014 at 12:18 PM, Suresh Sadhu wrote:

> Ok.
>
> What is the value set  for the "system.vm.use.local.storage" and I hope
> you already  enabled  " use local storage " flag during zone creation.
>
> If "system.vm.use.local.storage" set to false then  please change to  true
> and restart your MS.
> Regards
> sadhu
>
> -Original Message-
> From: Tejas Gadaria [mailto:refond.g...@gmail.com]
> Sent: 25 March 2014 11:09
> To: d...@cloudstack.apache.org
> Cc: users@cloudstack.apache.org
> Subject: Re: Not able to download CentOS template
>
> Hi Suresh,
>
> 'secstorage.allowed.internal.sites' already set to Management server IP
> 10.129.151.57/24 .
>
> Regards,
> Tejas
>
>
> On Tue, Mar 25, 2014 at 11:01 AM, Suresh Sadhu  >wrote:
>
> > What is the value  set for this global configuration :
> > secstorage.allowed.internal.sites
> >
> > Set global configuration secstorage.allowed.internal.sites  to your
> > internal network  cidr and restart the management server.
> >
> > Regards
> > Sadhu
> >
> >
> > -Original Message-
> > From: Tejas Gadaria [mailto:refond.g...@gmail.com]
> > Sent: 25 March 2014 08:50
> > To: users@cloudstack.apache.org; d...@cloudstack.apache.org
> > Subject: Re: Not able to download CentOS template
> >
> > Hi Osay,
> >
> > I am running NFS server on top of Management server, I have mounted
> > nfs share..
> >
> > [root@xen nfs]# mount
> > /dev/mapper/VolGroup-lv_root on / type ext4 (rw) proc on /proc type
> > proc
> > (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts
> > (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw)
> > /dev/sda1 on /boot type ext4 (rw)
> > none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on
> > /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
> > /dev/sdb1 on /nfs type ext4 (rw)
> > nfsd on /proc/fs/nfsd type nfsd (rw)
> > 10.129.151.57:/nfs/secondary on /mnt/secondary type nfs
> > (rw,vers=4,addr=10.129.151.57,clientaddr=10.129.151.57)
> >
> > Systemvm template script..
> >
> >
> > /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-s
> > ys-tmplt -m /mnt/secondary/ -f
> > /home/systemvmtemplate-2013-07-12-master-xen.vhd.bz2
> > -h xenserver -F
> > Uncompressing to
> >
> > /usr/share/cloudstack-common/scripts/storage/secondary/935313be-3da0-4
> > 2ce-bc51-b608c34e5a2e.vhd.tmp
> > (type bz2)...could take a long time
> > Moving to
> >
> > /mnt/secondary/template/tmpl/1/1///935313be-3da0-42ce-bc51-b608c34e5a2
> > e.vhd...could
> > take a while
> > Successfully installed system VM template
> > /home/systemvmtemplate-2013-07-12-master-xen.vhd.bz2 to
> > /mnt/secondary/template/tmpl/1/1/
> >
> > Template in NFS storage..
> >
> > [root@xen ~]# ls -lR /nfs/secondary/
> > /nfs/secondary/:
> > total 4
> > drwxr-xr-x 3 root root 4096 Mar 24 18:29 template
> >
> > /nfs/secondary/template:
> > total 4
> > drwxr-xr-x 3 root root 4096 Mar 24 18:29 tmpl
> >
> > /nfs/secondary/template/tmpl:
> > total 4
> > drwxr-xr-x 3 root root 4096 Mar 24 18:29 1
> >
> > /nfs/secondary/template/tmpl/1:
> > total 4
> > drwxr-xr-x 2 root root 4096 Mar 24 18:36 1
> >
> > /nfs/secondary/template/tmpl/1/1:
> > total 2052016
> > -rw-r--r-- 1 root root 2101252608 Mar 24 18:32
> > a874c59d-ba92-4ab5-8aaf-c6142340f8cd.vhd
> > -rw-r--r-- 1 root root287 Mar 24 18:36 template.properties
> >
> >
> > Added Secondary Storage & Enabled the zone.
> > Still giving same error .!
> >
> > Regards,
> > Tejas
> >
>