cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jayapal Reddy Uradi <jayapalreddy.ur...@citrix.com>
Subject Re: security_group.py closed unexpectedly
Date Mon, 07 Apr 2014 10:44:59 GMT
The error is specific to running with sudo. 
But this error is not related to security_group.py failure.

Thanks,
Jayapal
On 07-Apr-2014, at 4:06 PM, Giri Prasad <g_pr23@yahoo.com>
 wrote:

> Hi,
> 
> Thanks for your reply.
> 
> /usr/bin/python /usr/share/cloudstack-common/scripts/vm/network/security_group.py default_network_rules_systemvm
--vmname s-5-VM --localbrname cloud
> ----------------> runs fine, without any problem.
> 
>  However, I notice the following errors, in the management log, when I stop and start
the management server and the cloudstack agent.
> 
>  Please let know of any clues towards this.
> 
> Thanks in advance.
> 
> Regards,
> Giri
> 
> 2014-04-07 15:43:25,145 DEBUG [c.c.u.s.Script] (main:null) Executing: sudo keytool -genkey
-keystore /etc/cloudstack/management/cloudmanagementserver.keystore -storepass vmops.com -keypass
vmops.com -keyalg RSA -validity 3650 -dname cn="Cloudstack User",ou="giriubuntu.cruzesoft.com",o="giriubuntu.cruzesoft.com",c="Unknown"

> 2014-04-07 15:43:25,181 DEBUG [c.c.u.s.Script] (main:null) Exit value is 1
> 2014-04-07 15:43:25,181 DEBUG [c.c.u.s.Script] (main:null) sudo: no tty present and no
askpass program specifiedSorry, try again.sudo: no tty present and no askpass program specifiedSorry,
try again.sudo: no tty present and no askpass program specifiedSorry, try again.sudo: 3 incorrect
password attempts
> 2014-04-07 15:43:25,182 WARN  [c.c.s.ConfigurationServerImpl] (main:null) Would use fail-safe
keystore to continue.
> java.io.IOException: Fail to generate certificate!: sudo: no tty present and no askpass
program specifiedSorry, try again.sudo: no tty present and no askpass program specifiedSorry,
try again.sudo: no tty present and no askpass program specifiedSorry, try again.sudo: 3 incorrect
password attempts
> 	at com.cloud.server.ConfigurationServerImpl.generateDefaultKeystore(ConfigurationServerImpl.java:576)

> 
> 
> 014-04-07 15:43:25,222 INFO  [c.c.s.ConfigurationServerImpl] (main:null) Going to update
systemvm iso with generated keypairs if needed
> 2014-04-07 15:43:25,223 DEBUG [c.c.u.s.Script] (main:null) Looking for scripts/vm/systemvm/injectkeys.sh
in the classpath
> 2014-04-07 15:43:25,223 DEBUG [c.c.u.s.Script] (main:null) System resource: null
> 2014-04-07 15:43:25,224 DEBUG [c.c.u.s.Script] (main:null) Classpath resource: file:/usr/share/cloudstack-management/webapps/client/WEB-INF/classes/scripts/vm/systemvm/injectkeys.sh
> 2014-04-07 15:43:25,224 DEBUG [c.c.u.s.Script] (main:null) Absolute path =  /usr/share/cloudstack-management/webapps/client/WEB-INF/classes/scripts/vm/systemvm/injectkeys.sh
> 2014-04-07 15:43:25,224 DEBUG [c.c.u.s.Script] (main:null) Looking for vms/systemvm.iso
in the classpath
> 2014-04-07 15:43:25,224 DEBUG [c.c.u.s.Script] (main:null) System resource: null
> 2014-04-07 15:43:25,994 DEBUG [c.c.u.s.Script] (main:null) Classpath resource: file:/usr/share/cloudstack-management/webapps/client/WEB-INF/classes/vms/systemvm.iso
> 2014-04-07 15:43:25,994 DEBUG [c.c.u.s.Script] (main:null) Absolute path =  /usr/share/cloudstack-management/webapps/client/WEB-INF/classes/vms/systemvm.iso
> 
> 
> 2014-04-07 15:43:26,199 INFO  [c.c.c.ClusterManagerImpl] (main:null) Start configuring
cluster manager : ClusterManagerImpl
> 2014-04-07 15:43:26,200 INFO  [c.c.c.ClusterManagerImpl] (main:null) Cluster node IP
: 192.168.1.5
> 2014-04-07 15:43:26,218 INFO  [c.c.c.ClusterManagerImpl] (main:null) Trying to connect
to 192.168.1.5
> 2014-04-07 15:43:26,221 ERROR [c.c.c.ClusterManagerImpl] (main:null) Unable to ping management
server at 192.168.1.5:9090 due to ConnectException
> java.net.ConnectException: Connection refused
> 	at sun.nio.ch.Net.connect(Native Method)
> 	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:534)
> 	at com.cloud.cluster.ClusterManagerImpl.pingManagementNode(ClusterManagerImpl.java:1122)

> 
> 
> 
> 2014-04-07 15:43:37,511 INFO  [o.a.c.s.d.p.DefaultHostListener] (AgentConnectTaskPool-1:ctx-d531d35b)
Connection established between org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@1fd79af9
host + 1
> 2014-04-07 15:43:37,520 DEBUG [c.c.s.StorageManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
Successfully set Capacity - 447226052608 for capacity type - 3 , DataCenterId - 1, HostOrPoolId
- 1, PodId 1
> 2014-04-07 15:43:37,520 DEBUG [c.c.a.m.AgentManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
Sending Connect to listener: SecondaryStorageListener
> 2014-04-07 15:43:37,520 DEBUG [c.c.a.m.AgentManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
Sending Connect to listener: DeploymentPlanningManagerImpl
> 2014-04-07 15:43:37,522 DEBUG [c.c.a.m.AgentManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
Sending Connect to listener: ClusteredVirtualMachineManagerImpl
> 2014-04-07 15:43:37,522 DEBUG [c.c.v.VirtualMachineManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
Received startup command from hypervisor host. host id: 1
> 2014-04-07 15:43:37,533 DEBUG [c.c.v.VirtualMachineManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
Found 2 VMs for host 1
> 2014-04-07 15:43:37,535 DEBUG [c.c.v.VirtualMachineManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
VM v-2-VM: cs state = Running and realState = Running
> 2014-04-07 15:43:37,535 DEBUG [c.c.v.VirtualMachineManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
VM v-2-VM: cs state = Running and realState = Running
> 2014-04-07 15:43:37,536 DEBUG [c.c.v.VirtualMachineManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
Both states are Running for VM[ConsoleProxy|v-2-VM]
> 2014-04-07 15:43:37,539 DEBUG [c.c.c.CapacityManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
VM state transitted from :Running to Running with event: AgentReportRunningvm's original host
id: null new host id: 1 host id before state transition: 1
> 2014-04-07 15:43:37,541 DEBUG [c.c.v.VirtualMachineManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
VM s-5-VM: cs state = Running and realState = Running
> 2014-04-07 15:43:37,541 DEBUG [c.c.v.VirtualMachineManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
VM s-5-VM: cs state = Running and realState = Running
> 2014-04-07 15:43:37,541 DEBUG [c.c.v.VirtualMachineManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
Both states are Running for VM[SecondaryStorageVm|s-5-VM]
> 2014-04-07 15:43:37,543 DEBUG [c.c.c.CapacityManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
VM state transitted from :Running to Running with event: AgentReportRunningvm's original host
id: null new host id: 1 host id before state transition: 1
> 2014-04-07 15:43:37,543 DEBUG [c.c.a.m.AgentManagerImpl] (AgentConnectTaskPool-1:ctx-d531d35b)
Sending Connect to listener: SecurityGroupListener
> 2014-04-07 15:43:37,543 INFO  [c.c.n.s.SecurityGroupListener] (AgentConnectTaskPool-1:ctx-d531d35b)
Received a host startup notification
> 
> 
> 
> 2014-04-07 15:44:26,662 DEBUG [c.c.c.ConsoleProxyManagerImpl] (consoleproxy-1:ctx-6f00e8c4)
Zone 1 is ready to launch console proxy
> 2014-04-07 15:44:26,717 DEBUG [c.c.s.s.SecondaryStorageManagerImpl] (secstorage-1:ctx-92f6fa8b)
Zone 1 is ready to launch secondary storage VM
> 2014-04-07 15:44:34,830 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-6fc47e48)
Found 0 routers to update status. 
> 2014-04-07 15:44:34,832 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-6fc47e48)
Found 0 networks to update RvR status. 
> 2014-04-07 15:44:37,244 DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-14:null)
Ping from 1
> 2014-04-07 15:44:49,742 DEBUG [c.c.s.StatsCollector] (StatsCollector-2:ctx-7f9a37d0)
VmStatsCollector is running...
> 2014-04-07 15:44:49,831 DEBUG [c.c.s.StatsCollector] (StatsCollector-2:ctx-98546443)
StorageCollector is running...
> 2014-04-07 15:44:49,839 DEBUG [c.c.s.StatsCollector] (StatsCollector-2:ctx-98546443)
There is no secondary storage VM for secondary storage host nfs://192.168.1.5/export/secondary
> 2014-04-07 15:44:49,909 DEBUG [c.c.a.t.Request] (StatsCollector-2:ctx-98546443) Seq 1-687210506:
Received:  { Ans: , MgmtId: 279278805451170, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer
} }
> 2014-04-07 15:44:50,377 DEBUG [c.c.s.StatsCollector] (StatsCollector-1:ctx-d68a0a57)
HostStatsCollector is running...
> 2014-04-07 15:44:51,002 DEBUG [c.c.a.t.Request] (StatsCollector-1:ctx-d68a0a57) Seq 1-687210507:
Received:  { Ans: , MgmtId: 279278805451170, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer
} }
> 2014-04-07 15:44:56,548 DEBUG [c.c.c.ConsoleProxyManagerImpl] (consoleproxy-1:ctx-0afaeba3)
Zone 1 is ready to launch console proxy
> 2014-04-07 15:44:56,608 DEBUG [c.c.s.s.SecondaryStorageManagerImpl] (secstorage-1:ctx-0cb966a5)
Zone 1 is ready to launch secondary storage VM
> 2014-04-07 15:45:04,827 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-db6c8a2f)
Found 0 routers to update status. 
> 2014-04-07 15:45:04,830 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-db6c8a2f)
Found 0 networks to update RvR status.


Mime
View raw message