You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Jamshid Afshar <ja...@caringo.com> on 2012/12/28 20:50:57 UTC
DevCloud2 secondary storage vm
I built and am running the management server inside the devcloud2 vm.
I had to change "host" in Global Settings to 192.168.56.10, do I need
to change other settings?
Maybe this expected, but I see this error on Secondary Storage system
vm "s-1-vm" in /var/log/cloud/systemvm.log:
WARN NfsSecondaryStorageResource Error in configuring route to
internal ip err=RTNELINK answers: Invalid Argument
The script /usr/local/cloud/systemvm/ssvm-check.sh reports "ERROR: DNS
not resolving download.cloud.com". If I comment the "exit" out the
other tests succeed (ie, it sees management server at
192.168.56.10:8250).
Should a DNS server be running on my (all-in-one) management server /
host 192.168.56.10?
Should I be able to ping 169.254.1.1 from s-1-vm? I can't. "route" shows:
192.168.56.0 * 255.255.255.0 eth1
192.168.56.0 * 255.255.255.0 eth2
192.168.56.0 * 255.255.255.0 eth3
link-local * 255.255.0.0 eth0
default 192.168.56.1 0.0.0.0 eth2
Thanks,
Jam
Re: DevCloud2 secondary storage vm
Posted by Rohit Yadav <ro...@citrix.com>.
On 09-Jan-2013, at 5:10 PM, Marcus Sorensen <sh...@gmail.com> wrote:
> Oh, I see. No, it's defaulting to host = 10.0.3.10. Yes, if you're running
> the management server in the devcloud it probably resolves the devcloud
> host to the xenbr1 IP? In which case it doesn't make sense to edit the
> devcloud.cfg.
Yes, I get your point, yes the problem is with a bug in how the mgmt starts. The first time it starts it reads the db.properties file to get the cluster node ip which is misleading name, but it's the mgmt server host IP which is set to localhost if no IP on nic is found. It would use the first gateway's IP which is nat in case of DevCloud so you get 10.0.3.10.
To fix this issue, just make a db.properties (.override, forgot if this still works) file that has cluster node ip equal to 192.168.56.10 and if I recall correctly despite the database host value or devcloud.cfg host value, it would stick with host ip = 192.168.56.10.
Lastly, even though we add the host field for global param in devcloud.cfg there is an issue (why I removed it and put it in devcloud.sql), it would require you to restart the mgmt server before system vms are deployed, else the host ip (ie. mgmt server ip) will be sent as 10.0.3.10 to the systemvms and the agent may fail to connect back to the mgmt server and the state will hang as "Starting".
>
> I like to have everything in the devcloud in order to keep it a tidy,
> portable, replicatable package. Then I connect my IDE to the sourcecode via
> NFS or SSHFS in the devcloud.
We should create a DevCloud appliance with a desktop env and preconfigured IDE and tools.
One method I'd explored: you can have a rsync daemon to sync files from your local repo on host os to location in devcloud, (NFS or any other fs will be slow) run mgmt server in devcloud and use IDE on host os to connect to debug socket on 192.168.56.10 on port 8787.
Regards.
>
>
> On Wed, Jan 9, 2013 at 5:57 PM, Rohit Yadav <ro...@citrix.com> wrote:
>
>> What we should do is have an overrides option in maven itself to override
>> the default cfg file with a developer's own config file.
>> The reason it is set to 192.168.56.1 is that most developers (or users if
>> they are trying to checkout cloudstack) workflow would be to run mgmt
>> server and db server on their host os and use DevCloud just as recycle-able
>> host+storage.
>>
>> Not objecting, just that we should fix it in maven so if a
>> devcloud.cfg.override is available (or some other name), it would read that
>> file only while deploysrvr is done.
>>
>> Regards.
>>
>> On 09-Jan-2013, at 4:11 PM, Marcus Sorensen <sh...@gmail.com> wrote:
>>
>>> Unless anyone objects, I'm going to change the devcloud.cfg for marvin to
>>> add 192.168.56.10 as the 'host' global config. Without this, you don't
>> get
>>> the tinylinux template. With it, and a restart after applying the config,
>>> you get the template as soon as the secondary storage vm is provisioned.
>>>
>>>
>>> On Sun, Jan 6, 2013 at 8:55 PM, Marcus Sorensen <sh...@gmail.com>
>> wrote:
>>>
>>>> I had the exact same thing as well following devcloud2 instructions. It
>>>> seems the ssvm only connects to the host-only network. That's probably
>> fine
>>>> for basic testing since there is already a tinylinux template, but we
>>>> should consider setting the default zone up such that the ssvm will
>> connect
>>>> to the NAT so it can get DNS/internet for actual functional testing
>>>>
>>>>
>>>> On Sun, Jan 6, 2013 at 2:36 PM, Sebastien Goasguen <runseb@gmail.com
>>> wrote:
>>>>
>>>>> Jamshid, I don't think anyone answered you ?
>>>>>
>>>>> Are you having issues starting instances ?
>>>>>
>>>>> -Sebastien
>>>>>
>>>>> On Dec 28, 2012, at 8:50 PM, Jamshid Afshar <
>> jamshid.afshar@caringo.com>
>>>>> wrote:
>>>>>
>>>>>> I built and am running the management server inside the devcloud2 vm.
>>>>>> I had to change "host" in Global Settings to 192.168.56.10, do I need
>>>>>> to change other settings?
>>>>>>
>>>>>> Maybe this expected, but I see this error on Secondary Storage system
>>>>>> vm "s-1-vm" in /var/log/cloud/systemvm.log:
>>>>>>
>>>>>> WARN NfsSecondaryStorageResource Error in configuring route to
>>>>>> internal ip err=RTNELINK answers: Invalid Argument
>>>>>>
>>>>>> The script /usr/local/cloud/systemvm/ssvm-check.sh reports "ERROR: DNS
>>>>>> not resolving download.cloud.com". If I comment the "exit" out the
>>>>>> other tests succeed (ie, it sees management server at
>>>>>> 192.168.56.10:8250).
>>>>>>
>>>>>> Should a DNS server be running on my (all-in-one) management server /
>>>>>> host 192.168.56.10?
>>>>>>
>>>>>> Should I be able to ping 169.254.1.1 from s-1-vm? I can't. "route"
>>>>> shows:
>>>>>>
>>>>>> 192.168.56.0 * 255.255.255.0 eth1
>>>>>> 192.168.56.0 * 255.255.255.0 eth2
>>>>>> 192.168.56.0 * 255.255.255.0 eth3
>>>>>> link-local * 255.255.0.0 eth0
>>>>>> default 192.168.56.1 0.0.0.0 eth2
>>>>>>
>>>>>> Thanks,
>>>>>> Jam
>>>>>
>>>>>
>>>>
>>
>>
Re: DevCloud2 secondary storage vm
Posted by Marcus Sorensen <sh...@gmail.com>.
Oh, I see. No, it's defaulting to host = 10.0.3.10. Yes, if you're running
the management server in the devcloud it probably resolves the devcloud
host to the xenbr1 IP? In which case it doesn't make sense to edit the
devcloud.cfg.
I like to have everything in the devcloud in order to keep it a tidy,
portable, replicatable package. Then I connect my IDE to the sourcecode via
NFS or SSHFS in the devcloud.
On Wed, Jan 9, 2013 at 5:57 PM, Rohit Yadav <ro...@citrix.com> wrote:
> What we should do is have an overrides option in maven itself to override
> the default cfg file with a developer's own config file.
> The reason it is set to 192.168.56.1 is that most developers (or users if
> they are trying to checkout cloudstack) workflow would be to run mgmt
> server and db server on their host os and use DevCloud just as recycle-able
> host+storage.
>
> Not objecting, just that we should fix it in maven so if a
> devcloud.cfg.override is available (or some other name), it would read that
> file only while deploysrvr is done.
>
> Regards.
>
> On 09-Jan-2013, at 4:11 PM, Marcus Sorensen <sh...@gmail.com> wrote:
>
> > Unless anyone objects, I'm going to change the devcloud.cfg for marvin to
> > add 192.168.56.10 as the 'host' global config. Without this, you don't
> get
> > the tinylinux template. With it, and a restart after applying the config,
> > you get the template as soon as the secondary storage vm is provisioned.
> >
> >
> > On Sun, Jan 6, 2013 at 8:55 PM, Marcus Sorensen <sh...@gmail.com>
> wrote:
> >
> >> I had the exact same thing as well following devcloud2 instructions. It
> >> seems the ssvm only connects to the host-only network. That's probably
> fine
> >> for basic testing since there is already a tinylinux template, but we
> >> should consider setting the default zone up such that the ssvm will
> connect
> >> to the NAT so it can get DNS/internet for actual functional testing
> >>
> >>
> >> On Sun, Jan 6, 2013 at 2:36 PM, Sebastien Goasguen <runseb@gmail.com
> >wrote:
> >>
> >>> Jamshid, I don't think anyone answered you ?
> >>>
> >>> Are you having issues starting instances ?
> >>>
> >>> -Sebastien
> >>>
> >>> On Dec 28, 2012, at 8:50 PM, Jamshid Afshar <
> jamshid.afshar@caringo.com>
> >>> wrote:
> >>>
> >>>> I built and am running the management server inside the devcloud2 vm.
> >>>> I had to change "host" in Global Settings to 192.168.56.10, do I need
> >>>> to change other settings?
> >>>>
> >>>> Maybe this expected, but I see this error on Secondary Storage system
> >>>> vm "s-1-vm" in /var/log/cloud/systemvm.log:
> >>>>
> >>>> WARN NfsSecondaryStorageResource Error in configuring route to
> >>>> internal ip err=RTNELINK answers: Invalid Argument
> >>>>
> >>>> The script /usr/local/cloud/systemvm/ssvm-check.sh reports "ERROR: DNS
> >>>> not resolving download.cloud.com". If I comment the "exit" out the
> >>>> other tests succeed (ie, it sees management server at
> >>>> 192.168.56.10:8250).
> >>>>
> >>>> Should a DNS server be running on my (all-in-one) management server /
> >>>> host 192.168.56.10?
> >>>>
> >>>> Should I be able to ping 169.254.1.1 from s-1-vm? I can't. "route"
> >>> shows:
> >>>>
> >>>> 192.168.56.0 * 255.255.255.0 eth1
> >>>> 192.168.56.0 * 255.255.255.0 eth2
> >>>> 192.168.56.0 * 255.255.255.0 eth3
> >>>> link-local * 255.255.0.0 eth0
> >>>> default 192.168.56.1 0.0.0.0 eth2
> >>>>
> >>>> Thanks,
> >>>> Jam
> >>>
> >>>
> >>
>
>
Re: DevCloud2 secondary storage vm
Posted by Rohit Yadav <ro...@citrix.com>.
What we should do is have an overrides option in maven itself to override the default cfg file with a developer's own config file.
The reason it is set to 192.168.56.1 is that most developers (or users if they are trying to checkout cloudstack) workflow would be to run mgmt server and db server on their host os and use DevCloud just as recycle-able host+storage.
Not objecting, just that we should fix it in maven so if a devcloud.cfg.override is available (or some other name), it would read that file only while deploysrvr is done.
Regards.
On 09-Jan-2013, at 4:11 PM, Marcus Sorensen <sh...@gmail.com> wrote:
> Unless anyone objects, I'm going to change the devcloud.cfg for marvin to
> add 192.168.56.10 as the 'host' global config. Without this, you don't get
> the tinylinux template. With it, and a restart after applying the config,
> you get the template as soon as the secondary storage vm is provisioned.
>
>
> On Sun, Jan 6, 2013 at 8:55 PM, Marcus Sorensen <sh...@gmail.com> wrote:
>
>> I had the exact same thing as well following devcloud2 instructions. It
>> seems the ssvm only connects to the host-only network. That's probably fine
>> for basic testing since there is already a tinylinux template, but we
>> should consider setting the default zone up such that the ssvm will connect
>> to the NAT so it can get DNS/internet for actual functional testing
>>
>>
>> On Sun, Jan 6, 2013 at 2:36 PM, Sebastien Goasguen <ru...@gmail.com>wrote:
>>
>>> Jamshid, I don't think anyone answered you ?
>>>
>>> Are you having issues starting instances ?
>>>
>>> -Sebastien
>>>
>>> On Dec 28, 2012, at 8:50 PM, Jamshid Afshar <ja...@caringo.com>
>>> wrote:
>>>
>>>> I built and am running the management server inside the devcloud2 vm.
>>>> I had to change "host" in Global Settings to 192.168.56.10, do I need
>>>> to change other settings?
>>>>
>>>> Maybe this expected, but I see this error on Secondary Storage system
>>>> vm "s-1-vm" in /var/log/cloud/systemvm.log:
>>>>
>>>> WARN NfsSecondaryStorageResource Error in configuring route to
>>>> internal ip err=RTNELINK answers: Invalid Argument
>>>>
>>>> The script /usr/local/cloud/systemvm/ssvm-check.sh reports "ERROR: DNS
>>>> not resolving download.cloud.com". If I comment the "exit" out the
>>>> other tests succeed (ie, it sees management server at
>>>> 192.168.56.10:8250).
>>>>
>>>> Should a DNS server be running on my (all-in-one) management server /
>>>> host 192.168.56.10?
>>>>
>>>> Should I be able to ping 169.254.1.1 from s-1-vm? I can't. "route"
>>> shows:
>>>>
>>>> 192.168.56.0 * 255.255.255.0 eth1
>>>> 192.168.56.0 * 255.255.255.0 eth2
>>>> 192.168.56.0 * 255.255.255.0 eth3
>>>> link-local * 255.255.0.0 eth0
>>>> default 192.168.56.1 0.0.0.0 eth2
>>>>
>>>> Thanks,
>>>> Jam
>>>
>>>
>>
Re: DevCloud2 secondary storage vm
Posted by Marcus Sorensen <sh...@gmail.com>.
Unless anyone objects, I'm going to change the devcloud.cfg for marvin to
add 192.168.56.10 as the 'host' global config. Without this, you don't get
the tinylinux template. With it, and a restart after applying the config,
you get the template as soon as the secondary storage vm is provisioned.
On Sun, Jan 6, 2013 at 8:55 PM, Marcus Sorensen <sh...@gmail.com> wrote:
> I had the exact same thing as well following devcloud2 instructions. It
> seems the ssvm only connects to the host-only network. That's probably fine
> for basic testing since there is already a tinylinux template, but we
> should consider setting the default zone up such that the ssvm will connect
> to the NAT so it can get DNS/internet for actual functional testing
>
>
> On Sun, Jan 6, 2013 at 2:36 PM, Sebastien Goasguen <ru...@gmail.com>wrote:
>
>> Jamshid, I don't think anyone answered you ?
>>
>> Are you having issues starting instances ?
>>
>> -Sebastien
>>
>> On Dec 28, 2012, at 8:50 PM, Jamshid Afshar <ja...@caringo.com>
>> wrote:
>>
>> > I built and am running the management server inside the devcloud2 vm.
>> > I had to change "host" in Global Settings to 192.168.56.10, do I need
>> > to change other settings?
>> >
>> > Maybe this expected, but I see this error on Secondary Storage system
>> > vm "s-1-vm" in /var/log/cloud/systemvm.log:
>> >
>> > WARN NfsSecondaryStorageResource Error in configuring route to
>> > internal ip err=RTNELINK answers: Invalid Argument
>> >
>> > The script /usr/local/cloud/systemvm/ssvm-check.sh reports "ERROR: DNS
>> > not resolving download.cloud.com". If I comment the "exit" out the
>> > other tests succeed (ie, it sees management server at
>> > 192.168.56.10:8250).
>> >
>> > Should a DNS server be running on my (all-in-one) management server /
>> > host 192.168.56.10?
>> >
>> > Should I be able to ping 169.254.1.1 from s-1-vm? I can't. "route"
>> shows:
>> >
>> > 192.168.56.0 * 255.255.255.0 eth1
>> > 192.168.56.0 * 255.255.255.0 eth2
>> > 192.168.56.0 * 255.255.255.0 eth3
>> > link-local * 255.255.0.0 eth0
>> > default 192.168.56.1 0.0.0.0 eth2
>> >
>> > Thanks,
>> > Jam
>>
>>
>
Re: DevCloud2 secondary storage vm
Posted by Marcus Sorensen <sh...@gmail.com>.
I had the exact same thing as well following devcloud2 instructions. It
seems the ssvm only connects to the host-only network. That's probably fine
for basic testing since there is already a tinylinux template, but we
should consider setting the default zone up such that the ssvm will connect
to the NAT so it can get DNS/internet for actual functional testing
On Sun, Jan 6, 2013 at 2:36 PM, Sebastien Goasguen <ru...@gmail.com> wrote:
> Jamshid, I don't think anyone answered you ?
>
> Are you having issues starting instances ?
>
> -Sebastien
>
> On Dec 28, 2012, at 8:50 PM, Jamshid Afshar <ja...@caringo.com>
> wrote:
>
> > I built and am running the management server inside the devcloud2 vm.
> > I had to change "host" in Global Settings to 192.168.56.10, do I need
> > to change other settings?
> >
> > Maybe this expected, but I see this error on Secondary Storage system
> > vm "s-1-vm" in /var/log/cloud/systemvm.log:
> >
> > WARN NfsSecondaryStorageResource Error in configuring route to
> > internal ip err=RTNELINK answers: Invalid Argument
> >
> > The script /usr/local/cloud/systemvm/ssvm-check.sh reports "ERROR: DNS
> > not resolving download.cloud.com". If I comment the "exit" out the
> > other tests succeed (ie, it sees management server at
> > 192.168.56.10:8250).
> >
> > Should a DNS server be running on my (all-in-one) management server /
> > host 192.168.56.10?
> >
> > Should I be able to ping 169.254.1.1 from s-1-vm? I can't. "route" shows:
> >
> > 192.168.56.0 * 255.255.255.0 eth1
> > 192.168.56.0 * 255.255.255.0 eth2
> > 192.168.56.0 * 255.255.255.0 eth3
> > link-local * 255.255.0.0 eth0
> > default 192.168.56.1 0.0.0.0 eth2
> >
> > Thanks,
> > Jam
>
>
Re: DevCloud2 secondary storage vm
Posted by Sebastien Goasguen <ru...@gmail.com>.
Jamshid, I don't think anyone answered you ?
Are you having issues starting instances ?
-Sebastien
On Dec 28, 2012, at 8:50 PM, Jamshid Afshar <ja...@caringo.com> wrote:
> I built and am running the management server inside the devcloud2 vm.
> I had to change "host" in Global Settings to 192.168.56.10, do I need
> to change other settings?
>
> Maybe this expected, but I see this error on Secondary Storage system
> vm "s-1-vm" in /var/log/cloud/systemvm.log:
>
> WARN NfsSecondaryStorageResource Error in configuring route to
> internal ip err=RTNELINK answers: Invalid Argument
>
> The script /usr/local/cloud/systemvm/ssvm-check.sh reports "ERROR: DNS
> not resolving download.cloud.com". If I comment the "exit" out the
> other tests succeed (ie, it sees management server at
> 192.168.56.10:8250).
>
> Should a DNS server be running on my (all-in-one) management server /
> host 192.168.56.10?
>
> Should I be able to ping 169.254.1.1 from s-1-vm? I can't. "route" shows:
>
> 192.168.56.0 * 255.255.255.0 eth1
> 192.168.56.0 * 255.255.255.0 eth2
> 192.168.56.0 * 255.255.255.0 eth3
> link-local * 255.255.0.0 eth0
> default 192.168.56.1 0.0.0.0 eth2
>
> Thanks,
> Jam