Cloudstack with iscsi storage

2014-04-16 Thread rammohan ganapavarapu
Hi,

I am trying to setup a private cloud using cloudstack with ISCSI storage as
primary storage, my

1. Do i need to create a filesystem on top of iscsi lun to use it as
primary storage or just need to present a raw lun to hyperviser?

2. If i have multiple hosts as VM hosts, do i need to present iscsi luns on
all those hosts or one storage hosts should be fine? can i use this storage
host as VM host?

3. I have storage on different network, so does management servers or
control server neeeds to have access to storage network?

Thanks,
Ram


Re: Vmware 5.5 dvSwitch support.

2014-04-16 Thread ilya musayev

Which version of cloudstack is this in regards to?

On 4/16/14, 3:38 PM, Willard Rathjen wrote:

It looks like the CS does not like the formatting of the network label, causing it 
to not parse the VLAN ID correctly. As a quick test can you change the label to 
"dvSwitchtest,602,vmwaredvs”. It’s a long shot, but easy enough to test.



  491 /**
  492  * Nicira NVP requires all vms to be connected to a single 
port-group.
  493  * A unique vlan needs to be set per port. This vlan is 
specific to
  494  * this implementation and has no reference to other vlans in 
CS
  495  */
  496 networkName = "br-int"; // FIXME Should be set via a 
configuration item in CS
  497 // No doubt about this, depending on vid=null to avoid lots 
of code below
  498 vid = null;
  499 } else {
  500 networkName = composeCloudNetworkName(namePrefix, vlanId, 
secondaryvlanId, networkRateMbps, physicalNetwork);
  501
  502 if(vlanId != null && 
!UNTAGGED_VLAN_NAME.equalsIgnoreCase(vlanId)) {
  503 createGCTag = true;
  504 vid = Integer.parseInt(vlanId);
  505 }
  506 if (secondaryvlanId != null) {
  507 spvlanid = Integer.parseInt(secondaryvlanId);
  508 }
  509 }


Willard Rathjen
Cloud Systems Engineer

Office +1.800.735.7104 | Direct +1.515.612.7813
willard.rath...@appcore.com | www.appcore.com

--
The information in this message is intended for the named recipients only. It 
may contain information that is privileged, confidential or otherwise protected 
from disclosure. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution, or the taking of any action in 
reliance on the contents of this message is strictly prohibited. If you have 
received this e-mail in error, do not print it or disseminate it or its 
contents. In such event, please notify the sender by return e-mail and delete 
the e-mail file immediately thereafter. Thank you.



On Apr 16, 2014, at 9:28 AM, Steve Searles  wrote:


Anyone know why this may be happening? vmware.use.dvswitch is set to true in 
global settings. The management server has been restarted.


The network label I am using is "dvSwitch-test,602,vmwaredvs" Using a standard 
vSwitch works fine. e.g. vSwitch1,602,vmwaresvs  Any ideas?

2014-04-03 12:39:45,313 DEBUG [c.c.h.v.r.VmwareResource] 
(DirectAgent-391:ctx-ed1b98f6 esx02.cs.zimcom.net) 
VM i-2-40-VM will be started with NIC device type: E1000
2014-04-03 12:39:45,313 INFO  [c.c.h.v.r.VmwareResource] (DirectAgent-391:ctx-ed1b98f6 esx02.cs.zimcom.net) Prepare NIC device based on NicTO: 
{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"9ef9f0ff-70e4-4851-8030-edef22aa61df","ip":"172.17.2.95","netmask":"255.255.255.0","gateway":"172.17.2.1","mac":"02:00:5a:92:00:0d","dns1":"209.212.245.10","dns2":"209.212.246.10","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://610","isolationUri":"vlan://610","isSecurityGroupEnabled":false,"name":"dvSwitch-test,602,vmwaredvs"}
2014-04-03 12:39:45,318 INFO  [c.c.h.v.r.VmwareResource] 
(DirectAgent-391:ctx-ed1b98f6 esx02.cs.zimcom.net) 
Prepare network on vmwaredvs dvSwitch-test with name prefix: cloud.guest
2014-04-03 12:39:45,325 WARN  [c.c.h.v.r.VmwareResource] 
(DirectAgent-391:ctx-ed1b98f6 esx02.cs.zimcom.net) 
StartCommand failed due to Exception: java.lang.NumberFormatException
Message: null

java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:443)
at java.lang.Integer.parseInt(Integer.java:514)
at 
com.cloud.hypervisor.vmware.mo.HypervisorHostHelper.prepareNetwork(HypervisorHostHelper.java:504)
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.prepareNetworkFromNicInfo(VmwareResource.java:3692)
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:2934)
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:525)
at 
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
at 
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at 
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.Future

Re: XML error: missing pool source name element

2014-04-16 Thread Willard Rathjen
uuidgen the uuid fields (There are two) in the agent.properties file. and you 
should be good to go. The storage pools will get configured in KVM when you 
pull the host into CS.

Willard Rathjen
Cloud Systems Engineer

Office +1.800.735.7104 | Direct +1.515.612.7813
willard.rath...@appcore.com | www.appcore.com

--
The information in this message is intended for the named recipients only. It 
may contain information that is privileged, confidential or otherwise protected 
from disclosure. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution, or the taking of any action in 
reliance on the contents of this message is strictly prohibited. If you have 
received this e-mail in error, do not print it or disseminate it or its 
contents. In such event, please notify the sender by return e-mail and delete 
the e-mail file immediately thereafter. Thank you.



On Apr 16, 2014, at 3:31 PM, Samuel Winchenbach  wrote:

> $ virsh pool-list
> Name State  Autostart
> -
> 
> 
> agent.properties:  http://pastie.org/pastes/9085906/text
> 
> 
> I didn't read anything in the install docs about creating a storage pool.
> 
> Sam
> 
> 
> On Wed, Apr 16, 2014 at 4:10 PM, Willard Rathjen <
> willard.rath...@appcore.com> wrote:
> 
>> Looking at LibvirtStorageAdaptor.java it looks like it’s failing when
>> dealing with the storage pool.
>> 
>> can you paste the agent config: /etc/cloudstack/agent/agent.properties
>> 
>> 
>> 
>> And the output of the following commands:
>> 
>> $ virsh pool-list
>> 
>> $ virsh pool-info 
>> 
>> Willard Rathjen
>> Cloud Systems Engineer
>> 
>> Office +1.800.735.7104 | Direct +1.515.612.7813
>> willard.rath...@appcore.com | www.appcore.com
>> 
>> --
>> The information in this message is intended for the named recipients only.
>> It may contain information that is privileged, confidential or otherwise
>> protected from disclosure. If you are not the intended recipient, you are
>> hereby notified that any disclosure, copying, distribution, or the taking
>> of any action in reliance on the contents of this message is strictly
>> prohibited. If you have received this e-mail in error, do not print it or
>> disseminate it or its contents. In such event, please notify the sender by
>> return e-mail and delete the e-mail file immediately thereafter. Thank you.
>> 
>> 
>> 
>> On Apr 16, 2014, at 2:56 PM, Samuel Winchenbach 
>> wrote:
>> 
>>> LibvirtStorageAdaptor.java
>> 
>> 



Re: XML error: missing pool source name element

2014-04-16 Thread Samuel Winchenbach
$ virsh pool-list
Name State  Autostart
-


agent.properties:  http://pastie.org/pastes/9085906/text


I didn't read anything in the install docs about creating a storage pool.

Sam


On Wed, Apr 16, 2014 at 4:10 PM, Willard Rathjen <
willard.rath...@appcore.com> wrote:

> Looking at LibvirtStorageAdaptor.java it looks like it’s failing when
> dealing with the storage pool.
>
> can you paste the agent config: /etc/cloudstack/agent/agent.properties
>
>
>
> And the output of the following commands:
>
> $ virsh pool-list
>
> $ virsh pool-info 
>
> Willard Rathjen
> Cloud Systems Engineer
>
> Office +1.800.735.7104 | Direct +1.515.612.7813
> willard.rath...@appcore.com | www.appcore.com
>
> --
> The information in this message is intended for the named recipients only.
> It may contain information that is privileged, confidential or otherwise
> protected from disclosure. If you are not the intended recipient, you are
> hereby notified that any disclosure, copying, distribution, or the taking
> of any action in reliance on the contents of this message is strictly
> prohibited. If you have received this e-mail in error, do not print it or
> disseminate it or its contents. In such event, please notify the sender by
> return e-mail and delete the e-mail file immediately thereafter. Thank you.
>
>
>
> On Apr 16, 2014, at 2:56 PM, Samuel Winchenbach 
> wrote:
>
> > LibvirtStorageAdaptor.java
>
>


Re: XML error: missing pool source name element

2014-04-16 Thread Willard Rathjen
Looking at LibvirtStorageAdaptor.java it looks like it’s failing when dealing 
with the storage pool.

can you paste the agent config: /etc/cloudstack/agent/agent.properties



And the output of the following commands:

$ virsh pool-list

$ virsh pool-info 

Willard Rathjen
Cloud Systems Engineer

Office +1.800.735.7104 | Direct +1.515.612.7813
willard.rath...@appcore.com | www.appcore.com

--
The information in this message is intended for the named recipients only. It 
may contain information that is privileged, confidential or otherwise protected 
from disclosure. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution, or the taking of any action in 
reliance on the contents of this message is strictly prohibited. If you have 
received this e-mail in error, do not print it or disseminate it or its 
contents. In such event, please notify the sender by return e-mail and delete 
the e-mail file immediately thereafter. Thank you.



On Apr 16, 2014, at 2:56 PM, Samuel Winchenbach  wrote:

> LibvirtStorageAdaptor.java



Re: XML error: missing pool source name element

2014-04-16 Thread Samuel Winchenbach
2014-04-16 15:46:21,169 INFO  [cloud.agent.AgentShell] (main:null) Agent
started
2014-04-16 15:46:21,170 INFO  [cloud.agent.AgentShell] (main:null)
Implementation Version is 4.3.0
2014-04-16 15:46:21,172 INFO  [cloud.agent.AgentShell] (main:null)
agent.properties found at /etc/cloudstack/agent/agent.properties
2014-04-16 15:46:21,182 INFO  [cloud.agent.AgentShell] (main:null)
Defaulting to using properties file for storage
2014-04-16 15:46:21,184 INFO  [cloud.agent.AgentShell] (main:null)
Defaulting to the constant time backoff algorithm
2014-04-16 15:46:21,202 INFO  [cloud.utils.LogUtils] (main:null) log4j
configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2014-04-16 15:46:21,303 INFO  [cloud.agent.Agent] (main:null) id is
2014-04-16 15:46:21,327 INFO
 [resource.virtualnetwork.VirtualRoutingResource] (main:null)
VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
2014-04-16 15:46:21,750 INFO  [cloud.agent.Agent] (main:null) Agent [id =
new : type = LibvirtComputingResource : zone = default : pod = default :
workers = 5 : host = localhost : port = 8250
2014-04-16 15:46:21,756 INFO  [utils.nio.NioClient] (Agent-Selector:null)
Connecting to localhost:8250
2014-04-16 15:46:22,014 INFO  [utils.nio.NioClient] (Agent-Selector:null)
SSL: Handshake done
2014-04-16 15:46:22,015 INFO  [utils.nio.NioClient] (Agent-Selector:null)
Connected to localhost:8250
2014-04-16 15:46:22,081 ERROR [kvm.storage.LibvirtStorageAdaptor]
(Agent-Handler-1:null) org.libvirt.LibvirtException: XML error: missing
pool source name element
2014-04-16 15:46:22,083 WARN  [utils.nio.Task] (Agent-Handler-1:null)
Caught the following exception but pushing on
java.lang.NullPointerException
at
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.createStoragePool(LibvirtStorageAdaptor.java:533)
at
com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:289)
at
com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:281)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.initialize(LibvirtComputingResource.java:4111)
at com.cloud.agent.Agent.sendStartup(Agent.java:296)
at com.cloud.agent.Agent$ServerHandler.doTask(Agent.java:825)
at com.cloud.utils.nio.Task.run(Task.java:83)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)


On Wed, Apr 16, 2014 at 3:55 PM, Willard Rathjen <
willard.rath...@appcore.com> wrote:

> Can you paste the applicable lines from the log file in
> /var/log/cloudstack/agent/agent.log
>
> Willard Rathjen
> Cloud Systems Engineer
>
> Office +1.800.735.7104 | Direct +1.515.612.7813
> willard.rath...@appcore.com | www.appcore.com
>
> --
> The information in this message is intended for the named recipients only.
> It may contain information that is privileged, confidential or otherwise
> protected from disclosure. If you are not the intended recipient, you are
> hereby notified that any disclosure, copying, distribution, or the taking
> of any action in reliance on the contents of this message is strictly
> prohibited. If you have received this e-mail in error, do not print it or
> disseminate it or its contents. In such event, please notify the sender by
> return e-mail and delete the e-mail file immediately thereafter. Thank you.
>
>
>
> On Apr 16, 2014, at 2:52 PM, Samuel Winchenbach 
> wrote:
>
> > Hi All,
> >
> > I am trying to setup an "All-in-One" CloudStack install on CentOS 6.5.
> >
> > When I start the agent I get this error in the log file:
> >
> > ERROR [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null)
> > org.libvirt.LibvirtException:
> >
> > Any idea what this means and how to fix it?
> >
> > Thanks,
> > Sam
>
>


Re: XML error: missing pool source name element

2014-04-16 Thread Willard Rathjen
Can you paste the applicable lines from the log file in 
/var/log/cloudstack/agent/agent.log

Willard Rathjen
Cloud Systems Engineer

Office +1.800.735.7104 | Direct +1.515.612.7813
willard.rath...@appcore.com | www.appcore.com

--
The information in this message is intended for the named recipients only. It 
may contain information that is privileged, confidential or otherwise protected 
from disclosure. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution, or the taking of any action in 
reliance on the contents of this message is strictly prohibited. If you have 
received this e-mail in error, do not print it or disseminate it or its 
contents. In such event, please notify the sender by return e-mail and delete 
the e-mail file immediately thereafter. Thank you.



On Apr 16, 2014, at 2:52 PM, Samuel Winchenbach  wrote:

> Hi All,
> 
> I am trying to setup an "All-in-One" CloudStack install on CentOS 6.5.
> 
> When I start the agent I get this error in the log file:
> 
> ERROR [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null)
> org.libvirt.LibvirtException:
> 
> Any idea what this means and how to fix it?
> 
> Thanks,
> Sam



XML error: missing pool source name element

2014-04-16 Thread Samuel Winchenbach
Hi All,

I am trying to setup an "All-in-One" CloudStack install on CentOS 6.5.

When I start the agent I get this error in the log file:

ERROR [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null)
org.libvirt.LibvirtException:

Any idea what this means and how to fix it?

Thanks,
Sam


Re: Vmware 5.5 dvSwitch support.

2014-04-16 Thread Willard Rathjen
It looks like the CS does not like the formatting of the network label, causing 
it to not parse the VLAN ID correctly. As a quick test can you change the label 
to "dvSwitchtest,602,vmwaredvs”. It’s a long shot, but easy enough to test.



 491 /**
 492  * Nicira NVP requires all vms to be connected to a single 
port-group.
 493  * A unique vlan needs to be set per port. This vlan is 
specific to
 494  * this implementation and has no reference to other vlans in 
CS
 495  */
 496 networkName = "br-int"; // FIXME Should be set via a 
configuration item in CS
 497 // No doubt about this, depending on vid=null to avoid lots of 
code below
 498 vid = null;
 499 } else {
 500 networkName = composeCloudNetworkName(namePrefix, vlanId, 
secondaryvlanId, networkRateMbps, physicalNetwork);
 501 
 502 if(vlanId != null && 
!UNTAGGED_VLAN_NAME.equalsIgnoreCase(vlanId)) {
 503 createGCTag = true;
 504 vid = Integer.parseInt(vlanId);
 505 }
 506 if (secondaryvlanId != null) {
 507 spvlanid = Integer.parseInt(secondaryvlanId);
 508 }
 509 }


Willard Rathjen
Cloud Systems Engineer

Office +1.800.735.7104 | Direct +1.515.612.7813
willard.rath...@appcore.com | www.appcore.com

--
The information in this message is intended for the named recipients only. It 
may contain information that is privileged, confidential or otherwise protected 
from disclosure. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution, or the taking of any action in 
reliance on the contents of this message is strictly prohibited. If you have 
received this e-mail in error, do not print it or disseminate it or its 
contents. In such event, please notify the sender by return e-mail and delete 
the e-mail file immediately thereafter. Thank you.



On Apr 16, 2014, at 9:28 AM, Steve Searles  wrote:

> Anyone know why this may be happening? vmware.use.dvswitch is set to true in 
> global settings. The management server has been restarted. 
> 
> 
> The network label I am using is "dvSwitch-test,602,vmwaredvs" Using a 
> standard vSwitch works fine. e.g. vSwitch1,602,vmwaresvs  Any ideas?
> 
> 2014-04-03 12:39:45,313 DEBUG [c.c.h.v.r.VmwareResource] 
> (DirectAgent-391:ctx-ed1b98f6 
> esx02.cs.zimcom.net) VM i-2-40-VM will be started 
> with NIC device type: E1000
> 2014-04-03 12:39:45,313 INFO  [c.c.h.v.r.VmwareResource] 
> (DirectAgent-391:ctx-ed1b98f6 
> esx02.cs.zimcom.net) Prepare NIC device based on 
> NicTO: 
> {"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"9ef9f0ff-70e4-4851-8030-edef22aa61df","ip":"172.17.2.95","netmask":"255.255.255.0","gateway":"172.17.2.1","mac":"02:00:5a:92:00:0d","dns1":"209.212.245.10","dns2":"209.212.246.10","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://610","isolationUri":"vlan://610","isSecurityGroupEnabled":false,"name":"dvSwitch-test,602,vmwaredvs"}
> 2014-04-03 12:39:45,318 INFO  [c.c.h.v.r.VmwareResource] 
> (DirectAgent-391:ctx-ed1b98f6 
> esx02.cs.zimcom.net) Prepare network on vmwaredvs 
> dvSwitch-test with name prefix: cloud.guest
> 2014-04-03 12:39:45,325 WARN  [c.c.h.v.r.VmwareResource] 
> (DirectAgent-391:ctx-ed1b98f6 
> esx02.cs.zimcom.net) StartCommand failed due to 
> Exception: java.lang.NumberFormatException
> Message: null
> 
> java.lang.NumberFormatException: null
> at java.lang.Integer.parseInt(Integer.java:443)
> at java.lang.Integer.parseInt(Integer.java:514)
> at 
> com.cloud.hypervisor.vmware.mo.HypervisorHostHelper.prepareNetwork(HypervisorHostHelper.java:504)
> at 
> com.cloud.hypervisor.vmware.resource.VmwareResource.prepareNetworkFromNicInfo(VmwareResource.java:3692)
> at 
> com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:2934)
> at 
> com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:525)
> at 
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> at 
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at 
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Syn

Re: CloudStack-BIND dns integration

2014-04-16 Thread Nux!

On 16.04.2014 17:05, Ihor Kravchuk wrote:

Hi ,

I made a small python program that  solves DNS integration issues 
between

CloudStack VR's DNS service and BIND DNS.
This program assumes that you are using one sub-domain per 
network(each

network has own sub-domain) (IMHO the best way fro naming instances in
CloudStack)
How it works:
This program runs on CloudStack management server and listen for the 
new vm

deployment using CloudStack catalina.out log.
On event (new host deployed) program calls CloudStack API and gets 
list of

Networks and list of VM. Using theses lists and preconfigured domain
settings it creates the zone file for BIND, push it to server and 
refresh

BIND
The source code for the event driven version on GitHub:
 https://github.com/IhorKravchuk/cloudstack_ingvar/
All parameters load from dns_builder.conf file and local and remote 
(from

CloudStack mgmt server prospective) BIND DNS servers supported.
Igor


Pretty neat, but have you looked at this?
https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Admin_Guide/events.html

It sounds like you are not using that facility which to me (non-dev) 
seems more elegant.


Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: Off topic, can anybody access cdimage.debian.org?

2014-04-16 Thread Rafael Weingartner
Thanks,


On Wed, Apr 16, 2014 at 3:36 PM, Outback Dingo wrote:

> right now im in the states
>
>
> On Wed, Apr 16, 2014 at 1:46 PM, Rafael Weingartner <
> rafaelweingart...@gmail.com> wrote:
>
> > Interesting, in which country are you?
> >
> >
> > On Wed, Apr 16, 2014 at 2:43 PM, Outback Dingo  > >wrote:
> >
> > > yes i can reach them all
> > >
> > >
> > > On Wed, Apr 16, 2014 at 1:39 PM, Rafael Weingartner <
> > > rafaelweingart...@gmail.com> wrote:
> > >
> > > > Hi folks,
> > > > Sorry the off topic message, but we are having a pretty weird
> situation
> > > > here.
> > > > Can somebody try to access these websites?:
> > > > cdimage.debian.org
> > > > debian.c3sl.ufpr.br
> > > > sft.if.usp.br
> > > >
> > > > --
> > > > Rafael Weingärtner
> > > >
> > >
> >
> >
> >
> > --
> > Rafael Weingärtner
> >
>



-- 
Rafael Weingärtner


Re: Off topic, can anybody access cdimage.debian.org?

2014-04-16 Thread Outback Dingo
right now im in the states


On Wed, Apr 16, 2014 at 1:46 PM, Rafael Weingartner <
rafaelweingart...@gmail.com> wrote:

> Interesting, in which country are you?
>
>
> On Wed, Apr 16, 2014 at 2:43 PM, Outback Dingo  >wrote:
>
> > yes i can reach them all
> >
> >
> > On Wed, Apr 16, 2014 at 1:39 PM, Rafael Weingartner <
> > rafaelweingart...@gmail.com> wrote:
> >
> > > Hi folks,
> > > Sorry the off topic message, but we are having a pretty weird situation
> > > here.
> > > Can somebody try to access these websites?:
> > > cdimage.debian.org
> > > debian.c3sl.ufpr.br
> > > sft.if.usp.br
> > >
> > > --
> > > Rafael Weingärtner
> > >
> >
>
>
>
> --
> Rafael Weingärtner
>


Re: CloudStack-BIND dns integration

2014-04-16 Thread Francois Gaudreault

Well done Ihor :)

FG

On 2014-04-16, 2:25 PM, ilya musayev wrote:

This is pretty cool.

I’ll give it a try soon, thanks for contributing, I forked your repo on
github.

-ilya

On Wednesday, April 16, 2014, Ihor Kravchuk  wrote:

Hi ,

I made a small python program that  solves DNS integration issues between
CloudStack VR's DNS service and BIND DNS.
This program assumes that you are using one sub-domain per network(each
network has own sub-domain) (IMHO the best way fro naming instances in
CloudStack)
How it works:
This program runs on CloudStack management server and listen for the new

vm

deployment using CloudStack catalina.out log.
On event (new host deployed) program calls CloudStack API and gets list of
Networks and list of VM. Using theses lists and preconfigured domain
settings it creates the zone file for BIND, push it to server and refresh
BIND
The source code for the event driven version on GitHub:
  https://github.com/IhorKravchuk/cloudstack_ingvar/
All parameters load from dns_builder.conf file and local and remote (from
CloudStack mgmt server prospective) BIND DNS servers supported.
Igor




--
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
fgaudrea...@cloudops.com
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_



Re: CloudStack-BIND dns integration

2014-04-16 Thread ilya musayev
This is pretty cool.

I’ll give it a try soon, thanks for contributing, I forked your repo on
github.

-ilya

On Wednesday, April 16, 2014, Ihor Kravchuk  wrote:
> Hi ,
>
> I made a small python program that  solves DNS integration issues between
> CloudStack VR's DNS service and BIND DNS.
> This program assumes that you are using one sub-domain per network(each
> network has own sub-domain) (IMHO the best way fro naming instances in
> CloudStack)
> How it works:
> This program runs on CloudStack management server and listen for the new
vm
> deployment using CloudStack catalina.out log.
> On event (new host deployed) program calls CloudStack API and gets list of
> Networks and list of VM. Using theses lists and preconfigured domain
> settings it creates the zone file for BIND, push it to server and refresh
> BIND
> The source code for the event driven version on GitHub:
>  https://github.com/IhorKravchuk/cloudstack_ingvar/
> All parameters load from dns_builder.conf file and local and remote (from
> CloudStack mgmt server prospective) BIND DNS servers supported.
> Igor
>


Re: Off topic, can anybody access cdimage.debian.org?

2014-04-16 Thread Rafael Weingartner
Interesting, in which country are you?


