You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by chris snow <ch...@gmail.com> on 2014/02/24 09:18:22 UTC
devcloud - can't mount 192.168.56.10:/opt/storage/secondary/template/tmpl/1/1
I've fixed one issue with the new devcloud environment that I'm
working on, but I'm now running into another issue when running python
../marvin/marvin/deployDataCenter.py -i devcloud.cfg
WARN [c.c.h.x.r.XenServerStorageProcessor]
(DirectAgent-5:ctx-c5ad1fa5) can't mount
192.168.56.10:/opt/storage/secondary/template/tmpl/1/1 to
/var/run/cloud_mount/ad3779f0-a29d-42c0-a894-9f5198e46022
WARN [c.c.h.x.r.XenServerStorageProcessor]
(DirectAgent-5:ctx-c5ad1fa5) Catch Exception
com.cloud.utils.exception.CloudRuntimeException for template + due to
com.cloud.utils.exception.CloudRuntimeException: can't mount
192.168.56.10:/opt/storage/secondary/template/tmpl/1/1 to
/var/run/cloud_mount/ad3779f0-a29d-42c0-a894-9f5198e46022
com.cloud.utils.exception.CloudRuntimeException: can't mount
192.168.56.10:/opt/storage/secondary/
See here for more information: https://github.com/snowch/devcloud/issues/15
The only nfs setup that I'm doing is here:
https://github.com/snowch/devcloud/blob/master/packer/scripts/postinstall_nfs.sh
Any pointers to help me resolve this will be gratefully received!
Many thanks.
Chris
Re: devcloud - can't mount 192.168.56.10:/opt/storage/secondary/template/tmpl/1/1
Posted by chris snow <ch...@gmail.com>.
Ah, just noticed the link on Rohit's page to here [1]. Looks like the
packer build will need to checkout and build cloudstack, install the
templates and then remove the install and m2 dir afterwards.
---
[1] http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/Installation_Guide/management-server-install-flow.html#prepare-system-vm-template
On Tue, Feb 25, 2014 at 11:36 PM, chris snow <ch...@gmail.com> wrote:
> I have re-checked Rohit's blog page and also checked the devcloud2
> box, and I have mistakenly thought that the line beginning with '$
> #preseed ..' was a comment, but instead it seems to be another step
> that I needed to perform.
>
> The steps on Rohit's blog are:
>
> $ mkdir -p /opt/storage/secondary
> $ mkdir -p /opt/storage/primary
> $ hostuuid=`xe host-list |grep uuid|awk '{print $5}'`
> $ xe sr-create host-uuid=$hostuuid name-label=local-storage
> shared=false type=file device-config:location=/opt/storage/primary
> $ echo "/opt/storage/secondary
> *(rw,no_subtree_check,no_root_squash,fsid=0)" > /etc/exports
> $ #preseed systemvm template, may be copy files from devcloud's
> /opt/storage/secondary
> $ /etc/init.d/nfs-kernel-server restart
>
> Rohit's devcloud2 environment /opt/storage/secondary folder looks like this:
>
> root@devcloud:~# tree /opt/storage/secondary/
> /opt/storage/secondary/
> └── template
> └── tmpl
> └── 1
> ├── 1
> │ ├── edd5d5e5-b363-4926-a85b-d742ddd4a801.vhd
> │ └── template.properties
> └── 5
> ├── ce5b212e-215a-3461-94fb-814a635b2215.vhd
> └── template.properties
>
> 5 directories, 4 files
>
> Question 1) Am I correct in thinking that preseed'ing is a step I need
> to perform?
> Question 2) How do I preseed to create the /opt/storage/secondary
> structure as shown above?
>
> Many thanks,
>
> Chris
>
> On Mon, Feb 24, 2014 at 8:18 AM, chris snow <ch...@gmail.com> wrote:
>> I've fixed one issue with the new devcloud environment that I'm
>> working on, but I'm now running into another issue when running python
>> ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
>>
>> WARN [c.c.h.x.r.XenServerStorageProcessor]
>> (DirectAgent-5:ctx-c5ad1fa5) can't mount
>> 192.168.56.10:/opt/storage/secondary/template/tmpl/1/1 to
>> /var/run/cloud_mount/ad3779f0-a29d-42c0-a894-9f5198e46022
>> WARN [c.c.h.x.r.XenServerStorageProcessor]
>> (DirectAgent-5:ctx-c5ad1fa5) Catch Exception
>> com.cloud.utils.exception.CloudRuntimeException for template + due to
>> com.cloud.utils.exception.CloudRuntimeException: can't mount
>> 192.168.56.10:/opt/storage/secondary/template/tmpl/1/1 to
>> /var/run/cloud_mount/ad3779f0-a29d-42c0-a894-9f5198e46022
>> com.cloud.utils.exception.CloudRuntimeException: can't mount
>> 192.168.56.10:/opt/storage/secondary/
>>
>> See here for more information: https://github.com/snowch/devcloud/issues/15
>>
>> The only nfs setup that I'm doing is here:
>> https://github.com/snowch/devcloud/blob/master/packer/scripts/postinstall_nfs.sh
>>
>> Any pointers to help me resolve this will be gratefully received!
>>
>> Many thanks.
>>
>> Chris
>
>
>
> --
> Check out my professional profile and connect with me on LinkedIn.
> http://lnkd.in/cw5k69
--
Check out my professional profile and connect with me on LinkedIn.
http://lnkd.in/cw5k69
Re: devcloud - can't mount 192.168.56.10:/opt/storage/secondary/template/tmpl/1/1
Posted by chris snow <ch...@gmail.com>.
I have re-checked Rohit's blog page and also checked the devcloud2
box, and I have mistakenly thought that the line beginning with '$
#preseed ..' was a comment, but instead it seems to be another step
that I needed to perform.
The steps on Rohit's blog are:
$ mkdir -p /opt/storage/secondary
$ mkdir -p /opt/storage/primary
$ hostuuid=`xe host-list |grep uuid|awk '{print $5}'`
$ xe sr-create host-uuid=$hostuuid name-label=local-storage
shared=false type=file device-config:location=/opt/storage/primary
$ echo "/opt/storage/secondary
*(rw,no_subtree_check,no_root_squash,fsid=0)" > /etc/exports
$ #preseed systemvm template, may be copy files from devcloud's
/opt/storage/secondary
$ /etc/init.d/nfs-kernel-server restart
Rohit's devcloud2 environment /opt/storage/secondary folder looks like this:
root@devcloud:~# tree /opt/storage/secondary/
/opt/storage/secondary/
└── template
└── tmpl
└── 1
├── 1
│ ├── edd5d5e5-b363-4926-a85b-d742ddd4a801.vhd
│ └── template.properties
└── 5
├── ce5b212e-215a-3461-94fb-814a635b2215.vhd
└── template.properties
5 directories, 4 files
Question 1) Am I correct in thinking that preseed'ing is a step I need
to perform?
Question 2) How do I preseed to create the /opt/storage/secondary
structure as shown above?
Many thanks,
Chris
On Mon, Feb 24, 2014 at 8:18 AM, chris snow <ch...@gmail.com> wrote:
> I've fixed one issue with the new devcloud environment that I'm
> working on, but I'm now running into another issue when running python
> ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
>
> WARN [c.c.h.x.r.XenServerStorageProcessor]
> (DirectAgent-5:ctx-c5ad1fa5) can't mount
> 192.168.56.10:/opt/storage/secondary/template/tmpl/1/1 to
> /var/run/cloud_mount/ad3779f0-a29d-42c0-a894-9f5198e46022
> WARN [c.c.h.x.r.XenServerStorageProcessor]
> (DirectAgent-5:ctx-c5ad1fa5) Catch Exception
> com.cloud.utils.exception.CloudRuntimeException for template + due to
> com.cloud.utils.exception.CloudRuntimeException: can't mount
> 192.168.56.10:/opt/storage/secondary/template/tmpl/1/1 to
> /var/run/cloud_mount/ad3779f0-a29d-42c0-a894-9f5198e46022
> com.cloud.utils.exception.CloudRuntimeException: can't mount
> 192.168.56.10:/opt/storage/secondary/
>
> See here for more information: https://github.com/snowch/devcloud/issues/15
>
> The only nfs setup that I'm doing is here:
> https://github.com/snowch/devcloud/blob/master/packer/scripts/postinstall_nfs.sh
>
> Any pointers to help me resolve this will be gratefully received!
>
> Many thanks.
>
> Chris
--
Check out my professional profile and connect with me on LinkedIn.
http://lnkd.in/cw5k69