Error when creating a cluster (Failed 0%)

80 views
Skip to first unread message

Nicolas Punzo

unread,
May 13, 2013, 4:32:49 AM5/13/13
to serenge...@googlegroups.com
Hello,

Being new in the Serengeti world, I have deployed the serengeti appliance on my vCenter. I have also configured the datastore, the network and the RP, but when I try to deploy a test cluster via the following command:

cluster create --name MyCluster --type hadoop

I get this result :

FAILED 0%

node group: master,  instance number: 0
roles:[hadoop_namenode, hadoop_jobtracker]

node group: worker,  instance number: 0
roles:[hadoop_datanode, hadoop_tasktracker]

node group: client,  instance number: 0
roles:[hadoop_client, pig, hive, hive_server]


cluster MonCluster create failed: you can get task failure details from serengeti server log at: /opt/serengeti/logs/task/25

The /opt/serengeti/logs/task/25/stderr.log file contains this error :

ERROR: URI::InvalidURIError: the scheme http does not accept registry part: :4000 (or bad hostname?)

I haven't found the root cause of this error on the existing threads nor in google. Someone has already faced to this error?

Thank's in advance,

Nicolas

Emma Lin

unread,
May 13, 2013, 10:22:29 AM5/13/13
to serenge...@googlegroups.com
Nicolas,
Could you please provide the Serengeti web service log file, /opt/serengeti/logs/serengeti.log and any files under directory /opt/serengeti/logs/task/25?
I need to check the log file to see which step has problem.
thanks

Emma

From: "Nicolas Punzo" <nicola...@gmail.com>
To: serenge...@googlegroups.com
Sent: Monday, May 13, 2013 4:32:49 PM
Subject: Error when creating a cluster (Failed 0%)
--
 
---
You received this message because you are subscribed to the Google Groups "serengeti-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to serengeti-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Nicolas Punzo

unread,
May 13, 2013, 1:24:00 PM5/13/13
to serenge...@googlegroups.com
Hello,

Here is the folder with the log files (serengeti.log, MonCluster.json, stderr.log and stdout.log).
I have tried to find something in the serengeti.log, but it seems not being easy...

Thanks in advance

Nicolas


2013/5/13 Emma Lin <li...@vmware.com>

Nicolas Punzo

unread,
May 13, 2013, 1:24:31 PM5/13/13
to serenge...@googlegroups.com
With the file attached, it's better! Lol.


2013/5/13 Nicolas Punzo <nicola...@gmail.com>
logs_serengeti.zip

Nicolas Punzo

unread,
May 14, 2013, 10:58:07 AM5/14/13
to serenge...@googlegroups.com
Thanks for all these answers, I will try it asap.
Actually I have an other question. When I have deployed the vApp, I have configured a static IP address. However, each time I reboot it, it tries to get one by DHCP. Of course it fails and I am forced to set it up manually via ifconfig, route etc... Is there a way to configure it once for all?

Best regards,

Nico


2013/5/14 Jesse Hu <huh...@gmail.com>
Hi Nicolas,

Please ignore the tips that I mentioned to modify /opt/serengeti/www/distros/manifest.  It's not necessary.  Please follow other steps to recover your error.


-Jesse

在 2013年5月14日星期二UTC+8上午1时24分31秒,Nicolas Punzo写道:

Emma Lin

unread,
May 14, 2013, 9:49:53 PM5/14/13
to serenge...@googlegroups.com
Nico,
Could you please provide your log file /opt/serengeti/logs/serengeti-firstboot.log and network config file "/etc/sysconfig/network-scripts/ifcfg-eth0"?
We can help to check if the configuration is as your expected.

thanks
Emma

Sent: Tuesday, May 14, 2013 10:58:07 PM
Subject: Re: Error when creating a cluster (Failed 0%)

Nicolas Punzo

unread,
May 15, 2013, 2:33:01 AM5/15/13
to serenge...@googlegroups.com
Hello,

