Single Compute node being recognized but can't create instances

Asked by Ryota Hashimoto

Hello,

I'm trying multi-node settings using griddydynamics diablo repo. One is Controller with Compute node and another is single Compute node.

Compute node with Controller can boot instances, but single Compute node couldn't. Where should I check?

nova-manage service list is smiley and there's no error in nova-compute.log of single Compute node(except nova delete, says "No such file or directory").

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Ryota Hashimoto
Solved:
Last query:
Last reply:
Revision history for this message
Ryota Hashimoto (hashimotor) said :
#1

nova.conf of both node:

--verbose=true
--ec2_url=http://172.17.4.190:8773/services/Cloud
--s3_host=172.17.4.190
--cc_host=172.17.4.190
--rabbit_host=172.17.4.190
--sql_connection=mysql://nova:nova@172.17.4.190/nova
--glance_api_servers=172.17.4.190:9292
--use_s3=true
--libvirt_type=qemu
--use_syslog=true
--node_availability_zone=nova
--logdir=/var/log/nova
--logging_context_format_string=%(asctime)s %(name)s: %(levelname)s [%(request_id)s %(user_id)s %(project_id)s] %(message)s
--logging_default_format_string=%(asctime)s %(name)s: %(message)s
--logging_debug_format_suffix=from (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d
--use_cow_images=true
--auth_driver=nova.auth.dbdriver.DbDriver
--network_manager=nova.network.manager.VlanManager
--scheduler_driver=nova.scheduler.zone.ZoneScheduler
--image_service=nova.image.glance.GlanceImageService
--use_ipv6=false
--ca_path=/var/lib/nova/CA
--keys_path=/var/lib/nova/keys
--images_path=/var/lib/nova/images
--buckets_path=/var/lib/nova/buckets
--instances_path=/var/lib/nova/instances
--networks_path=/var/lib/nova/networks
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--injected_network_template_dir=/usr/share/nova/interfaces/
--libvirt_xml_template=/usr/share/nova/libvirt.xml.template
--vpn_client_template=/usr/share/nova/client.ovpn.template
--credentials_template=/usr/share/nova/novarc.template
--state_path=/var/lib/nova
--lock_path=/var/lib/nova/tmp
--vnc_enabled=true
--vncproxy_url=http://172.17.4.190:6080
--vncserver_host=0.0.0.0
--vnc_token_ttl=300
--vlan_interface=eth0
--public_interface=eth0
--allow_admin_api=true
--keystone_ec2_url=http://172.17.4.190:5000/v2.0/ec2tokens
--num_networks=10
--network_size=256
--fixed_range=172.17.4.0/24
--vlan_start=400
--update_dhcp_on_disassociate

==
nova-compute.log of Single Compute node(excerpt): http://paste.openstack.org/show/4956/

Revision history for this message
Khaled M. Diab (khaledmdiab) said :
#2

Hi,
I assume you'd installed nova-network in the new node as well, what's the content of nova-network.log?
Also, did you restart services, lib-virt, nova-compute and nova-network?
In the dashboard, Is the instance created in Build state and hang in this state? or it is not created?

Revision history for this message
Ryota Hashimoto (hashimotor) said :
#3

Thank you for your answer.

> I assume you'd installed nova-network in the new node as well, what's the content of nova-network.log?
nova-network package is installed but service is not invoked(because I won't going to make multi_node HA mode. )

> Also, did you restart services, lib-virt, nova-compute and nova-network?
Y but nova-network.

> In the dashboard, Is the instance created in Build state and hang in this state? or it is not created?
Both exists, but mainly is Build state.

Revision history for this message
Ryota Hashimoto (hashimotor) said :
#4

In nova.conf there is no --multi_host flag but on creating network --multihost=T option added by mistake.

I'll try deleting fixed_ip network and recreate without --multihost=T.

In nova-compute.log at single Compute node nova.rpc says {u'failure': None, u'result': [[{u'bridge': u'br400', u'multi_host': True, u'bridge_interface': u'eth0', u'vlan': 400, u'id': 11, u'injected': False, u'cidr': u'172.17.4.32/28', u'cidr_v6': None}, {u'should_create_bridge': True, u'dns': [], u'vif_uuid': u'373a3bc3-5b54-4162-8dbe-566b23e99332', u'label': u'private_2', u'broadcast': u'172.17.4.47', u'ips': [], u'mac': u'02:16:3e:25:fc:2c', u'rxtx_cap': 0, u'should_create_vlan': True, u'dhcp_server': u'172.17.4.41', u'gateway': u'172.17.4.33'}]]}

==
from nova-compute.log ( http://paste.openstack.org/show/4956/ )

2012-02-23 10:54:25,567 nova.rpc: DEBUG [5def4189-c0c8-44b8-8fd5-eea5f5f5b72f admin 2] Receive response {u'failure': None, u'result': [[{u'bridge': u'br400', u'multi_ho
st': True, u'bridge_interface': u'eth0', u'vlan': 400, u'id': 11, u'injected': False, u'cidr': u'172.17.4.32/28', u'cidr_v6': None}, {u'should_create_bridge': True, u'd
ns': [], u'vif_uuid': u'373a3bc3-5b54-4162-8dbe-566b23e99332', u'label': u'private_2', u'broadcast': u'172.17.4.47', u'ips': [], u'mac': u'02:16:3e:25:fc:2c', u'rxtx_ca
p': 0, u'should_create_vlan': True, u'dhcp_server': u'172.17.4.41', u'gateway': u'172.17.4.33'}]]} from (pid=19708) __call__ /usr/lib/python2.6/site-packages/nova/rpc/i
mpl_kombu.py:702
2012-02-23 10:54:25,568 nova.rpc: DEBUG [5def4189-c0c8-44b8-8fd5-eea5f5f5b72f admin 2] Receive response {u'failure': None, u'result': None} from (pid=19708) __call__ /u
sr/lib/python2.6/site-packages/nova/rpc/impl_kombu.py:702
2012-02-23 10:54:25,571 nova.rpc: DEBUG [5def4189-c0c8-44b8-8fd5-eea5f5f5b72f admin 2] rpc.call results: [[[{u'bridge': u'br400', u'multi_host': True, u'bridge_interfac
e': u'eth0', u'vlan': 400, u'id': 11, u'injected': False, u'cidr': u'172.17.4.32/28', u'cidr_v6': None}, {u'should_create_bridge': True, u'dns': [], u'vif_uuid': u'373a
3bc3-5b54-4162-8dbe-566b23e99332', u'label': u'private_2', u'broadcast': u'172.17.4.47', u'ips': [], u'mac': u'02:16:3e:25:fc:2c', u'rxtx_cap': 0, u'should_create_vlan'
: True, u'dhcp_server': u'172.17.4.41', u'gateway': u'172.17.4.33'}]]] from (pid=19708) call /usr/lib/python2.6/site-packages/nova/rpc/impl_kombu.py:755
2012-02-23 10:54:25,571 nova.rpc: DEBUG [5def4189-c0c8-44b8-8fd5-eea5f5f5b72f admin 2] rpc.call return to caller: [[{u'bridge': u'br400', u'multi_host': True, u'bridge_
interface': u'eth0', u'vlan': 400, u'id': 11, u'injected': False, u'cidr': u'172.17.4.32/28', u'cidr_v6': None}, {u'should_create_bridge': True, u'dns': [], u'vif_uuid'
: u'373a3bc3-5b54-4162-8dbe-566b23e99332', u'label': u'private_2', u'broadcast': u'172.17.4.47', u'ips': [], u'mac': u'02:16:3e:25:fc:2c', u'rxtx_cap': 0, u'should_crea
te_vlan': True, u'dhcp_server': u'172.17.4.41', u'gateway': u'172.17.4.33'}]] from (pid=19708) call /usr/lib/python2.6/site-packages/nova/rpc/impl_kombu.py:759
2012-02-23 10:54:25,572 nova.rpc: DEBUG [5def4189-c0c8-44b8-8fd5-eea5f5f5b72f admin 2] Making asynchronous cast on network... from (pid=19708) cast /usr/lib/python2.6/s
ite-packages/nova/rpc/impl_kombu.py:765
2012-02-23 10:54:25,633 nova.virt.libvirt.firewall: INFO [5def4189-c0c8-44b8-8fd5-eea5f5f5b72f admin 2] Attempted to unfilter instance 23 which is not filtered
2012-02-23 10:54:25,634 nova.virt.libvirt_conn: ERROR [5def4189-c0c8-44b8-8fd5-eea5f5f5b72f admin 2] Error during instance delete: [Errno 2] No such file or directory:
'/var/lib/nova/instances/instance-00000017'
2012-02-23 10:54:25,634 nova.virt.libvirt_conn: INFO [5def4189-c0c8-44b8-8fd5-eea5f5f5b72f admin 2] instance instance-00000017: deleting instance files /var/lib/nova/in
stances/instance-00000017
2012-02-23 10:54:25,816 nova.virt.libvirt_conn: Instance instance-00000017 destroyed successfully.

Revision history for this message
Ryota Hashimoto (hashimotor) said :
#5

After I dropped and re-create nova DB(because nova-manage network modify didn't work) and created fixed ip network without multi_host flag, still VM doesn't boot.

Where can I check?

Revision history for this message
Ryota Hashimoto (hashimotor) said :
#6

Solved. changed network's multi_host flag from 1 to 0 and VM booted. Thanks.