baremetal nova boot issue

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

baremetal nova boot issue

rsamprat
Hi
I am trying to issue the boot command to provision baremetal server.  But i see the following error:

Also, where can i get the bootstrap kernel and ramdisk images to boot into the baremetal?  And how to get the baremetal agent installed in the baremetal node?

command:
=============
root@os:/home/versa# nova boot --flavor 6 --image 39f4fd3b-15cc-4810-a808-e2c4764ba657 bm
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c463e02b-7c35-448e-b0a7-97d1c02c6088)

The log is here:
==============
BATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEgYCEx607Bw1UBm9A87zNIcwDj5VsPwOrLmlq2EG3uWRfyjNoqSZo0jnK-VskJ29hAq1lPZsqe5bnhacWuUUr0nW+aAe-39pcGg9+lXPMOFQEjtRYdwUzhwMz05qm1yWjrdzXl0Hofv7ncdggF8SZbyBG0O68CRwzXRFXeSpGDrHeFw=="

INFO (connectionpool:191) Starting new HTTP connection (1): 10.40.0.99
DEBUG (connectionpool:283) "GET /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f73-4895-87a9-6f1082e8cb6a HTTP/1.1" 500 128
RESP: [500] {'date': 'Fri, 11 Oct 2013 23:43:43 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41'}
RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:768) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 765, in main
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 701, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 286, in do_boot
    server = cs.servers.get(info['id'])
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 350, in get
    return self._get("/servers/%s" % base.getid(server), "server")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 140, in _get
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 230, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 217, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 199, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 193, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)

Appreciate any  help.
Thanks
Ravi


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: baremetal nova boot issue

Joe Gordon-2



On Fri, Oct 11, 2013 at 4:44 PM, Ravikanth Samprathi <[hidden email]> wrote:
Hi
I am trying to issue the boot command to provision baremetal server.  But i see the following error:

Also, where can i get the bootstrap kernel and ramdisk images to boot into the baremetal?  And how to get the baremetal agent installed in the baremetal node?

command:
=============
root@os:/home/versa# nova boot --flavor 6 --image 39f4fd3b-15cc-4810-a808-e2c4764ba657 bm
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c463e02b-7c35-448e-b0a7-97d1c02c6088)

The log is here:
==============
BATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEgYCEx607Bw1UBm9A87zNIcwDj5VsPwOrLmlq2EG3uWRfyjNoqSZo0jnK-VskJ29hAq1lPZsqe5bnhacWuUUr0nW+aAe-39pcGg9+lXPMOFQEjtRYdwUzhwMz05qm1yWjrdzXl0Hofv7ncdggF8SZbyBG0O68CRwzXRFXeSpGDrHeFw=="

INFO (connectionpool:191) Starting new HTTP connection (1): 10.40.0.99
DEBUG (connectionpool:283) "GET /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f73-4895-87a9-6f1082e8cb6a HTTP/1.1" 500 128
RESP: [500] {'date': 'Fri, 11 Oct 2013 23:43:43 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41'}
RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:768) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 765, in main
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 701, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 286, in do_boot
    server = cs.servers.get(info['id'])
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 350, in get
    return self._get("/servers/%s" % base.getid(server), "server")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 140, in _get
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 230, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 217, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 199, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 193, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)


This is the novaclient log, what does the server say? You can search nova-api.log for  req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 to see.
 
Appreciate any  help.
Thanks
Ravi


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: baremetal nova boot issue

rsamprat
Thanks Joe.

Also may i please request the info about which kernel and ramdisk image to load and how to get baremetal agent loaded into the baremetal server?

The nova-api.log is here:
======================
2013-10-11 16:43:43.514 ERROR nova.api.openstack [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b9c24c99b223     e7b2a 8a34123d83824f3ea52527c5a28ad81e] Caught error: [Errno 111] ECONNREFUSED
3746 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack Traceback (most recent call last):
3747 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__in     it__.py", line 81, in __call__
3748 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return req.get_response(self.application)
3749 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line      1296, in send
3750 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     application, catch_exc_info=False)
3751 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line      1260, in call_application
3752 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
3753 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3754 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3755 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystoneclient/middlewa     re/auth_token.py", line 450, in __call__
3756 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return self.app(env, start_response)
3757 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3758 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3759 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3760 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3761 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3762 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3763 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/routes/middleware.py",      line 131, in __call__
3764 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     response = self.app(environ, start_response)
3765 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3766 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3767 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130     , in __call__
3768 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
3769 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195     , in call_func
3770 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
3771 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line 890, in __call__
3772 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     content_type, body, accept)
3773 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line 969, in _process_stack
3774 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     request, action_args)
3775 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line 863, in post_process_extensions
3776 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     **action_args)
3777 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp     ute/contrib/security_groups.py", line 526, in show
3778 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return self._show(req, resp_obj)
3779 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp     ute/contrib/security_groups.py", line 522, in _show
3780 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     self._extend_servers(req, [resp_obj.obj['server']])
3781 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp     ute/contrib/security_groups.py", line 487, in _extend_servers
3782 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     .get_instances_security_groups_bindings(context))
3783 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/network/security_g     roup/quantum_driver.py", line 252, in get_instances_security_groups_bindings
3784 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     ports = quantum.list_ports().get('ports')
3785 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 107, in with_params
3786 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     ret = self.function(instance, *args, **kwargs)
3787 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 255, in list_ports
3788 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     **_params)
3789 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 996, in list
3790 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     for r in self._pagination(collection, path, **params):
3791 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 1009, in _pagination
3792 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     res = self.get(path, params=params)
3793 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 982, in get
3794 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     headers=headers, params=params)
3795 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 967, in retry_request
3796 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     headers=headers, params=params)
3797 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 912, in do_request
3798 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     self._handle_fault_response(status_code, replybody)
3799 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 893, in _handle_fault_response
3800 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     exception_handler_v20(status_code, des_error_body)
3801 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 87, in exception_handler_v20
3802 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     message=message)
3803 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack QuantumClientException: [Errno 111] ECONNREFUSED
3804 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
3805 2013-10-11 16:43:43.519 INFO nova.api.openstack [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b9c24c99b223e     7b2a 8a34123d83824f3ea52527c5a28ad81e] http://10.40.0.99:8774/v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f7     3-4895-87a9-6f1082e8cb6a returned with HTTP 500
3806 2013-10-11 16:43:43.530 INFO nova.osapi_compute.wsgi.server [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b     9c24c99b223e7b2a 8a34123d83824f3ea52527c5a28ad81e] 10.40.0.99 "GET /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e716     35-5f73-4895-87a9-6f1082e8cb6a HTTP/1.1" status: 500 len: 335 time: 0.1915259
3807

Thank you very much for your help.
Ravi




On Fri, Oct 11, 2013 at 5:04 PM, Joe Gordon <[hidden email]> wrote:



On Fri, Oct 11, 2013 at 4:44 PM, Ravikanth Samprathi <[hidden email]> wrote:
Hi
I am trying to issue the boot command to provision baremetal server.  But i see the following error:

Also, where can i get the bootstrap kernel and ramdisk images to boot into the baremetal?  And how to get the baremetal agent installed in the baremetal node?

command:
=============
root@os:/home/versa# nova boot --flavor 6 --image 39f4fd3b-15cc-4810-a808-e2c4764ba657 bm
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c463e02b-7c35-448e-b0a7-97d1c02c6088)

The log is here:
==============
BATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEgYCEx607Bw1UBm9A87zNIcwDj5VsPwOrLmlq2EG3uWRfyjNoqSZo0jnK-VskJ29hAq1lPZsqe5bnhacWuUUr0nW+aAe-39pcGg9+lXPMOFQEjtRYdwUzhwMz05qm1yWjrdzXl0Hofv7ncdggF8SZbyBG0O68CRwzXRFXeSpGDrHeFw=="

INFO (connectionpool:191) Starting new HTTP connection (1): 10.40.0.99
DEBUG (connectionpool:283) "GET /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f73-4895-87a9-6f1082e8cb6a HTTP/1.1" 500 128
RESP: [500] {'date': 'Fri, 11 Oct 2013 23:43:43 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41'}
RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:768) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 765, in main
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 701, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 286, in do_boot
    server = cs.servers.get(info['id'])
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 350, in get
    return self._get("/servers/%s" % base.getid(server), "server")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 140, in _get
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 230, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 217, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 199, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 193, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)


This is the novaclient log, what does the server say? You can search nova-api.log for  req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 to see.
 
Appreciate any  help.
Thanks
Ravi


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: baremetal nova boot issue

Joe Gordon-2



On Fri, Oct 11, 2013 at 5:17 PM, Ravikanth Samprathi <[hidden email]> wrote:
Thanks Joe.

Also may i please request the info about which kernel and ramdisk image to load and how to get baremetal agent loaded into the baremetal server?

The nova-api.log is here:
======================
2013-10-11 16:43:43.514 ERROR nova.api.openstack [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b9c24c99b223     e7b2a 8a34123d83824f3ea52527c5a28ad81e] Caught error: [Errno 111] ECONNREFUSED
3746 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack Traceback (most recent call last):
3747 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__in     it__.py", line 81, in __call__
3748 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return req.get_response(self.application)
3749 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line      1296, in send
3750 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     application, catch_exc_info=False)
3751 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line      1260, in call_application
3752 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
3753 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3754 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3755 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystoneclient/middlewa     re/auth_token.py", line 450, in __call__
3756 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return self.app(env, start_response)
3757 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3758 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3759 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3760 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3761 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3762 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3763 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/routes/middleware.py",      line 131, in __call__
3764 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     response = self.app(environ, start_response)
3765 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3766 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3767 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130     , in __call__
3768 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
3769 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195     , in call_func
3770 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
3771 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line 890, in __call__
3772 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     content_type, body, accept)
3773 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line 969, in _process_stack
3774 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     request, action_args)
3775 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line 863, in post_process_extensions
3776 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     **action_args)
3777 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp     ute/contrib/security_groups.py", line 526, in show
3778 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return self._show(req, resp_obj)
3779 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp     ute/contrib/security_groups.py", line 522, in _show
3780 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     self._extend_servers(req, [resp_obj.obj['server']])
3781 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp     ute/contrib/security_groups.py", line 487, in _extend_servers
3782 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     .get_instances_security_groups_bindings(context))
3783 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/network/security_g     roup/quantum_driver.py", line 252, in get_instances_security_groups_bindings
3784 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     ports = quantum.list_ports().get('ports')
3785 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 107, in with_params
3786 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     ret = self.function(instance, *args, **kwargs)
3787 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 255, in list_ports
3788 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     **_params)
3789 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 996, in list
3790 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     for r in self._pagination(collection, path, **params):
3791 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 1009, in _pagination
3792 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     res = self.get(path, params=params)
3793 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 982, in get
3794 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     headers=headers, params=params)
3795 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 967, in retry_request
3796 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     headers=headers, params=params)
3797 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 912, in do_request
3798 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     self._handle_fault_response(status_code, replybody)
3799 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 893, in _handle_fault_response
3800 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     exception_handler_v20(status_code, des_error_body)
3801 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 87, in exception_handler_v20
3802 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     message=message)
3803 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack QuantumClientException: [Errno 111] ECONNREFUSED
3804 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
3805 2013-10-11 16:43:43.519 INFO nova.api.openstack [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b9c24c99b223e     7b2a 8a34123d83824f3ea52527c5a28ad81e] http://10.40.0.99:8774/v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f7     3-4895-87a9-6f1082e8cb6a returned with HTTP 500
3806 2013-10-11 16:43:43.530 INFO nova.osapi_compute.wsgi.server [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b     9c24c99b223e7b2a 8a34123d83824f3ea52527c5a28ad81e] 10.40.0.99 "GET /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e716     35-5f73-4895-87a9-6f1082e8cb6a HTTP/1.1" status: 500 len: 335 time: 0.1915259
3807


