ip address can't be injected into the instance when using lxc

Bug #907197 reported by ZhengPeng Hou
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

011-12-21 15:45:40,643 DEBUG nova.utils [-] Result was 2 from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:214
2011-12-21 15:45:40,880 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] backend <module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> from (pid=9454) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:525
2011-12-21 15:45:41,034 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Attempting to grab semaphore "get_dhcp" for method "_get_dhcp_ip"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:750
2011-12-21 15:45:41,035 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Got semaphore "get_dhcp" for method "_get_dhcp_ip"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:754
2011-12-21 15:45:41,036 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Attempting to grab semaphore "ensure_bridge" for method "ensure_bridge"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:750
2011-12-21 15:45:41,036 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Got semaphore "ensure_bridge" for method "ensure_bridge"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:754
2011-12-21 15:45:41,036 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Attempting to grab file lock "ensure_bridge" for method "ensure_bridge"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:758
2011-12-21 15:45:41,037 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Got file lock "ensure_bridge" for method "ensure_bridge"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:769
2011-12-21 15:45:41,037 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Running cmd (subprocess): ip link show dev br100 from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:198
2011-12-21 15:45:41,044 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Attempting to grab semaphore "iptables" for method "apply"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:750
2011-12-21 15:45:41,045 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Got semaphore "iptables" for method "apply"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:754
2011-12-21 15:45:41,045 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Attempting to grab file lock "iptables" for method "apply"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:758
2011-12-21 15:45:41,046 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Got file lock "iptables" for method "apply"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:769
2011-12-21 15:45:41,046 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Running cmd (subprocess): sudo iptables-save -t filter from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:198
2011-12-21 15:45:41,072 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Running cmd (subprocess): sudo iptables-restore from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:198
2011-12-21 15:45:41,093 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Running cmd (subprocess): sudo iptables-save -t nat from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:198
2011-12-21 15:45:41,122 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Running cmd (subprocess): sudo iptables-restore from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:198
2011-12-21 15:45:41,142 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Running cmd (subprocess): sudo ip addr show dev br100 scope global from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:198
2011-12-21 15:45:41,161 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Attempting to grab semaphore "iptables" for method "apply"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:750
2011-12-21 15:45:41,162 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Got semaphore "iptables" for method "apply"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:754
2011-12-21 15:45:41,162 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Attempting to grab file lock "iptables" for method "apply"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:758
2011-12-21 15:45:41,163 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Got file lock "iptables" for method "apply"... from (pid=9454) inner /usr/lib/python2.7/dist-packages/nova/utils.py:769
2011-12-21 15:45:41,163 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Running cmd (subprocess): sudo iptables-save -t filter from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:198
2011-12-21 15:45:41,192 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Running cmd (subprocess): sudo iptables-restore from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:198
2011-12-21 15:45:41,455 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Result was 2 from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:214
2011-12-21 15:45:41,456 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] ['sudo', 'iptables-restore'] failed. Retrying. from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:228
2011-12-21 15:45:41,707 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Running cmd (subprocess): sudo iptables-restore from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:198
2011-12-21 15:45:41,730 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Result was 2 from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:214
2011-12-21 15:45:41,732 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] ['sudo', 'iptables-restore'] failed. Retrying. from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:228
2011-12-21 15:45:42,503 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Running cmd (subprocess): sudo iptables-restore from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:198
2011-12-21 15:45:42,528 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Result was 2 from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:214
2011-12-21 15:45:42,529 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] ['sudo', 'iptables-restore'] failed. Retrying. from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:228
2011-12-21 15:45:43,662 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Running cmd (subprocess): sudo iptables-restore from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:198
2011-12-21 15:45:43,694 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Result was 2 from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:214
2011-12-21 15:45:43,695 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] ['sudo', 'iptables-restore'] failed. Retrying. from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:228
2011-12-21 15:45:44,187 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Running cmd (subprocess): sudo iptables-restore from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:198
2011-12-21 15:45:44,211 DEBUG nova.utils [4936e489-01e4-44c1-a588-8ffaacfde3fe None None] Result was 2 from (pid=9454) execute /usr/lib/python2.7/dist-packages/nova/utils.py:214
2011-12-21 15:45:44,228 CRITICAL nova [-] Unexpected error while running command.
Command: sudo iptables-restore
Exit code: 2
Stdout: ''
Stderr: "iptables-restore v1.4.12: host/network `None' not found\nError occurred at line: 23\nTry `iptables-restore -h' or 'iptables-restore --help' for more information.\n"
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/bin/nova-network", line 49, in <module>
(nova): TRACE: service.wait()
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/service.py", line 393, in wait
(nova): TRACE: _launcher.wait()
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/service.py", line 113, in wait
(nova): TRACE: service.wait()
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait
(nova): TRACE: return self._exit_event.wait()
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
(nova): TRACE: return hubs.get_hub().switch()
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch
(nova): TRACE: return self.greenlet.switch()
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
(nova): TRACE: result = function(*args, **kwargs)
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/service.py", line 83, in run_server
(nova): TRACE: server.start()
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/service.py", line 143, in start
(nova): TRACE: self.manager.init_host()
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1233, in init_host
(nova): TRACE: NetworkManager.init_host(self)
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 509, in init_host
(nova): TRACE: self._setup_network(ctxt, network)
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1323, in _setup_network
(nova): TRACE: network_ref['vpn_private_address'])
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 462, in ensure_vpn_forward
(nova): TRACE: iptables_manager.apply()
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 770, in inner
(nova): TRACE: retval = f(*args, **kwargs)
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 315, in apply
(nova): TRACE: attempts=5)
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 783, in _execute
(nova): TRACE: return utils.execute(*cmd, **kwargs)
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 222, in execute
(nova): TRACE: cmd=' '.join(cmd))
(nova): TRACE: ProcessExecutionError: Unexpected error while running command.
(nova): TRACE: Command: sudo iptables-restore
(nova): TRACE: Exit code: 2
(nova): TRACE: Stdout: ''
(nova): TRACE: Stderr: "iptables-restore v1.4.12: host/network `None' not found\nError occurred at line: 23\nTry `iptables-restore -h' or 'iptables-restore --help' for more information.\n"
(nova): TRACE:

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: nova-network 2012.1~e2-0ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-5.11-generic 3.2.0-rc5
Uname: Linux 3.2.0-5-generic x86_64
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
Date: Wed Dec 21 15:47:47 2011
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111218.1)
NovaConf: Error: [Errno 13] Permission denied: '/etc/nova/nova.conf'
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nova
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
ZhengPeng Hou (zhengpeng-hou) wrote :
Revision history for this message
ZhengPeng Hou (zhengpeng-hou) wrote :

