Re: [Openstack] BAREMETAL: Unable to launch the instance due to No valid host was found

2013-07-17 Thread K, Shanthakumar
Hi Arata,

Thanks for your response.

Issue has been resolved, it's because thebm1 not  vaild nova-compute node 
hostname. When you creating/enroll the baremetal HW the hostname should be 
nova-compute host name.

But I have other issue, while launching the instance. I have only one physical 
node to provision my instance after couple launch failures now the NIC 
interface of baremetal is giving  The mac address E8:93:53:2B:F9:E0 is in use 


ERROR nova.scheduler.filter_scheduler [req-9b2e896b-c02b-4a1b-a2e3-936390add2a9 
e29d4b006311421896a3469d7efb3621 33a71acc451e4bfc8105a1b7d01bfe8c] 
[instance: db6bf68f-f52d-4d6a-944b-71036599939a] Error from last host: 
d00-50-56-8b-0c-5f (node 2ee2ab4e-85d6-4b59-9c24-024673277b9c): 
[u'Traceback (most recent call last):\n', u'  File 
/usr/lib/python2.7/dist-packages/nova/compute/manager.py, line 817, 
in _run_instance\nrequested_networks, macs, security_groups)\n', u'  File 
/usr/lib/python2.7/dist-packages/nova/compute/manager.py, line 1061, 
in _allocate_network\ninstance=instance)\n', u'  File 
/usr/lib/python2.7/contextlib.py, line 24, 
in __exit__\nself.gen.next()\n', u'  File 
/usr/lib/python2.7/dist-packages/nova/compute/manager.py, line 1057, 
in _allocate_network\nsecurity_groups=security_groups)\n', u'  File 
/usr/lib/python2.7/dist-packages/nova/network/api.py, line 46, 
in wrapper\nres = f(self, context, *args, **kwargs)\n', u'  File 
/usr/lib/python2.7/dist-packages/nova/network/quantumv2/api.py, line 280, 
in allocate_for_instance\n\'exception\': ex})\n', u'  File 
/usr/lib/python2.7/contextlib.py, line 24, in __exit__\n
self.gen.next()\n', u'  File 
/usr/lib/python2.7/dist-packages/nova/network/quantumv2/api.py, line 263, 
in allocate_for_instance\n
quantum.create_port(port_req_body)[\'port\'][\'id\'])\n', u'  File 
/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py, line 107, 
in with_params\nret = self.function(instance, *args, **kwargs)\n', u'  File 
/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py, line 269, 
in create_port\nreturn self.post(self.ports_path, body=body)\n', u'  File 
/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py, line 987, 
in post\nheaders=headers, params=params)\n', u'  File 
/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py, line 912,
in do_request\nself._handle_fault_response(status_code, replybody)\n', u'  
File /usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py, line 893, 
in _handle_fault_response\nexception_handler_v20(status_code, 
des_error_body)\n', u'  File 
/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py, line 80, 
in exception_handler_v20\n
message=error_dict)\n', u'QuantumClientException: Unable to complete operation 
for network e2d489b2-48ce-40cb-a4d8-b3fb8b71b936. The mac address 
E8:93:53:2B:F9:E0 is in use.\n']
WARNING nova.scheduler.driver [req-9b2e896b-c02b-4a1b-a2e3-936390add2a9 
e29d4b006311421896a3469d7efb3621 33a71acc451e4bfc8105a1b7d01bfe8c] 
[instance: db6bf68f-f52d-4d6a-944b-71036599939a] Setting instance to ERROR 
state.


Thanks
Shanthakumar K

-Original Message-
From: Openstack [mailto:openstack-bounces+sk13=hp@lists.launchpad.net] On 
Behalf Of NOTSU Arata
Sent: Wednesday, July 17, 2013 5:14 AM
To: openstack@lists.launchpad.net
Subject: Re: [Openstack] BAREMETAL: Unable to launch the instance due to No 
valid host was found

Hello Shanthakumar,

Please check your nova-compute's hostname showed in nova-manage service list 
matches the one in nova baremetal-node-list. In this case, it should be bm1.

Thanks,
Arata

(2013/07/16 0:20), K, Shanthakumar wrote:
 Hi,
 I have open stack Grizzly installed  configures with  baremetal environment .

 Following: https://wiki.openstack.org/wiki/Baremetal
 OS:   Ubuntu 12.04 LTS
 Install Mode : Multi node setup (controller and the compute hosts are two 
 separate nodes.)
 Error:   I'm unable to launch the instance due to error No 
 valid host was found


 nova flavor-list | grep 10
 | 10 | SB| 2048  | 10   | 0 |  | 1 | 1.0 
 | True  | {u'cpu_arch': u'x86_64', u'baremetal:deploy_kernel_id': 
 u'821affce-d908-4b07-81b8-f5eaf7c6ab21', u'baremetal:deploy_ramdisk_id': 
 u'c8abfc1d-bc43-48ef-ade3-b1de96af219f'} |

 nova baremetal-node-list
 ++--+--+---+-+---++---+-+---+
 | ID | Host | CPUs | Memory_MB | Disk_GB | MAC Address   | PM Address | 
 PM Username   | PM Password | Terminal Port |
 ++--+--+---+-+---++---+-+---+
 | 2  | bm1  | 1| 2048  | 10  | E8:39:35:2B:F9:E0 | 10.0.0.22  | 
 Administrator | | None