The ifcfg-eth0 seems to be configured for DHCP, and the serengeti-firstboot.log shows a NoRouteToHostException when trying to register to the vCenter Extension Service (that may explain the impossibility to create the cluster's VMs, and the FAILED 0%)

Here is what ifcfg-eth0 contains :
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet


For the serengeti-firstboot.log :

Fri May 3 22:47:40 UTC 2013
Creating vhost "/chef" ...
Creating user "chef" ...
Setting permissions for user "chef" in vhost "/chef" ...
...done.
spawn /usr/bin/knife configure -i -y^M
Please enter the chef server URL: [http://localhost:4000] ^M
Please enter a clientname for the new client: [serengeti] serengeti^M
Please enter the existing admin clientname: [chef-webui] ^M
Please enter the location of the existing admin client's private key: [/etc/chef/webui.pem] .chef/webui.pem^M
Please enter the validation clientname: [chef-validator] ^M
Please enter the location of the validation key: [/etc/chef/validation.pem] .chef/validation.pem^M
Please enter the path to a chef repository (or leave blank): ^M
Creating initial API user...^M
Created client[serengeti]^M
Configuration file written to /opt/serengeti/.chef/knife.rb^M
boot_proto: DHCP
dns1: 10.193.117.254
dns2: 0.0.0.0
gateway: 10.192.132.1
initResources: True
ipAddr: 10.192.132.2
netmask: 255.255.252.0
vm.ip:
Network Name: vmprod22
VC IP: 10.192.133.189
VM Ref ID: vm-126
Node Template Name: hadoop-template
evs URL: https://10.192.133.189/vsm/extensionService
evs Token: *** HIDDEN ***
evs X509Thumbprint: 36:20:4b:47:9c:12:c6:c7:db:58:db:40:1b:d2:21:f3:fc:fc:c5:1b
distro ip: distro_root = http:\/\/\/distros
fqdn_url: chef_server_url         'http:\/\/:4000'
serengeti-cli-0.8.0.jar
generating certificate and private keys
generated certificate and private key in /opt/serengeti/.certs
registering serengeti server as vc ext service
[03-May-2013 22:48:45] DEBUG VcExtension:92 - Registering extension vService at: https://10.192.133.189/vsm/extensionService ExtensionKey: com.vmware.serengeti.c75709f7
[03-May-2013 22:48:45] ERROR VcExtension:150 - Failed Extension registration to https://10.192.133.189/vsm/extensionService
java.net.NoRouteToHostException: Network is unreachable
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
        at java.net.Socket.connect(Socket.java:546)
        at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:579)
        at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:178)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
        at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
        at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:332)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:979)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
        at com.vmware.serengeti.VcExtension.registerExtensionVService(VcExtension.java:122)
        at com.vmware.serengeti.VcExtension.main(VcExtension.java:163)


Best regards,

Nico


2013/5/15 Emma Lin <li...@vmware.com>

Emma Lin

unread,
May 15, 2013, 2:43:24 AM5/15/13
to serenge...@googlegroups.com
Nicolas,
The exception in first boot is because network configuration failure. The log show that you choose the DHCP protocol.
If you don't have a dhcp server, probably you can try to deploy use static ip once more? Please choose Static for the "Network Type" during ova deployment.

thanks
Emma

Sent: Wednesday, May 15, 2013 2:33:01 PM

Nicolas Punzo

unread,
May 17, 2013, 11:24:25 AM5/17/13
to serenge...@googlegroups.com

Ok it works. I may have configured the static ip fields without precising it was a static ip. It has been redeployed and it's ok.

Thanks for your help :)

Nico

Emma Lin

unread,
May 19, 2013, 10:25:02 AM5/19/13
to serenge...@googlegroups.com
Great Nicolas.
For any more questions, please let us know.
thanks
Emma

Sent: Friday, May 17, 2013 11:24:25 PM
Reply all
Reply to author
Forward
0 new messages