On Wed, Apr 16, 2014 at 2:43 PM, Outback Dingo wrote:

> yes i can reach them all
>
>
> On Wed, Apr 16, 2014 at 1:39 PM, Rafael Weingartner <
> rafaelweingart...@gmail.com> wrote:
>
> > Hi folks,
> > Sorry the off topic message, but we are having a pretty weird situation
> > here.
> > Can somebody try to access these websites?:
> > cdimage.debian.org
> > debian.c3sl.ufpr.br
> > sft.if.usp.br
> >
> > --
> > Rafael Weingärtner
> >
>



-- 
Rafael Weingärtner


Re: Ubuntu instances + cloud-init

2014-04-16 Thread Rafael Weingartner
to my knowledge it is not distro specific. We are using that on Ubuntu
12.04 (Which is basically a Debian). We have just tried on a Debian 7.4 and
that IF condition works.


On Wed, Apr 16, 2014 at 2:38 PM, Jonathan Gowar wrote:

> On Wed, 2014-04-16 at 14:30 -0300, Rafael Weingartner wrote:
> > Well, here it is working.
> > if [ $reason = "BOUND" ]; then
> > .
> > .
> > .
> >
> >
> > What is your O.S. version?
>
> Hmmm ! /facepalm Debian, I've just re-read the subject though, is this
> something distro specific?  Any work around for Debian?
>
> Regards,
> Jon
>
>


-- 
Rafael Weingärtner


Re: Off topic, can anybody access cdimage.debian.org?

2014-04-16 Thread Outback Dingo
yes i can reach them all


On Wed, Apr 16, 2014 at 1:39 PM, Rafael Weingartner <
rafaelweingart...@gmail.com> wrote:

> Hi folks,
> Sorry the off topic message, but we are having a pretty weird situation
> here.
> Can somebody try to access these websites?:
> cdimage.debian.org
> debian.c3sl.ufpr.br
> sft.if.usp.br
>
> --
> Rafael Weingärtner
>


Off topic, can anybody access cdimage.debian.org?

2014-04-16 Thread Rafael Weingartner
Hi folks,
Sorry the off topic message, but we are having a pretty weird situation
here.
Can somebody try to access these websites?:
cdimage.debian.org
debian.c3sl.ufpr.br
sft.if.usp.br

-- 
Rafael Weingärtner


Re: Ubuntu instances + cloud-init

2014-04-16 Thread Jonathan Gowar
On Wed, 2014-04-16 at 14:30 -0300, Rafael Weingartner wrote:
> Well, here it is working.
> if [ $reason = "BOUND" ]; then
> .
> .
> .
> 
> 
> What is your O.S. version?

Hmmm ! /facepalm Debian, I've just re-read the subject though, is this
something distro specific?  Any work around for Debian?

Regards,
Jon



Re: Ubuntu instances + cloud-init

2014-04-16 Thread Jonathan Gowar
On Wed, 2014-04-16 at 10:04 -0300, Rafael Weingartner wrote:
> > #!/bin/sh
> > # dhclient change hostname script for Ubuntu
> > # /etc/dhcp/dhclient-exit-hooks.d/sethostname
> > # logs in /var/log/upstart/network-interface-eth0.log
> >
> > # for debugging:
> > echo "cloudstack-sethostname BEGIN"
> > export
> > set -x
> >
> > if [ $reason = "BOUND" ]; then
> > echo new_ip_address=$new_ip_address
> > echo new_host_name=$new_host_name
> > echo new_domain_name=$new_domain_name
> >
> > oldhostname=$(hostname -s)
> > if [ $oldhostname != $new_host_name ]; then
> >
> > # Rename Host
> > echo $new_host_name > /etc/hostname
> > hostname -F /etc/hostname
> >
> > # Update /etc/hosts if needed
> > TMPHOSTS=/etc/hosts.dhcp.new
> > if ! grep "$new_ip_address $new_host_name.$new_domain_name
> > $new_host_name" /etc/hosts; then
> > # Remove the 127.0.1.1 put there by the debian installer
> > grep -v '127\.0\.1\.1 ' < /etc/hosts > $TMPHOSTS
> > # Add the our new ip address and name
> > echo "$new_ip_address $new_host_name.$new_domain_name
> > $new_host_name" >> $TMPHOSTS
> > mv $TMPHOSTS /etc/hosts
> > fi
> >
> > # Recreate SSH2 keys
> > export DEBIAN_FRONTEND=noninteractive
> > dpkg-reconfigure openssh-server
> > fi
> > fi
> > echo "cloudstack-sethostname END"

This fails:-

+ [ = BOUND ]
/etc/dhcp/dhclient-exit-hooks.d/sethostname: 11: [: =: unexpected
operator

Any ideas?

Jon



Re: Ubuntu instances + cloud-init

2014-04-16 Thread Rafael Weingartner
Well, here it is working.
if [ $reason = "BOUND" ]; then
.
.
.


What is your O.S. version?


On Wed, Apr 16, 2014 at 2:25 PM, Jonathan Gowar wrote:

> On Wed, 2014-04-16 at 10:04 -0300, Rafael Weingartner wrote:
> > > #!/bin/sh
> > > # dhclient change hostname script for Ubuntu
> > > # /etc/dhcp/dhclient-exit-hooks.d/sethostname
> > > # logs in /var/log/upstart/network-interface-eth0.log
> > >
> > > # for debugging:
> > > echo "cloudstack-sethostname BEGIN"
> > > export
> > > set -x
> > >
> > > if [ $reason = "BOUND" ]; then
> > > echo new_ip_address=$new_ip_address
> > > echo new_host_name=$new_host_name
> > > echo new_domain_name=$new_domain_name
> > >
> > > oldhostname=$(hostname -s)
> > > if [ $oldhostname != $new_host_name ]; then
> > >
> > > # Rename Host
> > > echo $new_host_name > /etc/hostname
> > > hostname -F /etc/hostname
> > >
> > > # Update /etc/hosts if needed
> > > TMPHOSTS=/etc/hosts.dhcp.new
> > > if ! grep "$new_ip_address $new_host_name.$new_domain_name
> > > $new_host_name" /etc/hosts; then
> > > # Remove the 127.0.1.1 put there by the debian installer
> > > grep -v '127\.0\.1\.1 ' < /etc/hosts > $TMPHOSTS
> > > # Add the our new ip address and name
> > > echo "$new_ip_address $new_host_name.$new_domain_name
> > > $new_host_name" >> $TMPHOSTS
> > > mv $TMPHOSTS /etc/hosts
> > > fi
> > >
> > > # Recreate SSH2 keys
> > > export DEBIAN_FRONTEND=noninteractive
> > > dpkg-reconfigure openssh-server
> > > fi
> > > fi
> > > echo "cloudstack-sethostname END"
>
> This fails:-
>
> + [ = BOUND ]
> /etc/dhcp/dhclient-exit-hooks.d/sethostname: 11: [: =: unexpected
> operator
>
> Any ideas?
>
> Jon
>
>


-- 
Rafael Weingärtner


CloudStack-BIND dns integration

2014-04-16 Thread Ihor Kravchuk
Hi ,

I made a small python program that  solves DNS integration issues between
CloudStack VR's DNS service and BIND DNS.
This program assumes that you are using one sub-domain per network(each
network has own sub-domain) (IMHO the best way fro naming instances in
CloudStack)
How it works:
This program runs on CloudStack management server and listen for the new vm
deployment using CloudStack catalina.out log.
On event (new host deployed) program calls CloudStack API and gets list of
Networks and list of VM. Using theses lists and preconfigured domain
settings it creates the zone file for BIND, push it to server and refresh
BIND
The source code for the event driven version on GitHub:
 https://github.com/IhorKravchuk/cloudstack_ingvar/
All parameters load from dns_builder.conf file and local and remote (from
CloudStack mgmt server prospective) BIND DNS servers supported.
Igor


Re: Template creation hanging

2014-04-16 Thread Jonathan Gowar
On Wed, 2014-04-16 at 16:07 +0100, Jonathan Gowar wrote:
> Hi,
> 
>   Created an instance, shut it down to create a template from; which
> I've successfully done before.
> 
> This time, the process has hung, with these messages in the logs:-
> 
> 2014-04-16 16:04:42,891 WARN  [o.a.c.f.j.i.AsyncJobMonitor]
> (Timer-1:ctx-ccdc1f1f) Task (job-1158) has been pending for 694 seconds
> 
> How can I wipe away pending template creations, and start again?
> 
> Regards,
> Jon
> 

Finished, just took a while.

Thanks,
Jon



Template creation hanging

2014-04-16 Thread Jonathan Gowar
Hi,

  Created an instance, shut it down to create a template from; which
I've successfully done before.

This time, the process has hung, with these messages in the logs:-

2014-04-16 16:04:42,891 WARN  [o.a.c.f.j.i.AsyncJobMonitor]
(Timer-1:ctx-ccdc1f1f) Task (job-1158) has been pending for 694 seconds

How can I wipe away pending template creations, and start again?

Regards,
Jon



Vmware 5.5 dvSwitch support.

2014-04-16 Thread Steve Searles
Anyone know why this may be happening? vmware.use.dvswitch is set to true in 
global settings. The management server has been restarted.


The network label I am using is "dvSwitch-test,602,vmwaredvs" Using a standard 
vSwitch works fine. e.g. vSwitch1,602,vmwaresvs  Any ideas?

2014-04-03 12:39:45,313 DEBUG [c.c.h.v.r.VmwareResource] 
(DirectAgent-391:ctx-ed1b98f6 
esx02.cs.zimcom.net) VM 
i-2-40-VM will be started with NIC device type: E1000
2014-04-03 12:39:45,313 INFO  [c.c.h.v.r.VmwareResource] 
(DirectAgent-391:ctx-ed1b98f6 
esx02.cs.zimcom.net) 
Prepare NIC device based on NicTO: 
{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"9ef9f0ff-70e4-4851-8030-edef22aa61df","ip":"172.17.2.95","netmask":"255.255.255.0","gateway":"172.17.2.1","mac":"02:00:5a:92:00:0d","dns1":"209.212.245.10","dns2":"209.212.246.10","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://610","isolationUri":"vlan://610","isSecurityGroupEnabled":false,"name":"dvSwitch-test,602,vmwaredvs"}
2014-04-03 12:39:45,318 INFO  [c.c.h.v.r.VmwareResource] 
(DirectAgent-391:ctx-ed1b98f6 
esx02.cs.zimcom.net) 
Prepare network on vmwaredvs dvSwitch-test with name prefix: cloud.guest
2014-04-03 12:39:45,325 WARN  [c.c.h.v.r.VmwareResource] 
(DirectAgent-391:ctx-ed1b98f6 
esx02.cs.zimcom.net) 
StartCommand failed due to Exception: java.lang.NumberFormatException
Message: null

java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:443)
at java.lang.Integer.parseInt(Integer.java:514)
at 
com.cloud.hypervisor.vmware.mo.HypervisorHostHelper.prepareNetwork(HypervisorHostHelper.java:504)
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.prepareNetworkFromNicInfo(VmwareResource.java:3692)
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:2934)
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:525)
at 
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
at 
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at 
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)



vmware 5.5
dvswitch 5.5
centos 6.4 non-oss rpm build.



Steven Searles, CTO | ssear...@zimcom.net
Zimcom Internet Solutions  | www.zimcom.net
O: 513.231.9500  |  D: 513.233.4130

[cid:image001.jpg@01CF54D3.D25E1ED0]



Re: Ubuntu instances + cloud-init

2014-04-16 Thread Rafael Weingartner
Welll, I do not remember finding this on CS docs. I found them googling.

cloud-set-guest-password (I registered it on init.d)

#!/bin/bash
> #
> # Init file for Password Download Client
> #
> # chkconfig: 345 98 02
> # description: Password Download Client
>
> # Licensed to the Apache Software Foundation (ASF) under one
> # or more contributor license agreements.  See the NOTICE file
> # distributed with this work for additional information
> # regarding copyright ownership.  The ASF licenses this file
> # to you under the Apache License, Version 2.0 (the
> # "License"); you may not use this file except in compliance
> # with the License.  You may obtain a copy of the License at
> #
> #   http://www.apache.org/licenses/LICENSE-2.0
> #
> # Unless required by applicable law or agreed to in writing,
> # software distributed under the License is distributed on an
> # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> # KIND, either express or implied.  See the License for the
> # specific language governing permissions and limitations
> # under the License.
>
>
> # Modify this line to specify the user (default is root)
> user=root
>
> # Add your DHCP lease folders here
> DHCP_FOLDERS="/var/lib/dhclient/* /var/lib/dhcp3/* /var/lib/dhcp/*"
> password_received=0
> file_count=0
> error_count=0
>
> for DHCP_FILE in $DHCP_FOLDERS
> do
> if [ -f $DHCP_FILE ]
> then
> file_count=$((file_count+1))
> PASSWORD_SERVER_IP=$(grep dhcp-server-identifier $DHCP_FILE | tail
> -1 | awk '{print $NF}' | tr -d '\;')
>
> if [ -n "$PASSWORD_SERVER_IP" ]
> then
> logger -t "cloud" "Found password server IP
> $PASSWORD_SERVER_IP in $DHCP_FILE"
> logger -t "cloud" "Sending request to password server at
> $PASSWORD_SERVER_IP"
> password=$(wget -q -t 3 -T 20 -O - --header "DomU_Request:
> send_my_password" $PASSWORD_SERVER_IP:8080)
> password=$(echo $password | tr -d '\r')
>
> if [ $? -eq 0 ]
> then
> logger -t "cloud" "Got response from server at
> $PASSWORD_SERVER_IP"
>
> case $password in
>
> "")logger -t "cloud" "Password server
> at $PASSWORD_SERVER_IP did not have any password for the VM"
> continue
> ;;
>
> "bad_request")logger -t "cloud" "VM sent an
> invalid request to password server at $PASSWORD_SERVER_IP"
> error_count=$((error_count+1))
> continue
> ;;
>
> "saved_password") logger -t "cloud" "VM has already
> saved a password from the password server at $PASSWORD_SERVER_IP"
> continue
> ;;
>
> *)logger -t "cloud" "VM got a valid
> password from server at $PASSWORD_SERVER_IP"
> password_received=1
> break
> ;;
>
> esac
> else
> logger -t "cloud" "Failed to send request to password
> server at $PASSWORD_SERVER_IP"
> error_count=$((error_count+1))
> fi
> else
> logger -t "cloud" "Could not find password server IP in
> $DHCP_FILE"
> error_count=$((error_count+1))
> fi
> fi
> done
>
> if [ "$password_received" == "0" ]
> then
> if [ "$error_count" == "$file_count" ]
> then
> logger -t "cloud" "Failed to get password from any server"
> exit 1
> else
> logger -t "cloud" "Did not need to change password."
> exit 0
> fi
> fi
>
> logger -t "cloud" "Changing password ..."
> echo $user:$password | chpasswd
>
> if [ $? -gt 0 ]
> then
> usermod -p 'mkpasswd -m SHA-512 $password' $user
>
> if [ $? -gt 0 ]
> then
> logger -t "cloud" "Failed to change password for user $user"
> exit 1
> else
> logger -t "cloud" "Successfully changed password for user $user"
> fi
> fi
>
> logger -t "cloud" "Sending acknowledgment to password server at
> $PASSWORD_SERVER_IP"
> wget -t 3 -T 20 -O - --header "DomU_Request: saved_password"
> $PASSWORD_SERVER_IP:8080
> exit 0
>
>
setHostName (to change hostname after the DHCP server gives you the IP and
desired hostName from CS):

> #!/bin/sh
> # dhclient change hostname script for Ubuntu
> # /etc/dhcp/dhclient-exit-hooks.d/sethostname
> # logs in /var/log/upstart/network-interface-eth0.log
>
> # for debugging:
> echo "cloudstack-sethostname BEGIN"
> export
> set -x
>
> if [ $reason = "BOUND" ]; then
> echo new_ip_address=$new_ip_address
> echo new_host_name=$new_host_name
> echo new_domain_name=$new_domain_name
>
> oldhostname=$(hostname -s)
> if [ $oldhostname != $new_host_n

Re: Ubuntu instances + cloud-init

2014-04-16 Thread Jonathan Gowar
On Wed, 2014-04-16 at 08:54 -0300, Rafael Weingartner wrote


> One to change the root password, and the other to change the host name
> according to the one that was defined on CS.
> 
> one is in "/etc/init.d/", and it is called cloud-set-guest-password.
> (The script is attached).
> 
> 
> and the second one is in "tc/dhcp/dhclient-exit-hooks.d/", so it is
> called right after the DHCP finishes its job. And its name is
> setHostName. (Also attached)

Hi,

  I need to do change the hostname as according to CS, but don't know
about cloud-init scripts.

What machine would a script to set the hostname sit on?  Also, it seems
the attachments are missing?

Is this documented anywhere, to give me a better understand.

Thanks,
Jon
> 



RE: Ubuntu instances + cloud-init

2014-04-16 Thread Geoff Higginbottom
Rafael,

Mail system strips scripts, could you include the code in the body of the mail 
instead?

Regards

Geoff Higginbottom

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

geoff.higginbot...@shapeblue.com

From: Rafael Weingartner [mailto:rafaelweingart...@gmail.com]
Sent: 16 April 2014 12:55
To: users@cloudstack.apache.org
Subject: Re: Ubuntu instances + cloud-init

Sure ;)
On my Ubuntu 12.04 templates I use two scripts.
One to change the root password, and the other to change the host name 
according to the one that was defined on CS.
one is in "/etc/init.d/", and it is called cloud-set-guest-password. (The 
script is attached).

and the second one is in "tc/dhcp/dhclient-exit-hooks.d/", so it is called 
right after the DHCP finishes its job. And its name is setHostName. (Also 
attached)


On Wed, Apr 16, 2014 at 7:15 AM, Nux! mailto:n...@li.nux.ro>> 
wrote:
On 15.04.2014 22:02, Rafael Weingartner wrote:
If that one does not work, I can show you mine. I use Ubuntu 12.04
templates ;)

Do show anyhow, don't be shy. :)


Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro



--
Rafael Weingärtner
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
28th-29th May 2014, Bangalore. 
Classromm
16th-20th June 2014, Region A. Instructor led, 
On-line
23rd-27th June 2014, Region B. Instructor led, 
On-line
15th-20th September 2014, Region A. Instructor led, 
On-line
22nd-27th September 2014, Region B. Instructor led, 
On-line
1st-6th December 2014, Region A. Instructor led, 
On-line
8th-12th December 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.


Re: Ubuntu instances + cloud-init

2014-04-16 Thread Rafael Weingartner
Sure ;)
On my Ubuntu 12.04 templates I use two scripts.
One to change the root password, and the other to change the host name
according to the one that was defined on CS.
one is in "/etc/init.d/", and it is called cloud-set-guest-password. (The
script is attached).

and the second one is in "tc/dhcp/dhclient-exit-hooks.d/", so it is called
right after the DHCP finishes its job. And its name is setHostName. (Also
attached)




On Wed, Apr 16, 2014 at 7:15 AM, Nux!  wrote:

> On 15.04.2014 22:02, Rafael Weingartner wrote:
>
>> If that one does not work, I can show you mine. I use Ubuntu 12.04
>> templates ;)
>>
>
> Do show anyhow, don't be shy. :)
>
>
> Lucian
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro
>



-- 
Rafael Weingärtner


Re: Ubuntu instances + cloud-init

2014-04-16 Thread Nux!

On 15.04.2014 22:02, Rafael Weingartner wrote:

If that one does not work, I can show you mine. I use Ubuntu 12.04
templates ;)


Do show anyhow, don't be shy. :)

Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: SSVM output, Why the default centos system doesnt gets loaded?

2014-04-16 Thread Shanker Balan
Hi Sandeep,

Comments inline.

On 16-Apr-2014, at 12:00 pm, sandeep khandekar  
wrote:

> Yesterday I sent a wrong output
>
> Please find the exact output of my ssvm and help me out
>
> Link Local IP address
> # ssh -i /var/lib/cloudstack/management/.ssh/id_rsa -p 3922 root@
> 169.254.3.199
> The authenticity of host '[169.254.3.199]:3922 ([169.254.3.199]:3922)'
> can't be established.
> ECDSA key fingerprint is 49:e9:95:ab:c6:34:fb:88:f6:c1:8b:14:31:6b:50:ca.
> Are you sure you want to continue connecting (yes/no)? yes
> Warning: Permanently added '[169.254.3.199]:3922' (ECDSA) to the list of
> known hosts.
> Linux s-1-VM 3.2.0-4-686-pae #1 SMP Debian 3.2.41-2 i686
> .
> root@s-1-VM:~# /usr/local/cloud/systemvm/ssvm-check.sh
>
> 
> First DNS server is  10.4.21.4
> PING 10.4.21.4 (10.4.21.4): 56 data bytes
> 64 bytes from 10.4.6.68: Destination Host Unreachable
> Vr HL TOS  Len   ID Flg  off TTL Pro  cks  Src  Dst Data
> 4  5  00 5400    0 0040  40  01 5a0b 10.4.6.68  10.4.21.4
> 64 bytes from 10.4.6.68: Destination Host Unreachable
> Vr HL TOS  Len   ID Flg  off TTL Pro  cks  Src  Dst Data
> 4  5  00 5400    0 0040  40  01 5a0b 10.4.6.68  10.4.21.4
> --- 10.4.21.4 ping statistics ---
> 2 packets transmitted, 0 packets received, 100% packet loss
> WARNING: cannot ping DNS server
> route follows
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric RefUse
> Iface
> 0.0.0.0 10.4.6.10.0.0.0 UG0  00 eth2
> 10.4.6.00.0.0.0 255.255.255.128 U 0  00 eth1
> 10.4.6.00.0.0.0 255.255.255.128 U 0  00 eth2
> 10.4.6.00.0.0.0 255.255.255.128 U 0  00 eth3
> 10.4.21.4   10.4.6.1255.255.255.255 UGH   0  00 eth1
> 103.15.60.4 10.4.6.1255.255.255.255 UGH   0  00 eth1
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0  00 eth0
> 
> ERROR: DNS not resolving download.cloud.com
> resolv.conf follows
> nameserver 10.4.21.4
> nameserver 103.15.60.4
> nameserver 10.4.21.4
> nameserver 103.15.60.4
> root@s-1-VM:~#
>
> If I use private IP it throws an error.  to connect to ssvm
> #ssh -i /var/lib/cloudstack/management/.ssh/id_rsa -p 3922 root@10.4.6.68
> ssh: connect to host 10.4.6.68 port 3922: No route to host
>
> How to enable dns server?


Sandeep,

This looks like a network configuration issue to me. Looking at your routing
table, the 2 DNS servers having the IPs 10.4.21.4 and 103.15.60.4 have a
host specific route using the eth1 device:

> 10.4.21.4   10.4.6.1255.255.255.255 UGH   0  00 eth1
> 103.15.60.4 10.4.6.1255.255.255.255 UGH   0  00 eth1



Would you know which physical interface on the hypervisor is bridged to
SSVM’s eth1? You can run the “brctl show” command on the hypervisor to get this
information.


> If I ping from my machine it is working properly,
>
> root@cloudstack# ping 10.4.21.4
>
> PING 10.4.21.4 (10.4.21.4) 56(84) bytes of data.
> 64 bytes from 10.4.21.4: icmp_req=1 ttl=127 time=32.3 ms
> 64 bytes from 10.4.21.4: icmp_req=2 ttl=127 time=0.824 ms
> 64 bytes from 10.4.21.4: icmp_req=3 ttl=127 time=4.08 ms
> ^C
>
> --- 10.4.21.4 ping statistics ---
> 3 packets transmitted, 3 received, 0% packet loss, time 2000ms
> rtt min/avg/max/mdev = 0.824/12.420/32.350/14.155 ms
>
> Troublesome to understand now.

A Virtual Machine’s networking is very different from the physical
hosts networking. A physical bridge has to configured with the
right label to assist cloudstack in mapping a VMs interface(s)
to the right physical interface.

If the mapping is incorrect, then networking will generally fail.

Hth.




--
@shankerbalan

M: +91 98860 60539 | O: +91 (80) 67935867
shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, 
Bangalore - 560 055

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
28th-29th May 2014, Bangalore. 
Classromm
16th-20th June 2014, Region A. Instructor led, 
On-line
23rd-27th June 2014, Region B. Instructor led, 
On-line
15th-20th September 2014, Region A. Instructor led, 
On-line
22nd-27th September 2014, Region B. Instructor led, 
On-line
1st-6th December 2014, Region A. Instructor led, 
On-line