[Openstack] BAREMETAL: Unable to launch the instance due to No valid host was found

2013-07-15 Thread K, Shanthakumar
Hi,
I have open stack Grizzly installed  configures with  baremetal environment .

Following: https://wiki.openstack.org/wiki/Baremetal
OS:   Ubuntu 12.04 LTS
Install Mode : Multi node setup (controller and the compute hosts are two 
separate nodes.)
Error:   I'm unable to launch the instance due to error No 
valid host was found


nova flavor-list | grep 10
| 10 | SB| 2048  | 10   | 0 |  | 1 | 1.0 | 
True  | {u'cpu_arch': u'x86_64', u'baremetal:deploy_kernel_id': 
u'821affce-d908-4b07-81b8-f5eaf7c6ab21', u'baremetal:deploy_ramdisk_id': 
u'c8abfc1d-bc43-48ef-ade3-b1de96af219f'} |

nova baremetal-node-list
++--+--+---+-+---++---+-+---+
| ID | Host | CPUs | Memory_MB | Disk_GB | MAC Address   | PM Address | PM 
Username   | PM Password | Terminal Port |
++--+--+---+-+---++---+-+---+
| 2  | bm1  | 1| 2048  | 10  | E8:39:35:2B:F9:E0 | 10.0.0.22  | 
Administrator | | None  |
++--+--+---+-+---++---+-+---+

nova baremetal-interface-list 2
++-+-+---+
| ID | Datapath_ID | Port_No | Address   |
++-+-+---+
| 2  | 0   | 0   | E8:39:35:2B:F9:E0 |
++-+-+---+

nova boot --flavor SB --image my-image INS2
+-+--+
| Property| Value|
+-+--+
| status  | BUILD|
| updated | 2013-07-15T15:56:02Z |
| OS-EXT-STS:task_state   | scheduling   |
| OS-EXT-SRV-ATTR:host| None |
| key_name| None |
| image   | my-image |
| hostId  |  |  
  |
+-+--+

nova show 88affe47-02a4-46c8-b155-aadce5df5134
+-++
| Property| Value   
   |
+-++
| status  | ERROR   
   |
| updated | 2013-07-15T15:56:02Z
   |
| OS-EXT-STS:task_state   | None
   |
| OS-EXT-SRV-ATTR:host| None
   |
| key_name| None
   |
|   
|   
   |
| fault   | {u'message': u'NoValidHost', u'code': 
500, u'details': u'No valid host was found.  |
| | ', u'created': u'2013-07-15T15:56:02Z'} 
   |
| OS-EXT-STS:power_state  | 0   
   |
| OS-EXT-AZ:availability_zone | None
   |
| config_drive| 
   |
+-++

DNSMASQ is running and all other services WRT to Openstack running.

nova.conf
#
# Baremetal
scheduler_host_manager=nova.scheduler.baremetal_host_manager.BaremetalHostManager
firewall_driver=nova.virt.firewall.NoopFirewallDriver
compute_driver=nova.virt.baremetal.driver.BareMetalDriver
ram_allocation_ration=1.0
reserved_host_memory_mb=0
[baremetal]
sql_connection=postgresql://nova:mwx4s3gzsjy8@192.168.124.81/nova_bm

[Openstack] [Baremetal] How to check BM_Hardware enrollment

2013-07-15 Thread K, Shanthakumar
Hi,

How to ensure the baremetal hardware enrollment is success or not,

As per the wiki Once the hardware is enrolled in the baremetal driver, the 
Nova compute process will broadcast the availability of a new compute resource 
to the Nova scheduler during the next periodic update, which by default occurs 
once a minute.

But I'm not getting any updates on scheduler log other than

2013-07-15 11:04:28.684 8541 AUDIT nova.service [-] Starting scheduler node 
(version 2013.1)
2013-07-15 11:04:30.433 INFO nova.openstack.common.rpc.common 
[req-105763e7-ee4c-4606-9a0b-9981953a50bf None None] Connected to AMQP server 
on 192.168.124.81:5672
2013-07-15 11:04:30.453 INFO nova.openstack.common.rpc.common 
[req-105763e7-ee4c-4606-9a0b-9981953a50bf None None] Connected to AMQP server 
on 192.168.124.81:5672
2013-07-15 13:29:48.110 8541 INFO nova.service [-] Caught SIGTERM, exiting
2013-07-15 13:30:03.074 13854 AUDIT nova.service [-] Starting scheduler node 
(version 2013.1)
2013-07-15 13:30:04.890 INFO nova.openstack.common.rpc.common 
[req-3718a701-9951-4909-aee2-3119c642ece8 None None] Connected to AMQP server 
on 192.168.124.81:5672
2013-07-15 13:30:04.915 INFO nova.openstack.common.rpc.common 
[req-3718a701-9951-4909-aee2-3119c642ece8 None None] Connected to AMQP server 
on 192.168.124.81:5672
2013-07-15 13:33:51.087 WARNING nova.scheduler.driver 
[req-f3340166-463f-4304-910a-a75a500f8ed1 e29d4b006311421896a3469d7efb3621 
33a71acc451e4bfc8105a1b7d01bfe8c] [instance: 
b1b1c5de-2df1-4e14-802e-19a14ecba50f] Setting instance to ERROR state.
2013-07-15 13:35:53.056 13854 INFO nova.service [-] Caught SIGTERM, exiting
2013-07-15 13:35:56.351 14644 AUDIT nova.service [-] Starting scheduler node 
(version 2013.1)
2013-07-15 13:35:57.745 INFO nova.openstack.common.rpc.common 
[req-1876911d-5952-4fa3-bf1f-aab826a62b62 None None] Connected to AMQP server 
on 192.168.124.81:5672
2013-07-15 13:35:57.755 INFO nova.openstack.common.rpc.common 
[req-1876911d-5952-4fa3-bf1f-aab826a62b62 None None] Connected to AMQP server 
on 192.168.124.81:5672
2013-07-15 13:39:14.250 14644 INFO nova.service [-] Caught SIGTERM, exiting
2013-07-15 13:39:16.509 16823 AUDIT nova.service [-] Starting scheduler node 
(version 2013.1)
2013-07-15 13:39:17.850 INFO nova.openstack.common.rpc.common 
[req-87863536-99f2-417d-aeea-f7459fe420b3 None None] Connected to AMQP server 
on 192.168.124.81:5672
2013-07-15 13:39:17.867 INFO nova.openstack.common.rpc.common 
[req-87863536-99f2-417d-aeea-f7459fe420b3 None None] Connected to AMQP server 
on 192.168.124.81:5672

Kindly let me know what went wrong on my configuration.

All the openstack stack services are up  running with baremetal changes on the 
nova.conf effective.


Thanks
Shanthakumar K

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Horizon Error - Requested URL / was not found on this server.

2013-06-04 Thread K, Shanthakumar
I have successfully configured openstack Grizzly setup.

While launching the dashboard I'm getting the following error in webpage,

+
Not Found

The requested URL / was not found on this server.

Apache Server at 10.1.52.161 Port 80
++

apache- error log

Tue Jun 04 06:25:03 2013] [warn] mod_wsgi: Compiled for Python/2.7.2+.
[Tue Jun 04 06:25:03 2013] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Tue Jun 04 06:25:03 2013] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 
Python/2.7.3 configured -- resuming normal operations
[Tue Jun 04 10:42:36 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs, referer: http://10.1.52.161/domain/projects/
[Tue Jun 04 10:42:36 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs, referer: http://10.1.52.161/domain/projects/
[Tue Jun 04 10:42:36 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 10:42:40 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs, referer: http://10.1.52.161/domain/
[Tue Jun 04 10:42:40 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 10:43:36 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 10:43:36 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Mon Jun 03 20:14:19 2013] [warn] mod_wsgi: Compiled for Python/2.7.2+.
[Mon Jun 03 20:14:19 2013] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Mon Jun 03 20:14:19 2013] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 
Python/2.7.3 configured -- resuming normal operations
[Tue Jun 04 00:27:13 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:27:13 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:44:44 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:44:44 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:44:51 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:44:51 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:45:28 2013] [error] [client 192.168.124.2] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:45:28 2013] [error] [client 192.168.124.2] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:48:54 2013] [error] [client 192.168.124.2] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:48:54 2013] [error] [client 192.168.124.2] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:56:40 2013] [error] [client 192.168.124.2] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:56:40 2013] [error] [client 192.168.124.2] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:56:47 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:56:47 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 00:56:59 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 01:00:10 2013] [notice] caught SIGTERM, shutting down
[Tue Jun 04 01:00:20 2013] [warn] mod_wsgi: Compiled for Python/2.7.2+.
[Tue Jun 04 01:00:20 2013] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Tue Jun 04 01:00:20 2013] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 
Python/2.7.3 configured -- resuming normal operations
[Tue Jun 04 01:02:00 2013] [warn] mod_wsgi: Compiled for Python/2.7.2+.
[Tue Jun 04 01:02:00 2013] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Tue Jun 04 01:02:00 2013] [warn] pid file /var/run/apache2.pid overwritten -- 
Unclean shutdown of previous Apache run?
[Tue Jun 04 01:02:00 2013] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 
Python/2.7.3 configured -- resuming normal operations
[Tue Jun 04 01:02:07 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 01:02:07 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 01:02:12 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 01:02:12 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 01:03:10 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 01:03:10 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs
[Tue Jun 04 01:03:11 2013] [error] [client 10.1.4.217] File does not exist: 
/etc/apache2/htdocs

Any help at the earliest would be very helpful

Thanks
Shanthakumar K

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp