Ask Your Question
1

Windows VM unable to get IP address from net with --flat_injected=True in nova.conf

asked 2014-01-02 14:07:42 -0600

marcoscorvalan gravatar image

updated 2014-01-02 14:16:01 -0600

smaffulli gravatar image

I have running the Essex version for OpenStack with Flat-network with --flat_injected=True I could launch Windows instance in my Essex openStack, with Cloud-init cloudBase. But I see the ipconfig I see 172.16.191.20 and the network is 10.32.156.0. I installed in the windows image the Cloud-init cloudBase but I dont know why the instance can't get the Ip network (10.32.156.0) for windows.

This is my nova.conf

--auth_strategy=keystone
--cc_host=10.32.156.5
--connection_type=libvirt
--dhcpbridge_flagfile=/etc/nova/nova.conf
#--dhcpbridge=nova-dhcpbridge
--dhcpbridge=/usr/bin/nova-dhcpbridge
--ec2_host=10.32.156.5
--ec2_private_dns_show_ip
--ec2_url=http://10.32.156.5:8773/services/Cloud
--fixed_range=10.32.156.0/24
--flat_injected=True
#--force_dhcp_release
--glance_api_servers=essexglance.melicloud.com:9292
--image_service=nova.image.glance.GlanceImageService
--iscsi_helper=tgtadm
--libvirt_use_virtio_for_bridges
--lock_path=/var/lock/nova
--logdir=/var/log/nova
--network_manager=nova.network.manager.FlatManager
--network_size=256
--nova_url=http://10.32.156.5:8774/v1.1/
--osapi_host=10.32.156.5
--rabbit_host=10.32.156.5
--rabbit_port=5672
--root_helper=sudo nova-rootwrap
#--routing_source_ip=10.32.156.5
#--s3_host=10.32.156.5
--sql_connection=mysql://nova:notnova@galera.melicloud.com/DC4_r62
--state_path=/var/lib/nova
--verbose
--vncserver_listen=0.0.0.0
--allow_resize_to_same_host=True
--libvirt_xml_template=/etc/nova/libvirt.xml.template
--compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
--scheduler_default_filters=RamFilter,ComputeFilter

# DANGER : TURNING THIS ON, COULD REBOOT INSTANCES WHEN YOU RESTART NOVA COMPUTE
--start_guests_on_host_boot=False
--resume_guests_state_on_host_boot=True
--reserved_host_memory_mb=20480

I launched with this option with Linux image and it's working very well. But now I'm testing with windows Image.

When I launch my windows instance created via this link ( http://www.cloudbase.it/create-windows-openstack-images/ ) I can see the instance is created but the IP that It received it's no from this net. For example: I launch a instance with the 10.32.x.x net, I can see the ip that gives nova is ok (same net), But when I connect via vnc to see the IP is 172.16.191.20 and so I gotta put the correct ip manually. after this way I can connect via rdp later.

I need to know How can I correct this error in Essex with --flat_injected=True in nova.

I'll add more info. I did this test (windows image) with Grizzly and with dchp option, and the Windows instance was launched very well. With its IP corresponding to the same net.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-01-03 08:07:57 -0600

alexpilotti gravatar image

Can you please post the cloudbase-init log file in a paste-bin as well?

Thanks

edit flag offensive delete link more

Comments

Add more info: This is the error from event properties: for cloudbase-init Event Type: Error Event Source: cloudbase-init Event Category: None Event ID: 0 Date: 12/9/2013 Time: 2:42:43 PM User: N/A Computer: MELI-MXXXYG2V2A Description: The description for Event ID ( 0 ) in Source ( cloudbase-init ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: cloudbase-init, Child process ended.

marcoscorvalan gravatar imagemarcoscorvalan ( 2014-01-03 09:10:24 -0600 )edit
0

answered 2014-01-03 09:12:11 -0600

marcoscorvalan gravatar image

updated 2014-01-06 11:46:45 -0600

Hi All: If I wanna connect I gotta use the vnc service Whe I connect to the vm I can see the ip config is: 172.16.191.20, when the real Ip has to be other ( in this case 10.32.156.x)

2013-12-04 22:29:48 1444 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' load_class C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbase_init-0.9.3-py2.7.egg\cloudbaseinit\utils\classloader.py:24 2013-12-04 22:29:49 1444 DEBUG cloudbaseinit.osutils.windows [-] Sysprep data not found in the registry, skipping sysprep completion check. wait_for_boot_completion C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbase_init-0.9.3-py2.7.egg\cloudbaseinit\osutils\windows.py:409 2013-12-04 22:29:49 1444 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.metadata.services.httpservice.HttpService' load_class C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbase_init-0.9.3-py2.7.egg\cloudbaseinit\utils\classloader.py:24 2013-12-04 22:29:49 1444 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' load_class C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbase_init-0.9.3-py2.7.egg\cloudbaseinit\utils\classloader.py:24 2013-12-04 22:29:49 1444 DEBUG cloudbaseinit.metadata.services.httpservice [-] Getting metadata from: http://169.254.169.254/openstack/latest/meta_data.json _get_data C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbase_init-0.9.3-py2.7.egg\cloudbaseinit\metadata\services\httpservice.py:96 2013-12-04 22:29:53 1444 DEBUG cloudbaseinit.metadata.services.httpservice [-] Getting metadata from: http://169.254.169.254/openstack/latest/meta_data.json _get_data C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbase_init-0.9.3-py2.7.egg\cloudbaseinit\metadata\services\httpservice.py:96 2013-12-04 22:29:57 1444 DEBUG cloudbaseinit.metadata.services.httpservice [-] Getting metadata from: http://169.254.169.254/openstack/latest/meta_data.json _get_data C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbase_init-0.9.3-py2.7.egg\cloudbaseinit\metadata\services\httpservice.py:96 2013-12-04 22:30:01 1444 DEBUG cloudbaseinit.metadata.services.httpservice [-] Getting metadata from: http://169.254.169.254/openstack/latest/meta_data.json _get_data C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbase_init-0.9.3-py2.7.egg\cloudbaseinit\metadata\services\httpservice.py:96 2013-12-04 22:30:05 1444 DEBUG cloudbaseinit.metadata.services.httpservice [-] Getting metadata from: http://169.254.169.254/openstack/latest/meta_data.json _get_data C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbase_init-0.9.3-py2.7.egg\cloudbaseinit\metadata\services\httpservice.py:96 2013-12-04 22:30:09 1444 DEBUG cloudbaseinit.metadata.services.httpservice [-] Getting metadata from: http://169.254.169.254/openstack/latest/meta_data.json _get_data C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbase_init-0.9.3-py2.7.egg\cloudbaseinit\metadata\services\httpservice.py:96 2013-12-04 22:30:09 1444 DEBUG cloudbaseinit.metadata.services.httpservice [-] Metadata not found at URL 'http://169.254.169.254/' load C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbase_init-0.9.3-py2.7.egg\cloudbaseinit\metadata\services\httpservice.py:78 2013-12-04 22:30:09 1444 DEBUG cloudbaseinit.utils.classloader [-] Loading class ... (more)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-01-02 14:07:42 -0600

Seen: 956 times

Last updated: Jan 06 '14