--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--force_dhcp_release
--iscsi_helper=tgtadm
--libvirt_use_virtio_for_bridges
--verbose
--s3_host=192.168.1.29
--rabbit_host=192.168.1.29
--cc_host=192.168.1.29
--nova_url=http://192.168.1.29:8774/v1.1/
--fixed_range=172.168.0.0/16
--network_size=8
--routing_source_ip=192.168.1.29
--sql_connection=mysql://novaadmin:nova@192.168.1.29/nova
--glance_api_servers=192.168.1.29:9292
--image_service=nova.image.glance.GlanceImageService
--iscsi_ip_prefix=172.168.
#--network_manager=nova.network.manager.FlatDHCPManager
#--bridge_interface=br100
--flat_network_bridge=br100
--libvirt_type=lxc

Dave Walker (davewalker)
Changed in nova (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Chuck Short (zulcss) wrote :

Is this still a problem for you?

Chuck Short (zulcss)
Changed in nova (Ubuntu):
status: New → Incomplete
Revision history for this message
James Page (james-page) wrote :

Hi ZhengPeng

Are you still seeing this issue?

At the moment we have been unable to reproduce this problem so it would be great if you could confirm one way or the other.

Thanks

Revision history for this message
James Page (james-page) wrote :

Unable to reproduce and no response from original reporter - marking 'Invalid'

Changed in nova (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nova - 2012.2~f1-0ubuntu1

---------------
nova (2012.2~f1-0ubuntu1) quantal; urgency=low

  * New upstream release.
  * Prepare for quantal:
    - Dropped debian/patches/upstream/0006-Use-project_id-in-ec2.cloud._format_image.patch
    - Dropped debian/patches/upstream/0005-Populate-image-properties-with-project_id-again.patch
    - Dropped debian/patches/upstream/0004-Fixed-bug-962840-added-a-test-case.patch
    - Dropped debian/patches/upstream/0003-Allow-unprivileged-RADOS-users-to-access-rbd-volumes.patch
    - Dropped debian/patches/upstream/0002-Stop-libvirt-test-from-deleting-instances-dir.patch
    - Dropped debian/patches/upstream/0001-fix-bug-where-nova-ignores-glance-host-in-imageref.patch
    - Dropped debian/patches/0001-fix-useexisting-deprecation-warnings.patch
  * debian/control: Add python-keystone as a dependency. (LP: #907197)
  * debian/patches/kombu_tests_timeout.patch: Refreshed.
  * debian/nova.conf, debian/nova-common.postinst: Convert to new ini
    file configuration
  * debian/patches/nova-manage_flagfile_location.patch: Refreshed
 -- Chuck Short <email address hidden> Thu, 24 May 2012 13:12:53 -0400

Changed in nova (Ubuntu):
status: Invalid → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.