~ubuntu-branches/ubuntu/maverick/landscape-client/maverick

« back to all changes in this revision

Viewing changes to landscape/message_schemas.py

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2010-02-10 18:50:53 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100210185053-kqyzavz3rkpkl7nx
Tags: 1.4.4-0ubuntu0.10.04
* New upstream release (LP: #519200):
  - Add a message for creating package locks (LP: #514334)
  - Add support for auto-approved change-packages messages (LP: #517175)
  - Add support for installing server-generated debian packages (LP: #509752)
  - Add support for reporting Eucalyptus topology information (LP: #518501)
  - Fix timeout while inserting large free-space message (LP: #218388)
  - Fix wrong log path in motd (LP: #517454)
  - Fix race condition in process excecution (LP: #517453)

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
    {"registration_password": Any(utf8, Constant(None)),
141
141
     "computer_title": utf8,
142
142
     "hostname": utf8,
143
 
     "account_name": utf8},
 
143
     "account_name": utf8,
 
144
     "tags": Any(utf8, Constant(None))},
144
145
    # hostname wasn't around in old versions
145
 
    optional=["registration_password", "hostname"])
 
146
    optional=["registration_password", "hostname", "tags"])
146
147
 
147
148
REGISTER_CLOUD_VM = Message(
148
149
    "register-cloud-vm",
158
159
     "ramdisk_key": Unicode(),
159
160
     "launch_index": Int(),
160
161
     "image_key": Unicode(),
161
 
     })
 
162
     "tags": Any(utf8, Constant(None))},
 
163
     optional=["tags"])
162
164
 
163
165
TEMPERATURE = Message("temperature", {
164
166
    "thermal-zone": utf8,
338
340
    "reboot-required",
339
341
    {"flag": Bool()})
340
342
 
 
343
APT_PREFERENCES = Message(
 
344
    "apt-preferences",
 
345
    {"data": Any(Dict(Unicode(), Unicode()), Constant(None))})
 
346
 
 
347
EUCALYPTUS_INFO = Message(
 
348
    "eucalyptus-info",
 
349
    {"basic_info": Dict(String(), Any(String(), Constant(None))),
 
350
     "walrus_info": String(),
 
351
     "cluster_controller_info": String(),
 
352
     "storage_controller_info": String(),
 
353
     "node_controller_info": String()})
 
354
 
 
355
EUCALYPTUS_INFO_ERROR = Message(
 
356
    "eucalyptus-info-error",
 
357
    {"error": String()})
 
358
 
 
359
 
341
360
message_schemas = {}
342
361
for schema in [ACTIVE_PROCESS_INFO, COMPUTER_UPTIME, CLIENT_UPTIME,
343
362
               OPERATION_RESULT, COMPUTER_INFO, DISTRIBUTION_INFO,
347
366
               USERS, PACKAGES, PACKAGE_LOCKS,
348
367
               CHANGE_PACKAGES_RESULT, UNKNOWN_PACKAGE_HASHES,
349
368
               ADD_PACKAGES, TEXT_MESSAGE, TEST, CUSTOM_GRAPH,
350
 
               REBOOT_REQUIRED]:
 
369
               REBOOT_REQUIRED, APT_PREFERENCES, EUCALYPTUS_INFO,
 
370
               EUCALYPTUS_INFO_ERROR]:
351
371
    message_schemas[schema.type] = schema