Topic
  • 5 replies
  • Latest Post - ‏2013-08-02T15:11:08Z by tej
SYSTEMSMANAGEDLtd
SYSTEMSMANAGEDLtd
4 Posts

Pinned topic Troubleshooting openstack-smartcloud service

‏2013-07-15T19:04:51Z |
Hi. IBM SCO22 GA on RHEL 6.2. I'm trying to manage a Vsphere Vcenter 5.0 server from SCO but haven't been able to connect it as below. Does anyone have any tips to troubleshoot why the openstack-smartcloud service will not start? I haven't found much in the manual to help with finding out the cause, only for identifying the symptoms. Thanks

 

[root@IBMSCO22 ~]# /opt/ibm/openstack/iaas/smartcloud/bin/nova-cloud-create IBMSCO22.homelan.local MyCloud 192.168.1.125 root mypassword VMware 443
{ "cloud":{ "driver":"IBMSCO22.homelan.local", "name":"MyCloud", "description":"OpenStack managed VMware", "hostname":"192.168.1.125", "username":"root", "password":"mypassword", "type":"VMware", "port":443} }
{"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}
 
[root@IBMSCO22 ~]# /opt/ibm/openstack/iaas/smartcloud/bin/nova-cloud-pingtest 192.168.1.125 root mypassword VMware 443
{ "cloud":{ "hostname":"192.168.1.125", "username":"root", "password":"mypassword", "type":"VMware" , "port":443} }
{"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}
[root@IBMSCO22 bin]# service openstack-smartcloud status
openstack-smartcloud dead but pid file exists
[root@IBMSCO22 bin]# service openstack-nova-compute status
openstack-nova-compute dead but pid file exists

The manual says:

  • If the status of OpenStack SmartCloud is "openstack-smartcloud dead but pid file exists", it means that SmartCloud Entry did not connect to the clouds created by it. Check the log file /var/log/nova/smartcloud.log. If you find in it the error messages as follows, wait a moment to start OpenStack Smartloud. If it does not work, check vCenter:
    
    # <body><h2>HTTP ERROR 404</h2>
    <p>Problem accessing /cloud/api/productInfo/version. Reason:<pre>  ProxyServlet: /cloud/api/productInfo/version</pre>
    

 

But I don't get that exact message in smartcloud.log, I only get:

<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /cloud/api/targets. Reason:
<pre>    The server has not found anything matching the request URI</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>    

Updated on 2013-07-15T19:28:45Z at 2013-07-15T19:28:45Z by SYSTEMSMANAGEDLtd
  • B0ED_shuang_men
    B0ED_shuang_men
    3 Posts

    Re: Troubleshooting openstack-smartcloud service

    ‏2013-07-17T09:20:39Z  

    Hi,

    There may be multiple resons for the smart-clould not working. Here are some of my advices.

    1) Check that firstbox can ping the vcenter.

    2) Check the SEC is up and running. You can refer to the following link

    http://pic.dhe.ibm.com/infocenter/tivihelp/v48r1/topic/com.ibm.sco.doc_2.2/t_verifying_sce.html

    3) For the command,

    
    > /opt/ibm/openstack/iaas/smartcloud/bin/nova-cloud-create 
    [--os-region-name <region-name>]
    <os-hostname> 
    <name> 
    <hostname> 
    <username> 
    <password> 
    <type> 
    [port]
    

    One thing need to be noticed, in comand line, run "hostname" and the output should  be the <os-hostname>.

     Here is what you can follow to connect to a vcenter.

    http://pic.dhe.ibm.com/infocenter/tivihelp/v48r1/topic/com.ibm.sco.doc_2.2/t_config_sco_vmware.html

    Hope this can help you.

     

  • SYSTEMSMANAGEDLtd
    SYSTEMSMANAGEDLtd
    4 Posts

    Re: Troubleshooting openstack-smartcloud service

    ‏2013-07-17T16:51:23Z  

    Hi,

    There may be multiple resons for the smart-clould not working. Here are some of my advices.

    1) Check that firstbox can ping the vcenter.

    2) Check the SEC is up and running. You can refer to the following link

    http://pic.dhe.ibm.com/infocenter/tivihelp/v48r1/topic/com.ibm.sco.doc_2.2/t_verifying_sce.html

    3) For the command,

    <pre class="pre codeblock" dir="ltr" id="vcc_sp_pre_58" tabindex="16"> > /opt/ibm/openstack/iaas/smartcloud/bin/nova-cloud-create [--os-region-name <region-name>] <os-hostname> <name> <hostname> <username> <password> <type> [port] </pre>

    One thing need to be noticed, in comand line, run "hostname" and the output should  be the <os-hostname>.

     Here is what you can follow to connect to a vcenter.

    http://pic.dhe.ibm.com/infocenter/tivihelp/v48r1/topic/com.ibm.sco.doc_2.2/t_config_sco_vmware.html

    Hope this can help you.

     

    Hi. Thank you for the reply.  Firstbox is IBMSCO22.homelan.local

    1) Check that firstbox can ping the vcenter.

    [root@IBMSCO22 ~]# ping 192.168.1.125
    PING 192.168.1.125 (192.168.1.125) 56(84) bytes of data.
    64 bytes from 192.168.1.125: icmp_seq=1 ttl=64 time=1.27 ms
    64 bytes from 192.168.1.125: icmp_seq=2 ttl=64 time=0.464 ms


    [root@IBMSCO22 ~]# telnet 192.168.1.125 443
    Trying 192.168.1.125...
    Connected to 192.168.1.125.
    Escape character is '^]'.



    2) Check the SEC is up and running.

    [root@IBMSCO22 ~]# ps -ef | grep java
    root      2437  2435  0 17:00 ?        00:00:08 /opt/ibm/SCE24/jre/bin/java -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Dorg.osgi.service.http.port=7080 -Dequinox.ds.print=true -Dosgi.requiredJavaVersion=1.6 -Dorg.eclipse.equinox.htt

    [root@IBMSCO22 ~]# service sce status
    SCE (pid 2435) is running...
    SCE (pid 2437) is running...


    3) For the command

    One thing need to be noticed, in comand line, run "hostname" and the output should  be the <os-hostname>.

    [root@IBMSCO22 ~]# hostname
    IBMSCO22.homelan.local
     
    [root@IBMSCO22 ~]# /opt/ibm/openstack/iaas/smartcloud/bin/nova-cloud-create IBMSCO22.homelan.local MyCloud 192.168.1.125 root mypassword VMware 443
    { "cloud":{ "driver":"IBMSCO22.homelan.local", "name":"MyCloud", "description":"OpenStack managed VMware", "hostname":"192.168.1.125", "username":"root", "password":"mypassword", "type":"VMware", "port":443} }
    {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

    [root@IBMSCO22 ~]# service openstack-smartcloud status
    openstack-smartcloud is stopped
    [root@IBMSCO22 ~]# service openstack-smartcloud start
    Starting openstack-smartcloud:                             [  OK  ]
    [root@IBMSCO22 ~]# service openstack-smartcloud status
    openstack-smartcloud dead but pid file exists
    [root@IBMSCO22 ~]# /opt/ibm/openstack/iaas/smartcloud/bin/nova-cloud-show

    {"computeFault":
    {"message": "The server has either erred or is incapable of performing the requested operation."
     "code": 500}}

     

    Anything else I can try?

    Thanks

    Updated on 2013-07-17T16:54:39Z at 2013-07-17T16:54:39Z by SYSTEMSMANAGEDLtd
  • AndrewYu
    AndrewYu
    1 Post

    Re: Troubleshooting openstack-smartcloud service

    ‏2013-07-23T03:47:16Z  

    Hi. Thank you for the reply.  Firstbox is IBMSCO22.homelan.local

    1) Check that firstbox can ping the vcenter.

    [root@IBMSCO22 ~]# ping 192.168.1.125
    PING 192.168.1.125 (192.168.1.125) 56(84) bytes of data.
    64 bytes from 192.168.1.125: icmp_seq=1 ttl=64 time=1.27 ms
    64 bytes from 192.168.1.125: icmp_seq=2 ttl=64 time=0.464 ms


    [root@IBMSCO22 ~]# telnet 192.168.1.125 443
    Trying 192.168.1.125...
    Connected to 192.168.1.125.
    Escape character is '^]'.



    2) Check the SEC is up and running.

    [root@IBMSCO22 ~]# ps -ef | grep java
    root      2437  2435  0 17:00 ?        00:00:08 /opt/ibm/SCE24/jre/bin/java -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Dorg.osgi.service.http.port=7080 -Dequinox.ds.print=true -Dosgi.requiredJavaVersion=1.6 -Dorg.eclipse.equinox.htt

    [root@IBMSCO22 ~]# service sce status
    SCE (pid 2435) is running...
    SCE (pid 2437) is running...


    3) For the command

    One thing need to be noticed, in comand line, run "hostname" and the output should  be the <os-hostname>.

    [root@IBMSCO22 ~]# hostname
    IBMSCO22.homelan.local
     
    [root@IBMSCO22 ~]# /opt/ibm/openstack/iaas/smartcloud/bin/nova-cloud-create IBMSCO22.homelan.local MyCloud 192.168.1.125 root mypassword VMware 443
    { "cloud":{ "driver":"IBMSCO22.homelan.local", "name":"MyCloud", "description":"OpenStack managed VMware", "hostname":"192.168.1.125", "username":"root", "password":"mypassword", "type":"VMware", "port":443} }
    {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

    [root@IBMSCO22 ~]# service openstack-smartcloud status
    openstack-smartcloud is stopped
    [root@IBMSCO22 ~]# service openstack-smartcloud start
    Starting openstack-smartcloud:                             [  OK  ]
    [root@IBMSCO22 ~]# service openstack-smartcloud status
    openstack-smartcloud dead but pid file exists
    [root@IBMSCO22 ~]# /opt/ibm/openstack/iaas/smartcloud/bin/nova-cloud-show

    {"computeFault":
    {"message": "The server has either erred or is incapable of performing the requested operation."
     "code": 500}}

     

    Anything else I can try?

    Thanks

    Try to use the FQDN of 192.168.1.125 instead of the IP address. You can add it in the /etc/hosts file.

  • SYSTEMSMANAGEDLtd
    SYSTEMSMANAGEDLtd
    4 Posts

    Re: Troubleshooting openstack-smartcloud service

    ‏2013-07-24T09:24:46Z  
    • AndrewYu
    • ‏2013-07-23T03:47:16Z

    Try to use the FQDN of 192.168.1.125 instead of the IP address. You can add it in the /etc/hosts file.

    Hi. Thanks for the reply. Still the same results unfortunately. I can telnet to the Vcenter on port 443 from the firstbox using the FQDN of the Vcenter so I know it can connect. The same tests as above with checking if SCE is running are returning fine too.

    Thanks

     

     

  • tej
    tej
    1 Post

    Re: Troubleshooting openstack-smartcloud service

    ‏2013-08-02T15:11:08Z  

    Hi.  The other thing to check SCE's skc.log file which is located in SCE's home's log directory.  I've seen a similar problem if a vsphere host does not have any network portgroups configured.