Merge lp:~jtv/maas/1.6-bug-1354511 into lp:~maas-committers/maas/trunk

Proposed by Jeroen T. Vermeulen
Status: Superseded
Proposed branch: lp:~jtv/maas/1.6-bug-1354511
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 139 lines (+52/-14) (has conflicts)
4 files modified
src/maasserver/rpc/tests/test_regionservice.py (+27/-12)
src/provisioningserver/drivers/osystem/ubuntu.py (+1/-2)
src/provisioningserver/import_images/boot_resources.py (+15/-0)
src/provisioningserver/upgrade_cluster.py (+9/-0)
Text conflict in src/maasserver/rpc/tests/test_regionservice.py
Text conflict in src/provisioningserver/import_images/boot_resources.py
Text conflict in src/provisioningserver/upgrade_cluster.py
To merge this branch: bzr merge lp:~jtv/maas/1.6-bug-1354511
Reviewer Review Type Date Requested Status
MAAS Maintainers Pending
Review via email: mp+230175@code.launchpad.net

This proposal has been superseded by a proposal from 2014-08-08.

Commit message

Backport trunk r2668: When timing out nodes that haven't finished commissioning, compare the last-update timestamp to the database clock (from which it was also generated), not to the Python-side clock. Timezone skew between the two could cause nodes to time out immediately, or hours late.

Description of the change

Straight backport. For self-approval.

Jeroen

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/maasserver/api.py'
2=== modified file 'src/maasserver/rpc/regionservice.py'
3=== modified file 'src/maasserver/rpc/tests/test_regionservice.py'
4--- src/maasserver/rpc/tests/test_regionservice.py 2014-08-08 15:02:16 +0000
5+++ src/maasserver/rpc/tests/test_regionservice.py 2014-08-08 20:15:32 +0000
6@@ -1170,18 +1170,33 @@
7 getPort = getServiceNamed.return_value.getPort
8 getPort.side_effect = asynchronous(lambda: example_port)
9
10- example_ipv4_addrs = {
11- factory.getRandomIPAddress(),
12- factory.getRandomIPAddress(),
13- }
14- example_ipv6_addrs = {
15- factory.make_ipv6_address(),
16- factory.make_ipv6_address(),
17- }
18- example_link_local_addrs = {
19- factory.getRandomIPInNetwork(netaddr.ip.IPV4_LINK_LOCAL),
20- factory.getRandomIPInNetwork(netaddr.ip.IPV6_LINK_LOCAL),
21- }
22+<<<<<<< TREE
23+ example_ipv4_addrs = {
24+ factory.getRandomIPAddress(),
25+ factory.getRandomIPAddress(),
26+ }
27+ example_ipv6_addrs = {
28+ factory.make_ipv6_address(),
29+ factory.make_ipv6_address(),
30+ }
31+ example_link_local_addrs = {
32+ factory.getRandomIPInNetwork(netaddr.ip.IPV4_LINK_LOCAL),
33+ factory.getRandomIPInNetwork(netaddr.ip.IPV6_LINK_LOCAL),
34+ }
35+=======
36+ example_ipv4_addrs = {
37+ factory.getRandomIPAddress(),
38+ factory.getRandomIPAddress(),
39+ }
40+ example_ipv6_addrs = {
41+ factory.get_random_ipv6_address(),
42+ factory.get_random_ipv6_address(),
43+ }
44+ example_link_local_addrs = {
45+ factory.getRandomIPInNetwork(netaddr.ip.IPV4_LINK_LOCAL),
46+ factory.getRandomIPInNetwork(netaddr.ip.IPV6_LINK_LOCAL),
47+ }
48+>>>>>>> MERGE-SOURCE
49 get_all_interface_addresses = self.patch(
50 regionservice, "get_all_interface_addresses")
51 get_all_interface_addresses.return_value = (
52
53=== modified file 'src/maasserver/tests/test_api_commissioning.py'
54=== modified file 'src/maasserver/views/tests/test_rpc.py'
55=== modified file 'src/metadataserver/tests/test_address.py'
56=== modified file 'src/provisioningserver/boot/tests/test_powernv.py'
57=== modified file 'src/provisioningserver/drivers/osystem/ubuntu.py'
58--- src/provisioningserver/drivers/osystem/ubuntu.py 2014-07-11 14:07:08 +0000
59+++ src/provisioningserver/drivers/osystem/ubuntu.py 2014-08-08 20:15:32 +0000
60@@ -24,10 +24,9 @@
61
62 DISTRO_SERIES_CHOICES = {
63 'precise': 'Ubuntu 12.04 LTS "Precise Pangolin"',
64- 'quantal': 'Ubuntu 12.10 "Quantal Quetzal"',
65- 'raring': 'Ubuntu 13.04 "Raring Ringtail"',
66 'saucy': 'Ubuntu 13.10 "Saucy Salamander"',
67 'trusty': 'Ubuntu 14.04 LTS "Trusty Tahr"',
68+ 'utopic': 'Ubuntu 14.10 "Utopic Unicorn"',
69 }
70
71 COMMISIONING_DISTRO_SERIES = [
72
73=== modified file 'src/provisioningserver/import_images/boot_resources.py'
74--- src/provisioningserver/import_images/boot_resources.py 2014-07-29 16:27:14 +0000
75+++ src/provisioningserver/import_images/boot_resources.py 2014-08-08 20:15:32 +0000
76@@ -249,19 +249,34 @@
77
78 snapshot_path = download_all_boot_resources(
79 sources, storage, product_mapping)
80+<<<<<<< TREE
81
82 maaslog.info("Writing metadata and iSCSI targets.")
83 write_snapshot_metadata(snapshot_path, meta_file_content)
84 write_targets_conf(snapshot_path)
85
86 maaslog.info("Installing boot images snapshot %s.", snapshot_path)
87+=======
88+
89+ logger.info("Writing metadata and iSCSI targets.")
90+ write_snapshot_metadata(snapshot_path, meta_file_content)
91+ write_targets_conf(snapshot_path)
92+
93+ logger.info("Installing boot images snapshot %s.", snapshot_path)
94+>>>>>>> MERGE-SOURCE
95 install_boot_loaders(snapshot_path)
96
97 # If we got here, all went well. This is now truly the "current" snapshot.
98 update_current_symlink(storage, snapshot_path)
99+<<<<<<< TREE
100 maaslog.info("Updating iSCSI targets.")
101 update_targets_conf(snapshot_path)
102 maaslog.info("Import done.")
103+=======
104+ logger.info("Updating iSCSI targets.")
105+ update_targets_conf(snapshot_path)
106+ logger.info("Import done.")
107+>>>>>>> MERGE-SOURCE
108
109
110 def main(args):
111
112=== modified file 'src/provisioningserver/import_images/tests/test_boot_resources.py'
113=== modified file 'src/provisioningserver/tests/test_upgrade_cluster.py'
114=== modified file 'src/provisioningserver/upgrade_cluster.py'
115--- src/provisioningserver/upgrade_cluster.py 2014-07-30 11:08:46 +0000
116+++ src/provisioningserver/upgrade_cluster.py 2014-08-08 20:15:32 +0000
117@@ -44,6 +44,7 @@
118 drill_down,
119 list_subdirs,
120 )
121+<<<<<<< TREE
122 from provisioningserver.import_images.boot_resources import (
123 update_targets_conf,
124 write_targets_conf,
125@@ -52,6 +53,14 @@
126
127
128 maaslog = get_maas_logger("cluster_upgrade")
129+=======
130+from provisioningserver.import_images.boot_resources import (
131+ write_targets_conf,
132+ update_targets_conf,
133+ )
134+
135+logger = getLogger(__name__)
136+>>>>>>> MERGE-SOURCE
137
138
139 def make_maas_own_boot_resources():