It looks like you were unable to connect to quantum.

 
Thank you very much for your help.
Ravi

 


On Fri, Oct 11, 2013 at 5:04 PM, Joe Gordon <[hidden email]> wrote:



On Fri, Oct 11, 2013 at 4:44 PM, Ravikanth Samprathi <[hidden email]> wrote:
Hi
I am trying to issue the boot command to provision baremetal server.  But i see the following error:

Also, where can i get the bootstrap kernel and ramdisk images to boot into the baremetal?  And how to get the baremetal agent installed in the baremetal node?

command:
=============
root@os:/home/versa# nova boot --flavor 6 --image 39f4fd3b-15cc-4810-a808-e2c4764ba657 bm
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c463e02b-7c35-448e-b0a7-97d1c02c6088)

The log is here:
==============
BATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEgYCEx607Bw1UBm9A87zNIcwDj5VsPwOrLmlq2EG3uWRfyjNoqSZo0jnK-VskJ29hAq1lPZsqe5bnhacWuUUr0nW+aAe-39pcGg9+lXPMOFQEjtRYdwUzhwMz05qm1yWjrdzXl0Hofv7ncdggF8SZbyBG0O68CRwzXRFXeSpGDrHeFw=="

INFO (connectionpool:191) Starting new HTTP connection (1): 10.40.0.99
DEBUG (connectionpool:283) "GET /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f73-4895-87a9-6f1082e8cb6a HTTP/1.1" 500 128
RESP: [500] {'date': 'Fri, 11 Oct 2013 23:43:43 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41'}
RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:768) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 765, in main
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 701, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 286, in do_boot
    server = cs.servers.get(info['id'])
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 350, in get
    return self._get("/servers/%s" % base.getid(server), "server")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 140, in _get
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 230, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 217, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 199, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 193, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)


This is the novaclient log, what does the server say? You can search nova-api.log for  req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 to see.
 
Appreciate any  help.
Thanks
Ravi


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: baremetal nova boot issue

rsamprat
Hi Joe
Thanks, i fixed that, now i see this issue. I have always got confused/wondered about this, which credentials should i use?  Can you please help?

nova-api.log:
==========
14 2013-10-11 17:35:44.806 4034 INFO nova.osapi_compute.wsgi.server [-] (4034) accepted ('10.40.0.99', 45381)
 15
 16 2013-10-11 17:35:44.892 ERROR nova.api.openstack [req-12f8de18-544b-4cde-b46a-55fea30d0057 251bd0a9388a477b9c24c99b223e7b2a 8a34123d83824f3ea52527c5a28ad81e] Caught error: 401 Unau    thorized
 17
 18 This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not     understand how to supply the credentials required.
 19
 20  Authentication required
 21 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack Traceback (most recent call last):
 22 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 81, in __call__
 23 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return req.get_response(self.application)
 24 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
 25 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     application, catch_exc_info=False)
 26 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
 27 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
 28 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
 29 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return resp(environ, start_response)
 30 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py", line 450, in __call__
 31 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return self.app(env, start_response)
 32 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
 33 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return resp(environ, start_response)
 34 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
 35 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return resp(environ, start_response)
 36 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
 37 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return resp(environ, start_response)
 38 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
 39 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     response = self.app(environ, start_response)
 40 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
 41 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return resp(environ, start_response)
 42 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
 43 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
 44 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
 45 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
 46 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 890, in __call__
 47 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     content_type, body, accept)
48 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 969, in _process_stack
 49 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     request, action_args)
 50 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 863, in post_process_extensions
 51 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     **action_args)
 52 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py", line 526, in show
 53 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return self._show(req, resp_obj)
 54 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py", line 522, in _show
 55 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     self._extend_servers(req, [resp_obj.obj['server']])
 56 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py", line 487, in _extend_servers
 57 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     .get_instances_security_groups_bindings(context))
 58 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/network/security_group/quantum_driver.py", line 252, in get_instances_security_g    roups_bindings
 59 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     ports = quantum.list_ports().get('ports')
 60 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 107, in with_params
 61 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     ret = self.function(instance, *args, **kwargs)
 62 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 255, in list_ports
 63 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     **_params)
 64 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 996, in list
 65 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     for r in self._pagination(collection, path, **params):
 66 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 1009, in _pagination
 67 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     res = self.get(path, params=params)
 68 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 982, in get
 69 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     headers=headers, params=params)
 70 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 967, in retry_request
 71 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     headers=headers, params=params)
 72 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 904, in do_request
 73 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     resp, replybody = self.httpclient.do_request(action, method, body=body)
 74 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/client.py", line 160, in do_request
 75 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     raise ex
 76 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack Unauthorized: 401 Unauthorized
 77 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
 78 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong crede    ntials (e.g., bad password), or your browser does not understand how to supply the credentials required.
 79 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
 80 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack  Authentication required
 81 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
 82 2013-10-11 17:35:44.899 INFO nova.api.openstack [req-12f8de18-544b-4cde-b46a-55fea30d0057 251bd0a9388a477b9c24c99b223e7b2a 8a34123d83824f3ea52527c5a28ad81e] http://10.40.0.99:8774/    v2/8a34123d83824f3ea52527c5a28ad81e/servers/c084bbff-afdd-4043-8623-7643fcf4ea87 returned with HTTP 500
 83 2013-10-11 17:35:44.908 INFO nova.osapi_compute.wsgi.server [req-12f8de18-544b-4cde-b46a-55fea30d0057 251bd0a9388a477b9c24c99b223e7b2a 8a34123d83824f3ea52527c5a28ad81e] 10.40.0.99     "GET /v2/8a34123d83824f3ea52527c5a28ad81e/servers/c084bbff-afdd-4043-8623-7643fcf4ea87 HTTP/1.1" status: 500 len: 335 time: 0.1010859

Thanks
Ravi



On Fri, Oct 11, 2013 at 5:30 PM, Joe Gordon <[hidden email]> wrote:



On Fri, Oct 11, 2013 at 5:17 PM, Ravikanth Samprathi <[hidden email]> wrote:
Thanks Joe.

Also may i please request the info about which kernel and ramdisk image to load and how to get baremetal agent loaded into the baremetal server?

The nova-api.log is here:
======================
2013-10-11 16:43:43.514 ERROR nova.api.openstack [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b9c24c99b223     e7b2a 8a34123d83824f3ea52527c5a28ad81e] Caught error: [Errno 111] ECONNREFUSED
3746 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack Traceback (most recent call last):
3747 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__in     it__.py", line 81, in __call__
3748 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return req.get_response(self.application)
3749 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line      1296, in send
3750 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     application, catch_exc_info=False)
3751 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line      1260, in call_application
3752 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
3753 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3754 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3755 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystoneclient/middlewa     re/auth_token.py", line 450, in __call__
3756 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return self.app(env, start_response)
3757 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3758 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3759 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3760 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3761 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3762 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3763 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/routes/middleware.py",      line 131, in __call__
3764 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     response = self.app(environ, start_response)
3765 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3766 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3767 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130     , in __call__
3768 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
3769 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195     , in call_func
3770 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
3771 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line 890, in __call__
3772 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     content_type, body, accept)
3773 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line 969, in _process_stack
3774 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     request, action_args)
3775 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line 863, in post_process_extensions
3776 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     **action_args)
3777 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp     ute/contrib/security_groups.py", line 526, in show
3778 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return self._show(req, resp_obj)
3779 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp     ute/contrib/security_groups.py", line 522, in _show
3780 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     self._extend_servers(req, [resp_obj.obj['server']])
3781 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp     ute/contrib/security_groups.py", line 487, in _extend_servers
3782 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     .get_instances_security_groups_bindings(context))
3783 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/network/security_g     roup/quantum_driver.py", line 252, in get_instances_security_groups_bindings
3784 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     ports = quantum.list_ports().get('ports')
3785 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 107, in with_params
3786 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     ret = self.function(instance, *args, **kwargs)
3787 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 255, in list_ports
3788 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     **_params)
3789 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 996, in list
3790 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     for r in self._pagination(collection, path, **params):
3791 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 1009, in _pagination
3792 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     res = self.get(path, params=params)
3793 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 982, in get
3794 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     headers=headers, params=params)
3795 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 967, in retry_request
3796 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     headers=headers, params=params)
3797 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 912, in do_request
3798 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     self._handle_fault_response(status_code, replybody)
3799 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 893, in _handle_fault_response
3800 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     exception_handler_v20(status_code, des_error_body)
3801 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 87, in exception_handler_v20
3802 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     message=message)
3803 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack QuantumClientException: [Errno 111] ECONNREFUSED
3804 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
3805 2013-10-11 16:43:43.519 INFO nova.api.openstack [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b9c24c99b223e     7b2a 8a34123d83824f3ea52527c5a28ad81e] http://10.40.0.99:8774/v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f7     3-4895-87a9-6f1082e8cb6a returned with HTTP 500
3806 2013-10-11 16:43:43.530 INFO nova.osapi_compute.wsgi.server [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b     9c24c99b223e7b2a 8a34123d83824f3ea52527c5a28ad81e] 10.40.0.99 "GET /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e716     35-5f73-4895-87a9-6f1082e8cb6a HTTP/1.1" status: 500 len: 335 time: 0.1915259
3807


It looks like you were unable to connect to quantum.

 
Thank you very much for your help.
Ravi

 


On Fri, Oct 11, 2013 at 5:04 PM, Joe Gordon <[hidden email]> wrote:



On Fri, Oct 11, 2013 at 4:44 PM, Ravikanth Samprathi <[hidden email]> wrote:
Hi
I am trying to issue the boot command to provision baremetal server.  But i see the following error:

Also, where can i get the bootstrap kernel and ramdisk images to boot into the baremetal?  And how to get the baremetal agent installed in the baremetal node?

command:
=============
root@os:/home/versa# nova boot --flavor 6 --image 39f4fd3b-15cc-4810-a808-e2c4764ba657 bm
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c463e02b-7c35-448e-b0a7-97d1c02c6088)

The log is here:
==============
BATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEgYCEx607Bw1UBm9A87zNIcwDj5VsPwOrLmlq2EG3uWRfyjNoqSZo0jnK-VskJ29hAq1lPZsqe5bnhacWuUUr0nW+aAe-39pcGg9+lXPMOFQEjtRYdwUzhwMz05qm1yWjrdzXl0Hofv7ncdggF8SZbyBG0O68CRwzXRFXeSpGDrHeFw=="

INFO (connectionpool:191) Starting new HTTP connection (1): 10.40.0.99
DEBUG (connectionpool:283) "GET /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f73-4895-87a9-6f1082e8cb6a HTTP/1.1" 500 128
RESP: [500] {'date': 'Fri, 11 Oct 2013 23:43:43 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41'}
RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:768) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 765, in main
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 701, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 286, in do_boot
    server = cs.servers.get(info['id'])
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 350, in get
    return self._get("/servers/%s" % base.getid(server), "server")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 140, in _get
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 230, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 217, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 199, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 193, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)


This is the novaclient log, what does the server say? You can search nova-api.log for  req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 to see.
 
Appreciate any  help.
Thanks
Ravi


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: baremetal nova boot issue

rsamprat
I fixed the quantum issue. Now i am able to successfully do 'nova boot':

root@os:/etc/init.d# nova boot --flavor 9 --image 278f9721-1354-4c04-9798-65835398e027 mybmnode
+-------------------------------------+--------------------------------------+
| Property                            | Value                                |
+-------------------------------------+--------------------------------------+
| status                              | BUILD                                |
| updated                             | 2013-10-12T00:56:28Z                 |
| OS-EXT-STS:task_state               | scheduling                           |
| OS-EXT-SRV-ATTR:host                | None                                 |
| key_name                            | None                                 |
| image                               | my-image                             |
| hostId                              |                                      |
| OS-EXT-STS:vm_state                 | building                             |
| OS-EXT-SRV-ATTR:instance_name       | instance-00000020                    |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None                                 |
| flavor                              | my-baremetal-flavor                  |
| id                                  | beeb7ffd-ed81-44e0-91ae-62435442769a |
| security_groups                     | [{u'name': u'default'}]              |
| user_id                             | 251bd0a9388a477b9c24c99b223e7b2a     |
| name                                | mybmnode                             |
| adminPass                           | xWurDrbi5E8X                         |
| tenant_id                           | 8a34123d83824f3ea52527c5a28ad81e     |
| created                             | 2013-10-12T00:56:28Z                 |
| OS-DCF:diskConfig                   | MANUAL                               |
| metadata                            | {}                                   |
| accessIPv4                          |                                      |
| accessIPv6                          |                                      |
| progress                            | 0                                    |
| OS-EXT-STS:power_state              | 0                                    |
| OS-EXT-AZ:availability_zone         | nova                                 |
| config_drive                        |                                      |
+-------------------------------------+--------------------------------------+
root@os:/etc/init.d#


Can you please help me on how to go from here:  I think all the provisioning listed in the baremetal wiki i could do them successfully.

How to now load the images on the baremetal server (bootstrap) and then load my own image on the baremetal server?

Thanks
Ravi



On Fri, Oct 11, 2013 at 5:41 PM, Ravikanth Samprathi <[hidden email]> wrote:
Hi Joe
Thanks, i fixed that, now i see this issue. I have always got confused/wondered about this, which credentials should i use?  Can you please help?

nova-api.log:
==========
14 2013-10-11 17:35:44.806 4034 INFO nova.osapi_compute.wsgi.server [-] (4034) accepted ('10.40.0.99', 45381)
 15
 16 2013-10-11 17:35:44.892 ERROR nova.api.openstack [req-12f8de18-544b-4cde-b46a-55fea30d0057 251bd0a9388a477b9c24c99b223e7b2a 8a34123d83824f3ea52527c5a28ad81e] Caught error: 401 Unau    thorized
 17
 18 This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not     understand how to supply the credentials required.
 19
 20  Authentication required
 21 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack Traceback (most recent call last):
 22 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 81, in __call__
 23 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return req.get_response(self.application)
 24 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
 25 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     application, catch_exc_info=False)
 26 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
 27 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
 28 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
 29 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return resp(environ, start_response)
 30 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py", line 450, in __call__
 31 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return self.app(env, start_response)
 32 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
 33 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return resp(environ, start_response)
 34 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
 35 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return resp(environ, start_response)
 36 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
 37 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return resp(environ, start_response)
 38 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
 39 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     response = self.app(environ, start_response)
 40 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
 41 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return resp(environ, start_response)
 42 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
 43 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
 44 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
 45 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
 46 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 890, in __call__
 47 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     content_type, body, accept)
48 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 969, in _process_stack
 49 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     request, action_args)
 50 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 863, in post_process_extensions
 51 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     **action_args)
 52 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py", line 526, in show
 53 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return self._show(req, resp_obj)
 54 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py", line 522, in _show
 55 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     self._extend_servers(req, [resp_obj.obj['server']])
 56 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py", line 487, in _extend_servers
 57 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     .get_instances_security_groups_bindings(context))
 58 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/network/security_group/quantum_driver.py", line 252, in get_instances_security_g    roups_bindings
 59 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     ports = quantum.list_ports().get('ports')
 60 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 107, in with_params
 61 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     ret = self.function(instance, *args, **kwargs)
 62 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 255, in list_ports
 63 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     **_params)
 64 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 996, in list
 65 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     for r in self._pagination(collection, path, **params):
 66 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 1009, in _pagination
 67 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     res = self.get(path, params=params)
 68 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 982, in get
 69 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     headers=headers, params=params)
 70 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 967, in retry_request
 71 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     headers=headers, params=params)
 72 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 904, in do_request
 73 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     resp, replybody = self.httpclient.do_request(action, method, body=body)
 74 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/client.py", line 160, in do_request
 75 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     raise ex
 76 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack Unauthorized: 401 Unauthorized
 77 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
 78 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong crede    ntials (e.g., bad password), or your browser does not understand how to supply the credentials required.
 79 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
 80 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack  Authentication required
 81 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
 82 2013-10-11 17:35:44.899 INFO nova.api.openstack [req-12f8de18-544b-4cde-b46a-55fea30d0057 251bd0a9388a477b9c24c99b223e7b2a 8a34123d83824f3ea52527c5a28ad81e] http://10.40.0.99:8774/    v2/8a34123d83824f3ea52527c5a28ad81e/servers/c084bbff-afdd-4043-8623-7643fcf4ea87 returned with HTTP 500
 83 2013-10-11 17:35:44.908 INFO nova.osapi_compute.wsgi.server [req-12f8de18-544b-4cde-b46a-55fea30d0057 251bd0a9388a477b9c24c99b223e7b2a 8a34123d83824f3ea52527c5a28ad81e] 10.40.0.99     "GET /v2/8a34123d83824f3ea52527c5a28ad81e/servers/c084bbff-afdd-4043-8623-7643fcf4ea87 HTTP/1.1" status: 500 len: 335 time: 0.1010859

Thanks
Ravi



On Fri, Oct 11, 2013 at 5:30 PM, Joe Gordon <[hidden email]> wrote:



On Fri, Oct 11, 2013 at 5:17 PM, Ravikanth Samprathi <[hidden email]> wrote:
Thanks Joe.

Also may i please request the info about which kernel and ramdisk image to load and how to get baremetal agent loaded into the baremetal server?

The nova-api.log is here:
======================
2013-10-11 16:43:43.514 ERROR nova.api.openstack [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b9c24c99b223     e7b2a 8a34123d83824f3ea52527c5a28ad81e] Caught error: [Errno 111] ECONNREFUSED
3746 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack Traceback (most recent call last):
3747 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__in     it__.py", line 81, in __call__
3748 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return req.get_response(self.application)
3749 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line      1296, in send
3750 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     application, catch_exc_info=False)
3751 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line      1260, in call_application
3752 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
3753 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3754 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3755 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystoneclient/middlewa     re/auth_token.py", line 450, in __call__
3756 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return self.app(env, start_response)
3757 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3758 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3759 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3760 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3761 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3762 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3763 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/routes/middleware.py",      line 131, in __call__
3764 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     response = self.app(environ, start_response)
3765 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
3766 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return resp(environ, start_response)
3767 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130     , in __call__
3768 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
3769 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195     , in call_func
3770 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
3771 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line 890, in __call__
3772 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     content_type, body, accept)
3773 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line 969, in _process_stack
3774 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     request, action_args)
3775 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line 863, in post_process_extensions
3776 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     **action_args)
3777 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp     ute/contrib/security_groups.py", line 526, in show
3778 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return self._show(req, resp_obj)
3779 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp     ute/contrib/security_groups.py", line 522, in _show
3780 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     self._extend_servers(req, [resp_obj.obj['server']])
3781 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp     ute/contrib/security_groups.py", line 487, in _extend_servers
3782 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     .get_instances_security_groups_bindings(context))
3783 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/network/security_g     roup/quantum_driver.py", line 252, in get_instances_security_groups_bindings
3784 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     ports = quantum.list_ports().get('ports')
3785 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 107, in with_params
3786 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     ret = self.function(instance, *args, **kwargs)
3787 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 255, in list_ports
3788 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     **_params)
3789 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 996, in list
3790 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     for r in self._pagination(collection, path, **params):
3791 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 1009, in _pagination
3792 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     res = self.get(path, params=params)
3793 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 982, in get
3794 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     headers=headers, params=params)
3795 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 967, in retry_request
3796 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     headers=headers, params=params)
3797 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 912, in do_request
3798 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     self._handle_fault_response(status_code, replybody)
3799 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 893, in _handle_fault_response
3800 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     exception_handler_v20(status_code, des_error_body)
3801 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line 87, in exception_handler_v20
3802 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     message=message)
3803 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack QuantumClientException: [Errno 111] ECONNREFUSED
3804 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
3805 2013-10-11 16:43:43.519 INFO nova.api.openstack [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b9c24c99b223e     7b2a 8a34123d83824f3ea52527c5a28ad81e] http://10.40.0.99:8774/v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f7     3-4895-87a9-6f1082e8cb6a returned with HTTP 500
3806 2013-10-11 16:43:43.530 INFO nova.osapi_compute.wsgi.server [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b     9c24c99b223e7b2a 8a34123d83824f3ea52527c5a28ad81e] 10.40.0.99 "GET /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e716     35-5f73-4895-87a9-6f1082e8cb6a HTTP/1.1" status: 500 len: 335 time: 0.1915259
3807


It looks like you were unable to connect to quantum.

 
Thank you very much for your help.
Ravi

 


On Fri, Oct 11, 2013 at 5:04 PM, Joe Gordon <[hidden email]> wrote:



On Fri, Oct 11, 2013 at 4:44 PM, Ravikanth Samprathi <[hidden email]> wrote:
Hi
I am trying to issue the boot command to provision baremetal server.  But i see the following error:

Also, where can i get the bootstrap kernel and ramdisk images to boot into the baremetal?  And how to get the baremetal agent installed in the baremetal node?

command:
=============
root@os:/home/versa# nova boot --flavor 6 --image 39f4fd3b-15cc-4810-a808-e2c4764ba657 bm
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c463e02b-7c35-448e-b0a7-97d1c02c6088)

The log is here:
==============
BATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEgYCEx607Bw1UBm9A87zNIcwDj5VsPwOrLmlq2EG3uWRfyjNoqSZo0jnK-VskJ29hAq1lPZsqe5bnhacWuUUr0nW+aAe-39pcGg9+lXPMOFQEjtRYdwUzhwMz05qm1yWjrdzXl0Hofv7ncdggF8SZbyBG0O68CRwzXRFXeSpGDrHeFw=="

INFO (connectionpool:191) Starting new HTTP connection (1): 10.40.0.99
DEBUG (connectionpool:283) "GET /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f73-4895-87a9-6f1082e8cb6a HTTP/1.1" 500 128
RESP: [500] {'date': 'Fri, 11 Oct 2013 23:43:43 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41'}
RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:768) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 765, in main
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 701, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 286, in do_boot
    server = cs.servers.get(info['id'])
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 350, in get
    return self._get("/servers/%s" % base.getid(server), "server")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 140, in _get
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 230, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 217, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 199, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 193, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)


This is the novaclient log, what does the server say? You can search nova-api.log for  req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 to see.
 
Appreciate any  help.
Thanks
Ravi


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: baremetal nova boot issue

Robert Collins
Have you read the docs about nova baremetal ? The questions you're
asking - about bootstrapping and about a baremetal agent - don't make
any sense to me ;)

These are the needed steps:
 - install openstack
 - build a deploy ramdisk and kernel
 - put them in glance
 - configure nova baremetal as your driver
 - configure a flavor with the deploy ramdisk and kernel
 - install tftpd pointing at /tftproot
 - register machines
 - add your own image to glance (must be a partition image with
separate kernel and ramdisk, not a whole disk image)

nova boot, done.

-Rob



On 12 October 2013 13:58, Ravikanth Samprathi <[hidden email]> wrote:

> I fixed the quantum issue. Now i am able to successfully do 'nova boot':
>
> root@os:/etc/init.d# nova boot --flavor 9 --image
> 278f9721-1354-4c04-9798-65835398e027 mybmnode
> +-------------------------------------+--------------------------------------+
> | Property                            | Value
> |
> +-------------------------------------+--------------------------------------+
> | status                              | BUILD
> |
> | updated                             | 2013-10-12T00:56:28Z
> |
> | OS-EXT-STS:task_state               | scheduling
> |
> | OS-EXT-SRV-ATTR:host                | None
> |
> | key_name                            | None
> |
> | image                               | my-image
> |
> | hostId                              |
> |
> | OS-EXT-STS:vm_state                 | building
> |
> | OS-EXT-SRV-ATTR:instance_name       | instance-00000020
> |
> | OS-EXT-SRV-ATTR:hypervisor_hostname | None
> |
> | flavor                              | my-baremetal-flavor
> |
> | id                                  | beeb7ffd-ed81-44e0-91ae-62435442769a
> |
> | security_groups                     | [{u'name': u'default'}]
> |
> | user_id                             | 251bd0a9388a477b9c24c99b223e7b2a
> |
> | name                                | mybmnode
> |
> | adminPass                           | xWurDrbi5E8X
> |
> | tenant_id                           | 8a34123d83824f3ea52527c5a28ad81e
> |
> | created                             | 2013-10-12T00:56:28Z
> |
> | OS-DCF:diskConfig                   | MANUAL
> |
> | metadata                            | {}
> |
> | accessIPv4                          |
> |
> | accessIPv6                          |
> |
> | progress                            | 0
> |
> | OS-EXT-STS:power_state              | 0
> |
> | OS-EXT-AZ:availability_zone         | nova
> |
> | config_drive                        |
> |
> +-------------------------------------+--------------------------------------+
> root@os:/etc/init.d#
>
>
> Can you please help me on how to go from here:  I think all the provisioning
> listed in the baremetal wiki i could do them successfully.
>
> How to now load the images on the baremetal server (bootstrap) and then load
> my own image on the baremetal server?
>
> Thanks
> Ravi
>
>
>
> On Fri, Oct 11, 2013 at 5:41 PM, Ravikanth Samprathi <[hidden email]>
> wrote:
>>
>> Hi Joe
>> Thanks, i fixed that, now i see this issue. I have always got
>> confused/wondered about this, which credentials should i use?  Can you
>> please help?
>>
>> nova-api.log:
>> ==========
>> 14 2013-10-11 17:35:44.806 4034 INFO nova.osapi_compute.wsgi.server [-]
>> (4034) accepted ('10.40.0.99', 45381)
>>  15
>>  16 2013-10-11 17:35:44.892 ERROR nova.api.openstack
>> [req-12f8de18-544b-4cde-b46a-55fea30d0057 251bd0a9388a477b9c24c99b223e7b2a
>> 8a34123d83824f3ea52527c5a28ad81e] Caught error: 401 Unau    thorized
>>  17
>>  18 This server could not verify that you are authorized to access the
>> document you requested. Either you supplied the wrong credentials (e.g., bad
>> password), or your browser does not     understand how to supply the
>> credentials required.
>>  19
>>  20  Authentication required
>>  21 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack Traceback (most
>> recent call last):
>>  22 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 81,
>> in __call__
>>  23 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> req.get_response(self.application)
>>  24 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
>>  25 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     application,
>> catch_exc_info=False)
>>  26 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in
>> call_application
>>  27 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     app_iter =
>> application(self.environ, start_response)
>>  28 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>>  29 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> resp(environ, start_response)
>>  30 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py",
>> line 450, in __call__
>>  31 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> self.app(env, start_response)
>>  32 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>>  33 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> resp(environ, start_response)
>>  34 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>>  35 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> resp(environ, start_response)
>>  36 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>>  37 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> resp(environ, start_response)
>>  38 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in
>> __call__
>>  39 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     response =
>> self.app(environ, start_response)
>>  40 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>>  41 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> resp(environ, start_response)
>>  42 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
>>  43 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     resp =
>> self.call_func(req, *args, **self.kwargs)
>>  44 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
>>  45 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> self.func(req, *args, **kwargs)
>>  46 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 890, in
>> __call__
>>  47 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>> content_type, body, accept)
>> 48 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 969, in
>> _process_stack
>>  49 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     request,
>> action_args)
>>  50 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 863, in
>> post_process_extensions
>>  51 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>> **action_args)
>>  52 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py",
>> line 526, in show
>>  53 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> self._show(req, resp_obj)
>>  54 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py",
>> line 522, in _show
>>  55 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>> self._extend_servers(req, [resp_obj.obj['server']])
>>  56 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py",
>> line 487, in _extend_servers
>>  57 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>> .get_instances_security_groups_bindings(context))
>>  58 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/network/security_group/quantum_driver.py",
>> line 252, in get_instances_security_g    roups_bindings
>>  59 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     ports =
>> quantum.list_ports().get('ports')
>>  60 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 107,
>> in with_params
>>  61 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     ret =
>> self.function(instance, *args, **kwargs)
>>  62 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 255,
>> in list_ports
>>  63 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     **_params)
>>  64 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 996,
>> in list
>>  65 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     for r in
>> self._pagination(collection, path, **params):
>>  66 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 1009,
>> in _pagination
>>  67 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     res =
>> self.get(path, params=params)
>>  68 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 982,
>> in get
>>  69 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>> headers=headers, params=params)
>>  70 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 967,
>> in retry_request
>>  71 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>> headers=headers, params=params)
>>  72 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 904,
>> in do_request
>>  73 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     resp,
>> replybody = self.httpclient.do_request(action, method, body=body)
>>  74 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/client.py", line 160, in
>> do_request
>>  75 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     raise ex
>>  76 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack Unauthorized:
>> 401 Unauthorized
>>  77 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>>  78 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack This server
>> could not verify that you are authorized to access the document you
>> requested. Either you supplied the wrong crede    ntials (e.g., bad
>> password), or your browser does not understand how to supply the credentials
>> required.
>>  79 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>>  80 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack  Authentication
>> required
>>  81 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>>  82 2013-10-11 17:35:44.899 INFO nova.api.openstack
>> [req-12f8de18-544b-4cde-b46a-55fea30d0057 251bd0a9388a477b9c24c99b223e7b2a
>> 8a34123d83824f3ea52527c5a28ad81e] http://10.40.0.99:8774/
>> v2/8a34123d83824f3ea52527c5a28ad81e/servers/c084bbff-afdd-4043-8623-7643fcf4ea87
>> returned with HTTP 500
>>  83 2013-10-11 17:35:44.908 INFO nova.osapi_compute.wsgi.server
>> [req-12f8de18-544b-4cde-b46a-55fea30d0057 251bd0a9388a477b9c24c99b223e7b2a
>> 8a34123d83824f3ea52527c5a28ad81e] 10.40.0.99     "GET
>> /v2/8a34123d83824f3ea52527c5a28ad81e/servers/c084bbff-afdd-4043-8623-7643fcf4ea87
>> HTTP/1.1" status: 500 len: 335 time: 0.1010859
>>
>> Thanks
>> Ravi
>>
>>
>>
>> On Fri, Oct 11, 2013 at 5:30 PM, Joe Gordon <[hidden email]> wrote:
>>>
>>>
>>>
>>>
>>> On Fri, Oct 11, 2013 at 5:17 PM, Ravikanth Samprathi <[hidden email]>
>>> wrote:
>>>>
>>>> Thanks Joe.
>>>>
>>>> Also may i please request the info about which kernel and ramdisk image
>>>> to load and how to get baremetal agent loaded into the baremetal server?
>>>>
>>>> The nova-api.log is here:
>>>> ======================
>>>> 2013-10-11 16:43:43.514 ERROR nova.api.openstack
>>>> [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b9c24c99b223
>>>> e7b2a 8a34123d83824f3ea52527c5a28ad81e] Caught error: [Errno 111]
>>>> ECONNREFUSED
>>>> 3746 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack Traceback
>>>> (most recent call last):
>>>> 3747 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/__in     it__.py", line
>>>> 81, in __call__
>>>> 3748 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> req.get_response(self.application)
>>>> 3749 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/request.py", line      1296, in send
>>>> 3750 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> application, catch_exc_info=False)
>>>> 3751 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/request.py", line      1260, in
>>>> call_application
>>>> 3752 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     app_iter
>>>> = application(self.environ, start_response)
>>>> 3753 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
>>>> 3754 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> resp(environ, start_response)
>>>> 3755 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/keystoneclient/middlewa
>>>> re/auth_token.py", line 450, in __call__
>>>> 3756 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> self.app(env, start_response)
>>>> 3757 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
>>>> 3758 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> resp(environ, start_response)
>>>> 3759 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
>>>> 3760 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> resp(environ, start_response)
>>>> 3761 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
>>>> 3762 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> resp(environ, start_response)
>>>> 3763 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/routes/middleware.py",      line 131, in
>>>> __call__
>>>> 3764 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     response
>>>> = self.app(environ, start_response)
>>>> 3765 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
>>>> 3766 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> resp(environ, start_response)
>>>> 3767 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130     , in __call__
>>>> 3768 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     resp =
>>>> self.call_func(req, *args, **self.kwargs)
>>>> 3769 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195     , in call_func
>>>> 3770 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> self.func(req, *args, **kwargs)
>>>> 3771 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line
>>>> 890, in __call__
>>>> 3772 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> content_type, body, accept)
>>>> 3773 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line
>>>> 969, in _process_stack
>>>> 3774 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     request,
>>>> action_args)
>>>> 3775 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line
>>>> 863, in post_process_extensions
>>>> 3776 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> **action_args)
>>>> 3777 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp
>>>> ute/contrib/security_groups.py", line 526, in show
>>>> 3778 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> self._show(req, resp_obj)
>>>> 3779 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp
>>>> ute/contrib/security_groups.py", line 522, in _show
>>>> 3780 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> self._extend_servers(req, [resp_obj.obj['server']])
>>>> 3781 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp
>>>> ute/contrib/security_groups.py", line 487, in _extend_servers
>>>> 3782 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> .get_instances_security_groups_bindings(context))
>>>> 3783 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/network/security_g
>>>> roup/quantum_driver.py", line 252, in get_instances_security_groups_bindings
>>>> 3784 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     ports =
>>>> quantum.list_ports().get('ports')
>>>> 3785 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 107, in with_params
>>>> 3786 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     ret =
>>>> self.function(instance, *args, **kwargs)
>>>> 3787 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 255, in list_ports
>>>> 3788 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> **_params)
>>>> 3789 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 996, in list
>>>> 3790 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     for r in
>>>> self._pagination(collection, path, **params):
>>>> 3791 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 1009, in _pagination
>>>> 3792 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     res =
>>>> self.get(path, params=params)
>>>> 3793 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 982, in get
>>>> 3794 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> headers=headers, params=params)
>>>> 3795 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 967, in retry_request
>>>> 3796 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> headers=headers, params=params)
>>>> 3797 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 912, in do_request
>>>> 3798 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> self._handle_fault_response(status_code, replybody)
>>>> 3799 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 893, in _handle_fault_response
>>>> 3800 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> exception_handler_v20(status_code, des_error_body)
>>>> 3801 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 87, in exception_handler_v20
>>>> 3802 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> message=message)
>>>> 3803 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> QuantumClientException: [Errno 111] ECONNREFUSED
>>>> 3804 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> 3805 2013-10-11 16:43:43.519 INFO nova.api.openstack
>>>> [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b9c24c99b223e
>>>> 7b2a 8a34123d83824f3ea52527c5a28ad81e]
>>>> http://10.40.0.99:8774/v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f7
>>>> 3-4895-87a9-6f1082e8cb6a returned with HTTP 500
>>>> 3806 2013-10-11 16:43:43.530 INFO nova.osapi_compute.wsgi.server
>>>> [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b
>>>> 9c24c99b223e7b2a 8a34123d83824f3ea52527c5a28ad81e] 10.40.0.99 "GET
>>>> /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e716
>>>> 35-5f73-4895-87a9-6f1082e8cb6a HTTP/1.1" status: 500 len: 335 time:
>>>> 0.1915259
>>>> 3807
>>>>
>>>
>>> It looks like you were unable to connect to quantum.
>>>
>>>
>>>>
>>>> Thank you very much for your help.
>>>> Ravi
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Oct 11, 2013 at 5:04 PM, Joe Gordon <[hidden email]>
>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Oct 11, 2013 at 4:44 PM, Ravikanth Samprathi
>>>>> <[hidden email]> wrote:
>>>>>>
>>>>>> Hi
>>>>>> I am trying to issue the boot command to provision baremetal server.
>>>>>> But i see the following error:
>>>>>>
>>>>>> Also, where can i get the bootstrap kernel and ramdisk images to boot
>>>>>> into the baremetal?  And how to get the baremetal agent installed in the
>>>>>> baremetal node?
>>>>>>
>>>>>> command:
>>>>>> =============
>>>>>> root@os:/home/versa# nova boot --flavor 6 --image
>>>>>> 39f4fd3b-15cc-4810-a808-e2c4764ba657 bm
>>>>>> ERROR: The server has either erred or is incapable of performing the
>>>>>> requested operation. (HTTP 500) (Request-ID:
>>>>>> req-c463e02b-7c35-448e-b0a7-97d1c02c6088)
>>>>>>
>>>>>> The log is here:
>>>>>> ==============
>>>>>>
>>>>>> BATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEgYCEx607Bw1UBm9A87zNIcwDj5VsPwOrLmlq2EG3uWRfyjNoqSZo0jnK-VskJ29hAq1lPZsqe5bnhacWuUUr0nW+aAe-39pcGg9+lXPMOFQEjtRYdwUzhwMz05qm1yWjrdzXl0Hofv7ncdggF8SZbyBG0O68CRwzXRFXeSpGDrHeFw=="
>>>>>>
>>>>>> INFO (connectionpool:191) Starting new HTTP connection (1): 10.40.0.99
>>>>>> DEBUG (connectionpool:283) "GET
>>>>>> /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f73-4895-87a9-6f1082e8cb6a
>>>>>> HTTP/1.1" 500 128
>>>>>> RESP: [500] {'date': 'Fri, 11 Oct 2013 23:43:43 GMT',
>>>>>> 'content-length': '128', 'content-type': 'application/json; charset=UTF-8',
>>>>>> 'x-compute-request-id': 'req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41'}
>>>>>> RESP BODY: {"computeFault": {"message": "The server has either erred
>>>>>> or is incapable of performing the requested operation.", "code": 500}}
>>>>>>
>>>>>> DEBUG (shell:768) The server has either erred or is incapable of
>>>>>> performing the requested operation. (HTTP 500) (Request-ID:
>>>>>> req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
>>>>>> Traceback (most recent call last):
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line
>>>>>> 765, in main
>>>>>>     OpenStackComputeShell().main(map(strutils.safe_decode,
>>>>>> sys.argv[1:]))
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line
>>>>>> 701, in main
>>>>>>     args.func(self.cs, args)
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py",
>>>>>> line 286, in do_boot
>>>>>>     server = cs.servers.get(info['id'])
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py",
>>>>>> line 350, in get
>>>>>>     return self._get("/servers/%s" % base.getid(server), "server")
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line
>>>>>> 140, in _get
>>>>>>     _resp, body = self.api.client.get(url)
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line
>>>>>> 230, in get
>>>>>>     return self._cs_request(url, 'GET', **kwargs)
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line
>>>>>> 217, in _cs_request
>>>>>>     **kwargs)
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line
>>>>>> 199, in _time_request
>>>>>>     resp, body = self.request(url, method, **kwargs)
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line
>>>>>> 193, in request
>>>>>>     raise exceptions.from_response(resp, body, url, method)
>>>>>> ClientException: The server has either erred or is incapable of
>>>>>> performing the requested operation. (HTTP 500) (Request-ID:
>>>>>> req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
>>>>>> ERROR: The server has either erred or is incapable of performing the
>>>>>> requested operation. (HTTP 500) (Request-ID:
>>>>>> req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
>>>>>>
>>>>>
>>>>> This is the novaclient log, what does the server say? You can search
>>>>> nova-api.log for  req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 to see.
>>>>>
>>>>>>
>>>>>> Appreciate any  help.
>>>>>> Thanks
>>>>>> Ravi
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> OpenStack-dev mailing list
>>>>>> [hidden email]
>>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> OpenStack-dev mailing list
>>>>> [hidden email]
>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> OpenStack-dev mailing list
>>>> [hidden email]
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>
>>>
>>>
>>> _______________________________________________
>>> OpenStack-dev mailing list
>>> [hidden email]
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> [hidden email]
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



--
Robert Collins <[hidden email]>
Distinguished Technologist
HP Converged Cloud

_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: baremetal nova boot issue

rsamprat
Hi Rob
The steps are well known, the devil is in the details. Following the instructions in the wiki was not very straightforward, and led to many issues down the line. 
Now which images are deploy ramdisk and kernel?
How is the nova agent downloaded to the baremetal node, in which step and how? 
What does ''nova boot'' do? 
I see that using any of the diskbuilder built images (ramdisk kernel) is not booting up the system. 
Would be great if steps are explained more clearly as to which step does what.
Thanks
Ravi



On Sat, Oct 12, 2013 at 8:49 PM, Robert Collins <[hidden email]> wrote:
Have you read the docs about nova baremetal ? The questions you're
asking - about bootstrapping and about a baremetal agent - don't make
any sense to me ;)

These are the needed steps:
 - install openstack
 - build a deploy ramdisk and kernel
 - put them in glance
 - configure nova baremetal as your driver
 - configure a flavor with the deploy ramdisk and kernel
 - install tftpd pointing at /tftproot
 - register machines
 - add your own image to glance (must be a partition image with
separate kernel and ramdisk, not a whole disk image)

nova boot, done.

-Rob



On 12 October 2013 13:58, Ravikanth Samprathi <[hidden email]> wrote:
> I fixed the quantum issue. Now i am able to successfully do 'nova boot':
>
> root@os:/etc/init.d# nova boot --flavor 9 --image
> 278f9721-1354-4c04-9798-65835398e027 mybmnode
> +-------------------------------------+--------------------------------------+
> | Property                            | Value
> |
> +-------------------------------------+--------------------------------------+
> | status                              | BUILD
> |
> | updated                             | 2013-10-12T00:56:28Z
> |
> | OS-EXT-STS:task_state               | scheduling
> |
> | OS-EXT-SRV-ATTR:host                | None
> |
> | key_name                            | None
> |
> | image                               | my-image
> |
> | hostId                              |
> |
> | OS-EXT-STS:vm_state                 | building
> |
> | OS-EXT-SRV-ATTR:instance_name       | instance-00000020
> |
> | OS-EXT-SRV-ATTR:hypervisor_hostname | None
> |
> | flavor                              | my-baremetal-flavor
> |
> | id                                  | beeb7ffd-ed81-44e0-91ae-62435442769a
> |
> | security_groups                     | [{u'name': u'default'}]
> |
> | user_id                             | 251bd0a9388a477b9c24c99b223e7b2a
> |
> | name                                | mybmnode
> |
> | adminPass                           | xWurDrbi5E8X
> |
> | tenant_id                           | 8a34123d83824f3ea52527c5a28ad81e
> |
> | created                             | 2013-10-12T00:56:28Z
> |
> | OS-DCF:diskConfig                   | MANUAL
> |
> | metadata                            | {}
> |
> | accessIPv4                          |
> |
> | accessIPv6                          |
> |
> | progress                            | 0
> |
> | OS-EXT-STS:power_state              | 0
> |
> | OS-EXT-AZ:availability_zone         | nova
> |
> | config_drive                        |
> |
> +-------------------------------------+--------------------------------------+
> root@os:/etc/init.d#
>
>
> Can you please help me on how to go from here:  I think all the provisioning
> listed in the baremetal wiki i could do them successfully.
>
> How to now load the images on the baremetal server (bootstrap) and then load
> my own image on the baremetal server?
>
> Thanks
> Ravi
>
>
>
> On Fri, Oct 11, 2013 at 5:41 PM, Ravikanth Samprathi <[hidden email]>
> wrote:
>>
>> Hi Joe
>> Thanks, i fixed that, now i see this issue. I have always got
>> confused/wondered about this, which credentials should i use?  Can you
>> please help?
>>
>> nova-api.log:
>> ==========
>> 14 2013-10-11 17:35:44.806 4034 INFO nova.osapi_compute.wsgi.server [-]
>> (4034) accepted ('10.40.0.99', 45381)
>>  15
>>  16 2013-10-11 17:35:44.892 ERROR nova.api.openstack
>> [req-12f8de18-544b-4cde-b46a-55fea30d0057 251bd0a9388a477b9c24c99b223e7b2a
>> 8a34123d83824f3ea52527c5a28ad81e] Caught error: 401 Unau    thorized
>>  17
>>  18 This server could not verify that you are authorized to access the
>> document you requested. Either you supplied the wrong credentials (e.g., bad
>> password), or your browser does not     understand how to supply the
>> credentials required.
>>  19
>>  20  Authentication required
>>  21 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack Traceback (most
>> recent call last):
>>  22 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 81,
>> in __call__
>>  23 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> req.get_response(self.application)
>>  24 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
>>  25 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     application,
>> catch_exc_info=False)
>>  26 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in
>> call_application
>>  27 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     app_iter =
>> application(self.environ, start_response)
>>  28 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>>  29 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> resp(environ, start_response)
>>  30 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py",
>> line 450, in __call__
>>  31 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> self.app(env, start_response)
>>  32 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>>  33 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> resp(environ, start_response)
>>  34 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>>  35 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> resp(environ, start_response)
>>  36 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>>  37 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> resp(environ, start_response)
>>  38 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in
>> __call__
>>  39 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     response =
>> self.app(environ, start_response)
>>  40 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>>  41 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> resp(environ, start_response)
>>  42 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
>>  43 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     resp =
>> self.call_func(req, *args, **self.kwargs)
>>  44 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
>>  45 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> self.func(req, *args, **kwargs)
>>  46 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 890, in
>> __call__
>>  47 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>> content_type, body, accept)
>> 48 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 969, in
>> _process_stack
>>  49 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     request,
>> action_args)
>>  50 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 863, in
>> post_process_extensions
>>  51 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>> **action_args)
>>  52 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py",
>> line 526, in show
>>  53 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     return
>> self._show(req, resp_obj)
>>  54 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py",
>> line 522, in _show
>>  55 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>> self._extend_servers(req, [resp_obj.obj['server']])
>>  56 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py",
>> line 487, in _extend_servers
>>  57 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>> .get_instances_security_groups_bindings(context))
>>  58 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/nova/network/security_group/quantum_driver.py",
>> line 252, in get_instances_security_g    roups_bindings
>>  59 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     ports =
>> quantum.list_ports().get('ports')
>>  60 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 107,
>> in with_params
>>  61 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     ret =
>> self.function(instance, *args, **kwargs)
>>  62 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 255,
>> in list_ports
>>  63 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     **_params)
>>  64 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 996,
>> in list
>>  65 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     for r in
>> self._pagination(collection, path, **params):
>>  66 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 1009,
>> in _pagination
>>  67 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     res =
>> self.get(path, params=params)
>>  68 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 982,
>> in get
>>  69 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>> headers=headers, params=params)
>>  70 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 967,
>> in retry_request
>>  71 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>> headers=headers, params=params)
>>  72 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 904,
>> in do_request
>>  73 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     resp,
>> replybody = self.httpclient.do_request(action, method, body=body)
>>  74 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack   File
>> "/usr/lib/python2.7/dist-packages/quantumclient/client.py", line 160, in
>> do_request
>>  75 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack     raise ex
>>  76 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack Unauthorized:
>> 401 Unauthorized
>>  77 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>>  78 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack This server
>> could not verify that you are authorized to access the document you
>> requested. Either you supplied the wrong crede    ntials (e.g., bad
>> password), or your browser does not understand how to supply the credentials
>> required.
>>  79 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>>  80 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack  Authentication
>> required
>>  81 2013-10-11 17:35:44.892 4034 TRACE nova.api.openstack
>>  82 2013-10-11 17:35:44.899 INFO nova.api.openstack
>> [req-12f8de18-544b-4cde-b46a-55fea30d0057 251bd0a9388a477b9c24c99b223e7b2a
>> 8a34123d83824f3ea52527c5a28ad81e] http://10.40.0.99:8774/
>> v2/8a34123d83824f3ea52527c5a28ad81e/servers/c084bbff-afdd-4043-8623-7643fcf4ea87
>> returned with HTTP 500
>>  83 2013-10-11 17:35:44.908 INFO nova.osapi_compute.wsgi.server
>> [req-12f8de18-544b-4cde-b46a-55fea30d0057 251bd0a9388a477b9c24c99b223e7b2a
>> 8a34123d83824f3ea52527c5a28ad81e] 10.40.0.99     "GET
>> /v2/8a34123d83824f3ea52527c5a28ad81e/servers/c084bbff-afdd-4043-8623-7643fcf4ea87
>> HTTP/1.1" status: 500 len: 335 time: 0.1010859
>>
>> Thanks
>> Ravi
>>
>>
>>
>> On Fri, Oct 11, 2013 at 5:30 PM, Joe Gordon <[hidden email]> wrote:
>>>
>>>
>>>
>>>
>>> On Fri, Oct 11, 2013 at 5:17 PM, Ravikanth Samprathi <[hidden email]>
>>> wrote:
>>>>
>>>> Thanks Joe.
>>>>
>>>> Also may i please request the info about which kernel and ramdisk image
>>>> to load and how to get baremetal agent loaded into the baremetal server?
>>>>
>>>> The nova-api.log is here:
>>>> ======================
>>>> 2013-10-11 16:43:43.514 ERROR nova.api.openstack
>>>> [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b9c24c99b223
>>>> e7b2a 8a34123d83824f3ea52527c5a28ad81e] Caught error: [Errno 111]
>>>> ECONNREFUSED
>>>> 3746 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack Traceback
>>>> (most recent call last):
>>>> 3747 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/__in     it__.py", line
>>>> 81, in __call__
>>>> 3748 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> req.get_response(self.application)
>>>> 3749 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/request.py", line      1296, in send
>>>> 3750 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> application, catch_exc_info=False)
>>>> 3751 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/request.py", line      1260, in
>>>> call_application
>>>> 3752 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     app_iter
>>>> = application(self.environ, start_response)
>>>> 3753 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
>>>> 3754 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> resp(environ, start_response)
>>>> 3755 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/keystoneclient/middlewa
>>>> re/auth_token.py", line 450, in __call__
>>>> 3756 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> self.app(env, start_response)
>>>> 3757 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
>>>> 3758 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> resp(environ, start_response)
>>>> 3759 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
>>>> 3760 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> resp(environ, start_response)
>>>> 3761 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
>>>> 3762 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> resp(environ, start_response)
>>>> 3763 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/routes/middleware.py",      line 131, in
>>>> __call__
>>>> 3764 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     response
>>>> = self.app(environ, start_response)
>>>> 3765 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144     , in __call__
>>>> 3766 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> resp(environ, start_response)
>>>> 3767 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130     , in __call__
>>>> 3768 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     resp =
>>>> self.call_func(req, *args, **self.kwargs)
>>>> 3769 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195     , in call_func
>>>> 3770 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> self.func(req, *args, **kwargs)
>>>> 3771 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line
>>>> 890, in __call__
>>>> 3772 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> content_type, body, accept)
>>>> 3773 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line
>>>> 969, in _process_stack
>>>> 3774 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     request,
>>>> action_args)
>>>> 3775 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi     .py", line
>>>> 863, in post_process_extensions
>>>> 3776 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> **action_args)
>>>> 3777 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp
>>>> ute/contrib/security_groups.py", line 526, in show
>>>> 3778 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     return
>>>> self._show(req, resp_obj)
>>>> 3779 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp
>>>> ute/contrib/security_groups.py", line 522, in _show
>>>> 3780 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> self._extend_servers(req, [resp_obj.obj['server']])
>>>> 3781 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/api/openstack/comp
>>>> ute/contrib/security_groups.py", line 487, in _extend_servers
>>>> 3782 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> .get_instances_security_groups_bindings(context))
>>>> 3783 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/nova/network/security_g
>>>> roup/quantum_driver.py", line 252, in get_instances_security_groups_bindings
>>>> 3784 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     ports =
>>>> quantum.list_ports().get('ports')
>>>> 3785 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 107, in with_params
>>>> 3786 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     ret =
>>>> self.function(instance, *args, **kwargs)
>>>> 3787 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 255, in list_ports
>>>> 3788 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> **_params)
>>>> 3789 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 996, in list
>>>> 3790 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     for r in
>>>> self._pagination(collection, path, **params):
>>>> 3791 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 1009, in _pagination
>>>> 3792 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack     res =
>>>> self.get(path, params=params)
>>>> 3793 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 982, in get
>>>> 3794 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> headers=headers, params=params)
>>>> 3795 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 967, in retry_request
>>>> 3796 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> headers=headers, params=params)
>>>> 3797 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 912, in do_request
>>>> 3798 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> self._handle_fault_response(status_code, replybody)
>>>> 3799 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 893, in _handle_fault_response
>>>> 3800 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> exception_handler_v20(status_code, des_error_body)
>>>> 3801 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack   File
>>>> "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/clie     nt.py", line
>>>> 87, in exception_handler_v20
>>>> 3802 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> message=message)
>>>> 3803 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> QuantumClientException: [Errno 111] ECONNREFUSED
>>>> 3804 2013-10-11 16:43:43.514 4034 TRACE nova.api.openstack
>>>> 3805 2013-10-11 16:43:43.519 INFO nova.api.openstack
>>>> [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b9c24c99b223e
>>>> 7b2a 8a34123d83824f3ea52527c5a28ad81e]
>>>> http://10.40.0.99:8774/v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f7
>>>> 3-4895-87a9-6f1082e8cb6a returned with HTTP 500
>>>> 3806 2013-10-11 16:43:43.530 INFO nova.osapi_compute.wsgi.server
>>>> [req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 251bd0a9388a477b
>>>> 9c24c99b223e7b2a 8a34123d83824f3ea52527c5a28ad81e] 10.40.0.99 "GET
>>>> /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e716
>>>> 35-5f73-4895-87a9-6f1082e8cb6a HTTP/1.1" status: 500 len: 335 time:
>>>> 0.1915259
>>>> 3807
>>>>
>>>
>>> It looks like you were unable to connect to quantum.
>>>
>>>
>>>>
>>>> Thank you very much for your help.
>>>> Ravi
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Oct 11, 2013 at 5:04 PM, Joe Gordon <[hidden email]>
>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Oct 11, 2013 at 4:44 PM, Ravikanth Samprathi
>>>>> <[hidden email]> wrote:
>>>>>>
>>>>>> Hi
>>>>>> I am trying to issue the boot command to provision baremetal server.
>>>>>> But i see the following error:
>>>>>>
>>>>>> Also, where can i get the bootstrap kernel and ramdisk images to boot
>>>>>> into the baremetal?  And how to get the baremetal agent installed in the
>>>>>> baremetal node?
>>>>>>
>>>>>> command:
>>>>>> =============
>>>>>> root@os:/home/versa# nova boot --flavor 6 --image
>>>>>> 39f4fd3b-15cc-4810-a808-e2c4764ba657 bm
>>>>>> ERROR: The server has either erred or is incapable of performing the
>>>>>> requested operation. (HTTP 500) (Request-ID:
>>>>>> req-c463e02b-7c35-448e-b0a7-97d1c02c6088)
>>>>>>
>>>>>> The log is here:
>>>>>> ==============
>>>>>>
>>>>>> BATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEgYCEx607Bw1UBm9A87zNIcwDj5VsPwOrLmlq2EG3uWRfyjNoqSZo0jnK-VskJ29hAq1lPZsqe5bnhacWuUUr0nW+aAe-39pcGg9+lXPMOFQEjtRYdwUzhwMz05qm1yWjrdzXl0Hofv7ncdggF8SZbyBG0O68CRwzXRFXeSpGDrHeFw=="
>>>>>>
>>>>>> INFO (connectionpool:191) Starting new HTTP connection (1): 10.40.0.99
>>>>>> DEBUG (connectionpool:283) "GET
>>>>>> /v2/8a34123d83824f3ea52527c5a28ad81e/servers/36e71635-5f73-4895-87a9-6f1082e8cb6a
>>>>>> HTTP/1.1" 500 128
>>>>>> RESP: [500] {'date': 'Fri, 11 Oct 2013 23:43:43 GMT',
>>>>>> 'content-length': '128', 'content-type': 'application/json; charset=UTF-8',
>>>>>> 'x-compute-request-id': 'req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41'}
>>>>>> RESP BODY: {"computeFault": {"message": "The server has either erred
>>>>>> or is incapable of performing the requested operation.", "code": 500}}
>>>>>>
>>>>>> DEBUG (shell:768) The server has either erred or is incapable of
>>>>>> performing the requested operation. (HTTP 500) (Request-ID:
>>>>>> req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
>>>>>> Traceback (most recent call last):
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line
>>>>>> 765, in main
>>>>>>     OpenStackComputeShell().main(map(strutils.safe_decode,
>>>>>> sys.argv[1:]))
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line
>>>>>> 701, in main
>>>>>>     args.func(self.cs, args)
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py",
>>>>>> line 286, in do_boot
>>>>>>     server = cs.servers.get(info['id'])
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py",
>>>>>> line 350, in get
>>>>>>     return self._get("/servers/%s" % base.getid(server), "server")
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line
>>>>>> 140, in _get
>>>>>>     _resp, body = self.api.client.get(url)
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line
>>>>>> 230, in get
>>>>>>     return self._cs_request(url, 'GET', **kwargs)
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line
>>>>>> 217, in _cs_request
>>>>>>     **kwargs)
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line
>>>>>> 199, in _time_request
>>>>>>     resp, body = self.request(url, method, **kwargs)
>>>>>>   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line
>>>>>> 193, in request
>>>>>>     raise exceptions.from_response(resp, body, url, method)
>>>>>> ClientException: The server has either erred or is incapable of
>>>>>> performing the requested operation. (HTTP 500) (Request-ID:
>>>>>> req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
>>>>>> ERROR: The server has either erred or is incapable of performing the
>>>>>> requested operation. (HTTP 500) (Request-ID:
>>>>>> req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41)
>>>>>>
>>>>>
>>>>> This is the novaclient log, what does the server say? You can search
>>>>> nova-api.log for  req-2fff698c-ddf2-47f1-ae82-47fb0dc67d41 to see.
>>>>>
>>>>>>
>>>>>> Appreciate any  help.
>>>>>> Thanks
>>>>>> Ravi
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> OpenStack-dev mailing list
>>>>>> [hidden email]
>>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> OpenStack-dev mailing list
>>>>> [hidden email]
>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> OpenStack-dev mailing list
>>>> [hidden email]
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>
>>>
>>>
>>> _______________________________________________
>>> OpenStack-dev mailing list
>>> [hidden email]
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> [hidden email]
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



--
Robert Collins <[hidden email]>
Distinguished Technologist
HP Converged Cloud

_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: baremetal nova boot issue

Robert Collins
On 13 October 2013 20:16, Ravikanth Samprathi <[hidden email]> wrote:
> Hi Rob
> The steps are well known, the devil is in the details. Following the
> instructions in the wiki was not very straightforward, and led to many
> issues down the line.
> Now which images are deploy ramdisk and kernel?

The ones you create.

> How is the nova agent downloaded to the baremetal node, in which step and
> how?

What agent?

> What does ''nova boot'' do?

It triggers the deployment process as normal for nova. For the pxe
baremetal driver that means extracting the images from glance, writing
them to tftp tthen powering on the machine.

> I see that using any of the diskbuilder built images (ramdisk kernel) is not
> booting up the system.

Can you give some more detail about what happens?




--
Robert Collins <[hidden email]>
Distinguished Technologist
HP Converged Cloud

_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: baremetal nova boot issue

rsamprat
Thank you for your help and pointers Rob.
I followed instructions from the baremetal wiki and i am lost in the last step.

First:
I setup pxelinux.cfg/default to point to my-initrd and my-vmlinuz for pxe boot.
My baremetal node goes into this prompt:
(initramfs)
I dont know if the above is correct.

Second:
Then i do nova boot, which gives me this:
root@os:/tftpboot# nova boot --flavor my-baremetal-flavor --image my-image my-baremetal-node
+-------------------------------------+--------------------------------------+
| Property                            | Value                                |
+-------------------------------------+--------------------------------------+
| status                              | BUILD                                |
| updated                             | 2013-10-14T18:08:50Z                 |
| OS-EXT-STS:task_state               | scheduling                           |
| OS-EXT-SRV-ATTR:host                | None                                 |
| key_name                            | None                                 |
| image                               | my-image                             |
| hostId                              |                                      |
| OS-EXT-STS:vm_state                 | building                             |
| OS-EXT-SRV-ATTR:instance_name       | instance-00000021                    |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None                                 |
| flavor                              | my-baremetal-flavor                  |
| id                                  | c9fd52de-e93e-44dd-9009-9395e964829e |
| security_groups                     | [{u'name': u'default'}]              |
| user_id                             | 251bd0a9388a477b9c24c99b223e7b2a     |
| name                                | my-baremetal-node                    |
| adminPass                           | 5kHEX46xremR                         |
| tenant_id                           | 8a34123d83824f3ea52527c5a28ad81e     |
| created                             | 2013-10-14T18:08:49Z                 |
| OS-DCF:diskConfig                   | MANUAL                               |
| metadata                            | {}                                   |
| accessIPv4                          |                                      |
| accessIPv6                          |                                      |
| progress                            | 0                                    |
| OS-EXT-STS:power_state              | 0                                    |
| OS-EXT-AZ:availability_zone         | nova                                 |
| config_drive                        |                                      |
+-------------------------------------+--------------------------------------+
root@os:/tftpboot#

Before doing this, I have done the nova-baremetal-create and interface add, and this is what i get:
======================================================================
root@os:/tftpboot# nova baremetal-node-create os 1 1024 10 00:50:56:AA:20:54
+------------------+-------------------+
| Property         | Value             |
+------------------+-------------------+
| instance_uuid    | None              |
| pm_address       | None              |
| interfaces       | []                |
| prov_vlan_id     | None              |
| cpus             | 1                 |
| memory_mb        | 1024              |
| prov_mac_address | 00:50:56:AA:20:54 |
| service_host     | os                |
| local_gb         | 10                |
| id               | 2                 |
| pm_user          | None              |
| terminal_port    | None              |
+------------------+-------------------+
root@os:/tftpboot# nova baremetal-interface-add 2 00:50:56:AA:20:54
+-------------+-------------------+
| Property    | Value             |
+-------------+-------------------+
| datapath_id | 0                 |
| id          | 2                 |
| port_no     | 0                 |
| address     | 00:50:56:AA:20:54 |
+-------------+-------------------+

The baremetal node is stuck at (initramfs) no auto powering and no auto booting happens.
I have not given --pm options , should i give that and if so what are the values?
What am i missing?
Thanks
ravi




On Sun, Oct 13, 2013 at 2:27 AM, Robert Collins <[hidden email]> wrote:
On 13 October 2013 20:16, Ravikanth Samprathi <[hidden email]> wrote:
> Hi Rob
> The steps are well known, the devil is in the details. Following the
> instructions in the wiki was not very straightforward, and led to many
> issues down the line.
> Now which images are deploy ramdisk and kernel?

The ones you create.

> How is the nova agent downloaded to the baremetal node, in which step and
> how?

What agent?

> What does ''nova boot'' do?

It triggers the deployment process as normal for nova. For the pxe
baremetal driver that means extracting the images from glance, writing
them to tftp tthen powering on the machine.

> I see that using any of the diskbuilder built images (ramdisk kernel) is not
> booting up the system.

Can you give some more detail about what happens?




--
Robert Collins <[hidden email]>
Distinguished Technologist
HP Converged Cloud

_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: baremetal nova boot issue

Clint Byrum
Excerpts from Ravikanth Samprathi's message of 2013-10-14 11:15:15 -0700:

> Thank you for your help and pointers Rob.
> I followed instructions from the baremetal wiki and i am lost in the last
> step.
>
> First:
> I setup pxelinux.cfg/default to point to my-initrd and my-vmlinuz for pxe
> boot.
> My baremetal node goes into this prompt:
> (initramfs)
> I dont know if the above is correct.
>
> Second:
> Then i do nova boot, which gives me this:
> root@os:/tftpboot# nova boot --flavor my-baremetal-flavor --image my-image
> my-baremetal-node
> +-------------------------------------+--------------------------------------+
> | Property                            |
> Value                                |
> +-------------------------------------+--------------------------------------+
> | status                              |
> BUILD                                |
> | updated                             |
> 2013-10-14T18:08:50Z                 |
> | OS-EXT-STS:task_state               |
> scheduling                           |
> | OS-EXT-SRV-ATTR:host                |
> None                                 |
> | key_name                            |
> None                                 |
> | image                               |
> my-image                             |
> | hostId
> |                                      |
> | OS-EXT-STS:vm_state                 |
> building                             |
> | OS-EXT-SRV-ATTR:instance_name       |
> instance-00000021                    |
> | OS-EXT-SRV-ATTR:hypervisor_hostname |
> None                                 |
> | flavor                              |
> my-baremetal-flavor                  |
> | id                                  |
> c9fd52de-e93e-44dd-9009-9395e964829e |
> | security_groups                     | [{u'name':
> u'default'}]              |
> | user_id                             |
> 251bd0a9388a477b9c24c99b223e7b2a     |
> | name                                |
> my-baremetal-node                    |
> | adminPass                           |
> 5kHEX46xremR                         |
> | tenant_id                           |
> 8a34123d83824f3ea52527c5a28ad81e     |
> | created                             |
> 2013-10-14T18:08:49Z                 |
> | OS-DCF:diskConfig                   |
> MANUAL                               |
> | metadata                            |
> {}                                   |
> | accessIPv4
> |                                      |
> | accessIPv6
> |                                      |
> | progress                            |
> 0                                    |
> | OS-EXT-STS:power_state              |
> 0                                    |
> | OS-EXT-AZ:availability_zone         |
> nova                                 |
> | config_drive
> |                                      |
> +-------------------------------------+--------------------------------------+
> root@os:/tftpboot#
>
> Before doing this, I have done the nova-baremetal-create and interface add,
> and this is what i get:
> ======================================================================
>
> root@os:/tftpboot# nova baremetal-node-create os 1 1024 10 00:50:56:AA:20:54
> +------------------+-------------------+
> | Property         | Value             |
> +------------------+-------------------+
> | instance_uuid    | None              |
> | pm_address       | None              |
> | interfaces       | []                |
> | prov_vlan_id     | None              |
> | cpus             | 1                 |
> | memory_mb        | 1024              |
> | prov_mac_address | 00:50:56:AA:20:54 |
> | service_host     | os                |
> | local_gb         | 10                |
> | id               | 2                 |
> | pm_user          | None              |
> | terminal_port    | None              |
> +------------------+-------------------+
> root@os:/tftpboot# nova baremetal-interface-add 2 00:50:56:AA:20:54
> +-------------+-------------------+
> | Property    | Value             |
> +-------------+-------------------+
> | datapath_id | 0                 |
> | id          | 2                 |
> | port_no     | 0                 |
> | address     | 00:50:56:AA:20:54 |
> +-------------+-------------------+
>
> The baremetal node is stuck at (initramfs) no auto powering and no auto
> booting happens.
> I have not given --pm options , should i give that and if so what are the
> values?
> What am i missing?

If you don't give the power driver an address and credentials to turn
the machine on and off, you can't expect automatic deployment to work.
You will need IPMI credentials and an IP that the compute node can reach
to turn the machine on/off using the IPMI protocol.

If your machines do not have IPMI, and they are not Tilera based, you
will need to write a power driver to turn them on and off.

_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: baremetal nova boot issue

rsamprat
You mean there is no power driver for anything other than tilera?  I am  using supermicro intel based baremetal nodes. And for testing am simulating using VMs are baremetals as well. 
Please let me know.
Thanks
Ravi



On Mon, Oct 14, 2013 at 11:30 AM, Clint Byrum <[hidden email]> wrote:
Excerpts from Ravikanth Samprathi's message of 2013-10-14 11:15:15 -0700:
> Thank you for your help and pointers Rob.
> I followed instructions from the baremetal wiki and i am lost in the last
> step.
>
> First:
> I setup pxelinux.cfg/default to point to my-initrd and my-vmlinuz for pxe
> boot.
> My baremetal node goes into this prompt:
> (initramfs)
> I dont know if the above is correct.
>
> Second:
> Then i do nova boot, which gives me this:
> root@os:/tftpboot# nova boot --flavor my-baremetal-flavor --image my-image
> my-baremetal-node
> +-------------------------------------+--------------------------------------+
> | Property                            |
> Value                                |
> +-------------------------------------+--------------------------------------+
> | status                              |
> BUILD                                |
> | updated                             |
> 2013-10-14T18:08:50Z                 |
> | OS-EXT-STS:task_state               |
> scheduling                           |
> | OS-EXT-SRV-ATTR:host                |
> None                                 |
> | key_name                            |
> None                                 |
> | image                               |
> my-image                             |
> | hostId
> |                                      |
> | OS-EXT-STS:vm_state                 |
> building                             |
> | OS-EXT-SRV-ATTR:instance_name       |
> instance-00000021                    |
> | OS-EXT-SRV-ATTR:hypervisor_hostname |
> None                                 |
> | flavor                              |
> my-baremetal-flavor                  |
> | id                                  |
> c9fd52de-e93e-44dd-9009-9395e964829e |
> | security_groups                     | [{u'name':
> u'default'}]              |
> | user_id                             |
> 251bd0a9388a477b9c24c99b223e7b2a     |
> | name                                |
> my-baremetal-node                    |
> | adminPass                           |
> 5kHEX46xremR                         |
> | tenant_id                           |
> 8a34123d83824f3ea52527c5a28ad81e     |
> | created                             |
> 2013-10-14T18:08:49Z                 |
> | OS-DCF:diskConfig                   |
> MANUAL                               |
> | metadata                            |
> {}                                   |
> | accessIPv4
> |                                      |
> | accessIPv6
> |                                      |
> | progress                            |
> 0                                    |
> | OS-EXT-STS:power_state              |
> 0                                    |
> | OS-EXT-AZ:availability_zone         |
> nova                                 |
> | config_drive
> |                                      |
> +-------------------------------------+--------------------------------------+
> root@os:/tftpboot#
>
> Before doing this, I have done the nova-baremetal-create and interface add,
> and this is what i get:
> ======================================================================
>
> root@os:/tftpboot# nova baremetal-node-create os 1 1024 10 00:50:56:AA:20:54
> +------------------+-------------------+
> | Property         | Value             |
> +------------------+-------------------+
> | instance_uuid    | None              |
> | pm_address       | None              |
> | interfaces       | []                |
> | prov_vlan_id     | None              |
> | cpus             | 1                 |
> | memory_mb        | 1024              |
> | prov_mac_address | 00:50:56:AA:20:54 |
> | service_host     | os                |
> | local_gb         | 10                |
> | id               | 2                 |
> | pm_user          | None              |
> | terminal_port    | None              |
> +------------------+-------------------+
> root@os:/tftpboot# nova baremetal-interface-add 2 00:50:56:AA:20:54
> +-------------+-------------------+
> | Property    | Value             |
> +-------------+-------------------+
> | datapath_id | 0                 |
> | id          | 2                 |
> | port_no     | 0                 |
> | address     | 00:50:56:AA:20:54 |
> +-------------+-------------------+
>
> The baremetal node is stuck at (initramfs) no auto powering and no auto
> booting happens.
> I have not given --pm options , should i give that and if so what are the
> values?
> What am i missing?

If you don't give the power driver an address and credentials to turn
the machine on and off, you can't expect automatic deployment to work.
You will need IPMI credentials and an IP that the compute node can reach
to turn the machine on/off using the IPMI protocol.

If your machines do not have IPMI, and they are not Tilera based, you
will need to write a power driver to turn them on and off.

_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: baremetal nova boot issue

Clint Byrum
No, I said if your machines are not IPMI, and are not Tilera based, then
they will not work.

If they are IPMI, they will work.

Excerpts from Ravikanth Samprathi's message of 2013-10-14 11:42:31 -0700:

> You mean there is no power driver for anything other than tilera?  I am
> using supermicro intel based baremetal nodes. And for testing am simulating
> using VMs are baremetals as well.
> Please let me know.
> Thanks
> Ravi
>
> On Mon, Oct 14, 2013 at 11:30 AM, Clint Byrum <[hidden email]> wrote:
>
> > Excerpts from Ravikanth Samprathi's message of 2013-10-14 11:15:15 -0700:
> > > Thank you for your help and pointers Rob.
> > > I followed instructions from the baremetal wiki and i am lost in the last
> > > step.
> > >
> > > First:
> > > I setup pxelinux.cfg/default to point to my-initrd and my-vmlinuz for pxe
> > > boot.
> > > My baremetal node goes into this prompt:
> > > (initramfs)
> > > I dont know if the above is correct.
> > >
> > > Second:
> > > Then i do nova boot, which gives me this:
> > > root@os:/tftpboot# nova boot --flavor my-baremetal-flavor --image
> > my-image
> > > my-baremetal-node
> > >
> > +-------------------------------------+--------------------------------------+
> > > | Property                            |
> > > Value                                |
> > >
> > +-------------------------------------+--------------------------------------+
> > > | status                              |
> > > BUILD                                |
> > > | updated                             |
> > > 2013-10-14T18:08:50Z                 |
> > > | OS-EXT-STS:task_state               |
> > > scheduling                           |
> > > | OS-EXT-SRV-ATTR:host                |
> > > None                                 |
> > > | key_name                            |
> > > None                                 |
> > > | image                               |
> > > my-image                             |
> > > | hostId
> > > |                                      |
> > > | OS-EXT-STS:vm_state                 |
> > > building                             |
> > > | OS-EXT-SRV-ATTR:instance_name       |
> > > instance-00000021                    |
> > > | OS-EXT-SRV-ATTR:hypervisor_hostname |
> > > None                                 |
> > > | flavor                              |
> > > my-baremetal-flavor                  |
> > > | id                                  |
> > > c9fd52de-e93e-44dd-9009-9395e964829e |
> > > | security_groups                     | [{u'name':
> > > u'default'}]              |
> > > | user_id                             |
> > > 251bd0a9388a477b9c24c99b223e7b2a     |
> > > | name                                |
> > > my-baremetal-node                    |
> > > | adminPass                           |
> > > 5kHEX46xremR                         |
> > > | tenant_id                           |
> > > 8a34123d83824f3ea52527c5a28ad81e     |
> > > | created                             |
> > > 2013-10-14T18:08:49Z                 |
> > > | OS-DCF:diskConfig                   |
> > > MANUAL                               |
> > > | metadata                            |
> > > {}                                   |
> > > | accessIPv4
> > > |                                      |
> > > | accessIPv6
> > > |                                      |
> > > | progress                            |
> > > 0                                    |
> > > | OS-EXT-STS:power_state              |
> > > 0                                    |
> > > | OS-EXT-AZ:availability_zone         |
> > > nova                                 |
> > > | config_drive
> > > |                                      |
> > >
> > +-------------------------------------+--------------------------------------+
> > > root@os:/tftpboot#
> > >
> > > Before doing this, I have done the nova-baremetal-create and interface
> > add,
> > > and this is what i get:
> > > ======================================================================
> > >
> > > root@os:/tftpboot# nova baremetal-node-create os 1 1024 10
> > 00:50:56:AA:20:54
> > > +------------------+-------------------+
> > > | Property         | Value             |
> > > +------------------+-------------------+
> > > | instance_uuid    | None              |
> > > | pm_address       | None              |
> > > | interfaces       | []                |
> > > | prov_vlan_id     | None              |
> > > | cpus             | 1                 |
> > > | memory_mb        | 1024              |
> > > | prov_mac_address | 00:50:56:AA:20:54 |
> > > | service_host     | os                |
> > > | local_gb         | 10                |
> > > | id               | 2                 |
> > > | pm_user          | None              |
> > > | terminal_port    | None              |
> > > +------------------+-------------------+
> > > root@os:/tftpboot# nova baremetal-interface-add 2 00:50:56:AA:20:54
> > > +-------------+-------------------+
> > > | Property    | Value             |
> > > +-------------+-------------------+
> > > | datapath_id | 0                 |
> > > | id          | 2                 |
> > > | port_no     | 0                 |
> > > | address     | 00:50:56:AA:20:54 |
> > > +-------------+-------------------+
> > >
> > > The baremetal node is stuck at (initramfs) no auto powering and no auto
> > > booting happens.
> > > I have not given --pm options , should i give that and if so what are the
> > > values?
> > > What am i missing?
> >
> > If you don't give the power driver an address and credentials to turn
> > the machine on and off, you can't expect automatic deployment to work.
> > You will need IPMI credentials and an IP that the compute node can reach
> > to turn the machine on/off using the IPMI protocol.
> >
> > If your machines do not have IPMI, and they are not Tilera based, you
> > will need to write a power driver to turn them on and off.
> >
> > _______________________________________________
> > OpenStack-dev mailing list
> > [hidden email]
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >

_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: baremetal nova boot issue

rsamprat
Thanks Clint.  They are not tilera but IPMI enabled. May i know what IPMI configuration i need to do on baremetal-node and baremetal-openstack-server ?
Thanks
Ravi



On Mon, Oct 14, 2013 at 11:51 AM, Clint Byrum <[hidden email]> wrote:
No, I said if your machines are not IPMI, and are not Tilera based, then
they will not work.

If they are IPMI, they will work.

Excerpts from Ravikanth Samprathi's message of 2013-10-14 11:42:31 -0700:
> You mean there is no power driver for anything other than tilera?  I am
> using supermicro intel based baremetal nodes. And for testing am simulating
> using VMs are baremetals as well.
> Please let me know.
> Thanks
> Ravi
>
> On Mon, Oct 14, 2013 at 11:30 AM, Clint Byrum <[hidden email]> wrote:
>
> > Excerpts from Ravikanth Samprathi's message of 2013-10-14 11:15:15 -0700:
> > > Thank you for your help and pointers Rob.
> > > I followed instructions from the baremetal wiki and i am lost in the last
> > > step.
> > >
> > > First:
> > > I setup pxelinux.cfg/default to point to my-initrd and my-vmlinuz for pxe
> > > boot.
> > > My baremetal node goes into this prompt:
> > > (initramfs)
> > > I dont know if the above is correct.
> > >
> > > Second:
> > > Then i do nova boot, which gives me this:
> > > root@os:/tftpboot# nova boot --flavor my-baremetal-flavor --image
> > my-image
> > > my-baremetal-node
> > >
> > +-------------------------------------+--------------------------------------+
> > > | Property                            |
> > > Value                                |
> > >
> > +-------------------------------------+--------------------------------------+
> > > | status                              |
> > > BUILD                                |
> > > | updated                             |
> > > 2013-10-14T18:08:50Z                 |
> > > | OS-EXT-STS:task_state               |
> > > scheduling                           |
> > > | OS-EXT-SRV-ATTR:host                |
> > > None                                 |
> > > | key_name                            |
> > > None                                 |
> > > | image                               |
> > > my-image                             |
> > > | hostId
> > > |                                      |
> > > | OS-EXT-STS:vm_state                 |
> > > building                             |
> > > | OS-EXT-SRV-ATTR:instance_name       |
> > > instance-00000021                    |
> > > | OS-EXT-SRV-ATTR:hypervisor_hostname |
> > > None                                 |
> > > | flavor                              |
> > > my-baremetal-flavor                  |
> > > | id                                  |
> > > c9fd52de-e93e-44dd-9009-9395e964829e |
> > > | security_groups                     | [{u'name':
> > > u'default'}]              |
> > > | user_id                             |
> > > 251bd0a9388a477b9c24c99b223e7b2a     |
> > > | name                                |
> > > my-baremetal-node                    |
> > > | adminPass                           |
> > > 5kHEX46xremR                         |
> > > | tenant_id                           |
> > > 8a34123d83824f3ea52527c5a28ad81e     |
> > > | created                             |
> > > 2013-10-14T18:08:49Z                 |
> > > | OS-DCF:diskConfig                   |
> > > MANUAL                               |
> > > | metadata                            |
> > > {}                                   |
> > > | accessIPv4
> > > |                                      |
> > > | accessIPv6
> > > |                                      |
> > > | progress                            |
> > > 0                                    |
> > > | OS-EXT-STS:power_state              |
> > > 0                                    |
> > > | OS-EXT-AZ:availability_zone         |
> > > nova                                 |
> > > | config_drive
> > > |                                      |
> > >
> > +-------------------------------------+--------------------------------------+
> > > root@os:/tftpboot#
> > >
> > > Before doing this, I have done the nova-baremetal-create and interface
> > add,
> > > and this is what i get:
> > > ======================================================================
> > >
> > > root@os:/tftpboot# nova baremetal-node-create os 1 1024 10
> > 00:50:56:AA:20:54
> > > +------------------+-------------------+
> > > | Property         | Value             |
> > > +------------------+-------------------+
> > > | instance_uuid    | None              |
> > > | pm_address       | None              |
> > > | interfaces       | []                |
> > > | prov_vlan_id     | None              |
> > > | cpus             | 1                 |
> > > | memory_mb        | 1024              |
> > > | prov_mac_address | 00:50:56:AA:20:54 |
> > > | service_host     | os                |
> > > | local_gb         | 10                |
> > > | id               | 2                 |
> > > | pm_user          | None              |
> > > | terminal_port    | None              |
> > > +------------------+-------------------+
> > > root@os:/tftpboot# nova baremetal-interface-add 2 00:50:56:AA:20:54
> > > +-------------+-------------------+
> > > | Property    | Value             |
> > > +-------------+-------------------+
> > > | datapath_id | 0                 |
> > > | id          | 2                 |
> > > | port_no     | 0                 |
> > > | address     | 00:50:56:AA:20:54 |
> > > +-------------+-------------------+
> > >
> > > The baremetal node is stuck at (initramfs) no auto powering and no auto
> > > booting happens.
> > > I have not given --pm options , should i give that and if so what are the
> > > values?
> > > What am i missing?
> >
> > If you don't give the power driver an address and credentials to turn
> > the machine on and off, you can't expect automatic deployment to work.
> > You will need IPMI credentials and an IP that the compute node can reach
> > to turn the machine on/off using the IPMI protocol.
> >
> > If your machines do not have IPMI, and they are not Tilera based, you
> > will need to write a power driver to turn them on and off.
> >
> > _______________________________________________
> > OpenStack-dev mailing list
> > [hidden email]
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >

_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev