Merge lp:~yolanda.robla/ubuntu/precise/nova/essex-sru into lp:ubuntu/precise-updates/nova

Proposed by Yolanda Robla
Status: Merged
Merge reported by: James Page
Merged at revision: not available
Proposed branch: lp:~yolanda.robla/ubuntu/precise/nova/essex-sru
Merge into: lp:ubuntu/precise-updates/nova
Diff against target: 2585 lines (+766/-284)
46 files modified
.gitignore (+0/-20)
.gitreview (+0/-5)
.mailmap (+0/-82)
.pc/fix-pep8-errors.patch/nova/tests/api/openstack/compute/contrib/test_simple_tenant_usage.py (+22/-6)
.pc/fix-pep8-errors.patch/nova/virt/libvirt/connection.py (+24/-10)
Authors (+6/-1)
ChangeLog (+479/-113)
PKG-INFO (+1/-1)
debian/changelog (+35/-0)
debian/nova-api-ec2.logrotate (+3/-0)
debian/nova-api-metadata.logrotate (+3/-0)
debian/nova-api-os-compute.logrotate (+3/-0)
debian/nova-api.logrotate (+3/-0)
debian/nova-cert.logrotate (+3/-0)
debian/nova-common.nova-manage.logrotate (+3/-0)
debian/nova-compute.logrotate (+3/-0)
debian/nova-console.logrotate (+3/-0)
debian/nova-consoleauth.logrotate (+3/-0)
debian/nova-network.logrotate (+3/-0)
debian/nova-network.nova-dhcpbridge.logrotate (+3/-0)
debian/nova-objectstore.logrotate (+3/-0)
debian/nova-scheduler.logrotate (+3/-0)
debian/nova-vncproxy.logrotate (+3/-0)
debian/nova-volume.logrotate (+3/-0)
debian/nova-xvpvncproxy.logrotate (+4/-1)
nova.egg-info/PKG-INFO (+1/-1)
nova.egg-info/SOURCES.txt (+0/-3)
nova/api/openstack/compute/contrib/flavorextradata.py (+1/-1)
nova/api/openstack/compute/contrib/simple_tenant_usage.py (+7/-0)
nova/compute/api.py (+2/-0)
nova/db/sqlalchemy/api.py (+1/-1)
nova/manager.py (+5/-0)
nova/network/linux_net.py (+1/-0)
nova/network/manager.py (+1/-2)
nova/tests/api/openstack/compute/contrib/test_simple_tenant_usage.py (+22/-6)
nova/tests/fakelibvirt.py (+2/-0)
nova/tests/network/test_manager.py (+35/-0)
nova/tests/test_db_api.py (+2/-0)
nova/tests/test_libvirt.py (+13/-1)
nova/tests/test_linux_net.py (+1/-1)
nova/utils.py (+11/-9)
nova/version.py (+1/-1)
nova/virt/disk/api.py (+1/-0)
nova/virt/firewall.py (+14/-6)
nova/virt/libvirt/connection.py (+24/-10)
nova/virt/libvirt/volume.py (+5/-3)
To merge this branch: bzr merge lp:~yolanda.robla/ubuntu/precise/nova/essex-sru
Reviewer Review Type Date Requested Status
James Page Approve
Review via email: mp+140424@code.launchpad.net

This proposal supersedes a proposal from 2012-12-18.

To post a comment you must log in.
Revision history for this message
James Page (james-page) wrote : Posted in a previous version of this proposal

Yolanda

The only problem I can see is with the changelog:

=== modified file 'debian/changelog'
--- debian/changelog 2012-12-17 10:39:28 +0000
+++ debian/changelog 2012-12-18 11:53:10 +0000
@@ -1,8 +1,7 @@
 nova (2012.1.4+stable-20121217-9f277e38-0ubuntu1) precise-proposed; urgency=low

   [ Chuck Short ]
- * debian/*.logrotate: compress logfiles when they are rotated. (LP:
- #1049915)
+ * debian/*.logrotate: compress logfiles when they are rotated. (LP: #1049915)

   [ Yolanda Robla Mota ]
   * Resynchronize with stable/essex (9f277e38):
@@ -43,7 +42,7 @@
     - [ae280ca] Deleted floating ips can cause instance delete to fail
       (LP: #1038266)

- -- Adam Gandelman <email address hidden> Mon, 27 Aug 2012 14:50:40 -0700
+ -- Adam Gandelman <email address hidden> Mon, 27 Aug 2012 14:50:40 -0700

 nova (2012.1.3+stable-20120824-86fb7362-0ubuntu1) precise-proposed; urgency=low

The bug reference needs to be in a single line and Adam's email address has been truncated.

Fix that up and this branch looks good to go.

review: Needs Fixing
Revision history for this message
James Page (james-page) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== removed file '.gitignore'
--- .gitignore 2012-08-27 14:50:40 +0000
+++ .gitignore 1970-01-01 00:00:00 +0000
@@ -1,20 +0,0 @@
1*.pyc
2*.DS_Store
3local_settings.py
4CA/
5keeper
6instances
7keys
8build/*
9build-stamp
10nova.egg-info
11.nova-venv
12.venv
13.tox
14*.sqlite
15*.log
16*.mo
17tools/conf/nova.conf*
18cover/*
19dist/*
20.coverage
210
=== removed file '.gitreview'
--- .gitreview 2012-08-27 14:50:40 +0000
+++ .gitreview 1970-01-01 00:00:00 +0000
@@ -1,5 +0,0 @@
1[gerrit]
2host=review.openstack.org
3port=29418
4project=openstack/nova.git
5defaultbranch=stable/essex
60
=== removed file '.mailmap'
--- .mailmap 2012-08-24 02:09:33 +0000
+++ .mailmap 1970-01-01 00:00:00 +0000
@@ -1,82 +0,0 @@
1# Format is:
2# <preferred e-mail> <other e-mail 1>
3# <preferred e-mail> <other e-mail 2>
4<aaron.lee@rackspace.com> <wwkeyboard@gmail.com>
5<anotherjesse@gmail.com> <jesse@dancelamb>
6<anotherjesse@gmail.com> <jesse@gigantor.local>
7<anotherjesse@gmail.com> <jesse@ubuntu>
8<anotherjesse@gmail.com> <jesse@aire.local>
9<ant@openstack.org> <amesserl@rackspace.com>
10<Armando.Migliaccio@eu.citrix.com> <armando.migliaccio@citrix.com>
11<Armando.Migliaccio@eu.citrix.com> <amigliaccio@internap.com>
12<brian.lamar@rackspace.com> <brian.lamar@gmail.com>
13<brian.waldon@rackspace.com> <bcwaldon@gmail.com>
14<bschott@isi.edu> <bfschott@gmail.com>
15<cbehrens@codestud.com> <chris.behrens@rackspace.com>
16<chiradeep@cloud.com> <chiradeep@chiradeep-lt2>
17<code@term.ie> <github@anarkystic.com>
18<code@term.ie> <termie@preciousroy.local>
19<corywright@gmail.com> <cory.wright@rackspace.com>
20<dan@nicira.com> <danwent@dan-xs3-cs>
21<dan@nicira.com> <danwent@gmail.com>
22<Dave.Walker@canonical.com> <DaveWalker@ubuntu.com>
23<derekh@redhat.com> <higginsd@gmail.com>
24<devin.carlen@gmail.com> <devcamcar@illian.local>
25<doug.hellmann@dreamhost.com> <doug.hellmann@gmail.com>
26<dprince@redhat.com> <dan.prince@rackspace.com>
27<edouard1.thuleau@orange.com> <thuleau@gmail.com>
28<ewan.mellor@citrix.com> <emellor@silver>
29<ghe@debian.org> <ghe.rivero@gmail.com>
30<itoumsn@nttdata.co.jp> <itoumsn@shayol>
31<jake@ansolabs.com> <jake@markupisart.com>
32<jake@ansolabs.com> <admin@jakedahn.com>
33<jaypipes@gmail.com> <jpipes@serialcoder>
34<jeblair@hp.com> <james.blair@rackspace.com>
35<jeblair@hp.com> <corvus@inaugust.com>
36<jmckenty@gmail.com> <jmckenty@joshua-mckentys-macbook-pro.local>
37<jmckenty@gmail.com> <jmckenty@yyj-dhcp171.corp.flock.com>
38<jmckenty@gmail.com> <joshua.mckenty@nasa.gov>
39<johannes.erdfelt@rackspace.com> <johannes@compute3.221.st>
40<josh@jk0.org> <josh.kearney@rackspace.com>
41<josh.durgin@dreamhost.com> <joshd@hq.newdream.net>
42<justin@fathomdb.com> <justinsb@justinsb-desktop>
43<justin@fathomdb.com> <superstack@superstack.org>
44<lorin@nimbisservices.com> <lorin@isi.edu>
45<masumotok@nttdata.co.jp> Masumoto<masumotok@nttdata.co.jp>
46<masumotok@nttdata.co.jp> <root@openstack2-api>
47<matt.dietz@rackspace.com> <matthewdietz@Matthew-Dietzs-MacBook-Pro.local>
48<matt.dietz@rackspace.com> <mdietz@openstack>
49<mikal@stillhq.com> <michael.still@canonical.com>
50<mordred@inaugust.com> <mordred@hudson>
51<naveedm9@gmail.com> <naveed.massjouni@rackspace.com>
52<rnirmal@gmail.com> <nirmal.ranganathan@rackspace.com>
53<rnirmal@gmail.com> <nirmal.ranganathan@rackspace.coom>
54<paul@openstack.org> <paul.voccio@rackspace.com>
55<paul@openstack.org> <pvoccio@castor.local>
56<paul@openstack.org> <paul@substation9.com>
57<rconradharris@gmail.com> <rick.harris@rackspace.com>
58<rlane@wikimedia.org> <laner@controller>
59<sandy.walsh@rackspace.com> <sandy@sandywalsh.com>
60<sleepsonthefloor@gmail.com> <root@tonbuntu>
61<soren.hansen@rackspace.com> <soren@linux2go.dk>
62<soren@linux2go.dk> <sorhanse@cisco.com>
63<throughnothing@gmail.com> <will.wolf@rackspace.com>
64<tim.simpson@rackspace.com> <tim.simpson4@gmail.com>
65<todd@ansolabs.com> <todd@lapex>
66<todd@ansolabs.com> <todd@rubidine.com>
67<todd@ansolabs.com> <xtoddx@gmail.com>
68<trey.morris@rackspace.com> <treyemorris@gmail.com>
69<tushar.vitthal.patil@gmail.com> <tpatil@vertex.co.in>
70<ueno.nachi@lab.ntt.co.jp> <nati.ueno@gmail.com>
71<ueno.nachi@lab.ntt.co.jp> <nova@u4>
72<ueno.nachi@lab.ntt.co.jp> <openstack@lab.ntt.co.jp>
73<vishvananda@gmail.com> <root@mirror.nasanebula.net>
74<vishvananda@gmail.com> <root@ubuntu>
75<vishvananda@gmail.com> <vishvananda@yahoo.com>
76<ilyaalekseyev@acm.org> <ialekseev@griddynamics.com>
77<ilyaalekseyev@acm.org> <ilya@oscloud.ru>
78<reldan@oscloud.ru> <enugaev@griddynamics.com>
79<kshileev@gmail.com> <kshileev@griddynamics.com>
80<nsokolov@griddynamics.com> <nsokolov@griddynamics.net>
81<troy.toman@rackspace.com> <ttcl@mac.com>
82<zulcss@ubuntu.com> <chuck.short@canonical.com>
830
=== modified file '.pc/fix-pep8-errors.patch/nova/tests/api/openstack/compute/contrib/test_simple_tenant_usage.py'
--- .pc/fix-pep8-errors.patch/nova/tests/api/openstack/compute/contrib/test_simple_tenant_usage.py 2012-06-05 09:50:59 +0000
+++ .pc/fix-pep8-errors.patch/nova/tests/api/openstack/compute/contrib/test_simple_tenant_usage.py 2012-12-18 13:07:55 +0000
@@ -28,6 +28,7 @@
28from nova import context28from nova import context
29from nova import flags29from nova import flags
30from nova import test30from nova import test
31from nova import utils
31from nova.tests.api.openstack import fakes32from nova.tests.api.openstack import fakes
3233
3334
@@ -40,8 +41,9 @@
40EPHEMERAL_GB = 2041EPHEMERAL_GB = 20
41MEMORY_MB = 102442MEMORY_MB = 1024
42VCPUS = 243VCPUS = 2
43STOP = datetime.datetime.utcnow()44NOW = utils.utcnow()
44START = STOP - datetime.timedelta(hours=HOURS)45START = NOW - datetime.timedelta(hours=HOURS)
46STOP = NOW
4547
4648
47def fake_instance_type_get(self, context, instance_type_id):49def fake_instance_type_get(self, context, instance_type_id):
@@ -91,10 +93,10 @@
91 'faketenant_1',93 'faketenant_1',
92 is_admin=False)94 is_admin=False)
9395
94 def test_verify_index(self):96 def _test_verify_index(self, start, stop):
95 req = webob.Request.blank(97 req = webob.Request.blank(
96 '/v2/faketenant_0/os-simple-tenant-usage?start=%s&end=%s' %98 '/v2/faketenant_0/os-simple-tenant-usage?start=%s&end=%s' %
97 (START.isoformat(), STOP.isoformat()))99 (start.isoformat(), stop.isoformat()))
98 req.method = "GET"100 req.method = "GET"
99 req.headers["content-type"] = "application/json"101 req.headers["content-type"] = "application/json"
100102
@@ -115,6 +117,20 @@
115 SERVERS * VCPUS * HOURS)117 SERVERS * VCPUS * HOURS)
116 self.assertFalse(usages[i].get('server_usages'))118 self.assertFalse(usages[i].get('server_usages'))
117119
120 def test_verify_index(self):
121 self._test_verify_index(START, STOP)
122
123 def test_verify_index_future_end_time(self):
124 future = NOW + datetime.timedelta(hours=HOURS)
125 self._test_verify_index(START, future)
126
127 def test_verify_show(self):
128 self._test_verify_show(START, STOP)
129
130 def test_verify_show_future_end_time(self):
131 future = NOW + datetime.timedelta(hours=HOURS)
132 self._test_verify_show(START, future)
133
118 def test_verify_detailed_index(self):134 def test_verify_detailed_index(self):
119 req = webob.Request.blank(135 req = webob.Request.blank(
120 '/v2/faketenant_0/os-simple-tenant-usage?'136 '/v2/faketenant_0/os-simple-tenant-usage?'
@@ -133,11 +149,11 @@
133 for j in xrange(SERVERS):149 for j in xrange(SERVERS):
134 self.assertEqual(int(servers[j]['hours']), HOURS)150 self.assertEqual(int(servers[j]['hours']), HOURS)
135151
136 def test_verify_show(self):152 def _test_verify_show(self, start, stop):
137 req = webob.Request.blank(153 req = webob.Request.blank(
138 '/v2/faketenant_0/os-simple-tenant-usage/'154 '/v2/faketenant_0/os-simple-tenant-usage/'
139 'faketenant_0?start=%s&end=%s' %155 'faketenant_0?start=%s&end=%s' %
140 (START.isoformat(), STOP.isoformat()))156 (start.isoformat(), stop.isoformat()))
141 req.method = "GET"157 req.method = "GET"
142 req.headers["content-type"] = "application/json"158 req.headers["content-type"] = "application/json"
143159
144160
=== modified file '.pc/fix-pep8-errors.patch/nova/virt/libvirt/connection.py'
--- .pc/fix-pep8-errors.patch/nova/virt/libvirt/connection.py 2012-08-27 14:50:40 +0000
+++ .pc/fix-pep8-errors.patch/nova/virt/libvirt/connection.py 2012-12-18 13:07:55 +0000
@@ -549,6 +549,13 @@
549 connection_info,549 connection_info,
550 mount_device)550 mount_device)
551551
552 # TODO(danms) once libvirt has support for LXC hotplug,
553 # replace this re-define with use of the
554 # VIR_DOMAIN_AFFECT_LIVE & VIR_DOMAIN_AFFECT_CONFIG flags with
555 # attachDevice()
556 domxml = virt_dom.XMLDesc(libvirt.VIR_DOMAIN_XML_SECURE)
557 self._conn.defineXML(domxml)
558
552 @staticmethod559 @staticmethod
553 def _get_disk_xml(xml, device):560 def _get_disk_xml(xml, device):
554 """Returns the xml for the disk mounted at device"""561 """Returns the xml for the disk mounted at device"""
@@ -583,6 +590,13 @@
583 connection_info,590 connection_info,
584 mount_device)591 mount_device)
585592
593 # TODO(danms) once libvirt has support for LXC hotplug,
594 # replace this re-define with use of the
595 # VIR_DOMAIN_AFFECT_LIVE & VIR_DOMAIN_AFFECT_CONFIG flags with
596 # detachDevice()
597 domxml = virt_dom.XMLDesc(libvirt.VIR_DOMAIN_XML_SECURE)
598 self._conn.defineXML(domxml)
599
586 @exception.wrap_exception()600 @exception.wrap_exception()
587 def _attach_lxc_volume(self, xml, virt_dom, instance_name):601 def _attach_lxc_volume(self, xml, virt_dom, instance_name):
588 LOG.info(_('attaching LXC block device'))602 LOG.info(_('attaching LXC block device'))
@@ -681,8 +695,7 @@
681 else:695 else:
682 metadata['disk_format'] = image_format696 metadata['disk_format'] = image_format
683697
684 if 'container_format' in base:698 metadata['container_format'] = base.get('container_format', 'bare')
685 metadata['container_format'] = base['container_format']
686699
687 # Find the disk700 # Find the disk
688 xml_desc = virt_dom.XMLDesc(0)701 xml_desc = virt_dom.XMLDesc(0)
@@ -928,8 +941,8 @@
928 LOG.info(_("Automatically confirming migration %d"), migration.id)941 LOG.info(_("Automatically confirming migration %d"), migration.id)
929 self.compute_api.confirm_resize(ctxt, migration.instance_uuid)942 self.compute_api.confirm_resize(ctxt, migration.instance_uuid)
930943
931 def _enable_hairpin(self, instance):944 def _enable_hairpin(self, xml):
932 interfaces = self.get_interfaces(instance['name'])945 interfaces = self.get_interfaces(xml)
933 for interface in interfaces:946 for interface in interfaces:
934 utils.execute('tee',947 utils.execute('tee',
935 '/sys/class/net/%s/brport/hairpin_mode' % interface,948 '/sys/class/net/%s/brport/hairpin_mode' % interface,
@@ -951,7 +964,6 @@
951964
952 self._create_new_domain(xml)965 self._create_new_domain(xml)
953 LOG.debug(_("Instance is running"), instance=instance)966 LOG.debug(_("Instance is running"), instance=instance)
954 self._enable_hairpin(instance)
955 self.firewall_driver.apply_instance_filter(instance, network_info)967 self.firewall_driver.apply_instance_filter(instance, network_info)
956968
957 def _wait_for_boot():969 def _wait_for_boot():
@@ -1619,6 +1631,7 @@
1619 else:1631 else:
1620 # createXML call creates a transient domain1632 # createXML call creates a transient domain
1621 domain = self._conn.createXML(xml, launch_flags)1633 domain = self._conn.createXML(xml, launch_flags)
1634 self._enable_hairpin(domain.XMLDesc(0))
16221635
1623 return domain1636 return domain
16241637
@@ -1675,14 +1688,12 @@
16751688
1676 return disks1689 return disks
16771690
1678 def get_interfaces(self, instance_name):1691 def get_interfaces(self, xml):
1679 """1692 """
1680 Note that this function takes an instance name.1693 Note that this function takes an instance domain xml.
16811694
1682 Returns a list of all network interfaces for this instance.1695 Returns a list of all network interfaces for this instance.
1683 """1696 """
1684 domain = self._lookup_by_name(instance_name)
1685 xml = domain.XMLDesc(0)
1686 doc = None1697 doc = None
16871698
1688 try:1699 try:
@@ -1765,6 +1776,8 @@
1765 total += 11776 total += 1
1766 else:1777 else:
1767 total += len(vcpus[1])1778 total += len(vcpus[1])
1779 # NOTE(gtt116): give change to do other task.
1780 greenthread.sleep(0)
1768 return total1781 return total
17691782
1770 def get_memory_mb_used(self):1783 def get_memory_mb_used(self):
@@ -2325,7 +2338,8 @@
2325 except exception.InstanceNotFound:2338 except exception.InstanceNotFound:
2326 # Instance was deleted during the check so ignore it2339 # Instance was deleted during the check so ignore it
2327 pass2340 pass
23282341 # NOTE(gtt116): give change to do other task.
2342 greenthread.sleep(0)
2329 # Disk available least size2343 # Disk available least size
2330 available_least_size = dk_sz_gb * (1024 ** 3) - instances_sz2344 available_least_size = dk_sz_gb * (1024 ** 3) - instances_sz
2331 return (available_least_size / 1024 / 1024 / 1024)2345 return (available_least_size / 1024 / 1024 / 1024)
23322346
=== modified file 'Authors'
--- Authors 2012-08-27 14:50:40 +0000
+++ Authors 2012-12-18 13:07:55 +0000
@@ -1,3 +1,4 @@
1Aaron Rosen <arosen@nicira.com>
1Aaron Lee <aaron.lee@rackspace.com>2Aaron Lee <aaron.lee@rackspace.com>
2Adam Gandelman <adamg@canonical.com>3Adam Gandelman <adamg@canonical.com>
3Adam Johnson <adjohn@gmail.com>4Adam Johnson <adjohn@gmail.com>
@@ -22,6 +23,7 @@
22Ben McGraw <ben@pistoncloud.com>23Ben McGraw <ben@pistoncloud.com>
23Ben Swartzlander <bswartz@netapp.com>24Ben Swartzlander <bswartz@netapp.com>
24Bilal Akhtar <bilalakhtar@ubuntu.com>25Bilal Akhtar <bilalakhtar@ubuntu.com>
26Boris Filippov <bfilippov@griddynamics.com>
25Brad Hall <brad@nicira.com>27Brad Hall <brad@nicira.com>
26Brad McConnell <bmcconne@rackspace.com>28Brad McConnell <bmcconne@rackspace.com>
27Brendan Maguire <B_Maguire@Dell.com>29Brendan Maguire <B_Maguire@Dell.com>
@@ -44,6 +46,7 @@
44Daniel P. Berrange <berrange@redhat.com>46Daniel P. Berrange <berrange@redhat.com>
45Dave Lapsley <dlapsley@nicira.com>47Dave Lapsley <dlapsley@nicira.com>
46Dave Walker <Dave.Walker@canonical.com>48Dave Walker <Dave.Walker@canonical.com>
49David Besen <david.besen@hp.com>
47David McNally <dave.mcnally@hp.com>50David McNally <dave.mcnally@hp.com>
48David Pravec <David.Pravec@danix.org>51David Pravec <David.Pravec@danix.org>
49David Subiros <david.perez5@hp.com>52David Subiros <david.perez5@hp.com>
@@ -98,7 +101,7 @@
98John Garbutt <john.garbutt@citrix.com>101John Garbutt <john.garbutt@citrix.com>
99John Griffith <john.griffith@solidfire.com>102John Griffith <john.griffith@solidfire.com>
100John Kennedy <john.m.kennedy@intel.com>103John Kennedy <john.m.kennedy@intel.com>
101John Tran <jtran@attinteractive.com>104John Tran <jhtran@att.com>
102Jonathan Bryce <jbryce@jbryce.com>105Jonathan Bryce <jbryce@jbryce.com>
103Jordan Rinke <jordan@openstack.org>106Jordan Rinke <jordan@openstack.org>
104Joseph Suh <jsuh@isi.edu>107Joseph Suh <jsuh@isi.edu>
@@ -171,6 +174,7 @@
171Rick Harris <rconradharris@gmail.com>174Rick Harris <rconradharris@gmail.com>
172Rob Kost <kost@isi.edu>175Rob Kost <kost@isi.edu>
173Robert Esker <esker@netapp.com>176Robert Esker <esker@netapp.com>
177RongzeZhu <zrzhit@gmail.com>
174Russell Bryant <rbryant@redhat.com>178Russell Bryant <rbryant@redhat.com>
175Russell Sim <russell.sim@gmail.com>179Russell Sim <russell.sim@gmail.com>
176Ryan Lane <rlane@wikimedia.org>180Ryan Lane <rlane@wikimedia.org>
@@ -187,6 +191,7 @@
187Sumit Naiksatam <snaiksat@cisco.com>191Sumit Naiksatam <snaiksat@cisco.com>
188Takaaki Suzuki <suzuki@midokura.com>192Takaaki Suzuki <suzuki@midokura.com>
189Thierry Carrez <thierry@openstack.org>193Thierry Carrez <thierry@openstack.org>
194TianTian Gao <gtt116@126.com>
190Tim Simpson <tim.simpson@rackspace.com>195Tim Simpson <tim.simpson@rackspace.com>
191Todd Willey <todd@ansolabs.com>196Todd Willey <todd@ansolabs.com>
192Tomoe Sugihara <tomoe@midokura.com>197Tomoe Sugihara <tomoe@midokura.com>
193198
=== modified file 'ChangeLog'
--- ChangeLog 2012-08-27 14:50:40 +0000
+++ ChangeLog 2012-12-18 13:07:55 +0000
@@ -1,3 +1,353 @@
1commit 9f277e3832a554316007a60104c2f44c472b23dd
2Merge: bd10241 80fefe5
3Author: Jenkins <jenkins@review.openstack.org>
4Date: Wed Dec 12 09:24:26 2012 +0000
5
6 Merge "Fix use_single_default_gateway" into stable/essex
7
8commit 80fefe5d2b030ff9a6429b84ef9761f85b5ddc99
9Author: Joseph W. Breu <breu@breu.org>
10Date: Thu Nov 15 14:25:50 2012 -0600
11
12 Fix use_single_default_gateway
13
14 With FlatDHCP and use_single_default_gateway nova-network creates
15 an invalid entry in the dnsmasq .opts file for the network that
16 contains a blank router option. New instances will not receive
17 a default gateway.
18
19 Change-Id: I4c2da61def0681b7b253ae387bf83c069484e28b
20 Fixes: bug #1075859
21 (cherry picked from commit 1b455923446de6fcfee7166059db72b80ff51dfe)
22
23 nova/network/linux_net.py | 1 +
24 nova/tests/test_linux_net.py | 2 +-
25 2 files changed, 2 insertions(+), 1 deletion(-)
26
27commit bd1024194a384bbc2f332e74587b577d7b79c539
28Author: Dan Smith <danms@us.ibm.com>
29Date: Mon Jul 9 13:37:01 2012 -0700
30
31 When deleting an instance, avoid freakout if iscsi device is gone
32
33 It's fairly easy to get into a state where an instance is not running,
34 the iscsi infrastructure has been torn down, and the instance cannot
35 be deleted because the iscsi device cannot be successfully removed.
36 This patch ignores the associated return value for that scenario and
37 marches forward in the teardown process.
38
39 Fixes bug 1079745 (Cherry picked for Essex)
40
41 Change-Id: Ib28790892eebe341ac10a92250cf872605fefe9b
42
43 nova/virt/libvirt/volume.py | 8 +++++---
44 1 file changed, 5 insertions(+), 3 deletions(-)
45
46commit 0edd3cb8df087924a70b63c5735e8c7711921a99
47Merge: 91fdcc8 86a5937
48Author: Jenkins <jenkins@review.openstack.org>
49Date: Wed Oct 31 07:36:14 2012 +0000
50
51 Merge "Avoid RPC calls while holding iptables lock." into stable/essex
52
53commit 86a59376c6d4d2ec5a05c8b63a419d0374e9d9c9
54Author: Michael Still <mikal@stillhq.com>
55Date: Thu Oct 11 15:46:11 2012 +1100
56
57 Avoid RPC calls while holding iptables lock.
58
59 This exhibitied itself as very slow instance starts on a Canonical
60 test cluster. This was because do_referesh_security_group_rules()
61 was making rpc calls while holding the iptables lock. This refactor
62 avoids that while making no functional changes (I hope).
63
64 Fixes bug: 1062314
65 Change-Id: I36f805bd72f7bd06082cfe96c58d637203bcffb7
66 Cherry-picked: ba585524e32965697c1a44c8fd743dea060bb1af
67 Conflicts:
68 nova/virt/firewall.py
69
70 nova/tests/test_libvirt.py | 14 +++++++++++++-
71 nova/virt/firewall.py | 20 ++++++++++++++------
72 2 files changed, 27 insertions(+), 7 deletions(-)
73
74commit 91fdcc84a1f3ccdc99fc25e3e7b620c15ac5f15a
75Author: Mark McLoughlin <markmc@redhat.com>
76Date: Thu Oct 11 20:32:11 2012 +0100
77
78 Bump version to 2012.1.4
79
80 Set version to 2012.1.4, but with final=False
81
82 See http://wiki.openstack.org/StableBranchRelease
83
84 Note - 2012.1.3 is expected to be the final official release of Essex.
85
86 Change-Id: If6274ecbbb07f57e2af843c94e3397e2373c0cdd
87
88 nova/version.py | 4 ++--
89 1 file changed, 2 insertions(+), 2 deletions(-)
90
91commit b00f759b80a66d5faba212232bde2bcd4cc3cd6c
92Author: Mark McLoughlin <markmc@redhat.com>
93Date: Thu Oct 11 20:29:45 2012 +0100
94
95 Final versioning for 2012.1.3
96
97 Change-Id: I624420b50ba24240dcc5a3f7d0771a6d81588752
98
99 nova/version.py | 2 +-
100 1 file changed, 1 insertion(+), 1 deletion(-)
101
102commit 815d4e0e3424af09cfc55212eb7376021713d942
103Merge: 17a6cd9 ae9c5f4
104Author: Jenkins <jenkins@review.openstack.org>
105Date: Thu Oct 11 17:29:01 2012 +0000
106
107 Merge "deallocate_fixed_ip attempts to update deleted ip" into stable/essex
108
109commit 17a6cd91ef64ae00be108726eb6aee32f44aab4d
110Merge: d1d5d6d 20f98c5
111Author: Jenkins <jenkins@review.openstack.org>
112Date: Thu Oct 11 17:28:04 2012 +0000
113
114 Merge "fixed_ip_get_by_address read_deleted from context" into stable/essex
115
116commit d1d5d6d19d7b3d8303f1bc80712871c9254631a6
117Merge: f28c7b2 75f6922
118Author: Jenkins <jenkins@review.openstack.org>
119Date: Wed Sep 26 14:19:49 2012 +0000
120
121 Merge "Use bare container format by default" into stable/essex
122
123commit f28c7b21f6259f72ac87a924eb4e00c8d9b2cea7
124Merge: 80f2f26 1076699
125Author: Jenkins <jenkins@review.openstack.org>
126Date: Wed Sep 26 14:19:25 2012 +0000
127
128 Merge "fix cleanup_file_locks with restricted permissions" into stable/essex
129
130commit 80f2f26134cd4c35902c4c009598b54e53e06994
131Merge: 4eebe76 40c5e94
132Author: Jenkins <jenkins@review.openstack.org>
133Date: Wed Sep 26 14:16:50 2012 +0000
134
135 Merge "make ensure_default_security_group() call sgh" into stable/essex
136
137commit ae9c5f41b2a21183e80e6df19bdd7c56380c84a8
138Author: John H. Tran <jhtran@att.com>
139Date: Fri Jun 22 19:14:06 2012 -0700
140
141 deallocate_fixed_ip attempts to update deleted ip
142
143 Fixes bug 1017633. When deleting a vm, the nova
144 network manager looks to deallocate wrong fixed
145 ip when context has read_deleted set to 'yes',
146 in case when a network had been deleted and re-
147 created , it attempts to update already deleted
148 fixed_ips and therefore looks to teardown from
149 wrong network_id as well.
150
151 Change-Id: I574a20273220ef81498403da80f489732ae81eb1
152 (cherry picked from commit 61ab72d15b3ac61b245e0bdd4a7bee5f3a673f75)
153
154 nova/network/manager.py | 3 +--
155 nova/tests/network/test_manager.py | 35 +++++++++++++++++++++++++++++++++++
156 2 files changed, 36 insertions(+), 2 deletions(-)
157
158commit 20f98c5785bfc074caaaa5542d19b7f361597e30
159Author: John Tran <jhtran@att.com>
160Date: Tue May 15 10:00:36 2012 -0700
161
162 fixed_ip_get_by_address read_deleted from context
163
164 Fixes bug 996482. by default fixed_ip_get_by_address
165 always sets read_deleted='yes'. Changed it to accept
166 read_deleted value from context.
167 updated .mailmap to rewrite my old email to new email
168
169 Change-Id: If94251972df7bbcfdeebc226613edac0a3f41186
170 (cherry picked from commit c1e54e1968faa23dfa26796fdb8f3f8d9ba79367)
171
172 .mailmap | 1 +
173 Authors | 2 +-
174 nova/db/sqlalchemy/api.py | 2 +-
175 nova/tests/test_db_api.py | 2 ++
176 4 files changed, 5 insertions(+), 2 deletions(-)
177
178commit 4eebe76e9671afcdf8f468a91c9eb27ddba30715
179Author: Pádraig Brady <pbrady@redhat.com>
180Date: Sat Sep 8 02:43:01 2012 +0100
181
182 fix unmounting of LXC containers in the presence of symlinks
183
184 When looking up the mount dir in /proc/mounts we need
185 to canonicalize the path so that symlinks are resolved
186
187 Fixes bug: 1046313
188 Change-Id: Ib2bb8253e9cdfeda3c6ba13e56a0f907518ff558
189 Cherry-picked: b35b34a65a6ddcfee524304cc548b4dfe1fc6cd5
190
191 nova/virt/disk/api.py | 1 +
192 1 file changed, 1 insertion(+)
193
194commit 40c5e94d56bfdb3ec1e1ac8c0e501d66cd9691ec
195Author: Aaron Rosen <arosen@nicira.com>
196Date: Fri Sep 14 12:15:07 2012 -0400
197
198 make ensure_default_security_group() call sgh
199
200 This change makes sure that sgh is called when default
201 security group is created. Fixes bug 1050982
202
203 Change-Id: I483e33d8977b2bfbd7456a7c7c0d1fe7803708f8
204
205 Authors | 1 +
206 nova/compute/api.py | 2 ++
207 2 files changed, 3 insertions(+)
208
209commit 10766995ec5914247c21694062337c22e83e1dff
210Author: Pádraig Brady <pbrady@redhat.com>
211Date: Mon Sep 17 13:19:18 2012 +0100
212
213 fix cleanup_file_locks with restricted permissions
214
215 SELinux was seen to disallow kill(pid, 0).
216 Therefore ensure that the pid is determined
217 to be still running if we get EPERM.
218
219 Fixes bug: 1051924
220 Change-Id: Ib84e2fc460066ee03070b9bda15732cce573ccf3
221
222 nova/utils.py | 20 +++++++++++---------
223 1 file changed, 11 insertions(+), 9 deletions(-)
224
225commit 75f69225c5be5e5817a4008792e974ba4014c9e1
226Author: Boris Filippov <bfilippov@griddynamics.com>
227Date: Wed Sep 5 05:40:05 2012 +0400
228
229 Use bare container format by default
230
231 Set container_format to bare during libvirt snapshot, when VM image in
232 glance was deleted. Currently, if VM image in glance was already deleted
233 before snapshot, nova will attempt to create snapshot image with
234 container_format: None. This cause glance to return error on attempt to
235 upload snapshot. According to glance docs container_format is not used
236 anywhere in glance or nova explicitly and it is safe to set it to bare,
237 when you are unsure which container_format you need to use.
238 Current snapshot logic sets snapshot disk_format to currently used
239 image_format in absence of base image in glance.
240
241 This resolves bug 921774 without need for snapshot mechanism redesign.
242
243 Change-Id: I7beea35120aaeac0837daecdf58f38f62e24454c
244
245 Authors | 1 +
246 nova/virt/libvirt/connection.py | 3 +--
247 2 files changed, 2 insertions(+), 2 deletions(-)
248
249commit 47dabb30dc09282d56ad1e54c7652bf35394f7df
250Author: TianTian Gao <gtt116@126.com>
251Date: Tue Sep 4 12:01:41 2012 +0800
252
253 Yield to another greenthread when some time-consuming task finished.
254
255 Partially addresses bug #1045152
256
257 On a heavily loaded compute node, it can be observed that periodic tasks
258 take so long to run that the report_state() looping call can be blocked from
259 running long enough that the scheduler thinks the host is dead.
260
261 Reduce the chance of this happening by yielding to another greenthread
262 after each periodic task has completed and each loop in some methods
263 that has linear relationship with the number of instances.
264
265 Change-Id: If2b125708da8298b20497e2e08e52280c102f1e1
266
267 Authors | 1 +
268 nova/manager.py | 5 +++++
269 nova/virt/libvirt/connection.py | 5 ++++-
270 3 files changed, 10 insertions(+), 1 deletion(-)
271
272commit 2e75689c7cb3b20265dc5b2799d3367e513d6b5b
273Merge: 4ac2dcc b375b4f
274Author: Jenkins <jenkins@review.openstack.org>
275Date: Thu Sep 13 17:54:37 2012 +0000
276
277 Merge "Redefine the domain's XML on volume attach/detach" into stable/essex
278
279commit b375b4f1131d54315bb9952fcf2eff363b3b29b1
280Author: Dan Smith <danms@us.ibm.com>
281Date: Fri Jun 29 09:35:02 2012 -0700
282
283 Redefine the domain's XML on volume attach/detach
284
285 This fixes bug 1004791 by adding new disk definitions to the defined
286 XML instead of just modifying the running instance.
287
288 Cherry picked for stable/essex to fix bug 1012717.
289
290 Change-Id: I6596dae7c54158c32bc7b399c55a1797b2d98242
291
292 nova/tests/fakelibvirt.py | 2 ++
293 nova/virt/libvirt/connection.py | 14 ++++++++++++++
294 2 files changed, 16 insertions(+)
295
296commit 4ac2dcc36bb4e737e486ef86930c023b403a3f3a
297Author: RongzeZhu <zrzhit@gmail.com>
298Date: Sun Sep 2 18:43:56 2012 +0800
299
300 Fix simple_tenant_usage's handing of future end times
301
302 Fixes bug #1043999
303
304 simple_tenant_usage returns the usage in the range between the supplied
305 start and end query parameters. The _hours_for() method calculates the
306 number of hours the instance was running in this range, even if the end time
307 is in the future.
308
309 By default, python-novaclient requests usage between 4 weeks ago and tomorrow.
310 This means we a report which accounts for 24 hours of extra running time for
311 each currently running instance. Fix this by clamping the period of the
312 returned report at the current time.
313
314 Change-Id: I61c211fd85b729aaeaac6ef24644ee19eb5bb6b0
315 (cherry picked from commit 869443f41c8826c9a4de1dcc65c5a5354b623a04)
316
317 Authors | 1 +
318 .../compute/contrib/simple_tenant_usage.py | 7 +++++
319 .../compute/contrib/test_simple_tenant_usage.py | 28 +++++++++++++++-----
320 3 files changed, 30 insertions(+), 6 deletions(-)
321
322commit b0da809850008901c876e2fe7bb09efc60534f2b
323Merge: 0d6787b 014fcbc
324Author: Jenkins <jenkins@review.openstack.org>
325Date: Tue Sep 4 10:12:42 2012 +0000
326
327 Merge "Ensure hairpin_mode is set whenever vifs is added to bridge." into stable/essex
328
329commit 0d6787b190a255c97465c53e734196b2bbe82631
330Merge: 4d2a4af 2f35f8e
331Author: Jenkins <jenkins@review.openstack.org>
332Date: Thu Aug 30 00:07:18 2012 +0000
333
334 Merge "Make flavorextradata ignore deleted flavors." into stable/essex
335
336commit 014fcbc06f55ea91a4e2c3a35df048cad3ae6684
337Author: Yaguang Tang <heut2008@gmail.com>
338Date: Sun Aug 26 09:58:09 2012 +0800
339
340 Ensure hairpin_mode is set whenever vifs is added to bridge.
341
342 Fix the bug that when create a snapshot of an instance, the
343 instance cann't ping it's floating ip.
344 fix bug lp:1040537
345
346 Change-Id: I25aa1a323fa84e8c72f969cb56ada4dffa509150
347
348 nova/virt/libvirt/connection.py | 12 +++++-------
349 1 file changed, 5 insertions(+), 7 deletions(-)
350
1commit 4d2a4afe3e3f67ed457651f0ea8ddd74ab75436d351commit 4d2a4afe3e3f67ed457651f0ea8ddd74ab75436d
2Merge: 66c7164 5d63601352Merge: 66c7164 5d63601
3Author: Jenkins <jenkins@review.openstack.org>353Author: Jenkins <jenkins@review.openstack.org>
@@ -171,6 +521,22 @@
171 nova/version.py | 2 +-521 nova/version.py | 2 +-
172 1 file changed, 1 insertion(+), 1 deletion(-)522 1 file changed, 1 insertion(+), 1 deletion(-)
173523
524commit 2f35f8ec54d303dc48040c46cb950c7fbff9731e
525Author: David Besen <david.besen@hp.com>
526Date: Wed Aug 8 10:35:32 2012 -0600
527
528 Make flavorextradata ignore deleted flavors.
529
530 In _get_flavor_refs, don't retrieve inactive flavors. Fixes bug 1026210.
531
532 This change was made on trunk in https://review.openstack.org/#/c/9995/
533
534 Change-Id: I967faa661cd4177a54079a966ca8912923c5f61b
535
536 Authors | 1 +
537 .../openstack/compute/contrib/flavorextradata.py | 2 +-
538 2 files changed, 2 insertions(+), 1 deletion(-)
539
174commit d4c7f6fc5e6094b00a31717080d73feff100eb1b540commit d4c7f6fc5e6094b00a31717080d73feff100eb1b
175Merge: 3804144 e8ef050541Merge: 3804144 e8ef050
176Author: Jenkins <jenkins@review.openstack.org>542Author: Jenkins <jenkins@review.openstack.org>
@@ -47171,7 +47537,7 @@
4717147537
47172commit d327987cdd0eed43e5400b392086446b0c73b03547538commit d327987cdd0eed43e5400b392086446b0c73b035
47173Merge: 48e22da ca1303747539Merge: 48e22da ca13037
47174Author: John Tran <jtran@attinteractive.com>47540Author: John Tran <jhtran@att.com>
47175Date: Thu Aug 18 21:57:52 2011 +000047541Date: Thu Aug 18 21:57:52 2011 +0000
4717647542
47177 Fixed bug in which DescribeInstances was returning deleted instances. Added tests for pertinent api methods.47543 Fixed bug in which DescribeInstances was returning deleted instances. Added tests for pertinent api methods.
@@ -48249,7 +48615,7 @@
48249 This branch implements a nova api extension which allows you to manage and update tenant/project quotas.48615 This branch implements a nova api extension which allows you to manage and update tenant/project quotas.
4825048616
48251commit ca13037d2cd130f5b970d3af219566f3a70a9cb548617commit ca13037d2cd130f5b970d3af219566f3a70a9cb5
48252Author: John Tran <jtran@attinteractive.com>48618Author: John Tran <jhtran@att.com>
48253Date: Tue Aug 16 09:18:13 2011 -070048619Date: Tue Aug 16 09:18:13 2011 -0700
4825448620
48255 test improvements per peer review48621 test improvements per peer review
@@ -48656,7 +49022,7 @@
48656 1 file changed, 14 insertions(+), 6 deletions(-)49022 1 file changed, 14 insertions(+), 6 deletions(-)
4865749023
48658commit 3e561f148fcba627f8fbd4ab1089f426fbc2e61b49024commit 3e561f148fcba627f8fbd4ab1089f426fbc2e61b
48659Author: John Tran <jtran@attinteractive.com>49025Author: John Tran <jhtran@att.com>
48660Date: Mon Aug 15 13:58:44 2011 -070049026Date: Mon Aug 15 13:58:44 2011 -0700
4866149027
48662 adding sqlalchemi api tests for test_instance_get_all_by_filter to ensure doesn't return deleted instances49028 adding sqlalchemi api tests for test_instance_get_all_by_filter to ensure doesn't return deleted instances
@@ -48666,7 +49032,7 @@
48666 2 files changed, 15 insertions(+), 1 deletion(-)49032 2 files changed, 15 insertions(+), 1 deletion(-)
4866749033
48668commit f06f80591a41f5d1b373677937bbbcddcfb0bb7c49034commit f06f80591a41f5d1b373677937bbbcddcfb0bb7c
48669Author: John Tran <jtran@attinteractive.com>49035Author: John Tran <jhtran@att.com>
48670Date: Mon Aug 15 13:48:09 2011 -070049036Date: Mon Aug 15 13:48:09 2011 -0700
4867149037
48672 added cloud unit test for describe_instances to ensure doesn't return deleted instances49038 added cloud unit test for describe_instances to ensure doesn't return deleted instances
@@ -48735,7 +49101,7 @@
48735 merge trunk, remove _validate_cidrs and replace functionality with a double for loop49101 merge trunk, remove _validate_cidrs and replace functionality with a double for loop
4873649102
48737commit 066b675e3ce5c2bd67dde124cbe01b68bd1eded849103commit 066b675e3ce5c2bd67dde124cbe01b68bd1eded8
48738Author: John Tran <jtran@attinteractive.com>49104Author: John Tran <jhtran@att.com>
48739Date: Mon Aug 15 13:22:14 2011 -070049105Date: Mon Aug 15 13:22:14 2011 -0700
4874049106
48741 fix bug which DescribeInstances in EC2 api was returning deleted instances49107 fix bug which DescribeInstances in EC2 api was returning deleted instances
@@ -48958,7 +49324,7 @@
4895849324
48959commit a538f400b5ced8357fa0e892fffd5a01b8e63cec49325commit a538f400b5ced8357fa0e892fffd5a01b8e63cec
48960Merge: 452b343 353fa4849326Merge: 452b343 353fa48
48961Author: John Tran <jtran@attinteractive.com>49327Author: John Tran <jhtran@att.com>
48962Date: Sun Aug 14 04:10:26 2011 +000049328Date: Sun Aug 14 04:10:26 2011 +0000
4896349329
48964 added logic to make the creation of networks (IPv4 only) validation a bit smarter:49330 added logic to make the creation of networks (IPv4 only) validation a bit smarter:
@@ -48971,7 +49337,7 @@
4897149337
48972commit 452b343811311acbe35ccb5a896569127647f61349338commit 452b343811311acbe35ccb5a896569127647f613
48973Merge: 89ddaa6 7b7297249339Merge: 89ddaa6 7b72972
48974Author: John Tran <jtran@attinteractive.com>49340Author: John Tran <jhtran@att.com>
48975Date: Sun Aug 14 03:47:48 2011 +000049341Date: Sun Aug 14 03:47:48 2011 +0000
4897649342
48977 fix InvalidPortRange exception shows up in euca2ools instead of UnknownError when euca-authorize is specified w/ invalid port #.49343 fix InvalidPortRange exception shows up in euca2ools instead of UnknownError when euca-authorize is specified w/ invalid port #.
@@ -49967,7 +50333,7 @@
49967 3 files changed, 27 insertions(+), 5 deletions(-)50333 3 files changed, 27 insertions(+), 5 deletions(-)
4996850334
49969commit 7b72972cbc9fbd267160d8d3282e1d0ec888de9850335commit 7b72972cbc9fbd267160d8d3282e1d0ec888de98
49970Author: John Tran <jtran@attinteractive.com>50336Author: John Tran <jhtran@att.com>
49971Date: Wed Aug 10 16:19:21 2011 -070050337Date: Wed Aug 10 16:19:21 2011 -0700
4997250338
49973 removed typos, end of line chars50339 removed typos, end of line chars
@@ -50185,7 +50551,7 @@
50185 merge trunk50551 merge trunk
5018650552
50187commit 6548ce754984f2eb5e72612392a8a3392c2a21a250553commit 6548ce754984f2eb5e72612392a8a3392c2a21a2
50188Author: John Tran <jtran@attinteractive.com>50554Author: John Tran <jhtran@att.com>
50189Date: Tue Aug 9 18:43:18 2011 -070050555Date: Tue Aug 9 18:43:18 2011 -0700
5019050556
50191 fix so that the exception shows up in euca2ools instead of UnknownError50557 fix so that the exception shows up in euca2ools instead of UnknownError
@@ -51315,7 +51681,7 @@
51315 1 file changed, 1 insertion(+), 1 deletion(-)51681 1 file changed, 1 insertion(+), 1 deletion(-)
5131651682
51317commit 353fa4871069cf0b926f09aa00496002f65584cb51683commit 353fa4871069cf0b926f09aa00496002f65584cb
51318Author: John Tran <jtran@attinteractive.com>51684Author: John Tran <jhtran@att.com>
51319Date: Fri Aug 5 11:48:06 2011 -070051685Date: Fri Aug 5 11:48:06 2011 -0700
5132051686
51321 fixed per peer review51687 fixed per peer review
@@ -51324,7 +51690,7 @@
51324 1 file changed, 5 insertions(+), 5 deletions(-)51690 1 file changed, 5 insertions(+), 5 deletions(-)
5132551691
51326commit 3812d22b7a6f5d74418a7a99dc69c68a5b9f904651692commit 3812d22b7a6f5d74418a7a99dc69c68a5b9f9046
51327Author: John Tran <jtran@attinteractive.com>51693Author: John Tran <jhtran@att.com>
51328Date: Fri Aug 5 11:36:00 2011 -070051694Date: Fri Aug 5 11:36:00 2011 -0700
5132951695
51330 fixed per peer review51696 fixed per peer review
@@ -51383,7 +51749,7 @@
51383 Updates v1.1 servers/id/action requests to comply with the 1.1 spec51749 Updates v1.1 servers/id/action requests to comply with the 1.1 spec
5138451750
51385commit 2935bebd718e770d0f2c9d1ab5dca76cc7d5f76a51751commit 2935bebd718e770d0f2c9d1ab5dca76cc7d5f76a
51386Author: John Tran <jtran@attinteractive.com>51752Author: John Tran <jhtran@att.com>
51387Date: Fri Aug 5 09:50:11 2011 -070051753Date: Fri Aug 5 09:50:11 2011 -0700
5138851754
51389 fix typo51755 fix typo
@@ -51688,7 +52054,7 @@
51688 tests and merge with trunk52054 tests and merge with trunk
5168952055
51690commit b7167b21d615f8617d588a1656aa341fd226ded952056commit b7167b21d615f8617d588a1656aa341fd226ded9
51691Author: John Tran <jtran@attinteractive.com>52057Author: John Tran <jhtran@att.com>
51692Date: Thu Aug 4 20:13:23 2011 -070052058Date: Thu Aug 4 20:13:23 2011 -0700
5169352059
51694 removed redundant logic52060 removed redundant logic
@@ -51698,14 +52064,14 @@
5169852064
51699commit d4c5d5b18fc3b51fcb1ee5bc39ac866c4aa47d4852065commit d4c5d5b18fc3b51fcb1ee5bc39ac866c4aa47d48
51700Merge: b557b63 502801b52066Merge: b557b63 502801b
51701Author: John Tran <jtran@attinteractive.com>52067Author: John Tran <jhtran@att.com>
51702Date: Thu Aug 4 19:43:33 2011 -070052068Date: Thu Aug 4 19:43:33 2011 -0700
5170352069
51704 merged trunk52070 merged trunk
5170552071
51706commit 502801bfff0015ed3aa93b9d65a87cb6b80fd11d52072commit 502801bfff0015ed3aa93b9d65a87cb6b80fd11d
51707Merge: 0b275cd f942a7f52073Merge: 0b275cd f942a7f
51708Author: John Tran <jtran@attinteractive.com>52074Author: John Tran <jhtran@att.com>
51709Date: Fri Aug 5 02:27:36 2011 +000052075Date: Fri Aug 5 02:27:36 2011 +0000
5171052076
51711 For nova-manage network create cmd, added warning when size of subnet(s) being created are larger than FLAG.network_size, in attempt to alleviate confusion. For example, currently when 'nova-manage network create foo 192.168.0.0/16', the result is that it creates a 192.168.0.0/24 instead without any indication to why52077 For nova-manage network create cmd, added warning when size of subnet(s) being created are larger than FLAG.network_size, in attempt to alleviate confusion. For example, currently when 'nova-manage network create foo 192.168.0.0/16', the result is that it creates a 192.168.0.0/24 instead without any indication to why
@@ -51740,7 +52106,7 @@
51740 1 file changed, 7 insertions(+), 5 deletions(-)52106 1 file changed, 7 insertions(+), 5 deletions(-)
5174152107
51742commit b557b6366b21a0d3795369785037ee29c8cef37752108commit b557b6366b21a0d3795369785037ee29c8cef377
51743Author: John Tran <jtran@attinteractive.com>52109Author: John Tran <jhtran@att.com>
51744Date: Thu Aug 4 18:52:15 2011 -070052110Date: Thu Aug 4 18:52:15 2011 -0700
5174552111
51746 fix pep8 issues52112 fix pep8 issues
@@ -51750,7 +52116,7 @@
51750 2 files changed, 12 insertions(+), 7 deletions(-)52116 2 files changed, 12 insertions(+), 7 deletions(-)
5175152117
51752commit 38eb72be5f15731ba34a7dc0f8a28aa0fb63ea9052118commit 38eb72be5f15731ba34a7dc0f8a28aa0fb63ea90
51753Author: John Tran <jtran@attinteractive.com>52119Author: John Tran <jhtran@att.com>
51754Date: Thu Aug 4 18:37:36 2011 -070052120Date: Thu Aug 4 18:37:36 2011 -0700
5175552121
51756 fixed bug , when logic searched for next avail cidr it would return cidrs that were out of range of original requested cidr block. added test for it52122 fixed bug , when logic searched for next avail cidr it would return cidrs that were out of range of original requested cidr block. added test for it
@@ -51783,7 +52149,7 @@
51783 1 file changed, 37 insertions(+)52149 1 file changed, 37 insertions(+)
5178452150
51785commit 89ec28c70d7795d427ecd4242cb1856eabdca10452151commit 89ec28c70d7795d427ecd4242cb1856eabdca104
51786Author: John Tran <jtran@attinteractive.com>52152Author: John Tran <jhtran@att.com>
51787Date: Thu Aug 4 18:01:07 2011 -070052153Date: Thu Aug 4 18:01:07 2011 -0700
5178852154
51789 fixed bug, wasn't detecting smaller subnet conflict properly added test for it52155 fixed bug, wasn't detecting smaller subnet conflict properly added test for it
@@ -51811,7 +52177,7 @@
51811 1 file changed, 3 insertions(+)52177 1 file changed, 3 insertions(+)
5181252178
51813commit f58d441b55e143de35aefd039b80e0b27dad9ce252179commit f58d441b55e143de35aefd039b80e0b27dad9ce2
51814Author: John Tran <jtran@attinteractive.com>52180Author: John Tran <jhtran@att.com>
51815Date: Thu Aug 4 16:27:55 2011 -070052181Date: Thu Aug 4 16:27:55 2011 -0700
5181652182
51817 removed unnecessary context from test I had left there from prior52183 removed unnecessary context from test I had left there from prior
@@ -51830,7 +52196,7 @@
51830 2 files changed, 90 insertions(+), 82 deletions(-)52196 2 files changed, 90 insertions(+), 82 deletions(-)
5183152197
51832commit 8c7b71f65e54d67615e52927591e12a43b8b399152198commit 8c7b71f65e54d67615e52927591e12a43b8b3991
51833Author: John Tran <jtran@attinteractive.com>52199Author: John Tran <jhtran@att.com>
51834Date: Thu Aug 4 16:05:08 2011 -070052200Date: Thu Aug 4 16:05:08 2011 -0700
5183552201
51836 re-integrated my changes after merging trunk. fixed some pep8 issues. sorting the list of cidrs to create, so that it will create x.x.0.0 with a lower 'id' than x.x.1.0 (as an example). <- was causing libvirtd test to fail52202 re-integrated my changes after merging trunk. fixed some pep8 issues. sorting the list of cidrs to create, so that it will create x.x.0.0 with a lower 'id' than x.x.1.0 (as an example). <- was causing libvirtd test to fail
@@ -52897,7 +53263,7 @@
52897 Yet another conflict resolved.53263 Yet another conflict resolved.
5289853264
52899commit f942a7f22acb6a6719a3de778ba55ca25ea0ee6853265commit f942a7f22acb6a6719a3de778ba55ca25ea0ee68
52900Author: John Tran <jtran@attinteractive.com>53266Author: John Tran <jhtran@att.com>
52901Date: Wed Aug 3 00:16:52 2011 -070053267Date: Wed Aug 3 00:16:52 2011 -0700
5290253268
52903 forgot to remove comment53269 forgot to remove comment
@@ -52906,7 +53272,7 @@
52906 1 file changed, 1 deletion(-)53272 1 file changed, 1 deletion(-)
5290753273
52908commit bfb5a5e1204bf868b5db8d8d038b63d0899665ce53274commit bfb5a5e1204bf868b5db8d8d038b63d0899665ce
52909Author: John Tran <jtran@attinteractive.com>53275Author: John Tran <jhtran@att.com>
52910Date: Wed Aug 3 00:11:52 2011 -070053276Date: Wed Aug 3 00:11:52 2011 -0700
5291153277
52912 updated to work w/ changes after merged trunk fixing var renaming. the logic which forces default to FLAGS.network_size if requested cidr was larger, was also applying to requested cidrs smaller than FLAGS.network_size. Requested cidrs smaller than FLAGS.network_size should be ignored and not overriden.53278 updated to work w/ changes after merged trunk fixing var renaming. the logic which forces default to FLAGS.network_size if requested cidr was larger, was also applying to requested cidrs smaller than FLAGS.network_size. Requested cidrs smaller than FLAGS.network_size should be ignored and not overriden.
@@ -52916,14 +53282,14 @@
5291653282
52917commit 6d7e5196db2e852476f7d14007cf155e1581507153283commit 6d7e5196db2e852476f7d14007cf155e15815071
52918Merge: e239dc5 e2770a453284Merge: e239dc5 e2770a4
52919Author: John Tran <jtran@attinteractive.com>53285Author: John Tran <jhtran@att.com>
52920Date: Tue Aug 2 23:16:27 2011 -070053286Date: Tue Aug 2 23:16:27 2011 -0700
5292153287
52922 merged from trunk53288 merged from trunk
5292353289
52924commit 8b06f143ec1d91b3c95a43746bfdacbe3aec382953290commit 8b06f143ec1d91b3c95a43746bfdacbe3aec3829
52925Merge: 51f0cbf e2770a453291Merge: 51f0cbf e2770a4
52926Author: John Tran <jtran@attinteractive.com>53292Author: John Tran <jhtran@att.com>
52927Date: Tue Aug 2 23:07:23 2011 -070053293Date: Tue Aug 2 23:07:23 2011 -0700
5292853294
52929 merged from trunk53295 merged from trunk
@@ -53385,7 +53751,7 @@
53385 1 file changed, 1 insertion(+), 1 deletion(-)53751 1 file changed, 1 insertion(+), 1 deletion(-)
5338653752
53387commit 51f0cbf9221b461eb92beae2497e871bf2a7f45f53753commit 51f0cbf9221b461eb92beae2497e871bf2a7f45f
53388Author: John Tran <jtran@attinteractive.com>53754Author: John Tran <jhtran@att.com>
53389Date: Tue Aug 2 10:06:22 2011 -070053755Date: Tue Aug 2 10:06:22 2011 -0700
5339053756
53391 refactored tests53757 refactored tests
@@ -53499,7 +53865,7 @@
5349953865
53500commit 83066aa64ccba34e23063eee661375b11de2161f53866commit 83066aa64ccba34e23063eee661375b11de2161f
53501Merge: f05628d 094b98453867Merge: f05628d 094b984
53502Author: John Tran <jtran@attinteractive.com>53868Author: John Tran <jhtran@att.com>
53503Date: Tue Aug 2 11:28:43 2011 +000053869Date: Tue Aug 2 11:28:43 2011 +0000
5350453870
53505 code was checking for key in sqlalchemy instance and will ignore if value is None, but wasn't working if floating_ip was a non-sqlalchemy dict obj. Therefore, updated the error checking to work in both caes.53871 code was checking for key in sqlalchemy instance and will ignore if value is None, but wasn't working if floating_ip was a non-sqlalchemy dict obj. Therefore, updated the error checking to work in both caes.
@@ -53542,7 +53908,7 @@
53542 1 file changed, 2 insertions(+), 2 deletions(-)53908 1 file changed, 2 insertions(+), 2 deletions(-)
5354353909
53544commit bcfd8f5e1e0c3b53a2ad4a5bb533d94dcf5ef18c53910commit bcfd8f5e1e0c3b53a2ad4a5bb533d94dcf5ef18c
53545Author: John Tran <jtran@attinteractive.com>53911Author: John Tran <jhtran@att.com>
53546Date: Mon Aug 1 21:34:43 2011 -070053912Date: Mon Aug 1 21:34:43 2011 -0700
5354753913
53548 added some tests for network create & moved the ipv6 logic back into the function53914 added some tests for network create & moved the ipv6 logic back into the function
@@ -53623,7 +53989,7 @@
53623 Merged trunk53989 Merged trunk
5362453990
53625commit ab4bfcf6c458ab6bf6ead126a91413b92aa543b853991commit ab4bfcf6c458ab6bf6ead126a91413b92aa543b8
53626Author: John Tran <jtran@attinteractive.com>53992Author: John Tran <jhtran@att.com>
53627Date: Mon Aug 1 16:27:17 2011 -070053993Date: Mon Aug 1 16:27:17 2011 -0700
5362853994
53629 pep8 fixes53995 pep8 fixes
@@ -53669,7 +54035,7 @@
53669 Merge from trunk.54035 Merge from trunk.
5367054036
53671commit 951114be20065044e7f12e37188eb30e859ff2cb54037commit 951114be20065044e7f12e37188eb30e859ff2cb
53672Author: John Tran <jtran@attinteractive.com>54038Author: John Tran <jhtran@att.com>
53673Date: Mon Aug 1 12:47:41 2011 -070054039Date: Mon Aug 1 12:47:41 2011 -0700
5367454040
53675 removed redundant logic54041 removed redundant logic
@@ -53679,13 +54045,13 @@
5367954045
53680commit a73d1f200dc3e493ce7044bda9fe0a691dca166454046commit a73d1f200dc3e493ce7044bda9fe0a691dca1664
53681Merge: e72fafb bdcfaa554047Merge: e72fafb bdcfaa5
53682Author: John Tran <jtran@attinteractive.com>54048Author: John Tran <jhtran@att.com>
53683Date: Mon Aug 1 12:39:26 2011 -070054049Date: Mon Aug 1 12:39:26 2011 -0700
5368454050
53685 merged from trunk54051 merged from trunk
5368654052
53687commit e72fafbf76ed456039426a96dd65d2c148dffa2954053commit e72fafbf76ed456039426a96dd65d2c148dffa29
53688Author: John Tran <jtran@attinteractive.com>54054Author: John Tran <jhtran@att.com>
53689Date: Mon Aug 1 12:37:12 2011 -070054055Date: Mon Aug 1 12:37:12 2011 -0700
5369054056
53691 adding a function with logic to make the creation of networks validation a bit smarter:54057 adding a function with logic to make the creation of networks validation a bit smarter:
@@ -55392,7 +55758,7 @@
55392 2 files changed, 34 insertions(+), 1 deletion(-)55758 2 files changed, 34 insertions(+), 1 deletion(-)
5539355759
55394commit 094b9845500e28d315f70aa1fbc37b75c143d0c055760commit 094b9845500e28d315f70aa1fbc37b75c143d0c0
55395Author: John Tran <jtran@attinteractive.com>55761Author: John Tran <jhtran@att.com>
55396Date: Wed Jul 27 10:34:58 2011 -070055762Date: Wed Jul 27 10:34:58 2011 -0700
5539755763
55398 improved the code per peer review55764 improved the code per peer review
@@ -55722,7 +56088,7 @@
55722 1 file changed, 18 insertions(+), 77 deletions(-)56088 1 file changed, 18 insertions(+), 77 deletions(-)
5572356089
55724commit 6b33d0dfbfea7ee66a47947973133573070303cd56090commit 6b33d0dfbfea7ee66a47947973133573070303cd
55725Author: John Tran <jtran@attinteractive.com>56091Author: John Tran <jhtran@att.com>
55726Date: Tue Jul 26 23:03:16 2011 -070056092Date: Tue Jul 26 23:03:16 2011 -0700
5572756093
55728 code was checking for key in sqlalchemy instance but if floating_ip is a non-sqlalchemy dict instance instead, value=None will cause NoneType exception.56094 code was checking for key in sqlalchemy instance but if floating_ip is a non-sqlalchemy dict instance instead, value=None will cause NoneType exception.
@@ -56014,7 +56380,7 @@
56014 4 files changed, 172 insertions(+), 131 deletions(-)56380 4 files changed, 172 insertions(+), 131 deletions(-)
5601556381
56016commit e239dc589982a0d90eb8a50967af05a10d5e4d5b56382commit e239dc589982a0d90eb8a50967af05a10d5e4d5b
56017Author: John Tran <jtran@attinteractive.com>56383Author: John Tran <jhtran@att.com>
56018Date: Tue Jul 26 13:12:34 2011 -070056384Date: Tue Jul 26 13:12:34 2011 -0700
5601956385
56020 fixed per peer review56386 fixed per peer review
@@ -56134,7 +56500,7 @@
56134 Ideally we should probably consider adding a fixed_ip alias to the models.Instance query context so that the api code is consistent, but for now this should resolve the outstanding issues.56500 Ideally we should probably consider adding a fixed_ip alias to the models.Instance query context so that the api code is consistent, but for now this should resolve the outstanding issues.
5613556501
56136commit 6fb2fe901bc4f4479e6a2bb087870927be7318a256502commit 6fb2fe901bc4f4479e6a2bb087870927be7318a2
56137Author: John Tran <jtran@attinteractive.com>56503Author: John Tran <jhtran@att.com>
56138Date: Tue Jul 26 10:03:16 2011 -070056504Date: Tue Jul 26 10:03:16 2011 -0700
5613956505
56140 added warning when size of subnet(s) being created are larger than FLAG.network_size in attempt to alleviate confusion. For example, currently when 'nova-manage network create foo 192.168.0.0/16', the result is that it creates a 192.168.0.0/24 instead without any indication to why.56506 added warning when size of subnet(s) being created are larger than FLAG.network_size in attempt to alleviate confusion. For example, currently when 'nova-manage network create foo 192.168.0.0/16', the result is that it creates a 192.168.0.0/24 instead without any indication to why.
@@ -56155,7 +56521,7 @@
5615556521
56156commit 05e7aedaa3124267450e2f74ca026680b15d6d2756522commit 05e7aedaa3124267450e2f74ca026680b15d6d27
56157Merge: 6107daa 8e087df56523Merge: 6107daa 8e087df
56158Author: John Tran <jtran@attinteractive.com>56524Author: John Tran <jhtran@att.com>
56159Date: Tue Jul 26 09:49:51 2011 -070056525Date: Tue Jul 26 09:49:51 2011 -0700
5616056526
56161 merged from trunk56527 merged from trunk
@@ -56563,7 +56929,7 @@
5656356929
56564commit e2d35269e7628cc0eedddaa3ac9b48a6bd95cdac56930commit e2d35269e7628cc0eedddaa3ac9b48a6bd95cdac
56565Merge: b2920f1 ab4238456931Merge: b2920f1 ab42384
56566Author: John Tran <jtran@attinteractive.com>56932Author: John Tran <jhtran@att.com>
56567Date: Mon Jul 25 21:24:42 2011 +000056933Date: Mon Jul 25 21:24:42 2011 +0000
5656856934
56569 modified to conform to latest AWS EC2 API spec for authorize & revoke ingress params using the IpPermissions data structure, which nests lists of CIDR blocks (IpRanges) as well as lists of Group data56935 modified to conform to latest AWS EC2 API spec for authorize & revoke ingress params using the IpPermissions data structure, which nests lists of CIDR blocks (IpRanges) as well as lists of Group data
@@ -58776,7 +59142,7 @@
5877659142
58777commit f926ae2a0fcf115beae78b8edfbf4ddee1d646be59143commit f926ae2a0fcf115beae78b8edfbf4ddee1d646be
58778Merge: b76d31c 1d4a78959144Merge: b76d31c 1d4a789
58779Author: John Tran <jtran@attinteractive.com>59145Author: John Tran <jhtran@att.com>
58780Date: Wed Jul 20 16:41:10 2011 +000059146Date: Wed Jul 20 16:41:10 2011 +0000
5878159147
58782 network api release_floating_ip method will now check to see if an instance is associated to it, prior to releasing.59148 network api release_floating_ip method will now check to see if an instance is associated to it, prior to releasing.
@@ -59054,7 +59420,7 @@
59054 8 files changed, 16 insertions(+), 17 deletions(-)59420 8 files changed, 16 insertions(+), 17 deletions(-)
5905559421
59056commit 1d4a789ed370fe0cc00c292f89b96b0ffaf115ff59422commit 1d4a789ed370fe0cc00c292f89b96b0ffaf115ff
59057Author: John Tran <jtran@attinteractive.com>59423Author: John Tran <jhtran@att.com>
59058Date: Tue Jul 19 14:16:14 2011 -070059424Date: Tue Jul 19 14:16:14 2011 -0700
5905959425
59060 move import network to the top59426 move import network to the top
@@ -59071,13 +59437,13 @@
5907159437
59072commit 12441aae27572a8966a42ff6c5b16cfc7195a63459438commit 12441aae27572a8966a42ff6c5b16cfc7195a634
59073Merge: ecb68bf 77db06c59439Merge: ecb68bf 77db06c
59074Author: John Tran <jtran@attinteractive.com>59440Author: John Tran <jhtran@att.com>
59075Date: Tue Jul 19 13:56:28 2011 -070059441Date: Tue Jul 19 13:56:28 2011 -0700
5907659442
59077 merged from trunk59443 merged from trunk
5907859444
59079commit ecb68bf77565cb01ec0ea4d28c7f1315e10b21c459445commit ecb68bf77565cb01ec0ea4d28c7f1315e10b21c4
59080Author: John Tran <jtran@attinteractive.com>59446Author: John Tran <jhtran@att.com>
59081Date: Tue Jul 19 13:49:05 2011 -070059447Date: Tue Jul 19 13:49:05 2011 -0700
5908259448
59083 network api release_floating_ip method checks if an instance associated to the floating prior to releasing. added test59449 network api release_floating_ip method checks if an instance associated to the floating prior to releasing. added test
@@ -59517,7 +59883,7 @@
59517 1 file changed, 4 insertions(+), 1 deletion(-)59883 1 file changed, 4 insertions(+), 1 deletion(-)
5951859884
59519commit ab42384131077bae3986141279b605d8f994143c59885commit ab42384131077bae3986141279b605d8f994143c
59520Author: John Tran <jtran@attinteractive.com>59886Author: John Tran <jhtran@att.com>
59521Date: Mon Jul 18 03:45:16 2011 +000059887Date: Mon Jul 18 03:45:16 2011 +0000
5952259888
59523 resolved pep8 issues59889 resolved pep8 issues
@@ -59528,7 +59894,7 @@
5952859894
59529commit 3fd9b0dbfcb42422a88c9b21f5353fdb9eea1fc159895commit 3fd9b0dbfcb42422a88c9b21f5353fdb9eea1fc1
59530Merge: b0a02fe cf25ab359896Merge: b0a02fe cf25ab3
59531Author: John Tran <jtran@attinteractive.com>59897Author: John Tran <jhtran@att.com>
59532Date: Mon Jul 18 03:03:57 2011 +000059898Date: Mon Jul 18 03:03:57 2011 +0000
5953359899
59534 merged from trunk59900 merged from trunk
@@ -59631,7 +59997,7 @@
59631 3 files changed, 25 insertions(+)59997 3 files changed, 25 insertions(+)
5963259998
59633commit b0a02feb7bd25380a75b83344e0ac3210a16838759999commit b0a02feb7bd25380a75b83344e0ac3210a168387
59634Author: John Tran <jtran@attinteractive.com>60000Author: John Tran <jhtran@att.com>
59635Date: Sun Jul 17 22:07:07 2011 +000060001Date: Sun Jul 17 22:07:07 2011 +0000
5963660002
59637 changed to avoid localization test failure60003 changed to avoid localization test failure
@@ -59776,7 +60142,7 @@
59776 Added some unit and integration tests for updating the server name via the openstack api.60142 Added some unit and integration tests for updating the server name via the openstack api.
5977760143
59778commit 7498fa608def9613552cf0e26dcb03fddf7b298d60144commit 7498fa608def9613552cf0e26dcb03fddf7b298d
59779Author: John Tran <jtran@attinteractive.com>60145Author: John Tran <jhtran@att.com>
59780Date: Fri Jul 15 22:56:16 2011 +000060146Date: Fri Jul 15 22:56:16 2011 +0000
5978160147
59782 renamed priv method arg_to_dict since it's not just used for revoke. modified to conform to latest AWS EC2 API spec for authorize & revoke ingress params using the IpPermissions data structure, which nests lists of CIDR blocks (IpRanges) as well as lists of Group data60148 renamed priv method arg_to_dict since it's not just used for revoke. modified to conform to latest AWS EC2 API spec for authorize & revoke ingress params using the IpPermissions data structure, which nests lists of CIDR blocks (IpRanges) as well as lists of Group data
@@ -61175,7 +61541,7 @@
6117561541
61176commit 0a2105dd88b400494d49fc7921deac4960b3515c61542commit 0a2105dd88b400494d49fc7921deac4960b3515c
61177Merge: fab5c5a 17fceb261543Merge: fab5c5a 17fceb2
61178Author: John Tran <jtran@attinteractive.com>61544Author: John Tran <jhtran@att.com>
61179Date: Sat Jul 9 23:56:32 2011 +000061545Date: Sat Jul 9 23:56:32 2011 +0000
6118061546
61181 flaw in ec2 cloud api, _get_image method , if doing a search for aki-0000009, yet that image name doesn't exist, it strips off aki- and looks for any image_id 0000009 and if there was an image match that happens to be an ami instead of aki, it will go ahead and deregister the ami instead. That behavior is unintended, so added logic to ensure that the original request image_id matches the type of image being returned from database by matching against container_format attr61547 flaw in ec2 cloud api, _get_image method , if doing a search for aki-0000009, yet that image name doesn't exist, it strips off aki- and looks for any image_id 0000009 and if there was an image match that happens to be an ami instead of aki, it will go ahead and deregister the ami instead. That behavior is unintended, so added logic to ensure that the original request image_id matches the type of image being returned from database by matching against container_format attr
@@ -61271,7 +61637,7 @@
61271 2 files changed, 2 insertions(+), 3 deletions(-)61637 2 files changed, 2 insertions(+), 3 deletions(-)
6127261638
61273commit 17fceb2368d63dd937dc5e9385158c01130557a761639commit 17fceb2368d63dd937dc5e9385158c01130557a7
61274Author: John Tran <jtran@attinteractive.com>61640Author: John Tran <jhtran@att.com>
61275Date: Fri Jul 8 14:19:35 2011 -070061641Date: Fri Jul 8 14:19:35 2011 -0700
6127661642
61277 peer review fix - per vish: 'This method automatically converts unknown formats to ami, which is the same logic used to display unknown images in the ec2 api. This will allow you to properly deregister raw images, etc.'61643 peer review fix - per vish: 'This method automatically converts unknown formats to ami, which is the same logic used to display unknown images in the ec2 api. This will allow you to properly deregister raw images, etc.'
@@ -61399,7 +61765,7 @@
61399 1 file changed, 6 insertions(+), 7 deletions(-)61765 1 file changed, 6 insertions(+), 7 deletions(-)
6140061766
61401commit 2c3eeb5f9f5f78d9cb8fb3e37d5b5e1610d3249961767commit 2c3eeb5f9f5f78d9cb8fb3e37d5b5e1610d32499
61402Author: John Tran <jtran@attinteractive.com>61768Author: John Tran <jhtran@att.com>
61403Date: Thu Jul 7 20:43:50 2011 -070061769Date: Thu Jul 7 20:43:50 2011 -0700
6140461770
61405 ec2 api _get_image method logic flaw that strips the hex16 digit off of the image name, and does a search against the db for it and ignores that it may not be the correct image, such as if doing a search for aki-0000009, yet that image name doesn't exist, it strips off aki- and looks for any image_id 0000009 and if there was an image match that happens to be an ami instead of aki, it will go ahead and deregister that. That behavior is unintended, so added logic to ensure that the original request image_id matches the type of image being returned from database by matching against container_format attr61771 ec2 api _get_image method logic flaw that strips the hex16 digit off of the image name, and does a search against the db for it and ignores that it may not be the correct image, such as if doing a search for aki-0000009, yet that image name doesn't exist, it strips off aki- and looks for any image_id 0000009 and if there was an image match that happens to be an ami instead of aki, it will go ahead and deregister that. That behavior is unintended, so added logic to ensure that the original request image_id matches the type of image being returned from database by matching against container_format attr
@@ -62891,7 +63257,7 @@
6289163257
62892commit 6843421be9cdef1fc12d3480889bdcfd96821e1b63258commit 6843421be9cdef1fc12d3480889bdcfd96821e1b
62893Merge: 666b3c3 2d1d6b363259Merge: 666b3c3 2d1d6b3
62894Author: John Tran <jtran@attinteractive.com>63260Author: John Tran <jhtran@att.com>
62895Date: Fri Jul 1 15:47:33 2011 +000063261Date: Fri Jul 1 15:47:33 2011 +0000
6289663262
62897 Added the GroupId param to any pertinent security_group methods that support it in the official AWS API.63263 Added the GroupId param to any pertinent security_group methods that support it in the official AWS API.
@@ -63021,7 +63387,7 @@
63021 Ensure auto-delete is false on Topic Queues.63387 Ensure auto-delete is false on Topic Queues.
6302263388
63023commit 2d1d6b3e5c3957490c7cb49b38e72ca3baf9f8b063389commit 2d1d6b3e5c3957490c7cb49b38e72ca3baf9f8b0
63024Author: John Tran <jtran@attinteractive.com>63390Author: John Tran <jhtran@att.com>
63025Date: Thu Jun 30 17:52:33 2011 -070063391Date: Thu Jun 30 17:52:33 2011 -0700
6302663392
63027 refactored the security_group tests a bit and broke up a few of them into smaller tests63393 refactored the security_group tests a bit and broke up a few of them into smaller tests
@@ -64226,7 +64592,7 @@
64226 1 file changed, 5 insertions(+), 5 deletions(-)64592 1 file changed, 5 insertions(+), 5 deletions(-)
6422764593
64228commit 73c49dd3497f46953d7fa9ac3f5caebcafa0202364594commit 73c49dd3497f46953d7fa9ac3f5caebcafa02023
64229Author: John Tran <jtran@attinteractive.com>64595Author: John Tran <jhtran@att.com>
64230Date: Mon Jun 27 15:30:56 2011 -070064596Date: Mon Jun 27 15:30:56 2011 -0700
6423164597
64232 breaking up into individual tests for security_groups64598 breaking up into individual tests for security_groups
@@ -65346,7 +65712,7 @@
65346 trunk merge65712 trunk merge
6534765713
65348commit 129da3c5206443acc117b33b440a05b064fd711e65714commit 129da3c5206443acc117b33b440a05b064fd711e
65349Author: John Tran <jtran@attinteractive.com>65715Author: John Tran <jhtran@att.com>
65350Date: Thu Jun 23 15:57:57 2011 -070065716Date: Thu Jun 23 15:57:57 2011 -0700
6535165717
65352 removing erroneous block, must've been a copy and paste fat finger65718 removing erroneous block, must've been a copy and paste fat finger
@@ -65355,7 +65721,7 @@
65355 1 file changed, 7 deletions(-)65721 1 file changed, 7 deletions(-)
6535665722
65357commit 5004736930c0c9619ba3efd48910a47fd58e092165723commit 5004736930c0c9619ba3efd48910a47fd58e0921
65358Author: John Tran <jtran@attinteractive.com>65724Author: John Tran <jhtran@att.com>
65359Date: Thu Jun 23 15:42:57 2011 -070065725Date: Thu Jun 23 15:42:57 2011 -0700
6536065726
65361 specify keyword, or direct_api proxy method blows up65727 specify keyword, or direct_api proxy method blows up
@@ -65522,13 +65888,13 @@
6552265888
65523commit 85c8b60a67897ea2a37e305d901d1637bdae5e8d65889commit 85c8b60a67897ea2a37e305d901d1637bdae5e8d
65524Merge: d5206c7 df8448f65890Merge: d5206c7 df8448f
65525Author: John Tran <jtran@attinteractive.com>65891Author: John Tran <jhtran@att.com>
65526Date: Thu Jun 23 11:32:27 2011 -070065892Date: Thu Jun 23 11:32:27 2011 -0700
6552765893
65528 merge from trunk65894 merge from trunk
6552965895
65530commit d5206c7f41c435fd39c1bb9c0fd7ec53c9685f4365896commit d5206c7f41c435fd39c1bb9c0fd7ec53c9685f43
65531Author: John Tran <jtran@attinteractive.com>65897Author: John Tran <jhtran@att.com>
65532Date: Thu Jun 23 11:31:22 2011 -070065898Date: Thu Jun 23 11:31:22 2011 -0700
6553365899
65534 altho security_group authorize & revoke tests already exist in test_api, adding some direct ec2 api method tests. added group_id param support to the pertinent security group methods65900 altho security_group authorize & revoke tests already exist in test_api, adding some direct ec2 api method tests. added group_id param support to the pertinent security group methods
@@ -65625,7 +65991,7 @@
6562565991
65626commit df8448f9f63c9f610c23cf092c14f4eb8547fe4665992commit df8448f9f63c9f610c23cf092c14f4eb8547fe46
65627Merge: ca9384e dca372d65993Merge: ca9384e dca372d
65628Author: John Tran <jtran@attinteractive.com>65994Author: John Tran <jhtran@att.com>
65629Date: Thu Jun 23 15:57:55 2011 +000065995Date: Thu Jun 23 15:57:55 2011 +0000
6563065996
65631 "nova-manage checks if user is member of proj, prior to adding role for that project"65997 "nova-manage checks if user is member of proj, prior to adding role for that project"
@@ -66391,7 +66757,7 @@
66391 merge with trunk66757 merge with trunk
6639266758
66393commit 3f2c0521f1c8462380c68d5245b5754867738fa166759commit 3f2c0521f1c8462380c68d5245b5754867738fa1
66394Author: John Tran <jtran@attinteractive.com>66760Author: John Tran <jhtran@att.com>
66395Date: Tue Jun 21 18:14:31 2011 -070066761Date: Tue Jun 21 18:14:31 2011 -0700
6639666762
66397 ec2 api describe_security_groups allow group_id param , added tests for create/delete security group in test_cloud although also exists in test_api this tests directly the ec2 method.66763 ec2 api describe_security_groups allow group_id param , added tests for create/delete security group in test_cloud although also exists in test_api this tests directly the ec2 method.
@@ -66759,7 +67125,7 @@
66759 4 files changed, 81 insertions(+), 40 deletions(-)67125 4 files changed, 81 insertions(+), 40 deletions(-)
6676067126
66761commit dca372d68ab99126f22c7467af12de30bb4488e467127commit dca372d68ab99126f22c7467af12de30bb4488e4
66762Author: John Tran <jtran@attinteractive.com>67128Author: John Tran <jhtran@att.com>
66763Date: Mon Jun 20 15:28:34 2011 -070067129Date: Mon Jun 20 15:28:34 2011 -0700
6676467130
66765 nova-manage checks if user is member of proj, prior to adding role for that project67131 nova-manage checks if user is member of proj, prior to adding role for that project
@@ -69381,7 +69747,7 @@
6938169747
69382commit 91e34d37d2907295e892e96ca2c3039c7fbe14bf69748commit 91e34d37d2907295e892e96ca2c3039c7fbe14bf
69383Merge: 8e6fabd 05fecdf69749Merge: 8e6fabd 05fecdf
69384Author: John Tran <jtran@attinteractive.com>69750Author: John Tran <jhtran@att.com>
69385Date: Sat Jun 11 01:31:10 2011 +000069751Date: Sat Jun 11 01:31:10 2011 +0000
6938669752
69387 ec2 api method allocate_address ; raises exception.NoFloatingIpsDefined instead of UnknownError when there aren't any floating ips available.69753 ec2 api method allocate_address ; raises exception.NoFloatingIpsDefined instead of UnknownError when there aren't any floating ips available.
@@ -69533,7 +69899,7 @@
69533 1 file changed, 1 insertion(+), 1 deletion(-)69899 1 file changed, 1 insertion(+), 1 deletion(-)
6953469900
69535commit 05fecdf873a5c02dcb13c841304df872411d418369901commit 05fecdf873a5c02dcb13c841304df872411d4183
69536Author: John Tran <jtran@attinteractive.com>69902Author: John Tran <jhtran@att.com>
69537Date: Fri Jun 10 11:10:58 2011 -070069903Date: Fri Jun 10 11:10:58 2011 -0700
6953869904
69539 added new exception more descriptive of not having available floating addresses avail for allocation69905 added new exception more descriptive of not having available floating addresses avail for allocation
@@ -69544,7 +69910,7 @@
69544 3 files changed, 6 insertions(+), 2 deletions(-)69910 3 files changed, 6 insertions(+), 2 deletions(-)
6954569911
69546commit 0e7a2042cc5922bb014a77080ec0bdb93bbf575c69912commit 0e7a2042cc5922bb014a77080ec0bdb93bbf575c
69547Author: John Tran <jtran@attinteractive.com>69913Author: John Tran <jhtran@att.com>
69548Date: Fri Jun 10 10:28:03 2011 -070069914Date: Fri Jun 10 10:28:03 2011 -0700
6954969915
69550 raise instance instead of class69916 raise instance instead of class
@@ -69562,7 +69928,7 @@
69562 1 file changed, 1 insertion(+), 1 deletion(-)69928 1 file changed, 1 insertion(+), 1 deletion(-)
6956369929
69564commit e763a0ac8981bdbee44c054c6be08b9f1a5d634d69930commit e763a0ac8981bdbee44c054c6be08b9f1a5d634d
69565Author: John Tran <jtran@attinteractive.com>69931Author: John Tran <jhtran@att.com>
69566Date: Fri Jun 10 10:24:24 2011 -070069932Date: Fri Jun 10 10:24:24 2011 -0700
6956769933
69568 style change69934 style change
@@ -69836,7 +70202,7 @@
69836 2 files changed, 18 insertions(+), 5 deletions(-)70202 2 files changed, 18 insertions(+), 5 deletions(-)
6983770203
69838commit 463e0388308760dbf3bf2b3fa901d8076d002f9170204commit 463e0388308760dbf3bf2b3fa901d8076d002f91
69839Author: John Tran <jtran@attinteractive.com>70205Author: John Tran <jhtran@att.com>
69840Date: Thu Jun 9 00:01:42 2011 -070070206Date: Thu Jun 9 00:01:42 2011 -0700
6984170207
69842 matched the inner exception specifically, instead of catching all RemoteError exceptions70208 matched the inner exception specifically, instead of catching all RemoteError exceptions
@@ -69872,7 +70238,7 @@
69872 Fix merge conflict70238 Fix merge conflict
6987370239
69874commit b11cf9bc7b1b9792bdab77aa72dc6163f3e44ca170240commit b11cf9bc7b1b9792bdab77aa72dc6163f3e44ca1
69875Author: John Tran <jtran@attinteractive.com>70241Author: John Tran <jhtran@att.com>
69876Date: Wed Jun 8 17:17:40 2011 -070070242Date: Wed Jun 8 17:17:40 2011 -0700
6987770243
69878 removing custom exception, instead using NoFloatingIpsDefined70244 removing custom exception, instead using NoFloatingIpsDefined
@@ -69881,7 +70247,7 @@
69881 1 file changed, 6 deletions(-)70247 1 file changed, 6 deletions(-)
6988270248
69883commit 3764be9d65483a9e431b69f37e3516fa2096136270249commit 3764be9d65483a9e431b69f37e3516fa20961362
69884Author: John Tran <jtran@attinteractive.com>70250Author: John Tran <jhtran@att.com>
69885Date: Wed Jun 8 17:15:35 2011 -070070251Date: Wed Jun 8 17:15:35 2011 -0700
6988670252
69887 raises exception.NoFloatingIpsDefined instead of UnknownError70253 raises exception.NoFloatingIpsDefined instead of UnknownError
@@ -69900,7 +70266,7 @@
69900 1 file changed, 12 insertions(+), 2 deletions(-)70266 1 file changed, 12 insertions(+), 2 deletions(-)
6990170267
69902commit 70e4d73778d448cb7f122bc0a2a0c43a78fff46a70268commit 70e4d73778d448cb7f122bc0a2a0c43a78fff46a
69903Author: John Tran <jtran@attinteractive.com>70269Author: John Tran <jhtran@att.com>
69904Date: Wed Jun 8 15:23:33 2011 -070070270Date: Wed Jun 8 15:23:33 2011 -0700
6990570271
69906 added a test for allocate_address & added error handling for api instead of returning 'UnknownError', will give information 'AllocateAddressError: NoMoreAddresses70272 added a test for allocate_address & added error handling for api instead of returning 'UnknownError', will give information 'AllocateAddressError: NoMoreAddresses
@@ -70014,7 +70380,7 @@
7001470380
70015commit f83011a8046afc7f84dbfc08b3610bc942aefed270381commit f83011a8046afc7f84dbfc08b3610bc942aefed2
70016Merge: 8ff87c6 a90974370382Merge: 8ff87c6 a909743
70017Author: John Tran <jtran@attinteractive.com>70383Author: John Tran <jhtran@att.com>
70018Date: Wed Jun 8 17:36:09 2011 +000070384Date: Wed Jun 8 17:36:09 2011 +0000
7001970385
70020 adding Authorizer key for ImportPublicKey70386 adding Authorizer key for ImportPublicKey
@@ -70111,7 +70477,7 @@
70111 1 file changed, 5 insertions(+)70477 1 file changed, 5 insertions(+)
7011270478
70113commit a90974347dd396990d8e6fadeac15abd07cb19ea70479commit a90974347dd396990d8e6fadeac15abd07cb19ea
70114Author: John Tran <jtran@attinteractive.com>70480Author: John Tran <jhtran@att.com>
70115Date: Tue Jun 7 14:36:40 2011 -070070481Date: Tue Jun 7 14:36:40 2011 -0700
7011670482
70117 adding Authorizer key for ImportPublicKey70483 adding Authorizer key for ImportPublicKey
@@ -70361,7 +70727,7 @@
7036170727
70362commit a94992f199edd37ae3efd68c618b19c2ebab1a8870728commit a94992f199edd37ae3efd68c618b19c2ebab1a88
70363Merge: 90d6bf7 81099d670729Merge: 90d6bf7 81099d6
70364Author: John Tran <jtran@attinteractive.com>70730Author: John Tran <jhtran@att.com>
70365Date: Tue Jun 7 01:30:59 2011 +000070731Date: Tue Jun 7 01:30:59 2011 +0000
7036670732
70367 run_instances will check image for 'available' status before attempting to create a new instance70733 run_instances will check image for 'available' status before attempting to create a new instance
@@ -70386,7 +70752,7 @@
7038670752
70387commit 81099d63d6ff30b21116f7f0e5c782abadf0ab9070753commit 81099d63d6ff30b21116f7f0e5c782abadf0ab90
70388Merge: 5d89721 4d50e8470754Merge: 5d89721 4d50e84
70389Author: John Tran <jtran@attinteractive.com>70755Author: John Tran <jhtran@att.com>
70390Date: Mon Jun 6 14:37:30 2011 -070070756Date: Mon Jun 6 14:37:30 2011 -0700
7039170757
70392 merged from trunk70758 merged from trunk
@@ -71357,7 +71723,7 @@
71357 Merge trunk.71723 Merge trunk.
7135871724
71359commit 5d89721f5fa3212146749236c666f0e584c8590f71725commit 5d89721f5fa3212146749236c666f0e584c8590f
71360Author: John Tran <jtran@attinteractive.com>71726Author: John Tran <jhtran@att.com>
71361Date: Wed Jun 1 16:27:51 2011 -070071727Date: Wed Jun 1 16:27:51 2011 -0700
7136271728
71363 merged, with trunk, fixed the test failure, and split the test into 3 as per peer review.71729 merged, with trunk, fixed the test failure, and split the test into 3 as per peer review.
@@ -71367,7 +71733,7 @@
7136771733
71368commit 78093e8101d1981fc1fbafc963023bc70ad6b3b671734commit 78093e8101d1981fc1fbafc963023bc70ad6b3b6
71369Merge: 1f61272 ced790071735Merge: 1f61272 ced7900
71370Author: John Tran <jtran@attinteractive.com>71736Author: John Tran <jhtran@att.com>
71371Date: Wed Jun 1 23:26:18 2011 +000071737Date: Wed Jun 1 23:26:18 2011 +0000
7137271738
71373 Fixes nova-manage bug. When a nova-network host has allocated floating ips *AND* some associated, the nova-manage floating list <host> would throw exception because was expecting hash with 'ec2_id' key , however, the obj returned is a sqlalchemy obj and the attr we need is 'hostname'.71739 Fixes nova-manage bug. When a nova-network host has allocated floating ips *AND* some associated, the nova-manage floating list <host> would throw exception because was expecting hash with 'ec2_id' key , however, the obj returned is a sqlalchemy obj and the attr we need is 'hostname'.
@@ -71392,7 +71758,7 @@
71392 2 files changed, 78 insertions(+), 20 deletions(-)71758 2 files changed, 78 insertions(+), 20 deletions(-)
7139371759
71394commit ced79009e6555eb75f3862184834a883d37b206271760commit ced79009e6555eb75f3862184834a883d37b2062
71395Author: John Tran <jtran@attinteractive.com>71761Author: John Tran <jhtran@att.com>
71396Date: Wed Jun 1 16:01:41 2011 -070071762Date: Wed Jun 1 16:01:41 2011 -0700
7139771763
71398 fixed as per peer review to make more consistent71764 fixed as per peer review to make more consistent
@@ -71402,7 +71768,7 @@
7140271768
71403commit 5e800a901f0ec051715dbd0f917975f89840686071769commit 5e800a901f0ec051715dbd0f917975f898406860
71404Merge: a0cffc4 1f6127271770Merge: a0cffc4 1f61272
71405Author: John Tran <jtran@attinteractive.com>71771Author: John Tran <jhtran@att.com>
71406Date: Wed Jun 1 15:54:45 2011 -070071772Date: Wed Jun 1 15:54:45 2011 -0700
7140771773
71408 merged from trunk71774 merged from trunk
@@ -73409,7 +73775,7 @@
73409 1 file changed, 11 insertions(+)73775 1 file changed, 11 insertions(+)
7341073776
73411commit 7c0564baf72cbb5c3693ab72c72684a5c6b333c573777commit 7c0564baf72cbb5c3693ab72c72684a5c6b333c5
73412Author: John Tran <jtran@attinteractive.com>73778Author: John Tran <jhtran@att.com>
73413Date: Thu May 26 10:22:45 2011 -070073779Date: Thu May 26 10:22:45 2011 -0700
7341473780
73415 instance obj returned is not a hash, instead is sqlalchemy obj and hostname attr is what the logic is looking for73781 instance obj returned is not a hash, instead is sqlalchemy obj and hostname attr is what the logic is looking for
@@ -74714,7 +75080,7 @@
74714 1 file changed, 2 insertions(+), 2 deletions(-)75080 1 file changed, 2 insertions(+), 2 deletions(-)
7471575081
74716commit a0cffc4de8ba4b15958e320308477d42287858e775082commit a0cffc4de8ba4b15958e320308477d42287858e7
74717Author: John Tran <jtran@attinteractive.com>75083Author: John Tran <jhtran@att.com>
74718Date: Tue May 24 09:43:52 2011 -070075084Date: Tue May 24 09:43:52 2011 -0700
7471975085
74720 specified image_id keyword in exception arg75086 specified image_id keyword in exception arg
@@ -74731,7 +75097,7 @@
74731 When adding a keypair with ec2 API that already exists, give a friendly error and no traceback in nova-api75097 When adding a keypair with ec2 API that already exists, give a friendly error and no traceback in nova-api
7473275098
74733commit 8e7c3121fab4b5a87c2efe865f3c06b1bd267cbc75099commit 8e7c3121fab4b5a87c2efe865f3c06b1bd267cbc
74734Author: John Tran <jtran@attinteractive.com>75100Author: John Tran <jhtran@att.com>
74735Date: Tue May 24 08:59:02 2011 -070075101Date: Tue May 24 08:59:02 2011 -0700
7473675102
74737 added imageid string to exception, per peer review75103 added imageid string to exception, per peer review
@@ -74927,7 +75293,7 @@
74927 1 file changed, 2 insertions(+), 2 deletions(-)75293 1 file changed, 2 insertions(+), 2 deletions(-)
7492875294
74929commit 7a521f49f6daf0a0a37a9ef98ff1ea8813f04a6f75295commit 7a521f49f6daf0a0a37a9ef98ff1ea8813f04a6f
74930Author: John Tran <jtran@attinteractive.com>75296Author: John Tran <jhtran@att.com>
74931Date: Mon May 23 14:54:11 2011 -070075297Date: Mon May 23 14:54:11 2011 -0700
7493275298
74933 merged from trunk75299 merged from trunk
@@ -74958,7 +75324,7 @@
7495875324
74959commit 1816b3e6a99da512aeb51822e90d40f30b44301475325commit 1816b3e6a99da512aeb51822e90d40f30b443014
74960Merge: 0a3da15 e1795bd75326Merge: 0a3da15 e1795bd
74961Author: John Tran <jtran@attinteractive.com>75327Author: John Tran <jhtran@att.com>
74962Date: Mon May 23 14:27:56 2011 -070075328Date: Mon May 23 14:27:56 2011 -0700
7496375329
74964 merged from trunk75330 merged from trunk
@@ -75563,7 +75929,7 @@
7556375929
75564commit ff35d64de0228ed0ce7f0e617289d4423935fa3d75930commit ff35d64de0228ed0ce7f0e617289d4423935fa3d
75565Merge: b6d45a7 cbe89f175931Merge: b6d45a7 cbe89f1
75566Author: John Tran <jtran@attinteractive.com>75932Author: John Tran <jhtran@att.com>
75567Date: Fri May 20 06:51:29 2011 +000075933Date: Fri May 20 06:51:29 2011 +0000
7556875934
75569 Added an EC2 API endpoint that'll allow import of public key. Prior, api only allowed generation of new keys.75935 Added an EC2 API endpoint that'll allow import of public key. Prior, api only allowed generation of new keys.
@@ -77142,7 +77508,7 @@
7714277508
77143commit 8d8076ff87e988f40c9ee3a24b7c3963064921bd77509commit 8d8076ff87e988f40c9ee3a24b7c3963064921bd
77144Merge: ea5187e 0cf0b8977510Merge: ea5187e 0cf0b89
77145Author: John Tran <jtran@attinteractive.com>77511Author: John Tran <jhtran@att.com>
77146Date: Fri May 13 18:15:36 2011 +000077512Date: Fri May 13 18:15:36 2011 +0000
7714777513
77148 Adds proper error handling for images that can't be found and a test for deregister image.77514 Adds proper error handling for images that can't be found and a test for deregister image.
@@ -77489,7 +77855,7 @@
7748977855
77490commit cbe89f150f6c1e209405da6cbba4c3cf9163fd2e77856commit cbe89f150f6c1e209405da6cbba4c3cf9163fd2e
77491Merge: 7cd6e9f 057676677857Merge: 7cd6e9f 0576766
77492Author: John Tran <jtran@attinteractive.com>77858Author: John Tran <jhtran@att.com>
77493Date: Thu May 12 14:29:41 2011 -070077859Date: Thu May 12 14:29:41 2011 -0700
7749477860
77495 merged from trunk77861 merged from trunk
@@ -77534,7 +77900,7 @@
77534 2 files changed, 32 insertions(+)77900 2 files changed, 32 insertions(+)
7753577901
77536commit 0cf0b89f57392688c0a443b29408813ccb028c3877902commit 0cf0b89f57392688c0a443b29408813ccb028c38
77537Author: John Tran <jtran@attinteractive.com>77903Author: John Tran <jhtran@att.com>
77538Date: Thu May 12 12:51:03 2011 -070077904Date: Thu May 12 12:51:03 2011 -0700
7753977905
77540 incorporated ImageNotFound instead of NotFound77906 incorporated ImageNotFound instead of NotFound
@@ -77545,7 +77911,7 @@
7754577911
77546commit 71b1ddba52e4901124c47202598433abfe03bedf77912commit 71b1ddba52e4901124c47202598433abfe03bedf
77547Merge: 6dbec94 057676677913Merge: 6dbec94 0576766
77548Author: John Tran <jtran@attinteractive.com>77914Author: John Tran <jhtran@att.com>
77549Date: Thu May 12 12:23:31 2011 -070077915Date: Thu May 12 12:23:31 2011 -0700
7755077916
77551 merged from trunk77917 merged from trunk
@@ -77564,7 +77930,7 @@
77564 5 files changed, 371 insertions(+), 386 deletions(-)77930 5 files changed, 371 insertions(+), 386 deletions(-)
7756577931
77566commit 0a3da155228228d3f0eeac1efdea1e29eef2f3a077932commit 0a3da155228228d3f0eeac1efdea1e29eef2f3a0
77567Author: John Tran <jtran@attinteractive.com>77933Author: John Tran <jhtran@att.com>
77568Date: Thu May 12 12:04:39 2011 -070077934Date: Thu May 12 12:04:39 2011 -0700
7756977935
77570 changed NotFound exception to ImageNotFound77936 changed NotFound exception to ImageNotFound
@@ -77639,7 +78005,7 @@
7763978005
77640commit 86952493efb67b64b23766af094aa22deb21307f78006commit 86952493efb67b64b23766af094aa22deb21307f
77641Merge: 377b120 057676678007Merge: 377b120 0576766
77642Author: John Tran <jtran@attinteractive.com>78008Author: John Tran <jhtran@att.com>
77643Date: Thu May 12 11:25:12 2011 -070078009Date: Thu May 12 11:25:12 2011 -0700
7764478010
77645 merged from trunk78011 merged from trunk
@@ -79205,13 +79571,13 @@
7920579571
79206commit 377b120f689edcdad07eaf479dfac1ac7becabd079572commit 377b120f689edcdad07eaf479dfac1ac7becabd0
79207Merge: 10db492 65f05c479573Merge: 10db492 65f05c4
79208Author: John Tran <jtran@attinteractive.com>79574Author: John Tran <jhtran@att.com>
79209Date: Mon May 2 14:25:38 2011 -070079575Date: Mon May 2 14:25:38 2011 -0700
7921079576
79211 merged from trunk79577 merged from trunk
7921279578
79213commit 10db492376a8bb8409e3fb3c33707865ac0f3ee779579commit 10db492376a8bb8409e3fb3c33707865ac0f3ee7
79214Author: John Tran <jtran@attinteractive.com>79580Author: John Tran <jhtran@att.com>
79215Date: Mon May 2 14:25:21 2011 -070079581Date: Mon May 2 14:25:21 2011 -0700
7921679582
79217 implemented review suggestion EAFP style, and fixed test stub fake_show needs to have image_state = available or other tests will fail79583 implemented review suggestion EAFP style, and fixed test stub fake_show needs to have image_state = available or other tests will fail
@@ -79320,7 +79686,7 @@
7932079686
79321commit 42c8e73994c7d787aef0e2d97ea162ee5a2e130479687commit 42c8e73994c7d787aef0e2d97ea162ee5a2e1304
79322Merge: 585a181 c3ab4f079688Merge: 585a181 c3ab4f0
79323Author: John Tran <jtran@attinteractive.com>79689Author: John Tran <jhtran@att.com>
79324Date: Mon May 2 18:04:29 2011 +000079690Date: Mon May 2 18:04:29 2011 +0000
7932579691
79326 ApiError 'code' arg set to None, and will only display a 'code' as part of the str if specified.79692 ApiError 'code' arg set to None, and will only display a 'code' as part of the str if specified.
@@ -79698,7 +80064,7 @@
79698 Rebased to trunk rev 1030.80064 Rebased to trunk rev 1030.
7969980065
79700commit c3ab4f023e2636e254f940e08da0aded42c0e96b80066commit c3ab4f023e2636e254f940e08da0aded42c0e96b
79701Author: John Tran <jtran@attinteractive.com>80067Author: John Tran <jhtran@att.com>
79702Date: Mon Apr 25 12:55:59 2011 -040080068Date: Mon Apr 25 12:55:59 2011 -0400
7970380069
79704 removed extra newline80070 removed extra newline
@@ -79708,7 +80074,7 @@
7970880074
79709commit 6dbec949738443dfcb48679549f5082d728abdff80075commit 6dbec949738443dfcb48679549f5082d728abdff
79710Merge: 8482d87 08cf0db80076Merge: 8482d87 08cf0db
79711Author: John Tran <jtran@attinteractive.com>80077Author: John Tran <jhtran@att.com>
79712Date: Mon Apr 25 12:36:00 2011 -040080078Date: Mon Apr 25 12:36:00 2011 -0400
7971380079
79714 merged from trunk80080 merged from trunk
@@ -82156,7 +82522,7 @@
8215682522
82157commit 8b54c186a7475cb800ac0de81be3478bc795d09582523commit 8b54c186a7475cb800ac0de81be3478bc795d095
82158Merge: 0f7ea0f b54b6c282524Merge: 0f7ea0f b54b6c2
82159Author: John Tran <jtran@attinteractive.com>82525Author: John Tran <jhtran@att.com>
82160Date: Tue Apr 12 07:48:21 2011 +000082526Date: Tue Apr 12 07:48:21 2011 +0000
8216182527
82162 Add a unit test for terminate_instances.82528 Add a unit test for terminate_instances.
@@ -82654,7 +83020,7 @@
8265483020
82655commit 2a14bc00c0abd1e2d0349ace99db7aa922b5f57483021commit 2a14bc00c0abd1e2d0349ace99db7aa922b5f574
82656Merge: 9b449fc d137ffd83022Merge: 9b449fc d137ffd
82657Author: John Tran <jtran@attinteractive.com>83023Author: John Tran <jhtran@att.com>
82658Date: Fri Apr 8 18:02:55 2011 +000083024Date: Fri Apr 8 18:02:55 2011 +0000
8265983025
82660 Added a patch for python eventlet, when using install_venv.py (see FAQ # 1485)83026 Added a patch for python eventlet, when using install_venv.py (see FAQ # 1485)
@@ -83245,7 +83611,7 @@
83245 1 file changed, 1 insertion(+), 1 deletion(-)83611 1 file changed, 1 insertion(+), 1 deletion(-)
8324683612
83247commit 4c1c0b8357e2cffd5f9a2a1240439e1871f845f283613commit 4c1c0b8357e2cffd5f9a2a1240439e1871f845f2
83248Author: John Tran <jtran@attinteractive.com>83614Author: John Tran <jhtran@att.com>
83249Date: Wed Apr 6 19:43:58 2011 -070083615Date: Wed Apr 6 19:43:58 2011 -0700
8325083616
83251 add the tests83617 add the tests
@@ -83264,7 +83630,7 @@
83264 2 files changed, 7 insertions(+), 6 deletions(-)83630 2 files changed, 7 insertions(+), 6 deletions(-)
8326583631
83266commit 430975c2f7e354838a26cd81e59b5c0423a2c8fe83632commit 430975c2f7e354838a26cd81e59b5c0423a2c8fe
83267Author: John Tran <jtran@attinteractive.com>83633Author: John Tran <jhtran@att.com>
83268Date: Wed Apr 6 19:13:18 2011 -070083634Date: Wed Apr 6 19:13:18 2011 -0700
8326983635
83270 ApiError code should default to None, and will only display a code if one exists. Prior was output an 'ApiError: ApiError: error message' string, which is confusing83636 ApiError code should default to None, and will only display a code if one exists. Prior was output an 'ApiError: ApiError: error message' string, which is confusing
@@ -83273,7 +83639,7 @@
83273 1 file changed, 6 insertions(+), 2 deletions(-)83639 1 file changed, 6 insertions(+), 2 deletions(-)
8327483640
83275commit 655eb8fbd21376e694f8134e42f10ddbc1aafb0e83641commit 655eb8fbd21376e694f8134e42f10ddbc1aafb0e
83276Author: John Tran <jtran@attinteractive.com>83642Author: John Tran <jhtran@att.com>
83277Date: Wed Apr 6 18:22:03 2011 -070083643Date: Wed Apr 6 18:22:03 2011 -0700
8327883644
83279 ec2 api run_instances checks for image status must be 'available'. Overhauled test_run_instances for working set of test assertions83645 ec2 api run_instances checks for image status must be 'available'. Overhauled test_run_instances for working set of test assertions
@@ -83612,7 +83978,7 @@
83612 1 file changed, 1 insertion(+), 1 deletion(-)83978 1 file changed, 1 insertion(+), 1 deletion(-)
8361383979
83614commit d137ffdc2fb4e0298a6fb177df9e6a829932030183980commit d137ffdc2fb4e0298a6fb177df9e6a8299320301
83615Author: John Tran <jtran@attinteractive.com>83981Author: John Tran <jhtran@att.com>
83616Date: Tue Apr 5 18:35:15 2011 -070083982Date: Tue Apr 5 18:35:15 2011 -0700
8361783983
83618 Add a patch for python eventlet, when using install_venv.py (see FAQ # 1485)83984 Add a patch for python eventlet, when using install_venv.py (see FAQ # 1485)
@@ -84050,7 +84416,7 @@
8405084416
84051commit c0a8904508edb0687b588d40a7bd181d0393884f84417commit c0a8904508edb0687b588d40a7bd181d0393884f
84052Merge: 08417c4 d92322484418Merge: 08417c4 d923224
84053Author: John Tran <jtran@attinteractive.com>84419Author: John Tran <jhtran@att.com>
84054Date: Tue Apr 5 02:31:02 2011 +000084420Date: Tue Apr 5 02:31:02 2011 +0000
8405584421
84056 fix bug lp:682888 - DescribeImages has no unit tests.84422 fix bug lp:682888 - DescribeImages has no unit tests.
@@ -84918,7 +85284,7 @@
84918 1 file changed, 75 insertions(+), 4 deletions(-)85284 1 file changed, 75 insertions(+), 4 deletions(-)
8491985285
84920commit b54b6c200092054e38af1fa1e5885fe915e5314985286commit b54b6c200092054e38af1fa1e5885fe915e53149
84921Author: John Tran <jtran@attinteractive.com>85287Author: John Tran <jhtran@att.com>
84922Date: Wed Mar 30 13:10:11 2011 -070085288Date: Wed Mar 30 13:10:11 2011 -0700
8492385289
84924 submitting a unit test for terminate_instance85290 submitting a unit test for terminate_instance
@@ -84948,7 +85314,7 @@
84948 1 file changed, 4 insertions(+), 1 deletion(-)85314 1 file changed, 4 insertions(+), 1 deletion(-)
8494985315
84950commit 8482d87e3fe380704fac121240ebd29b9057283c85316commit 8482d87e3fe380704fac121240ebd29b9057283c
84951Author: John Tran <jtran@attinteractive.com>85317Author: John Tran <jhtran@att.com>
84952Date: Wed Mar 30 12:44:22 2011 -070085318Date: Wed Mar 30 12:44:22 2011 -0700
8495385319
84954 removed trailing whitespace85320 removed trailing whitespace
@@ -84957,7 +85323,7 @@
84957 1 file changed, 1 insertion(+), 1 deletion(-)85323 1 file changed, 1 insertion(+), 1 deletion(-)
8495885324
84959commit 655906ee7be1d906033bde7887293e6d61bae3d685325commit 655906ee7be1d906033bde7887293e6d61bae3d6
84960Author: John Tran <jtran@attinteractive.com>85326Author: John Tran <jhtran@att.com>
84961Date: Wed Mar 30 12:37:56 2011 -070085327Date: Wed Mar 30 12:37:56 2011 -0700
8496285328
84963 updated per code review, replaced NotFound with exception.NotFound85329 updated per code review, replaced NotFound with exception.NotFound
@@ -85481,7 +85847,7 @@
85481 1 file changed, 2 insertions(+), 10 deletions(-)85847 1 file changed, 2 insertions(+), 10 deletions(-)
8548285848
85483commit d92322400c31f1cad933da5117b24376d60a579885849commit d92322400c31f1cad933da5117b24376d60a5798
85484Author: John Tran <jtran@attinteractive.com>85850Author: John Tran <jhtran@att.com>
85485Date: Tue Mar 29 17:07:59 2011 -070085851Date: Tue Mar 29 17:07:59 2011 -0700
8548685852
85487 adding unit tests for describe_images85853 adding unit tests for describe_images
@@ -85659,7 +86025,7 @@
85659 4 files changed, 38 insertions(+), 11 deletions(-)86025 4 files changed, 38 insertions(+), 11 deletions(-)
8566086026
85661commit 3987547248e07719dbc63752100b695ef0be1a9c86027commit 3987547248e07719dbc63752100b695ef0be1a9c
85662Author: John Tran <jtran@attinteractive.com>86028Author: John Tran <jhtran@att.com>
85663Date: Tue Mar 29 13:44:38 2011 -070086029Date: Tue Mar 29 13:44:38 2011 -0700
8566486030
85665 initial unit test for describe images86031 initial unit test for describe images
@@ -85677,7 +86043,7 @@
85677 1 file changed, 1 insertion(+), 1 deletion(-)86043 1 file changed, 1 insertion(+), 1 deletion(-)
8567886044
85679commit ee00cb8057eac328c98dd9c040ffa324f11a87be86045commit ee00cb8057eac328c98dd9c040ffa324f11a87be
85680Author: John Tran <jtran@attinteractive.com>86046Author: John Tran <jhtran@att.com>
85681Date: Tue Mar 29 13:43:00 2011 -070086047Date: Tue Mar 29 13:43:00 2011 -0700
8568286048
85683 added blank lines in between functions & removed the test_describe_images (was meant for a diff bug lp682888)86049 added blank lines in between functions & removed the test_describe_images (was meant for a diff bug lp682888)
@@ -85994,7 +86360,7 @@
85994 2 files changed, 11 insertions(+), 7 deletions(-)86360 2 files changed, 11 insertions(+), 7 deletions(-)
8599586361
85996commit 1b67237d05e7103dc6b2beadd5782466682a136b86362commit 1b67237d05e7103dc6b2beadd5782466682a136b
85997Author: John Tran <jtran@attinteractive.com>86363Author: John Tran <jhtran@att.com>
85998Date: Mon Mar 28 18:19:56 2011 -070086364Date: Mon Mar 28 18:19:56 2011 -0700
8599986365
86000 cleaned up var name86366 cleaned up var name
@@ -86003,7 +86369,7 @@
86003 1 file changed, 2 insertions(+), 2 deletions(-)86369 1 file changed, 2 insertions(+), 2 deletions(-)
8600486370
86005commit 00afedaec5c6544bf9ff982d5f9d8e7b6b2a4b1986371commit 00afedaec5c6544bf9ff982d5f9d8e7b6b2a4b19
86006Author: John Tran <jtran@attinteractive.com>86372Author: John Tran <jhtran@att.com>
86007Date: Mon Mar 28 18:16:55 2011 -070086373Date: Mon Mar 28 18:16:55 2011 -0700
8600886374
86009 made changes per code review: 1) removed import of image from objectstore 2) changed to comments instaed of triple quotes.86375 made changes per code review: 1) removed import of image from objectstore 2) changed to comments instaed of triple quotes.
@@ -86299,7 +86665,7 @@
8629986665
86300commit c6a9bade80d44c0576f30608d33a1e5cbcd577e086666commit c6a9bade80d44c0576f30608d33a1e5cbcd577e0
86301Merge: 9ce24af ddbb00f86667Merge: 9ce24af ddbb00f
86302Author: John Tran <jtran@attinteractive.com>86668Author: John Tran <jhtran@att.com>
86303Date: Mon Mar 28 12:24:36 2011 -070086669Date: Mon Mar 28 12:24:36 2011 -0700
8630486670
86305 merged from trunk86671 merged from trunk
@@ -86384,7 +86750,7 @@
86384 3 files changed, 26 insertions(+), 12 deletions(-)86750 3 files changed, 26 insertions(+), 12 deletions(-)
8638586751
86386commit 9ce24afab007a9b5144c8c8a8f2fcc4157ba34d786752commit 9ce24afab007a9b5144c8c8a8f2fcc4157ba34d7
86387Author: John Tran <jtran@attinteractive.com>86753Author: John Tran <jhtran@att.com>
86388Date: Mon Mar 28 11:29:23 2011 -070086754Date: Mon Mar 28 11:29:23 2011 -0700
8638986755
86390 when image_id provided cannot be found, returns more informative error message.86756 when image_id provided cannot be found, returns more informative error message.
@@ -86991,7 +87357,7 @@
86991 1 file changed, 1 deletion(-)87357 1 file changed, 1 deletion(-)
8699287358
86993commit c400024de45073ccc23a6738c78518365a51156287359commit c400024de45073ccc23a6738c78518365a511562
86994Author: John Tran <jtran@attinteractive.com>87360Author: John Tran <jhtran@att.com>
86995Date: Fri Mar 25 13:17:51 2011 -070087361Date: Fri Mar 25 13:17:51 2011 -0700
8699687362
86997 added a simple test for describe_images with mock for detail funciton87363 added a simple test for describe_images with mock for detail funciton
@@ -89063,7 +89429,7 @@
89063 trunk merged89429 trunk merged
8906489430
89065commit 7cd6e9f1cf62ff5628ae4680aa66ada676c8c28889431commit 7cd6e9f1cf62ff5628ae4680aa66ada676c8c288
89066Author: John Tran <jtran@attinteractive.com>89432Author: John Tran <jhtran@att.com>
89067Date: Wed Mar 23 11:16:22 2011 -070089433Date: Wed Mar 23 11:16:22 2011 -0700
8906889434
89069 added myself to authors file89435 added myself to authors file
@@ -90218,7 +90584,7 @@
90218 Wrap update_dhcp in utils.synchronized.90584 Wrap update_dhcp in utils.synchronized.
9021990585
90220commit a105fd449a0b91cde3ab86cc552705dfe50e3f6d90586commit a105fd449a0b91cde3ab86cc552705dfe50e3f6d
90221Author: John Tran <jtran@attinteractive.com>90587Author: John Tran <jhtran@att.com>
90222Date: Mon Mar 21 14:35:19 2011 -070090588Date: Mon Mar 21 14:35:19 2011 -0700
9022390589
90224 if fingerprint data not provided, added logic to calculate it using the pub key.90590 if fingerprint data not provided, added logic to calculate it using the pub key.
@@ -90756,7 +91122,7 @@
90756 2 files changed, 3 insertions(+), 3 deletions(-)91122 2 files changed, 3 insertions(+), 3 deletions(-)
9075791123
90758commit 15a40f842cb8a4362fbd82e36e3df4af7ab46a8491124commit 15a40f842cb8a4362fbd82e36e3df4af7ab46a84
90759Author: John Tran <jtran@attinteractive.com>91125Author: John Tran <jhtran@att.com>
90760Date: Fri Mar 18 12:17:40 2011 -070091126Date: Fri Mar 18 12:17:40 2011 -0700
9076191127
90762 cleaned up tests stubs that were accidentally checked in91128 cleaned up tests stubs that were accidentally checked in
@@ -90774,7 +91140,7 @@
90774 1 file changed, 7 insertions(+), 1 deletion(-)91140 1 file changed, 7 insertions(+), 1 deletion(-)
9077591141
90776commit 5a9d2eb44ced0affe143e6274c9c9326f1c2d7da91142commit 5a9d2eb44ced0affe143e6274c9c9326f1c2d7da
90777Author: John Tran <jtran@attinteractive.com>91143Author: John Tran <jhtran@att.com>
90778Date: Fri Mar 18 11:49:11 2011 -070091144Date: Fri Mar 18 11:49:11 2011 -0700
9077991145
90780 created api endpoint to allow uploading of public key91146 created api endpoint to allow uploading of public key
9078191147
=== modified file 'PKG-INFO'
--- PKG-INFO 2012-08-27 14:50:40 +0000
+++ PKG-INFO 2012-12-18 13:07:55 +0000
@@ -1,6 +1,6 @@
1Metadata-Version: 1.01Metadata-Version: 1.0
2Name: nova2Name: nova
3Version: 2012.1.33Version: 2012.1.4
4Summary: cloud computing fabric controller4Summary: cloud computing fabric controller
5Home-page: http://www.openstack.org/5Home-page: http://www.openstack.org/
6Author: OpenStack6Author: OpenStack
77
=== modified file 'debian/changelog'
--- debian/changelog 2012-08-27 14:50:40 +0000
+++ debian/changelog 2012-12-18 13:07:55 +0000
@@ -1,3 +1,38 @@
1nova (2012.1.4+stable-20121217-9f277e38-0ubuntu1) precise-proposed; urgency=low
2
3 [ Chuck Short ]
4 * debian/*.logrotate: compress logfiles when they are rotated. (LP: #1049915)
5
6 [ Yolanda Robla Mota ]
7 * Resynchronize with stable/essex (9f277e38):
8 - [80fefe5] use_single_default_gateway does not function correctly
9 (LP: #1075859)
10 - [bd10241] Essex 2012.1.3 : Error deleting instance with 2 Nova Volumes
11 attached (LP: #1079745)
12 - [86a5937] do_refresh_security_group_rules in nova.virt.firewall is very
13 slow (LP: #1062314)
14 - [ae9c5f4] deallocate_fixed_ip attempts to update an already deleted
15 fixed_ip (LP: #1017633)
16 - [20f98c5] failed to allocate fixed ip because old deleted one exists
17 (LP: #996482)
18 - [75f6922] snapshot stays in saving state if the vm base image is deleted
19 (LP: #921774)
20 - [1076699] lock files may be removed in error dues to permissions issues
21 (LP: #1051924)
22 - [40c5e94] ensure_default_security_group() does not call sgh (LP: #1050982)
23 - [4eebe76] At termination, LXC rootfs is not always unmounted before
24 rmtree() is called (LP: #1046313)
25 - [47dabb3] Heavily loaded nova-compute instances don't sent reports
26 frequently enough (LP: #1045152)
27 - [b375b4f] When attach volume lost attach when node restart (LP: #1004791)
28 - [4ac2dcc] nova usage-list returns wrong usage (LP: #1043999)
29 - [014fcbc] Bridge port's hairpin mode not set after resuming a machine
30 (LP: #1040537)
31 - [2f35f8e] Nova flavor ephemeral space size reported incorrectly
32 (LP: #1026210)
33
34 -- Yolanda Robla Mota <yolanda.robla@canonical.com> Mon, 17 Dec 2012 10:39:28 +0000
35
1nova (2012.1.3+stable-20120827-4d2a4afe-0ubuntu1) precise-proposed; urgency=low36nova (2012.1.3+stable-20120827-4d2a4afe-0ubuntu1) precise-proposed; urgency=low
237
3 * New upstream snapshot, fixes FTBFS in -proposed. (LP: #1041120)38 * New upstream snapshot, fixes FTBFS in -proposed. (LP: #1041120)
439
=== modified file 'debian/nova-api-ec2.logrotate'
--- debian/nova-api-ec2.logrotate 2012-02-24 10:08:10 +0000
+++ debian/nova-api-ec2.logrotate 2012-12-18 13:07:55 +0000
@@ -1,4 +1,7 @@
1/var/log/nova/nova-api-ec2.log {1/var/log/nova/nova-api-ec2.log {
2 daily2 daily
3 missingok3 missingok
4 compress
5 delaycompress
6 notifempty
4}7}
58
=== modified file 'debian/nova-api-metadata.logrotate'
--- debian/nova-api-metadata.logrotate 2012-02-24 10:08:10 +0000
+++ debian/nova-api-metadata.logrotate 2012-12-18 13:07:55 +0000
@@ -1,4 +1,7 @@
1/var/log/nova/nova-api-metadata.log {1/var/log/nova/nova-api-metadata.log {
2 daily2 daily
3 missingok3 missingok
4 compress
5 delaycompress
6 notifempty
4}7}
58
=== modified file 'debian/nova-api-os-compute.logrotate'
--- debian/nova-api-os-compute.logrotate 2012-02-24 10:08:10 +0000
+++ debian/nova-api-os-compute.logrotate 2012-12-18 13:07:55 +0000
@@ -1,4 +1,7 @@
1/var/log/nova/nova-api-os-compute.log {1/var/log/nova/nova-api-os-compute.log {
2 daily2 daily
3 missingok3 missingok
4 compress
5 delaycompress
6 notifempty
4}7}
58
=== modified file 'debian/nova-api.logrotate'
--- debian/nova-api.logrotate 2011-02-18 09:36:22 +0000
+++ debian/nova-api.logrotate 2012-12-18 13:07:55 +0000
@@ -1,4 +1,7 @@
1/var/log/nova/nova-api.log {1/var/log/nova/nova-api.log {
2 daily2 daily
3 missingok3 missingok
4 compress
5 delaycompress
6 notifempty
4}7}
58
=== modified file 'debian/nova-cert.logrotate'
--- debian/nova-cert.logrotate 2012-01-26 10:29:13 +0000
+++ debian/nova-cert.logrotate 2012-12-18 13:07:55 +0000
@@ -1,4 +1,7 @@
1/var/log/nova/nova-cert.log {1/var/log/nova/nova-cert.log {
2 daily2 daily
3 missingok3 missingok
4 compress
5 delaycompress
6 notifempty
4}7}
58
=== modified file 'debian/nova-common.nova-manage.logrotate'
--- debian/nova-common.nova-manage.logrotate 2012-04-02 11:17:33 +0000
+++ debian/nova-common.nova-manage.logrotate 2012-12-18 13:07:55 +0000
@@ -1,4 +1,7 @@
1/var/log/nova/nova-manage.log {1/var/log/nova/nova-manage.log {
2 daily2 daily
3 missingok3 missingok
4 compress
5 delaycompress
6 notifempty
4}7}
58
=== modified file 'debian/nova-compute.logrotate'
--- debian/nova-compute.logrotate 2011-02-18 09:36:22 +0000
+++ debian/nova-compute.logrotate 2012-12-18 13:07:55 +0000
@@ -1,4 +1,7 @@
1/var/log/nova/nova-compute.log {1/var/log/nova/nova-compute.log {
2 daily2 daily
3 missingok3 missingok
4 compress
5 delaycompress
6 notifempty
4}7}
58
=== modified file 'debian/nova-console.logrotate'
--- debian/nova-console.logrotate 2012-02-17 10:59:59 +0000
+++ debian/nova-console.logrotate 2012-12-18 13:07:55 +0000
@@ -2,4 +2,7 @@
2 daily2 daily
3 copytruncate3 copytruncate
4 missingok4 missingok
5 compress
6 delaycompress
7 notifempty
5}8}
69
=== modified file 'debian/nova-consoleauth.logrotate'
--- debian/nova-consoleauth.logrotate 2012-03-20 11:06:11 +0000
+++ debian/nova-consoleauth.logrotate 2012-12-18 13:07:55 +0000
@@ -2,4 +2,7 @@
2 daily2 daily
3 copytruncate3 copytruncate
4 missingok4 missingok
5 compress
6 delaycompress
7 notifempty
5}8}
69
=== modified file 'debian/nova-network.logrotate'
--- debian/nova-network.logrotate 2011-02-18 09:36:22 +0000
+++ debian/nova-network.logrotate 2012-12-18 13:07:55 +0000
@@ -1,4 +1,7 @@
1/var/log/nova/nova-network.log {1/var/log/nova/nova-network.log {
2 daily2 daily
3 missingok3 missingok
4 compress
5 delaycompress
6 notifempty
4}7}
58
=== modified file 'debian/nova-network.nova-dhcpbridge.logrotate'
--- debian/nova-network.nova-dhcpbridge.logrotate 2012-04-02 11:17:33 +0000
+++ debian/nova-network.nova-dhcpbridge.logrotate 2012-12-18 13:07:55 +0000
@@ -1,4 +1,7 @@
1/var/log/nova/nova-dhcpbridge.log {1/var/log/nova/nova-dhcpbridge.log {
2 daily2 daily
3 missingok3 missingok
4 compress
5 delaycompress
6 notifempty
4}7}
58
=== modified file 'debian/nova-objectstore.logrotate'
--- debian/nova-objectstore.logrotate 2012-01-13 09:51:10 +0000
+++ debian/nova-objectstore.logrotate 2012-12-18 13:07:55 +0000
@@ -4,4 +4,7 @@
4 postrotate4 postrotate
5 restart nova-objectstore5 restart nova-objectstore
6 endscript6 endscript
7 compress
8 delaycompress
9 notifempty
7}10}
811
=== modified file 'debian/nova-scheduler.logrotate'
--- debian/nova-scheduler.logrotate 2011-02-18 09:36:22 +0000
+++ debian/nova-scheduler.logrotate 2012-12-18 13:07:55 +0000
@@ -1,4 +1,7 @@
1/var/log/nova/nova-scheduler.log {1/var/log/nova/nova-scheduler.log {
2 daily2 daily
3 missingok3 missingok
4 compress
5 delaycompress
6 notifempty
4}7}
58
=== modified file 'debian/nova-vncproxy.logrotate'
--- debian/nova-vncproxy.logrotate 2011-05-25 15:57:03 +0000
+++ debian/nova-vncproxy.logrotate 2012-12-18 13:07:55 +0000
@@ -1,4 +1,7 @@
1/var/log/nova/nova-vncproxy.log {1/var/log/nova/nova-vncproxy.log {
2 daily2 daily
3 missingok3 missingok
4 compress
5 delaycompress
6 notifempty
4}7}
58
=== modified file 'debian/nova-volume.logrotate'
--- debian/nova-volume.logrotate 2011-02-18 09:36:22 +0000
+++ debian/nova-volume.logrotate 2012-12-18 13:07:55 +0000
@@ -1,4 +1,7 @@
1/var/log/nova/nova-volume.log {1/var/log/nova/nova-volume.log {
2 daily2 daily
3 missingok3 missingok
4 compress
5 delaycompress
6 notifempty
4}7}
58
=== modified file 'debian/nova-xvpvncproxy.logrotate'
--- debian/nova-xvpvncproxy.logrotate 2012-03-02 11:04:04 +0000
+++ debian/nova-xvpvncproxy.logrotate 2012-12-18 13:07:55 +0000
@@ -1,4 +1,7 @@
1/var/log/nova/nova-vncproxy.log {1/var/log/nova/nova-vncproxy.log {
2 daily2 daily
3 missingok3 missingok
4}
5\ No newline at end of file4\ No newline at end of file
5 compress
6 delaycompress
7 notifempty
8}
69
=== modified file 'nova.egg-info/PKG-INFO'
--- nova.egg-info/PKG-INFO 2012-08-27 14:50:40 +0000
+++ nova.egg-info/PKG-INFO 2012-12-18 13:07:55 +0000
@@ -1,6 +1,6 @@
1Metadata-Version: 1.01Metadata-Version: 1.0
2Name: nova2Name: nova
3Version: 2012.1.33Version: 2012.1.4
4Summary: cloud computing fabric controller4Summary: cloud computing fabric controller
5Home-page: http://www.openstack.org/5Home-page: http://www.openstack.org/
6Author: OpenStack6Author: OpenStack
77
=== modified file 'nova.egg-info/SOURCES.txt'
--- nova.egg-info/SOURCES.txt 2012-08-27 14:50:40 +0000
+++ nova.egg-info/SOURCES.txt 2012-12-18 13:07:55 +0000
@@ -1,6 +1,3 @@
1.gitignore
2.gitreview
3.mailmap
4Authors1Authors
5ChangeLog2ChangeLog
6HACKING.rst3HACKING.rst
74
=== modified file 'nova/api/openstack/compute/contrib/flavorextradata.py'
--- nova/api/openstack/compute/contrib/flavorextradata.py 2012-03-12 12:09:45 +0000
+++ nova/api/openstack/compute/contrib/flavorextradata.py 2012-12-18 13:07:55 +0000
@@ -37,7 +37,7 @@
37class FlavorextradataController(wsgi.Controller):37class FlavorextradataController(wsgi.Controller):
38 def _get_flavor_refs(self):38 def _get_flavor_refs(self):
39 """Return a dictionary mapping flavorid to flavor_ref."""39 """Return a dictionary mapping flavorid to flavor_ref."""
40 flavor_refs = instance_types.get_all_types(True)40 flavor_refs = instance_types.get_all_types()
41 rval = {}41 rval = {}
42 for name, obj in flavor_refs.iteritems():42 for name, obj in flavor_refs.iteritems():
43 rval[obj['flavorid']] = obj43 rval[obj['flavorid']] = obj
4444
=== modified file 'nova/api/openstack/compute/contrib/simple_tenant_usage.py'
--- nova/api/openstack/compute/contrib/simple_tenant_usage.py 2012-03-09 13:07:19 +0000
+++ nova/api/openstack/compute/contrib/simple_tenant_usage.py 2012-12-18 13:07:55 +0000
@@ -24,6 +24,7 @@
24from nova.compute import api24from nova.compute import api
25from nova import exception25from nova import exception
26from nova import flags26from nova import flags
27from nova import utils
2728
2829
29FLAGS = flags.FLAGS30FLAGS = flags.FLAGS
@@ -217,6 +218,9 @@
217 authorize_list(context)218 authorize_list(context)
218219
219 (period_start, period_stop, detailed) = self._get_datetime_range(req)220 (period_start, period_stop, detailed) = self._get_datetime_range(req)
221 now = utils.utcnow()
222 if period_stop > now:
223 period_stop = now
220 usages = self._tenant_usages_for_period(context,224 usages = self._tenant_usages_for_period(context,
221 period_start,225 period_start,
222 period_stop,226 period_stop,
@@ -232,6 +236,9 @@
232 authorize_show(context, {'project_id': tenant_id})236 authorize_show(context, {'project_id': tenant_id})
233237
234 (period_start, period_stop, ignore) = self._get_datetime_range(req)238 (period_start, period_stop, ignore) = self._get_datetime_range(req)
239 now = utils.utcnow()
240 if period_stop > now:
241 period_stop = now
235 usage = self._tenant_usages_for_period(context,242 usage = self._tenant_usages_for_period(context,
236 period_start,243 period_start,
237 period_stop,244 period_stop,
238245
=== modified file 'nova/compute/api.py'
--- nova/compute/api.py 2012-08-24 02:09:33 +0000
+++ nova/compute/api.py 2012-12-18 13:07:55 +0000
@@ -166,6 +166,7 @@
166166
167 self.network_api = network_api or network.API()167 self.network_api = network_api or network.API()
168 self.volume_api = volume_api or volume.API()168 self.volume_api = volume_api or volume.API()
169 self.sgh = utils.import_object(FLAGS.security_group_handler)
169 super(API, self).__init__(**kwargs)170 super(API, self).__init__(**kwargs)
170171
171 def _check_injected_file_quota(self, context, injected_files):172 def _check_injected_file_quota(self, context, injected_files):
@@ -708,6 +709,7 @@
708 'user_id': context.user_id,709 'user_id': context.user_id,
709 'project_id': context.project_id}710 'project_id': context.project_id}
710 self.db.security_group_create(context, values)711 self.db.security_group_create(context, values)
712 self.sgh.trigger_security_group_create_refresh(context, values)
711713
712 def trigger_security_group_rules_refresh(self, context, security_group_id):714 def trigger_security_group_rules_refresh(self, context, security_group_id):
713 """Called when a rule is added to or removed from a security_group."""715 """Called when a rule is added to or removed from a security_group."""
714716
=== modified file 'nova/db/sqlalchemy/api.py'
--- nova/db/sqlalchemy/api.py 2012-08-27 14:50:40 +0000
+++ nova/db/sqlalchemy/api.py 2012-12-18 13:07:55 +0000
@@ -1047,7 +1047,7 @@
1047@require_context1047@require_context
1048def fixed_ip_get_by_address(context, address, session=None):1048def fixed_ip_get_by_address(context, address, session=None):
1049 result = model_query(context, models.FixedIp, session=session,1049 result = model_query(context, models.FixedIp, session=session,
1050 read_deleted="yes").\1050 read_deleted=context.read_deleted).\
1051 filter_by(address=address).\1051 filter_by(address=address).\
1052 first()1052 first()
1053 if not result:1053 if not result:
10541054
=== modified file 'nova/manager.py'
--- nova/manager.py 2012-02-17 10:59:59 +0000
+++ nova/manager.py 2012-12-18 13:07:55 +0000
@@ -53,6 +53,8 @@
5353
54"""54"""
5555
56import eventlet
57
56from nova.db import base58from nova.db import base
57from nova import flags59from nova import flags
58from nova import log as logging60from nova import log as logging
@@ -153,6 +155,9 @@
153155
154 try:156 try:
155 task(self, context)157 task(self, context)
158 # NOTE(tiantian): After finished a task, allow manager to
159 # do other work (report_state, processing AMPQ request etc.)
160 eventlet.sleep(0)
156 except Exception as e:161 except Exception as e:
157 if raise_on_error:162 if raise_on_error:
158 raise163 raise
159164
=== modified file 'nova/network/linux_net.py'
--- nova/network/linux_net.py 2012-08-24 02:09:33 +0000
+++ nova/network/linux_net.py 2012-12-18 13:07:55 +0000
@@ -627,6 +627,7 @@
627 default_gw_vif[instance_id] = vifs[0]['id']627 default_gw_vif[instance_id] = vifs[0]['id']
628628
629 for datum in data:629 for datum in data:
630 instance_id = datum['instance_id']
630 if instance_id in default_gw_vif:631 if instance_id in default_gw_vif:
631 # we don't want default gateway for this fixed ip632 # we don't want default gateway for this fixed ip
632 if default_gw_vif[instance_id] != datum['vif_id']:633 if default_gw_vif[instance_id] != datum['vif_id']:
633634
=== modified file 'nova/network/manager.py'
--- nova/network/manager.py 2012-08-27 14:50:40 +0000
+++ nova/network/manager.py 2012-12-18 13:07:55 +0000
@@ -923,8 +923,7 @@
923 context=read_deleted_context)923 context=read_deleted_context)
924 # deallocate fixed ips924 # deallocate fixed ips
925 for fixed_ip in fixed_ips:925 for fixed_ip in fixed_ips:
926 self.deallocate_fixed_ip(read_deleted_context, fixed_ip['address'],926 self.deallocate_fixed_ip(context, fixed_ip['address'], **kwargs)
927 **kwargs)
928927
929 # deallocate vifs (mac addresses)928 # deallocate vifs (mac addresses)
930 self.db.virtual_interface_delete_by_instance(read_deleted_context,929 self.db.virtual_interface_delete_by_instance(read_deleted_context,
931930
=== modified file 'nova/tests/api/openstack/compute/contrib/test_simple_tenant_usage.py'
--- nova/tests/api/openstack/compute/contrib/test_simple_tenant_usage.py 2012-06-05 09:50:59 +0000
+++ nova/tests/api/openstack/compute/contrib/test_simple_tenant_usage.py 2012-12-18 13:07:55 +0000
@@ -28,6 +28,7 @@
28from nova import context28from nova import context
29from nova import flags29from nova import flags
30from nova import test30from nova import test
31from nova import utils
31from nova.tests.api.openstack import fakes32from nova.tests.api.openstack import fakes
3233
3334
@@ -40,8 +41,9 @@
40EPHEMERAL_GB = 2041EPHEMERAL_GB = 20
41MEMORY_MB = 102442MEMORY_MB = 1024
42VCPUS = 243VCPUS = 2
43STOP = datetime.datetime.utcnow()44NOW = utils.utcnow()
44START = STOP - datetime.timedelta(hours=HOURS)45START = NOW - datetime.timedelta(hours=HOURS)
46STOP = NOW
4547
4648
47def fake_instance_type_get(self, context, instance_type_id):49def fake_instance_type_get(self, context, instance_type_id):
@@ -91,10 +93,10 @@
91 'faketenant_1',93 'faketenant_1',
92 is_admin=False)94 is_admin=False)
9395
94 def test_verify_index(self):96 def _test_verify_index(self, start, stop):
95 req = webob.Request.blank(97 req = webob.Request.blank(
96 '/v2/faketenant_0/os-simple-tenant-usage?start=%s&end=%s' %98 '/v2/faketenant_0/os-simple-tenant-usage?start=%s&end=%s' %
97 (START.isoformat(), STOP.isoformat()))99 (start.isoformat(), stop.isoformat()))
98 req.method = "GET"100 req.method = "GET"
99 req.headers["content-type"] = "application/json"101 req.headers["content-type"] = "application/json"
100102
@@ -115,6 +117,20 @@
115 SERVERS * VCPUS * HOURS)117 SERVERS * VCPUS * HOURS)
116 self.assertFalse(usages[i].get('server_usages'))118 self.assertFalse(usages[i].get('server_usages'))
117119
120 def test_verify_index(self):
121 self._test_verify_index(START, STOP)
122
123 def test_verify_index_future_end_time(self):
124 future = NOW + datetime.timedelta(hours=HOURS)
125 self._test_verify_index(START, future)
126
127 def test_verify_show(self):
128 self._test_verify_show(START, STOP)
129
130 def test_verify_show_future_end_time(self):
131 future = NOW + datetime.timedelta(hours=HOURS)
132 self._test_verify_show(START, future)
133
118 def test_verify_detailed_index(self):134 def test_verify_detailed_index(self):
119 req = webob.Request.blank(135 req = webob.Request.blank(
120 '/v2/faketenant_0/os-simple-tenant-usage?'136 '/v2/faketenant_0/os-simple-tenant-usage?'
@@ -133,11 +149,11 @@
133 for j in xrange(SERVERS):149 for j in xrange(SERVERS):
134 self.assertEqual(int(servers[j]['hours']), HOURS)150 self.assertEqual(int(servers[j]['hours']), HOURS)
135151
136 def test_verify_show(self):152 def _test_verify_show(self, start, stop):
137 req = webob.Request.blank(153 req = webob.Request.blank(
138 '/v2/faketenant_0/os-simple-tenant-usage/'154 '/v2/faketenant_0/os-simple-tenant-usage/'
139 'faketenant_0?start=%s&end=%s' %155 'faketenant_0?start=%s&end=%s' %
140 (START.isoformat(), STOP.isoformat()))156 (start.isoformat(), stop.isoformat()))
141 req.method = "GET"157 req.method = "GET"
142 req.headers["content-type"] = "application/json"158 req.headers["content-type"] = "application/json"
143159
144160
=== modified file 'nova/tests/fakelibvirt.py'
--- nova/tests/fakelibvirt.py 2012-03-12 12:09:45 +0000
+++ nova/tests/fakelibvirt.py 2012-12-18 13:07:55 +0000
@@ -73,6 +73,8 @@
73VIR_DOMAIN_SHUTOFF = 573VIR_DOMAIN_SHUTOFF = 5
74VIR_DOMAIN_CRASHED = 674VIR_DOMAIN_CRASHED = 6
7575
76VIR_DOMAIN_XML_SECURE = 1
77
76VIR_CPU_COMPARE_ERROR = -178VIR_CPU_COMPARE_ERROR = -1
77VIR_CPU_COMPARE_INCOMPATIBLE = 079VIR_CPU_COMPARE_INCOMPATIBLE = 0
78VIR_CPU_COMPARE_IDENTICAL = 180VIR_CPU_COMPARE_IDENTICAL = 1
7981
=== modified file 'nova/tests/network/test_manager.py'
--- nova/tests/network/test_manager.py 2012-08-27 14:50:40 +0000
+++ nova/tests/network/test_manager.py 2012-12-18 13:07:55 +0000
@@ -909,6 +909,41 @@
909 fixed = db.fixed_ip_get_by_address(elevated, fix_addr)909 fixed = db.fixed_ip_get_by_address(elevated, fix_addr)
910 self.assertFalse(fixed['allocated'])910 self.assertFalse(fixed['allocated'])
911911
912 def test_deallocate_fixed_deleted(self):
913 """Verify doesn't deallocate deleted fixed_ip from deleted network"""
914
915 def network_get(_context, network_id):
916 return networks[network_id]
917
918 def teardown_network_on_host(_context, network):
919 if network['id'] == 0:
920 raise Exception('Correct network/fixed_ip assertion')
921
922 self.stubs.Set(db, 'network_get', network_get)
923 self.stubs.Set(self.network, '_teardown_network_on_host',
924 teardown_network_on_host)
925
926 context1 = context.RequestContext('user', 'project1')
927
928 instance = db.instance_create(context1,
929 {'project_id': 'project1'})
930
931 elevated = context1.elevated()
932 fix_addr = db.fixed_ip_associate_pool(elevated, 1, instance['id'])
933 db.fixed_ip_update(elevated, fix_addr, {'deleted': 1})
934 elevated.read_deleted = 'yes'
935 delfixed = db.fixed_ip_get_by_address(elevated, fix_addr)
936 values = {'address': fix_addr,
937 'network_id': 0,
938 'instance_id': delfixed['instance_id']}
939 db.fixed_ip_create(elevated, values)
940 elevated.read_deleted = 'no'
941 newfixed = db.fixed_ip_get_by_address(elevated, fix_addr)
942 elevated.read_deleted = 'yes'
943
944 deallocate = self.network.deallocate_fixed_ip
945 self.assertRaises(Exception, deallocate, context1, fix_addr, 'fake')
946
912 def test_deallocate_fixed_no_vif(self):947 def test_deallocate_fixed_no_vif(self):
913 """Verify that deallocate doesn't raise when no vif is returned.948 """Verify that deallocate doesn't raise when no vif is returned.
914949
915950
=== modified file 'nova/tests/test_db_api.py'
--- nova/tests/test_db_api.py 2012-06-05 09:50:59 +0000
+++ nova/tests/test_db_api.py 2012-12-18 13:07:55 +0000
@@ -151,6 +151,8 @@
151 db.network_delete_safe, ctxt, network['id'])151 db.network_delete_safe, ctxt, network['id'])
152 db.fixed_ip_update(ctxt, address2, {'allocated': False})152 db.fixed_ip_update(ctxt, address2, {'allocated': False})
153 network = db.network_delete_safe(ctxt, network['id'])153 network = db.network_delete_safe(ctxt, network['id'])
154 self.assertRaises(exception.FixedIpNotFoundForAddress,
155 db.fixed_ip_get_by_address, ctxt, address1)
154 ctxt = ctxt.elevated(read_deleted='yes')156 ctxt = ctxt.elevated(read_deleted='yes')
155 fixed_ip = db.fixed_ip_get_by_address(ctxt, address1)157 fixed_ip = db.fixed_ip_get_by_address(ctxt, address1)
156 self.assertTrue(fixed_ip['deleted'])158 self.assertTrue(fixed_ip['deleted'])
157159
=== modified file 'nova/tests/test_libvirt.py'
--- nova/tests/test_libvirt.py 2012-08-27 14:50:40 +0000
+++ nova/tests/test_libvirt.py 2012-12-18 13:07:55 +0000
@@ -1856,11 +1856,23 @@
1856 def test_do_refresh_security_group_rules(self):1856 def test_do_refresh_security_group_rules(self):
1857 instance_ref = self._create_instance_ref()1857 instance_ref = self._create_instance_ref()
1858 self.mox.StubOutWithMock(self.fw,1858 self.mox.StubOutWithMock(self.fw,
1859 'instance_rules')
1860 self.mox.StubOutWithMock(self.fw,
1859 'add_filters_for_instance',1861 'add_filters_for_instance',
1860 use_mock_anything=True)1862 use_mock_anything=True)
1863
1864 self.fw.instance_rules(instance_ref,
1865 mox.IgnoreArg()).AndReturn((None, None))
1866 self.fw.add_filters_for_instance(instance_ref, mox.IgnoreArg(),
1867 mox.IgnoreArg())
1868 self.fw.instance_rules(instance_ref,
1869 mox.IgnoreArg()).AndReturn((None, None))
1870 self.fw.add_filters_for_instance(instance_ref, mox.IgnoreArg(),
1871 mox.IgnoreArg())
1872 self.mox.ReplayAll()
1873
1861 self.fw.prepare_instance_filter(instance_ref, mox.IgnoreArg())1874 self.fw.prepare_instance_filter(instance_ref, mox.IgnoreArg())
1862 self.fw.instances[instance_ref['id']] = instance_ref1875 self.fw.instances[instance_ref['id']] = instance_ref
1863 self.mox.ReplayAll()
1864 self.fw.do_refresh_security_group_rules("fake")1876 self.fw.do_refresh_security_group_rules("fake")
18651877
1866 @test.skip_if(missing_libvirt(), "Test requires libvirt")1878 @test.skip_if(missing_libvirt(), "Test requires libvirt")
18671879
=== modified file 'nova/tests/test_linux_net.py'
--- nova/tests/test_linux_net.py 2012-03-20 11:06:11 +0000
+++ nova/tests/test_linux_net.py 2012-12-18 13:07:55 +0000
@@ -302,7 +302,7 @@
302 self.assertEquals(actual_hosts, expected)302 self.assertEquals(actual_hosts, expected)
303303
304 def test_get_dhcp_opts_for_nw00(self):304 def test_get_dhcp_opts_for_nw00(self):
305 expected_opts = 'NW-0,3\nNW-3,3\nNW-4,3'305 expected_opts = 'NW-3,3\nNW-4,3'
306 actual_opts = self.driver.get_dhcp_opts(self.context, networks[0])306 actual_opts = self.driver.get_dhcp_opts(self.context, networks[0])
307307
308 self.assertEquals(actual_opts, expected_opts)308 self.assertEquals(actual_opts, expected_opts)
309309
=== modified file 'nova/utils.py'
--- nova/utils.py 2012-08-24 02:09:33 +0000
+++ nova/utils.py 2012-12-18 13:07:55 +0000
@@ -21,6 +21,7 @@
2121
22import contextlib22import contextlib
23import datetime23import datetime
24import errno
24import functools25import functools
25import hashlib26import hashlib
26import inspect27import inspect
@@ -1000,11 +1001,12 @@
1000 {'filename': filename, 'pid': pid})1001 {'filename': filename, 'pid': pid})
1001 try:1002 try:
1002 os.kill(int(pid), 0)1003 os.kill(int(pid), 0)
1003 except OSError, e:1004 except OSError as e:
1004 # PID wasn't found1005 if e.errno == errno.ESRCH:
1005 delete_if_exists(os.path.join(FLAGS.lock_path, filename))1006 # PID wasn't found
1006 LOG.debug(_('Cleaned sentinel %(filename)s for pid %(pid)s') %1007 delete_if_exists(os.path.join(FLAGS.lock_path, filename))
1007 {'filename': filename, 'pid': pid})1008 LOG.debug(_('Cleaned sentinel %(filename)s for pid %(pid)s') %
1009 {'filename': filename, 'pid': pid})
10081010
1009 # cleanup lock files1011 # cleanup lock files
1010 for filename in files:1012 for filename in files:
@@ -1013,8 +1015,8 @@
1013 continue1015 continue
1014 try:1016 try:
1015 stat_info = os.stat(os.path.join(FLAGS.lock_path, filename))1017 stat_info = os.stat(os.path.join(FLAGS.lock_path, filename))
1016 except OSError as (errno, strerror):1018 except OSError as e:
1017 if errno == 2: # doesn't exist1019 if e.errno == errno.ENOENT:
1018 continue1020 continue
1019 else:1021 else:
1020 raise1022 raise
@@ -1033,8 +1035,8 @@
10331035
1034 try:1036 try:
1035 os.unlink(pathname)1037 os.unlink(pathname)
1036 except OSError as (errno, strerror):1038 except OSError as e:
1037 if errno == 2: # doesn't exist1039 if e.errno == errno.ENOENT:
1038 return1040 return
1039 else:1041 else:
1040 raise1042 raise
10411043
=== modified file 'nova/version.py'
--- nova/version.py 2012-08-24 02:09:33 +0000
+++ nova/version.py 2012-12-18 13:07:55 +0000
@@ -14,7 +14,7 @@
14# License for the specific language governing permissions and limitations14# License for the specific language governing permissions and limitations
15# under the License.15# under the License.
1616
17NOVA_VERSION = ['2012', '1', '3']17NOVA_VERSION = ['2012', '1', '4']
18YEAR, COUNT, REVISION = NOVA_VERSION18YEAR, COUNT, REVISION = NOVA_VERSION
19FINAL = False # This becomes true at Release Candidate time19FINAL = False # This becomes true at Release Candidate time
2020
2121
=== modified file 'nova/virt/disk/api.py'
--- nova/virt/disk/api.py 2012-08-24 02:09:33 +0000
+++ nova/virt/disk/api.py 2012-12-18 13:07:55 +0000
@@ -176,6 +176,7 @@
176 @staticmethod176 @staticmethod
177 def _device_for_path(path):177 def _device_for_path(path):
178 device = None178 device = None
179 path = os.path.realpath(path)
179 with open("/proc/mounts", 'r') as ifp:180 with open("/proc/mounts", 'r') as ifp:
180 for line in ifp:181 for line in ifp:
181 fields = line.split()182 fields = line.split()
182183
=== modified file 'nova/virt/firewall.py'
--- nova/virt/firewall.py 2012-07-02 19:54:17 +0000
+++ nova/virt/firewall.py 2012-12-18 13:07:55 +0000
@@ -133,7 +133,8 @@
133 def prepare_instance_filter(self, instance, network_info):133 def prepare_instance_filter(self, instance, network_info):
134 self.instances[instance['id']] = instance134 self.instances[instance['id']] = instance
135 self.network_infos[instance['id']] = network_info135 self.network_infos[instance['id']] = network_info
136 self.add_filters_for_instance(instance)136 ipv4_rules, ipv6_rules = self.instance_rules(instance, network_info)
137 self.add_filters_for_instance(instance, ipv4_rules, ipv6_rules)
137 LOG.debug(_('Filters added to instance %s'), instance['uuid'])138 LOG.debug(_('Filters added to instance %s'), instance['uuid'])
138 self.refresh_provider_fw_rules()139 self.refresh_provider_fw_rules()
139 LOG.debug(_('Provider Firewall Rules refreshed'))140 LOG.debug(_('Provider Firewall Rules refreshed'))
@@ -166,7 +167,8 @@
166 for rule in ipv6_rules:167 for rule in ipv6_rules:
167 self.iptables.ipv6['filter'].add_rule(chain_name, rule)168 self.iptables.ipv6['filter'].add_rule(chain_name, rule)
168169
169 def add_filters_for_instance(self, instance):170 def add_filters_for_instance(self, instance, inst_ipv4_rules,
171 inst_ipv6_rules):
170 network_info = self.network_infos[instance['id']]172 network_info = self.network_infos[instance['id']]
171 chain_name = self._instance_chain_name(instance)173 chain_name = self._instance_chain_name(instance)
172 if FLAGS.use_ipv6:174 if FLAGS.use_ipv6:
@@ -175,8 +177,7 @@
175 ipv4_rules, ipv6_rules = self._filters_for_instance(chain_name,177 ipv4_rules, ipv6_rules = self._filters_for_instance(chain_name,
176 network_info)178 network_info)
177 self._add_filters('local', ipv4_rules, ipv6_rules)179 self._add_filters('local', ipv4_rules, ipv6_rules)
178 ipv4_rules, ipv6_rules = self.instance_rules(instance, network_info)180 self._add_filters(chain_name, inst_ipv4_rules, inst_ipv6_rules)
179 self._add_filters(chain_name, ipv4_rules, ipv6_rules)
180181
181 def remove_filters_for_instance(self, instance):182 def remove_filters_for_instance(self, instance):
182 chain_name = self._instance_chain_name(instance)183 chain_name = self._instance_chain_name(instance)
@@ -361,10 +362,17 @@
361 self.iptables.apply()362 self.iptables.apply()
362363
363 @utils.synchronized('iptables', external=True)364 @utils.synchronized('iptables', external=True)
365 def _inner_do_refresh_rules(self, instance, ipv4_rules,
366 ipv6_rules):
367 self.remove_filters_for_instance(instance)
368 self.add_filters_for_instance(instance, ipv4_rules, ipv6_rules)
369
364 def do_refresh_security_group_rules(self, security_group):370 def do_refresh_security_group_rules(self, security_group):
365 for instance in self.instances.values():371 for instance in self.instances.values():
366 self.remove_filters_for_instance(instance)372 network_info = self.network_infos[instance['id']]
367 self.add_filters_for_instance(instance)373 ipv4_rules, ipv6_rules = self.instance_rules(instance,
374 network_info)
375 self._inner_do_refresh_rules(instance, ipv4_rules, ipv6_rules)
368376
369 def refresh_provider_fw_rules(self):377 def refresh_provider_fw_rules(self):
370 """See :class:`FirewallDriver` docs."""378 """See :class:`FirewallDriver` docs."""
371379
=== modified file 'nova/virt/libvirt/connection.py'
--- nova/virt/libvirt/connection.py 2012-08-27 14:50:40 +0000
+++ nova/virt/libvirt/connection.py 2012-12-18 13:07:55 +0000
@@ -549,6 +549,13 @@
549 connection_info,549 connection_info,
550 mount_device)550 mount_device)
551551
552 # TODO(danms) once libvirt has support for LXC hotplug,
553 # replace this re-define with use of the
554 # VIR_DOMAIN_AFFECT_LIVE & VIR_DOMAIN_AFFECT_CONFIG flags with
555 # attachDevice()
556 domxml = virt_dom.XMLDesc(libvirt.VIR_DOMAIN_XML_SECURE)
557 self._conn.defineXML(domxml)
558
552 @staticmethod559 @staticmethod
553 def _get_disk_xml(xml, device):560 def _get_disk_xml(xml, device):
554 """Returns the xml for the disk mounted at device"""561 """Returns the xml for the disk mounted at device"""
@@ -583,6 +590,13 @@
583 connection_info,590 connection_info,
584 mount_device)591 mount_device)
585592
593 # TODO(danms) once libvirt has support for LXC hotplug,
594 # replace this re-define with use of the
595 # VIR_DOMAIN_AFFECT_LIVE & VIR_DOMAIN_AFFECT_CONFIG flags with
596 # detachDevice()
597 domxml = virt_dom.XMLDesc(libvirt.VIR_DOMAIN_XML_SECURE)
598 self._conn.defineXML(domxml)
599
586 @exception.wrap_exception()600 @exception.wrap_exception()
587 def _attach_lxc_volume(self, xml, virt_dom, instance_name):601 def _attach_lxc_volume(self, xml, virt_dom, instance_name):
588 LOG.info(_('attaching LXC block device'))602 LOG.info(_('attaching LXC block device'))
@@ -681,8 +695,7 @@
681 else:695 else:
682 metadata['disk_format'] = image_format696 metadata['disk_format'] = image_format
683697
684 if 'container_format' in base:698 metadata['container_format'] = base.get('container_format', 'bare')
685 metadata['container_format'] = base['container_format']
686699
687 # Find the disk700 # Find the disk
688 xml_desc = virt_dom.XMLDesc(0)701 xml_desc = virt_dom.XMLDesc(0)
@@ -928,8 +941,8 @@
928 LOG.info(_("Automatically confirming migration %d"), migration.id)941 LOG.info(_("Automatically confirming migration %d"), migration.id)
929 self.compute_api.confirm_resize(ctxt, migration.instance_uuid)942 self.compute_api.confirm_resize(ctxt, migration.instance_uuid)
930943
931 def _enable_hairpin(self, instance):944 def _enable_hairpin(self, xml):
932 interfaces = self.get_interfaces(instance['name'])945 interfaces = self.get_interfaces(xml)
933 for interface in interfaces:946 for interface in interfaces:
934 utils.execute('tee',947 utils.execute('tee',
935 '/sys/class/net/%s/brport/hairpin_mode' % interface,948 '/sys/class/net/%s/brport/hairpin_mode' % interface,
@@ -951,7 +964,6 @@
951964
952 self._create_new_domain(xml)965 self._create_new_domain(xml)
953 LOG.debug(_("Instance is running"), instance=instance)966 LOG.debug(_("Instance is running"), instance=instance)
954 self._enable_hairpin(instance)
955 self.firewall_driver.apply_instance_filter(instance, network_info)967 self.firewall_driver.apply_instance_filter(instance, network_info)
956968
957 def _wait_for_boot():969 def _wait_for_boot():
@@ -1619,6 +1631,7 @@
1619 else:1631 else:
1620 # createXML call creates a transient domain1632 # createXML call creates a transient domain
1621 domain = self._conn.createXML(xml, launch_flags)1633 domain = self._conn.createXML(xml, launch_flags)
1634 self._enable_hairpin(domain.XMLDesc(0))
16221635
1623 return domain1636 return domain
16241637
@@ -1675,14 +1688,12 @@
16751688
1676 return disks1689 return disks
16771690
1678 def get_interfaces(self, instance_name):1691 def get_interfaces(self, xml):
1679 """1692 """
1680 Note that this function takes an instance name.1693 Note that this function takes an instance domain xml.
16811694
1682 Returns a list of all network interfaces for this instance.1695 Returns a list of all network interfaces for this instance.
1683 """1696 """
1684 domain = self._lookup_by_name(instance_name)
1685 xml = domain.XMLDesc(0)
1686 doc = None1697 doc = None
16871698
1688 try:1699 try:
@@ -1765,6 +1776,8 @@
1765 total += 11776 total += 1
1766 else:1777 else:
1767 total += len(vcpus[1])1778 total += len(vcpus[1])
1779 # NOTE(gtt116): give change to do other task.
1780 greenthread.sleep(0)
1768 return total1781 return total
17691782
1770 def get_memory_mb_used(self):1783 def get_memory_mb_used(self):
@@ -2325,7 +2338,8 @@
2325 except exception.InstanceNotFound:2338 except exception.InstanceNotFound:
2326 # Instance was deleted during the check so ignore it2339 # Instance was deleted during the check so ignore it
2327 pass2340 pass
23282341 # NOTE(gtt116): give change to do other task.
2342 greenthread.sleep(0)
2329 # Disk available least size2343 # Disk available least size
2330 available_least_size = dk_sz_gb * (1024 ** 3) - instances_sz2344 available_least_size = dk_sz_gb * (1024 ** 3) - instances_sz
2331 return (available_least_size / 1024 / 1024 / 1024)2345 return (available_least_size / 1024 / 1024 / 1024)
23322346
=== modified file 'nova/virt/libvirt/volume.py'
--- nova/virt/libvirt/volume.py 2012-06-05 09:50:59 +0000
+++ nova/virt/libvirt/volume.py 2012-12-18 13:07:55 +0000
@@ -112,10 +112,11 @@
112 (iscsi_command, out, err))112 (iscsi_command, out, err))
113 return (out, err)113 return (out, err)
114114
115 def _iscsiadm_update(self, iscsi_properties, property_key, property_value):115 def _iscsiadm_update(self, iscsi_properties, property_key, property_value,
116 **kwargs):
116 iscsi_command = ('--op', 'update', '-n', property_key,117 iscsi_command = ('--op', 'update', '-n', property_key,
117 '-v', property_value)118 '-v', property_value)
118 return self._run_iscsiadm(iscsi_properties, iscsi_command)119 return self._run_iscsiadm(iscsi_properties, iscsi_command, **kwargs)
119120
120 @utils.synchronized('connect_volume')121 @utils.synchronized('connect_volume')
121 def connect_volume(self, connection_info, mount_device):122 def connect_volume(self, connection_info, mount_device):
@@ -201,7 +202,8 @@
201 devices = self.connection.get_all_block_devices()202 devices = self.connection.get_all_block_devices()
202 devices = [dev for dev in devices if dev.startswith(device_prefix)]203 devices = [dev for dev in devices if dev.startswith(device_prefix)]
203 if not devices:204 if not devices:
204 self._iscsiadm_update(iscsi_properties, "node.startup", "manual")205 self._iscsiadm_update(iscsi_properties, "node.startup", "manual",
206 check_exit_code=[0, 255])
205 self._run_iscsiadm(iscsi_properties, ("--logout",),207 self._run_iscsiadm(iscsi_properties, ("--logout",),
206 check_exit_code=[0, 255])208 check_exit_code=[0, 255])
207 self._run_iscsiadm(iscsi_properties, ('--op', 'delete'),209 self._run_iscsiadm(iscsi_properties, ('--op', 'delete'),

Subscribers

People subscribed via source and target branches

to all changes: